feat(conjure): enforce imperative-verb names and invocation-cost choice

- feat(conjure): noun-first names rejected at gather and review; please-test
- feat(conjure): user-invoked default with steer registration; Use when only if model-invoked
- docs(conjure): legacy non-verb names grandfathered explicitly
This commit is contained in:
Łukasz Boryń 2026-07-19 23:29:19 +02:00
parent d704f2bbae
commit 3481fbdbd2

View File

@ -28,11 +28,17 @@ Full vocabulary: [GLOSSARY.md](GLOSSARY.md). Design playbook: [PRINCIPLES.md](PR
## Process ## Process
1. **Gather** — ask the user (one message, grouped): 1. **Gather** — ask the user (one message, grouped):
- kebab-case name and which category (`productivity`, `engineering`, - kebab-case name and which category (`loop`, `productivity`,
`misc`) `engineering`, `scaffold`)
- name is a **verb-first action phrase** (`build-py-project`, - name **must** open with an imperative verb (`build-py-project`,
`conjure-a-skill`) — the **leading word** that anchors invocation; `steer`). Test: prefix with "please" — still a command? No → reject.
never a vague noun (`helper`, `utils`) No new-skill exceptions; legacy non-verb names (bdd, jj-atomic,
r-style, caveman, sieve, handoff, …) are grandfathered, not
precedent.
- **invocation**: default `disable-model-invocation: true` + a
[`steer`](../../loop/steer/SKILL.md) row; model-invoked only when
the agent must fire it from natural mid-work phrasing (then the
description carries "Use when" triggers).
- one-line purpose - one-line purpose
- concrete trigger phrases ("Use when ...") - concrete trigger phrases ("Use when ...")
- **completion criteria** — checkable, exhaustive (see PRINCIPLES.md) - **completion criteria** — checkable, exhaustive (see PRINCIPLES.md)
@ -43,8 +49,10 @@ Full vocabulary: [GLOSSARY.md](GLOSSARY.md). Design playbook: [PRINCIPLES.md](PR
3. **Draft** `~/code/octobot/skills/<category>/<name>/SKILL.md` using the 3. **Draft** `~/code/octobot/skills/<category>/<name>/SKILL.md` using the
template below. template below.
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 **and opens with an imperative
- `description:` contains "Use when" and is ≤ 1024 chars verb** — a noun-first name fails review outright
- `description:` ≤ 1024 chars; "Use when" triggers only if
model-invoked (user-invoked descriptions are one human-facing line)
- **every file ≤ 110 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 SKILL.md is too long, use **progressive disclosure**: push
**reference** into **topic-named siblings** (`tests-r.md`, **reference** into **topic-named siblings** (`tests-r.md`,
@ -70,16 +78,8 @@ description: <what it does>. Use when <concrete trigger>.
# <kebab-name> # <kebab-name>
## When to use ## When to use / Process / Output-done criteria
- <trigger 1> (as in any sibling SKILL.md)
- <trigger 2>
## Process
1. ...
2. ...
## Output / done criteria
- ...
``` ```
## Output / done criteria ## Output / done criteria
@ -90,7 +90,10 @@ description: <what it does>. Use when <concrete trigger>.
## Guardrails ## Guardrails
- Never invent a category — ask if unsure. - Never invent a category — ask if unsure.
- Never write a skill whose description lacks "Use when". - Never accept a name that doesn't open with an imperative verb.
- Never write a model-invoked skill whose description lacks "Use when".
- Never finish without adding the skill's row to
[`steer`](../../loop/steer/SKILL.md).
- **Never let a file in the skill folder exceed 110 lines** (GLOSSARY.md - **Never let a file in the skill folder exceed 110 lines** (GLOSSARY.md
excepted). Split before committing. excepted). Split before committing.
- Reject any line that fails the **no-op** test (PRINCIPLES.md §pruning). - Reject any line that fails the **no-op** test (PRINCIPLES.md §pruning).