chore(skills): relax house cap from 100 to 110 lines; restore nuke-review phrases
Updates the file-size house rule in CLAUDE.md, conjure-a-skill/SKILL.md (description + body + done-criteria + guardrails), and conjure-a-skill/PRINCIPLES.md. The cap on sprawl stays — just a slightly more generous ceiling. Brings back the six "Good phrases" dropped from the nuke-review port (now all nine upstream phrases inline as voice cues): the dropped six covered spaghetti / canonical-placement (x2) / indirection / type-boundary / code-judo themes that were previously kept as standards but lacked line-ready phrasing. nuke-review/SKILL.md lands at 106 lines (under new cap).
This commit is contained in:
parent
3862514d6f
commit
b93454bbc3
@ -95,7 +95,7 @@ This repo holds Claude Code skills. When editing here:
|
||||
- `description:` must contain an explicit "Use when ..." trigger and stay
|
||||
under 1024 characters. The description is the *only* thing the agent sees
|
||||
when deciding to load the skill — make triggers concrete.
|
||||
- Keep `SKILL.md` ≤ 100 lines. Split into `REFERENCE.md` / `EXAMPLES.md` if
|
||||
- Keep `SKILL.md` ≤ 110 lines. Split into `REFERENCE.md` / `EXAMPLES.md` if
|
||||
it grows.
|
||||
- No time-sensitive content (dates, "current" model names).
|
||||
- `scripts/` is only for deterministic helpers, not prose.
|
||||
|
||||
@ -74,8 +74,14 @@ parallel or atomic shapes.
|
||||
|
||||
## How to phrase findings — direct, serious, demanding; not rude
|
||||
- *"this pushes the file past 1k lines. can we decompose this first?"*
|
||||
- *"this adds another special-case branch into an already busy flow. can we move this behind its own abstraction?"*
|
||||
- *"this works, but it makes the surrounding code more spaghetti. let's keep the behaviour and restructure the implementation."*
|
||||
- *"this feels like feature logic leaking into a shared path. can we isolate it?"*
|
||||
- *"this abstraction seems unnecessary. can we just keep the direct flow?"*
|
||||
- *"why does this need a cast / optional here? can we make the boundary more explicit instead?"*
|
||||
- *"this looks like a bespoke helper for something we already have elsewhere. can we reuse the canonical one?"*
|
||||
- *"i think there's a code-judo move here that makes this much simpler. can we reframe so these branches disappear?"*
|
||||
- *"this refactor moves complexity around, but doesn't really delete it. is there a way to make the model itself simpler?"*
|
||||
|
||||
## Output
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ concept's definition, rules, and caveats under one heading.
|
||||
another skill must reach it.
|
||||
- **By sequence** — split a run of **steps** when **post-completion steps**
|
||||
tempt the agent to rush the current one (**premature completion**).
|
||||
- **By the octobot 100-line cap** — when a file exceeds 100 lines, split.
|
||||
- **By the octobot 110-line cap** — when a file exceeds 110 lines, split.
|
||||
House enforcement of **sprawl**. `GLOSSARY.md` is the documented exception.
|
||||
|
||||
## Pruning
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
name: conjure-a-skill
|
||||
description: Conjure a new Claude Code skill that earns its place — verb-first name, sharp completion criteria, progressive-disclosure layout, no-op-free body, every file ≤100 lines. Use when the user says "conjure a skill", "/conjure-a-skill", "write a skill", "create a skill", "add a skill", or describes a recurring workflow worth capturing.
|
||||
description: Conjure a new Claude Code skill that earns its place — verb-first name, sharp completion criteria, progressive-disclosure layout, no-op-free body, every file ≤110 lines. Use when the user says "conjure a skill", "/conjure-a-skill", "write a skill", "create a skill", "add a skill", or describes a recurring workflow worth capturing.
|
||||
---
|
||||
|
||||
# conjure-a-skill
|
||||
@ -44,7 +44,7 @@ Full vocabulary: [GLOSSARY.md](GLOSSARY.md). Design playbook: [PRINCIPLES.md](PR
|
||||
4. **Review** — show the draft to the user; iterate until approved. Verify:
|
||||
- `name:` matches the folder name
|
||||
- `description:` contains "Use when" and is ≤ 1024 chars
|
||||
- **every file ≤ 100 lines** — octobot's house cap on **sprawl**. If
|
||||
- **every file ≤ 110 lines** — octobot's house cap on **sprawl**. If
|
||||
SKILL.md is too long, use **progressive disclosure**: push
|
||||
**reference** into **topic-named siblings** (`tests-r.md`,
|
||||
`mocking-r.md`, `feedback-loops-r.md`, `anti-patterns.md`,
|
||||
@ -83,14 +83,14 @@ description: <what it does>. Use when <concrete trigger>.
|
||||
|
||||
## Output / done criteria
|
||||
- New `SKILL.md` exists at the right path, passes the checks in step 4.
|
||||
- Every file in the skill folder is ≤ 100 lines (GLOSSARY.md excepted).
|
||||
- Every file in the skill folder is ≤ 110 lines (GLOSSARY.md excepted).
|
||||
- User has been told the exact `jj describe` command to run.
|
||||
- Skill appears in the skill list on next Claude Code session start.
|
||||
|
||||
## Guardrails
|
||||
- Never invent a category — ask if unsure.
|
||||
- Never write a skill whose description lacks "Use when".
|
||||
- **Never let a file in the skill folder exceed 100 lines** (GLOSSARY.md
|
||||
- **Never let a file in the skill folder exceed 110 lines** (GLOSSARY.md
|
||||
excepted). Split before committing.
|
||||
- Reject any line that fails the **no-op** test (PRINCIPLES.md §pruning).
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user