guarding-code-quality
Keeps agent-generated code correct, safe, and consistent with the codebase, match existing conventions, verify behavior with a real run/test, and self-review…
Skill by Adrian Paredez
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/adrianparedez-guarding-code-quality
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: testing, writing, agent-building
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
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/guarding-code-quality
What's inside
- Skill name
guarding-code-quality- Description
- Keeps agent-generated code correct, safe, and consistent with the codebase, match existing conventions, verify behavior with a real run/test, and self-review before claiming done. Use whenever writing or editing code. Calls verifying-reasoning to confirm a fix actually fixes, and reports honestly when checks fail.
- License
- Apache-2.0
- Compatibility
- Any runtime with code execution / test running. Degrades to static self-review when execution is unavailable.
- Metadata
- tier: 0 · layer: domain/quality · author: Adrian Paredez · version: 1.0
- Instructions
- 82 lines in SKILL.md · view on GitHub
Files (6)
- SKILL.md
- README.md · benchmarks/
- self-review.md · checklists/
- examples.md
- references.md
- change-report.md · templates/
SKILL.md (first lines)
# Guarding code quality
Generated code that looks right and is wrong is the expensive default. This skill makes
"done" mean **verified-correct and consistent with the codebase**, not "compiles" or
"looks plausible."
## Use this when
- Writing new code or editing existing code in any language.
- Fixing a bug (the fix must be *proven* to fix).
- **Always-on for code work**, it's a guardrail, not a special mode.
## The discipline
```
- [ ] 1 FIT read neighboring code; match its conventions, not your defaults
- [ ] 2 MINIMAL make the smallest change that satisfies the requirement
- [ ] 3 RUN execute it, run the test / the app / the path you changed
- [ ] 4 PROVE for a bug fix: show it failed before and passes after (verifying-reasoning)
- [ ] 5 EDGES handle empty/null/error paths you touched; don't punt to the caller
- [ ] 6 REVIEW self-review the diff as a reviewer would (checklist)
- [ ] 7 REPORT state what you verified and what you did NOT; never claim untested success
```
## Principles
1. **Match the codebase, not your habits.** Read the surrounding code first. Use its
naming, error handling, libraries, and structure. Consistent-with-wrong beats
correct-but-alien for maintainability, but here you get consistent *and* correct.
2. **Smallest change that works.** Don't refactor unasked, don't add abstraction for one
call site, don't rewrite what works. Minimal diffs are easier to verify and review.
3. **Run it, don't assert it works.** The line between "I think this works" and "I saw
this work" is the whole skill. Run the test, the app, the changed path. (See `verify`
/ project run conventions where they exist.)
4. **A bug fix must prove itself.** Reproduce the failure first, then show the fix removes
it. A fix you can't demonstrate fixing is a guess. Hand to `verifying-reasoning`.
5. **Own the edges you touch.** Empty input, null, error branch, boundary. Handle them in
the code, don't leave a `# TODO` that ships.
6. **Self-review the diff.** Read your own change as a hostile reviewer (checklist). Catch
the leftover debug print, the wrong variable, the missing await.
7. **Report honestly.** Say exactly what you verified and what you didn't. "Tests pass;
did not test the migration path" is gold. "Done!" on untested code is a defect.
## Before you claim done (no rationalizing)
If you have not run the check in this turn, you cannot claim the result. "Done", "Perfect",
"Fixed", "Should work", and "Looks correct" are not evidence.
| Excuse | Reality |
|---|---|
| "Should work now" | Run the check. |
| "I'm confident" | Confidence is not evidence. |
| "Linter passed" | A linter is not a test or a compiler. |
| "The tests probably pass" | Run them; read the count. |
| "Just this once" | No exceptions. Untested success is a defect. |
| "The agent reported success" | Verify it independently (diff, output). |
Hold any "done / fixed / all set" until the command has run and you have read its output.
## Reading the codebase first (fit)
Before writing, find: the nearest similar function, the project's error-handling pattern,
its test layout, its lint/format config, and which libraries it already uses. Reuse over
introduce. A new dependency or pattern needs a reason.
## Don't punt (handle, don't defer)
Bad: write code that fails on the hard case and let the caller/agent deal with it later.
Good: handle the case now with a clear, justified behavior. Document non-obvious constants
(no magic numbers), if you don't know the right value, neither will the next reader.
## Runtime adaptation
- **Minimum (no execution):** do static self-review + `verifying-reasoning` by reasoning,
and **explicitly flag "not executed"** in the report, never imply it was tested.
- **With execution:** prefer running the real test/app over reasoning about it.
- Reference capabilities ("run the test suite", "run the app"), not specific tool names,
so the skill holds across Claude Code, Codex, OpenClaw, Hermes.
## Files
- `references.md`, fit heuristics, bug-fix proof pattern, review focus areas.
- `examples.md`, a verified fix, an honest partial report, an anti-pattern.
- `templates/change-report.md`, what to report after a change.
- `checklists/self-review.md`, the pre-done diff review.
- `benchmarks/`, defect-escape-rate method.From AdrianParedez/capability-fabric, Apache-2.0.
More from AdrianParedez/capability-fabric
- 0.497score
auditing-skills
Adrian Paredez
Scores and improves an existing Agent Skill against a spec + quality rubric, then proposes or applies concrete refactors (split monoliths, sharpen…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
authoring-skills
Adrian Paredez
Generates a new, spec-compliant, portable Agent Skill from a capability description, frontmatter, focused body, and the supporting file set, following…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
composing-skills
Adrian Paredez
Routes a task to the smallest set of skills that covers it and sequences them without context bloat, instead of one monolithic instruction.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
context-budgeting
Adrian Paredez
Deliberately manages the context window to cut token cost and prevent quality decay on long runs.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
verifying-reasoning
Adrian Paredez
A fast, on-demand check that catches wrong answers before they ship, surface assumptions, seek disconfirming evidence, and validate the result against the…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
operating-autonomously
Adrian Paredez
Runs a goal unattended with a disciplined progress / stuck / done loop, bounded retry-with-variation, and clear stop and escalation criteria.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
progressive-research
Adrian Paredez
Finds external information without flooding context, a tiered search, triage, extract, corroborate, synthesize loop.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
sustained-execution
Adrian Paredez
Keeps long, multi-session, or compaction-spanning tasks on track using an external task ledger, checkpoints, and resumable state.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
decomposing-tasks
Adrian Paredez
Turns a goal into a verifiable, risk-ordered plan with explicit success criteria before any work starts.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 5, 2026 (4 months ago)
- Last release
- Jun 5, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- Apache-2.0
- Website
- paredez.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Adrian Paredez
- 0.497score
auditing-skills
Adrian Paredez
Scores and improves an existing Agent Skill against a spec + quality rubric, then proposes or applies concrete refactors (split monoliths, sharpen…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
authoring-skills
Adrian Paredez
Generates a new, spec-compliant, portable Agent Skill from a capability description, frontmatter, focused body, and the supporting file set, following…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
composing-skills
Adrian Paredez
Routes a task to the smallest set of skills that covers it and sequences them without context bloat, instead of one monolithic instruction.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
context-budgeting
Adrian Paredez
Deliberately manages the context window to cut token cost and prevent quality decay on long runs.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
verifying-reasoning
Adrian Paredez
A fast, on-demand check that catches wrong answers before they ship, surface assumptions, seek disconfirming evidence, and validate the result against the…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
operating-autonomously
Adrian Paredez
Runs a goal unattended with a disciplined progress / stuck / done loop, bounded retry-with-variation, and clear stop and escalation criteria.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
guarding-code-quality skill. Agent Mart. https://agentmart.dev/skills/adrianparedez-guarding-code-quality (last updated 2026-10-24)