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:
parent
d6febf78d3
commit
d9ad9280d5
@ -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)
|
## Rules (apply for the rest of the session until user cancels)
|
||||||
- **No preamble.** Do not announce what you are about to do.
|
- **No preamble.** Do not announce what you are about to do.
|
||||||
- **No trailing summary.** Do not recap what you just did.
|
- **No trailing summary.** Do not recap what you just did.
|
||||||
- **No status narration** between tool calls beyond what is required by the
|
- **No status narration** between tool calls. The global system prompt
|
||||||
harness (one sentence max before the first tool call of a turn).
|
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
|
- **Output shape**: the artifact (code, diff, command, answer) followed by
|
||||||
at most **one line** of rationale. No headers, no bullet lists unless the
|
at most **one line** of rationale. No headers, no bullet lists unless the
|
||||||
answer is inherently a list.
|
answer is inherently a list.
|
||||||
|
|||||||
@ -26,14 +26,20 @@ description: Scaffold a new Claude Code skill with the octobot conventions — f
|
|||||||
memorized).
|
memorized).
|
||||||
4. **Review** — show the draft to the user; iterate until approved. Verify:
|
4. **Review** — show the draft to the user; iterate until approved. Verify:
|
||||||
- `name:` matches the folder name
|
- `name:` matches the folder name
|
||||||
- `description:` contains "Use when" and is < 1024 chars
|
- `description:` contains "Use when" and is ≤ 1024 chars
|
||||||
- file is ≤ 100 lines (split into REFERENCE.md / EXAMPLES.md otherwise)
|
- 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
|
- no time-sensitive content
|
||||||
5. **Link** — Claude Code only scans one level deep under `~/.claude/skills/`,
|
5. **Link** — Claude Code only scans one level deep under `~/.claude/skills/`,
|
||||||
so create a per-skill symlink:
|
so create a per-skill symlink:
|
||||||
`ln -s ~/code/octobot/skills/<category>/<name> ~/.claude/skills/<name>`
|
`ln -s ~/code/octobot/skills/<category>/<name> ~/.claude/skills/<name>`
|
||||||
6. **Commit** — from the octobot repo:
|
6. **Commit** — from the octobot repo, following the `type(scope):
|
||||||
`jj describe -m "add skill: <name>"` (and `jj git push` if a remote exists).
|
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
|
## Template
|
||||||
```markdown
|
```markdown
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user