self-critique
Post-task self-critique using an independent Gemini reviewer to identify errors or improvements
Skill by dmoskov
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dmoskov-self-critique
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/self-critique
What's inside
- Skill name
self-critique- Description
- Post-task self-critique using an independent Gemini reviewer to identify errors or improvements
- License
- MIT
- Instructions
- 73 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (2)
- SKILL.md
- gemini_critique.py
SKILL.md (first lines)
# Self-Critique Skill
Implements the "confessions" pattern: after completing work, an *independent* model
(Gemini) reviews it, so the author model's blind spots don't go unchallenged. The
reviewer returns structured issues (category, severity, location, suggested fix) and
an overall confidence score.
## When to Use
- After completing a significant code change
- Before committing to version control
- When uncertain about an implementation decision
- As a periodic audit pass over recent work
## Setup (one-time)
1. Get a Gemini API key from https://aistudio.google.com/apikey
2. Store it:
```bash
mkdir -p ~/.config/ai-dev-tools
echo "your-api-key-here" > ~/.config/ai-dev-tools/gemini_api_key
chmod 600 ~/.config/ai-dev-tools/gemini_api_key
```
Or set the `GEMINI_API_KEY` environment variable.
3. Optional: override the reviewer model with `GEMINI_MODEL` (pin exact model IDs —
floating aliases can silently change behavior).
## How to Use
Paths resolve against your ai-dev-tools checkout (see the `AI_DEV_TOOLS_DIR`
convention in [skills/README.md](../README.md)).
After completing a task, run the critique script with a description of what was done:
```bash
python3 "${AI_DEV_TOOLS_DIR:-.}/skills/self-critique/gemini_critique.py" \
--task "Implemented user authentication" --files src/auth.py src/middleware.py
```
Or for a git-based review of recent changes:
```bash
python3 "${AI_DEV_TOOLS_DIR:-.}/skills/self-critique/gemini_critique.py" \
--git-diff HEAD~1 --task "Recent changes"
```
Focus the critique on one dimension:
```bash
python3 "${AI_DEV_TOOLS_DIR:-.}/skills/self-critique/gemini_critique.py" \
--task "Caching layer" --files cache.py --focus security
```
Add `--json` for machine-readable output. The script exits non-zero if any
critical-severity issue is found, so it can gate CI or pre-commit flows.
## Critique Categories
1. **Correctness** - Logic errors, edge cases, off-by-one errors
2. **Security** - Vulnerabilities, injection risks, data exposure
3. **Performance** - Inefficiencies, N+1 queries, memory leaks
4. **Maintainability** - Code clarity, naming, documentation gaps
5. **Completeness** - Missing tests, error handling, validation
## Acting on the Critique
Treat the reviewer as a skeptical colleague, not an oracle:
- **Critical/high issues**: verify each one against the code before fixing — external
reviewers see plausible-but-wrong issues too. Fix confirmed ones before committing.
- **Medium**: fix or explicitly note why not.
- **Low**: apply judgment; ignore style-only nits.From dmoskov/sharedskills, MIT.
More from dmoskov/sharedskills
- 0.554score
environmental-scan
dmoskov
Scan the external environment for threats and opportunities affecting this project — CVEs in your dependencies, API/SDK changes, notable releases and research
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
code-cleanup
dmoskov
Targeted cleanup skills — dead code, error handling, types, function extraction.
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
security-audit
dmoskov
Run a comprehensive security audit on any codebase, checking for OWASP Top 10 and common vulnerability patterns
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
task-decomposition
dmoskov
Break a large or vague task into file-level Asana subtasks with custom fields from your workspace config
SkillBFreshness: B★ 2Claude Code +9 - 0.546score
claudemd-generator
dmoskov
Generate a comprehensive CLAUDE.md for any project by scanning the codebase
SkillBFreshness: B★ 2Claude Code +9 - 0.507score
brand-identity
dmoskov
Create a distinctive logo mark and a token-based theme for a project, using the "Asphodel method" — one reusable SVG path composed by rotation, plus a…
SkillCFreshness: C★ 2Claude Code +9 - 0.448score
rlm
dmoskov
Use when processing very long contexts, large documents, or extensive codebases that exceed practical context window limits.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Aug 21, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/dmoskov/sharedskills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dmoskov
- 0.554score
environmental-scan
dmoskov
Scan the external environment for threats and opportunities affecting this project — CVEs in your dependencies, API/SDK changes, notable releases and research
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
code-cleanup
dmoskov
Targeted cleanup skills — dead code, error handling, types, function extraction.
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
security-audit
dmoskov
Run a comprehensive security audit on any codebase, checking for OWASP Top 10 and common vulnerability patterns
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
task-decomposition
dmoskov
Break a large or vague task into file-level Asana subtasks with custom fields from your workspace config
SkillBFreshness: B★ 2Claude Code +9 - 0.546score
claudemd-generator
dmoskov
Generate a comprehensive CLAUDE.md for any project by scanning the codebase
SkillBFreshness: B★ 2Claude Code +9 - 0.507score
brand-identity
dmoskov
Create a distinctive logo mark and a token-based theme for a project, using the "Asphodel method" — one reusable SVG path composed by rotation, plus a…
SkillCFreshness: C★ 2Claude Code +9
Cite this page
self-critique skill. Agent Mart. https://agentmart.dev/skills/dmoskov-self-critique (last updated 2026-10-24)