Skip to content

Commit 585ece7

Browse files
committed
docs(claude.md): add skill-authoring guidance
1 parent 6f1974c commit 585ece7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎CLAUDE.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ Key skills:
4242

4343
- **`writing-user-outputs`** — Required when modifying user-facing messages, hints, warnings, errors, or any terminal output formatting. Documents ANSI color nesting rules, message patterns, and output system architecture.
4444

45+
### Authoring skills
46+
47+
When adding to or editing files in `.claude/skills/`:
48+
49+
- **Be brief.** Skills are loaded into every relevant session — extra prose is overhead. Lead with the rule or recipe; cut motivation, anecdotes, and historical context unless required to apply the rule.
50+
- **No specific past-run references.** Don't link GitHub Actions runs, cite session IDs, or quote durations from individual incidents. They age into trivia and aren't useful when the skill is reused. State the structural rule without the run links.
51+
- **Date-stamp only when the value depends on time.** A baseline number expected to drift can be dated; a one-shot incident citation should not be.
52+
- **Prefer recipe over narrative.** A code block plus a one-sentence framing beats a multi-paragraph explanation.
53+
4554
## Testing
4655

4756
See `tests/CLAUDE.md` for test infrastructure, assertion style, and test granularity guidelines.

0 commit comments

Comments
 (0)