Compound quality pass over recently changed code. Orchestrates seven standalone skills in sequence: comment, lerp, style, fix-types, interface, test-invariants, exemplar-audit. Each pass is independently invokable. Use after any feature or refactor lands and before the final commit.
Seven-pass quality gate. Each pass delegates to a standalone skill, so you can run any pass independently (/comment, /lerp, /fix-types, /exemplar-audit, etc.) or all seven in order (/refine).
Before implementing anything, check official documentation and real-world examples. Clone reference repos into /tmp, read upstream READMEs, and verify the canonical approach before inventing your own. This applies to every pass. The internet is smarter than guessing.
Don't write tests that confirm the code you wrote works. Write tests that probe the contract the code is supposed to uphold. "Rename works" is an implementation test. "Rename never orphans children" is an invariant test. The second one catches bugs before they exist.
Operates on every file in the current working set (unstaged + staged + recent commits). If the user names specific files, a package, or a directory, scope to those.
/refine -- all touched files, all 7 passes/refine $0 -- scope to a file, crate, or directory/refine --pass N -- run only pass N (1-7)/refine --skip N -- skip pass NEach pass reads its own skill file for the full checklist, so updates to individual skills propagate automatically.
Skill: .agents/skills/comment/SKILL.md
| Check | Applies to |
|---|---|
| License/copyright header present | all languages |
| File-level doc answers what / why / where in 30 seconds | all |
| Acronyms spelled out on first use | all |
| Inline comments pass the deletion test | all |
| No "This module/struct/class/function..." openers | all |
| Concrete examples for formats, protocols, state machines | all |
Skill: .agents/skills/lerp/SKILL.md
| Check | Applies to |
|---|---|
| Acronyms spelled out on first use, short form in parens, then abbreviate freely | all prose |
| Domain terms explained inline on first use | all prose |
| No orphan references ("this split", "this pattern") without context | all prose |
| Every "important" or "necessary" claim states the consequence | all prose |
| Abstract nouns replaced with concrete descriptions | all prose |
| Sentences connected into flowing reasoning, not staccato facts | all prose |
| A sixth grader could follow the argument without asking someone | all prose |
Skill (pick by language):
| Language | Skill |
|---|---|
| Rust | .agents/skills/rust-neckbeard/SKILL.md |
| Go | .agents/skills/go-style/SKILL.md |
| Python | docs/src/style/python.mdx |
| TypeScript | style/typescript.md |
| Terraform | terraform fmt + checkov |
| SQL | schema in const string is fine |
| Shell | .agents/skills/test-writing/SKILL.md |
What to check (language-specific limits come from the guide):
#[must_use] / equivalent.Skill: .agents/skills/fix-types/SKILL.md
| Check | Example |
|---|---|
| 2+ params of same primitive, swappable | fn transfer(from: u64, to: u64) -> newtypes |
| Narrowing/sign-changing cast without justification | as u64 -> try_from |
| 2+ boolean params | tls: bool, verify: bool -> enums |
| Enum discriminant in DB/wire without contract doc | Add "BREAKING change" note |
| Timestamps as bare integers without overflow doc | Document the overflow year |
Skill: .agents/skills/generate-interface/SKILL.md
Skill: .agents/skills/tests/SKILL.md
For each new or changed invariant:
Skill: .agents/skills/exemplar-audit/SKILL.md
Find reference implementations, clone them, compare edge cases and error paths against ours. Report gaps as bugs. Fix bugs. Do not cargo-cult patterns we don't need.
These former standalone skills are bundled here as references to keep the runtime list compact. Load only the reference that matches the user's exact product, framework, or failure mode.
| Former skill | Reference | Description |
|---|---|---|
dedalus-refine | references/skills/dedalus-refine/SKILL.md | Compound quality pass over recently changed code. Orchestrates seven standalone skills in sequence: comment, lerp, style, fix-types, interface, test-invariants, exemplar-audit. Each pass is independently invokable. Use after any feature or refactor lands and before the final commit. |