os-skill-improvementlisted
Install: claude install-skill richfrem/agent-plugins-skills
# Skill Continuous Improvement: RED-GREEN-REFACTOR
Adapts the RED-GREEN-REFACTOR cycle from software testing to skill authoring.
The key insight: a skill is a testable contract. The failure to follow the contract
is observable. Always observe the failure BEFORE writing the fix.
**Integrated with**:
- `os-eval-runner` -- runs `eval_runner.py` as the GREEN verification step
- `os-improvement-loop` -- uses this methodology to gate every proposed skill patch
- `evals/evals.json` + `results.tsv` -- autoresearch eval format for longitudinal tracking
---
## The TDD Mapping
| Software TDD | Skill Authoring Equivalent |
|---|---|
| Test case | Pressure scenario: a user prompt that should trigger the skill |
| RED phase | Run a baseline WITHOUT the skill. Observe: does the agent violate the intended protocol? |
| GREEN phase | Write the skill. Run `os-eval-runner`. KEEP only if score >= baseline. |
| REFACTOR phase | Identify loopholes from eval failures. Patch frontmatter or examples. Re-eval. |
---
## Iron Law: Run a RED Scenario BEFORE Writing
**Never write a new skill without first observing a failure.**
The RED scenario is the evidence that the skill is needed. Without it:
- You cannot know what specific failure the skill is fixing
- You cannot know if the skill actually fixes it (no before/after comparison)
- You cannot write examples that address real failure modes (they become generic)
### How to run a RED scenario
1. Identify the pressure scenario: a user prompt or