docs(skills): refine write-a-skill conventions; tighten caveman rule

* docs(write-a-skill): rename split-file guidance to topic-named siblings (tests-r.md, anti-patterns.md, …) over generic REFERENCE/EXAMPLES
* docs(write-a-skill): fix '< 1024 chars' typo to '≤ 1024'; update jj describe example to use type(scope) form per jj-atomic
* docs(caveman): tighten 'one sentence before first tool call' rule — caveman overrides the global default and skips even that sentence
This commit is contained in:
Łukasz Boryń 2026-06-08 23:07:03 +02:00
parent d6febf78d3
commit d9ad9280d5
2 changed files with 15 additions and 6 deletions

View File

@ -12,8 +12,11 @@ description: Switch into terse mode for the rest of the session — no preamble,
## Rules (apply for the rest of the session until user cancels)
- **No preamble.** Do not announce what you are about to do.
- **No trailing summary.** Do not recap what you just did.
- **No status narration** between tool calls beyond what is required by the
harness (one sentence max before the first tool call of a turn).
- **No status narration** between tool calls. The global system prompt
already allows "one sentence before the first tool call of a turn";
caveman **tightens** that — skip even that one sentence unless the
harness explicitly requires it (e.g. a hook demands it). When the
artifact itself is the answer, the tool call is the answer.
- **Output shape**: the artifact (code, diff, command, answer) followed by
at most **one line** of rationale. No headers, no bullet lists unless the
answer is inherently a list.

View File

@ -26,14 +26,20 @@ description: Scaffold a new Claude Code skill with the octobot conventions — f
memorized).
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
- file is ≤ 100 lines (split into REFERENCE.md / EXAMPLES.md otherwise)
- `description:` contains "Use when" and is ≤ 1024 chars
- file is ≤ 100 lines. If you need more, split into **topic-named
siblings** — e.g. `tests-r.md`, `mocking-r.md`, `feedback-loops-r.md`,
`anti-patterns.md`, `examples.md`. One topic per file, named for the
topic (not for the role). `REFERENCE.md` / `EXAMPLES.md` are reserved
for genuinely role-shaped content — most splits are topic splits.
- no time-sensitive content
5. **Link** — Claude Code only scans one level deep under `~/.claude/skills/`,
so create a per-skill symlink:
`ln -s ~/code/octobot/skills/<category>/<name> ~/.claude/skills/<name>`
6. **Commit** — from the octobot repo:
`jj describe -m "add skill: <name>"` (and `jj git push` if a remote exists).
6. **Commit** — from the octobot repo, following the `type(scope):
imperative` format from [`../jj-atomic/SKILL.md`](../jj-atomic/SKILL.md):
`jj describe -m "feat(skills): add <name> skill"`
(and `jj git push` if a remote exists).
## Template
```markdown