Format drift: A format that used to pass now consistently fails
Angle bias: System always picks the same angle (contrarian overuse)
Expert mismatch: Wrong expert library loaded for task type
Decontamination noise: Same banned patterns keep triggering (instruction unclear)
Brain staleness: Research skill finds data already in Brain, or Brain data contradicts current reality
Revision loops: Too many rounds needed — instructions may be ambiguous
Generate an Inspection Report:
## Inspection Report: {skill_name}
**Date**: {YYYY-MM-DD}
**Observation window**: {date range}
**Total runs observed**: {N}
**Pass rate (Rubber Duck 8+)**: {N}%
**Avg revision rounds**: {N}
### Patterns Detected
1. {Pattern with evidence — cite specific log entries}
2. {Pattern with evidence}
### Root Cause Analysis
- Is the issue in the skill instructions?
- Is it in the reference files (practices, expert libraries)?
- Is it in the Brain data (stale models, missing evidence)?
- Is it in the routing (wrong skill triggered)?
### Recommendation
{Amend skill | Update reference | Refresh Brain section | Adjust routing | Monitor}
Phase 2 — Amend
If inspection recommends amendment:
Read the current SKILL.md for the target skill
Propose a specific change — one of:
Tighten angle selection criteria
Add missing generation step
Update format constraints (character counts, structure)
Create skills/{skill_name}/_versions/ if it doesn't exist
Copy current SKILL.md → _versions/v{N}.md
Write amendment rationale to _versions/_changelog.md:
## v{N+1} — {YYYY-MM-DD}
**Trigger**: {What pattern triggered this amendment}
**Change**: {What was changed and why}
**Evidence**: {Log entries that support this change}
**Expected improvement**: {What metric should improve}
Present the proposed diff to the user for approval
Show exact lines changed
Explain the evidence chain: logs → pattern → root cause → fix
## Evaluation: {skill_name} v{N+1}
**Amendment date**: {date}
**Runs since**: {N}
**Result**: Improved | No change | Degraded
### Metrics Comparison
| Metric | Before | After |
|--------|--------|-------|
| Pass rate | {x}% | {x}% |
| Avg revisions | {x} | {x} |
| Weakest phase | {x} | {x} |
### Decision
{Keep | Roll back to v{N}}
If degraded: restore from _versions/v{N}.md, log the rollback
Amendment Thresholds
Trigger threshold: Only propose amendment when Rubber Duck first-attempt pass rate drops below 50% over 10+ runs, OR when 3+ flags accumulate for the same skill
Improvement bar: An amendment must improve the pass rate by at least 15 percentage points OR reduce average revision rounds by at least 1 round
Revert rule: If an amended skill doesn't improve the primary metric within 5 subsequent runs, auto-revert. No exceptions.
Cooldown: After a revert, wait for 3 clean runs before proposing a new amendment to the same skill
Rules
Never amend without inspection evidence
Never apply without user approval
Always version before amending
One amendment per cycle — don't stack changes
Evaluate before proposing next amendment
Smallest change that addresses the pattern
If root cause is in references (not skill), update the reference file instead
1---2name: inspect-amend3description: Inspect & Amend — Self-Improving Skills Loop4---5# Inspect & Amend — Self-Improving Skills Loop67## Trigger8- "Inspect skills", "Check skill health", "Review skill performance"9- "Amend {skill_name}", "Improve {skill_name}"10- "Calibrate skills" — run inspection across all skills11- Automatically suggested when `_logs/_flags.md` has 3+ entries for the same skill1213## Purpose14Close the self-improvement loop: observe → inspect → amend → evaluate.15Content generation skills degrade when platforms change algorithms, voice drifts, Brain data grows stale, or audience preferences shift. This skill detects degradation and proposes evidence-based amendments.1617## Process1819### Phase 1 — Inspect201. Read all observation logs from `_logs/` for the target skill212. Read `_logs/_flags.md` for flagged issues223. Identify patterns:23 - **Rubber Duck failures**: Which phases consistently score low? (e.g., CHALLENGE always fails = weak counterarguments)24 - **Format drift**: A format that used to pass now consistently fails25 - **Angle bias**: System always picks the same angle (contrarian overuse)26 - **Expert mismatch**: Wrong expert library loaded for task type27 - **Decontamination noise**: Same banned patterns keep triggering (instruction unclear)28 - **Brain staleness**: Research skill finds data already in Brain, or Brain data contradicts current reality29 - **Revision loops**: Too many rounds needed — instructions may be ambiguous30314. Generate an **Inspection Report**:32```markdown33## Inspection Report: {skill_name}34**Date**: {YYYY-MM-DD}35**Observation window**: {date range}36**Total runs observed**: {N}37**Pass rate (Rubber Duck 8+)**: {N}%38**Avg revision rounds**: {N}3940### Patterns Detected411. {Pattern with evidence — cite specific log entries}422. {Pattern with evidence}4344### Root Cause Analysis45- Is the issue in the skill instructions?46- Is it in the reference files (practices, expert libraries)?47- Is it in the Brain data (stale models, missing evidence)?48- Is it in the routing (wrong skill triggered)?4950### Recommendation51{Amend skill | Update reference | Refresh Brain section | Adjust routing | Monitor}52```5354### Phase 2 — Amend55If inspection recommends amendment:56571. **Read the current SKILL.md** for the target skill582. **Propose a specific change** — one of:59 - Tighten angle selection criteria60 - Add missing generation step61 - Update format constraints (character counts, structure)62 - Adjust Rubber Duck phase weights or criteria63 - Update expert library loading rules64 - Add/remove decontamination patterns65 - Clarify ambiguous instructions causing revision loops66 - Update Brain loading priorities67683. **Version the current skill before changing**:69 - Create `skills/{skill_name}/_versions/` if it doesn't exist70 - Copy current `SKILL.md` → `_versions/v{N}.md`71 - Write amendment rationale to `_versions/_changelog.md`:72 ```73 ## v{N+1} — {YYYY-MM-DD}74 **Trigger**: {What pattern triggered this amendment}75 **Change**: {What was changed and why}76 **Evidence**: {Log entries that support this change}77 **Expected improvement**: {What metric should improve}78 ```79804. **Present the proposed diff to the user** for approval81 - Show exact lines changed82 - Explain the evidence chain: logs → pattern → root cause → fix83 - Never apply without user confirmation8485### Phase 3 — Evaluate86After amendment is applied:87881. Mark in `_logs/_flags.md`:89 ```90 - [EVAL] {skill_name} v{N+1} applied {date} — monitoring91 ```92932. After 3-5 subsequent runs, compare:94 - Rubber Duck pass rate before vs. after95 - Avg revision rounds before vs. after96 - Phase-specific scores before vs. after97 - Decontamination trigger frequency98993. Generate **Evaluation Report**:100 ```markdown101 ## Evaluation: {skill_name} v{N+1}102 **Amendment date**: {date}103 **Runs since**: {N}104 **Result**: Improved | No change | Degraded105106 ### Metrics Comparison107 | Metric | Before | After |108 |--------|--------|-------|109 | Pass rate | {x}% | {x}% |110 | Avg revisions | {x} | {x} |111 | Weakest phase | {x} | {x} |112113 ### Decision114 {Keep | Roll back to v{N}}115 ```1161174. If degraded: restore from `_versions/v{N}.md`, log the rollback118119## Amendment Thresholds120- **Trigger threshold**: Only propose amendment when Rubber Duck first-attempt pass rate drops below **50%** over 10+ runs, OR when 3+ flags accumulate for the same skill121- **Improvement bar**: An amendment must improve the pass rate by at least **15 percentage points** OR reduce average revision rounds by at least **1 round**122- **Revert rule**: If an amended skill doesn't improve the primary metric within **5 subsequent runs**, auto-revert. No exceptions.123- **Cooldown**: After a revert, wait for **3 clean runs** before proposing a new amendment to the same skill124125## Rules126- Never amend without inspection evidence127- Never apply without user approval128- Always version before amending129- One amendment per cycle — don't stack changes130- Evaluate before proposing next amendment131- Smallest change that addresses the pattern132- If root cause is in references (not skill), update the reference file instead
Run npx skillmds@latest add raven-sourav/inspect-amend in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Inspect & Amend — Self-Improving Skills Loop It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
raven-sourav (@raven-sourav) published this skill. Their other Agent Skills are listed on their SkillMD profile.