[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CA0JAT7HB836AST6MKAX0A":3,"skill-same:01M7CA0JAT7HB836AST6MKAX0A":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7CA0JAT7HB836AST6MKAX0A","propose-brief",null,"Scaffold a draft brief for pre-decision exploration. Leave its body for human authorship; do not create an ADR or change status.","bionic-coding\u002Fcrux","bionic-coding","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301040008?v=4","01M7C9T2NA1V1V0EF1M552HRB3","Bionic Coding","01M7C9T2P72H1AQV5T5PTBFNHN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fpropose-brief\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: propose-brief\ndescription: \"Scaffold a draft brief for pre-decision exploration. Leave its body for human authorship; do not create an ADR or change status.\"\nmetadata:\n  tags: \"briefs, scaffolding, exploration, adr-precursor\"\n  bundles: \"crux-docs\"\n  risk_level: \"low\"\n  requires_access: \"write-tree\"\n  triggers: \"draft a brief | scaffold a brief | new brief | BRIEF for \u003Ctopic> | I want to explore X before deciding\"\n  routing_note: \"Scaffolds the file + frontmatter; body is human-authored.\"\n---\n\n# Propose Brief\n\n\u003C!-- BEGIN GENERATED: runtime-compat -->\n## Runtime compatibility\n\nThis skill is portable across Claude Code, Codex, OpenCode, and OMP (Oh My Pi). This section overrides platform-specific labels below.\n\n- Before running a command that uses `CRUX_PLUGIN_ROOT`, set it to the installed plugin root. In Claude Code, use the value of `CLAUDE_PLUGIN_ROOT`. In Codex, OpenCode, and OMP, derive it from the absolute path of this selected `SKILL.md`: the plugin root is the parent of its `skills\u002F` directory (in OMP `bash`, `skill:\u002F\u002F\u003Cname>` resolves to the skill directory). In a source checkout, use the checkout `crux\u002F` directory.\n- For project-local skills, use `.claude\u002Fskills` in Claude Code, `.agents\u002Fskills` in Codex, `.opencode\u002Fskills` in OpenCode (which also reads the singular `.opencode\u002Fskill`), and `.omp\u002Fskills` in OMP. Set `CRUX_LOCAL_SKILLS_DIR` to that path before following any command below that uses it.\n- Translate Claude Code tool labels such as `Agent`, `Read`, `Write`, `Bash`, `WebSearch`, and `WebFetch` to the matching capability in the current session. Codex names its own capabilities; OpenCode uses the lowercase forms `subagent`, `read`, `edit`, `shell`, `websearch`, and `webfetch`, where `edit` covers both `Edit` and `Write`; OMP uses `task`, `read`, `edit`, `write`, `bash`, `grep`, `glob`, `find`, `todo`, and `web_search` (where `read` also handles URLs and `skill:\u002F\u002F` URIs). Do not attempt to invoke the Claude Code labels as literal commands on another host.\n- Install the generated role agents before delegating: `install-codex-agents` in Codex, `install-opencode-agents` in OpenCode, `install-omp-agents` in OMP. Codex names them `crux_architect`, `crux_brainstormer`, `crux_commander`, `crux_dev_lead`, `crux_developer`, `crux_historian`, `crux_librarian`, `crux_night_gardener`, `crux_reviewer`, and `crux_wayfinder`; OpenCode and OMP use the bare role names `architect`, `brainstormer`, `commander`, `dev-lead`, `developer`, `historian`, `librarian`, `night-gardener`, `reviewer`, and `wayfinder` (in OMP, `scout` may also be used for reconnaissance alongside `wayfinder`). If a required role or capability is unavailable, report that truthfully instead of claiming it ran.\n- Argument placeholders such as `$adr` and `$book` bind only in Claude Code. On a host without argument binding they are unset — take the value from the user's phrase. The \"Fields OpenCode ignores\" section of `OPENCODE_GUIDE.md` names the invocation-control fields OpenCode ignores.\n\u003C!-- END GENERATED: runtime-compat -->\n\n\n## Overview\n\nThe scaffolding operation for a **brief** — the short, pre-decision exploration document that an ADR later compresses into a chosen path. Briefs are the one concern whose **body is human-authored** (per `docs\u002FAGENTS.md` §2 ownership) — with the single §2(b) exception of a whiteboarding-authored session carried in via `--from-inbox`: this skill creates the file, populates the frontmatter, wires the indexes, and logs the operation — then stops, leaving the body for the user to write (or, on the `--from-inbox` path, populating the body from the session).\n\nPairs with `propose-adr` (an ADR cites a brief via `related_briefs:`; `audit-docs` back-populates the brief's `related_adrs:`).\n\nCore principle: **scaffold, don't author** — with one sanctioned exception. A brief's value is the human's framing of the problem; a pre-filled body is wrong-but-shipped content, so by default this skill leaves the body a stub. The **sole exception** (per `docs\u002FAGENTS.md` §2(b)) is a **whiteboarding-authored session brief** carried in via `--from-inbox`: that content was already machine-authored through the `whiteboarding` dialogue, so it becomes the body. In every other case: provide the structure; let the user write.\n\n## When to use\n\n- User says: \"draft a brief\", \"scaffold a brief\", \"new brief\", \"BRIEF for \u003Ctopic>\", \"I want to explore X before deciding\", \"write up the exploration for X\".\n- After a discussion surfaces a question that needs exploration *before* an ADR can be proposed.\n- When `propose-adr` reveals \"this needs more exploration first\" — the natural hand-off.\n\nDo **not** use this skill for:\n- Writing the brief's body — that's the user's job, **unless** `--from-inbox` supplies a whiteboarding session (the §2(b) machine-authored exception, which carries the session content into the body). Absent that flag, refuse to pre-fill the exploration content.\n- Transitioning a brief's status (`draft` → `published`, `draft` → `abandoned`) — that's the `transition-brief` skill (the lifecycle closer, the symmetric counterpart to `transition-adr`). Do NOT hand-edit the `status:` frontmatter to publish or abandon — the schema forbids hand-editing frontmatter outside a transition skill. **Abandon path:** when an exploration is dropped without becoming a decision, run `transition-brief` to move it `draft` → `abandoned` (it validates the transition, updates `updated_at` + the `docs\u002Findex.md` rollup, and records a `brief` op through the log writer); the brief body stays as-is for the historical record.\n- Recording a decision — that's `propose-adr` (cite the brief with `--related-briefs BRIEF-\u003Cslug>`).\n- Promoting a brief to an ADR — that's `propose-adr`, not this skill.\n\n## Inputs\n\n- `--title \"\u003Cexploration title>\"` — required. Free-form (briefs are exploratory, not declarative like ADRs). If omitted, prompt the user; confirm before allocation.\n- `--tags \u003Ccomma-list>` — optional.\n- `--authors \u003Ccomma-list>` — optional. Defaults to the actual user's handle, resolved at runtime (e.g. from `git config user.name` or the session user) — never a hardcoded name.\n- `--related-adrs \u003Ccomma-list>` — optional. ADR ids that already reference this brief (usually empty at creation; `audit-docs` back-populates as ADRs cite it).\n- `--related-research \u003Ccomma-list>` — optional. Research-source slugs (under `docs\u002Fresearch\u002Fsources\u002F`) to pre-link. Populates a `related_research:` frontmatter field IF the template carries one. **If `--related-research` is passed but `BRIEF-template.md` has no `related_research:` field, do NOT silently drop it — emit a WARN** (\"`--related-research` was provided but `BRIEF-template.md` has no `related_research:` field; the values were not recorded. Add the field to the template, or capture these sources in the brief body \u002F the consuming ADR's `related_research:`.\") and proceed with the rest of the scaffold. Default empty.\n- `--from-inbox \u003Csession-path>` — optional. Path to a **whiteboarding session** dropped in `docs\u002Finbox\u002F` (usually supplied by `process-inbox` when it dispatches a whiteboarding-authored item). This is the **one sanctioned exception** to scaffold-only (per `docs\u002FAGENTS.md` §2(b)): the session was machine-authored by the `whiteboarding` skill \u002F `brainstormer` agent, so its content becomes the brief **body** (a \"machine-authored session brief\") rather than being left as the stub. Used ONLY for whiteboarding sessions; never to pre-fill a human-authored brief. Default: absent (scaffold-only).\n\n## The pipeline\n\nExecute in order.\n\n### 1. Compute the slug and path\n\n- `${SLUG}` = kebab-case of `${title}`, ASCII only, truncated to ~50 chars (per `docs\u002FAGENTS.md` §9 slug rule). Trim trailing hyphens.\n- `${FILE}` = `docs\u002Fbriefs\u002FBRIEF-${SLUG}.md`.\n- **Collision check:** if `${FILE}` already exists, **STOP** — do not overwrite. Tell the user to pick a different title or edit the existing brief. (Briefs have no monotonic counter; the slug IS the key.)\n\n### 2. Instantiate from the template\n\n- Read `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FBRIEF-template.md`. The canonical frontmatter shape lives there; substitute, do not re-author the field list.\n- Substitute frontmatter values:\n  - `title: \"${title}\"`\n  - `slug: ${SLUG}`\n  - `type: brief`\n  - `status: draft`\n  - `created_at: ${TODAY}`\n  - `updated_at: ${TODAY}`\n  - `authors: ${authors_list}` (default the configured handle)\n  - `tags: ${tags_list}` (or `[]`)\n  - `related_adrs: ${related_adrs_list}` (or `[]`)\n  - `related_research: ${related_research_list}` — ONLY if `--related-research` was passed AND `BRIEF-template.md` carries a `related_research:` field; do NOT invent the field. **If `--related-research` was passed but the template lacks the field, emit the WARN described in Inputs (do not silently drop the values) and omit the field** — the values are surfaced to the user rather than lost.\n- **Leave the body as the template stub** (the explainer blockquote + `\u003Cbody>` placeholder). Do NOT write exploration content — the human authors it. **Exception — `--from-inbox \u003Csession-path>` (whiteboarding only, per §2(b)):** replace the `\u003Cbody>` placeholder with the whiteboarding session's content (strip any leading `crux:` directive line and the session's own top-level title so the brief's `# \u003CTitle>` heading isn't duplicated; preserve the exploration prose\u002Foptions\u002Fdecision verbatim). The frontmatter is still written by this skill; only the body comes from the session. This is the machine-authored path, NOT a licence to author a human brief's body.\n\n### 3. Write the file\n\n- Write `${FILE}`. If the write fails, **STOP** — no index or operations log changes.\n\n### 4. Update `docs\u002Findex.md` brief rollup\n\n- Under the `## Briefs (N)` section, add a row: `- [[briefs\u002FBRIEF-${SLUG}]] — \\`draft\\` — \\`updated_at: ${TODAY}\\``.\n- Bump the `(N)` count to the actual number of `docs\u002Fbriefs\u002FBRIEF-*.md` files.\n- If no `## Briefs` section exists yet (first brief), create it in the correct concern order (after ADRs, before Journal — see `docs\u002FAGENTS.md` §5).\n- Update the `_Last updated:_` line to `${TODAY}`.\n\n### 5. Record the `brief` operation\n\nWrite the entry through the log writer (`docs\u002FAGENTS.md` §6),[^log-writer] using the `brief` op from the §6 canonical enum. Write the body below to a file outside the tree, then run:\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" append --repo-root \u003Crepo-root> \\\n  --op brief --subject 'scaffolded BRIEF-${SLUG}' --date ${TODAY} --body-file \u003Cpath>\n```\n\nThe entry it writes at the top of the current month's detail file `docs\u002Flog\u002FYYYY-MM.md`:\n\n```\n## [${TODAY}] brief | scaffolded BRIEF-${SLUG}\n```\n\nBody, 1–2 lines: the title, the file path, `status: draft`. Note the body is human-authored next — or, on the `--from-inbox` path, that the body was populated from the whiteboarding session (§2(b)).\n\nA refused append keeps this skill's other writes and adds no entry: fix the cause it names, then rerun the append alone (§6). Then run the commit step of §6 over the result's `commit_paths` and `restore_paths`.\n\n### 6. Hand off to the user\n\n- Tell the user: brief scaffolded at `${FILE}`, status `draft`.\n- **Default path (no `--from-inbox`) — explicitly instruct: the body is yours to write** — replace the template stub with the exploration (problem framing, options, context).\n- **`--from-inbox` path — report that the body was populated from the whiteboarding session** (§2(b) machine-authored exception); invite the user to refine it, not to write it from scratch.\n- When a decision crystallizes, run `propose-adr` and cite this brief with `--related-briefs BRIEF-${SLUG}`.\n\n## Verification checklist\n\n- [ ] `docs\u002Fbriefs\u002FBRIEF-${SLUG}.md` exists.\n- [ ] Frontmatter parses as YAML and matches the template's keyset (`title`, `slug`, `type: brief`, `status: draft`, `created_at`, `updated_at`, `authors`, `related_adrs`, `tags`).\n- [ ] `created_at` and `updated_at` both equal `${TODAY}`.\n- [ ] The body is the template stub — NOT pre-filled exploration content (UNLESS `--from-inbox` carried a whiteboarding session, in which case the body is the session content per §2(b) and the leading directive\u002Fduplicate title were stripped).\n- [ ] `docs\u002Findex.md` `## Briefs (N)` count matches the actual `docs\u002Fbriefs\u002FBRIEF-*.md` file count, and a row for this brief is present.\n- [ ] `docs\u002Findex.md` `_Last updated:_` is `${TODAY}`.\n- [ ] The current month's detail file `docs\u002Flog\u002FYYYY-MM.md` has a new `## [${TODAY}] brief |` entry at the top, written by `operation-log.py append`.\n- [ ] No ADR was created or modified (that's `propose-adr`).\n\n## Red flags — STOP and reconsider\n\n- About to write exploration content into the brief body **without `--from-inbox`**. NEVER — a human-authored brief's body is the user's; provide the stub only. (WITH `--from-inbox`, carrying a whiteboarding session's content into the body is the sanctioned §2(b) exception — that is the ONE case where the body is machine-authored.)\n- About to overwrite an existing `BRIEF-${SLUG}.md`. Briefs are not regenerated; refuse and surface the collision.\n- About to transition a brief's `status` (e.g. to `published` or `abandoned`). Out of scope for this skill — use `transition-brief`. Do NOT hand-edit the `status:` frontmatter.\n- About to use the `journal` op (or any op other than `brief`) for the log entry. The `brief` op is the canonical op for brief scaffolding (per `docs\u002FAGENTS.md` §6).\n- About to skip the `docs\u002Findex.md` brief-rollup update. Downstream `audit-docs` count checks depend on it; update on every write.\n- About to populate `related_adrs:` with an ADR that doesn't exist yet. Leave it `[]` unless a real ADR already cites the brief — `audit-docs` back-populates.\n\n## Rationalization table\n\n| Excuse | Reality |\n|--------|---------|\n| \"The user clearly knows what they want to explore — I'll draft the brief body to save them time.\" | The brief body is the user's framing; pre-filling it produces wrong-but-shipped content. Scaffold and hand off. (The sole machine-authored exception is a whiteboarding session carried in via `--from-inbox`, §2(b) — not a licence to draft a human brief.) |\n| \"There's already a `BRIEF-\u003Cslug>.md` — I'll just append to it.\" | Collision = refuse. The user either wants a different title or to edit the existing brief directly; don't silently merge. |\n| \"Briefs are informal — I'll skip the frontmatter and just write a heading.\" | The frontmatter (`status`, `related_adrs`) is what `audit-docs` uses for the brief↔ADR bidirectional check. Populate it from the template. |\n| \"I'll log this under `journal` since there's narrative.\" | Brief scaffolding is a `brief` op, not a `journal` op. Briefs aren't journal entries — they're pre-decision documents. |\n| \"The user said 'brief on X and propose the ADR' — I'll do both.\" | Two skills. Scaffold the brief here; the user (or a follow-up `propose-adr`) writes the decision once the brief's exploration is done. |\n| \"No `## Briefs` section in `docs\u002Findex.md` yet — I'll skip the rollup.\" | Create the section in the correct concern order. A missing rollup is drift `audit-docs` will flag. |\n\n## Common mistakes\n\n- **Pre-filling the body** because the topic seems clear. The body is the human's — the sole exception is a whiteboarding session carried in via `--from-inbox` (§2(b)).\n- **Using `created` instead of `created_at`** — match the template's exact key names.\n- **Forgetting to bump the `## Briefs (N)` count** by counting actual files, not incrementing the prior number blindly.\n- **Writing `authors: []`** — default to the configured handle; a brief has at least one author.\n- **Slug ending in a hyphen** after truncation — trim it.\n- **Putting the new brief's own slug in `related_adrs:`** — that field is for ADR ids, populated as ADRs cite the brief.\n\n## See also\n\n- `propose-adr` — the decision artifact that consumes a brief (`--related-briefs BRIEF-\u003Cslug>`).\n- `audit-docs` — enforces the brief↔ADR bidirectional consistency (`related_briefs:` ↔ `related_adrs:`).\n- `docs\u002FAGENTS.md` §2 (ownership — briefs are human-authored), §4 (briefs concern), §9 (slug rule), §10 (skill-invocation table).\n- Template: `crux\u002Ftemplates\u002FBRIEF-template.md`.\n\n[^log-writer]: rule:log-entries-go-through-the-log-writer, rule:no-writer-writes-the-legacy-log-file\n","# Propose Brief\n\n\u003C!-- BEGIN GENERATED: runtime-compat -->\n## Runtime compatibility\n\nThis skill is portable across Claude Code, Codex, OpenCode, and OMP (Oh My Pi). This section overrides platform-specific labels below.\n\n- Before running a command that uses `CRUX_PLUGIN_ROOT`, set it to the installed plugin root. In Claude Code, use the value of `CLAUDE_PLUGIN_ROOT`. In Codex, OpenCode, and OMP, derive it from the absolute path of this selected `SKILL.md`: the plugin root is the parent of its `skills\u002F` directory (in OMP `bash`, `skill:\u002F\u002F\u003Cname>` resolves to the skill directory). In a source checkout, use the checkout `crux\u002F` directory.\n- For project-local skills, use `.claude\u002Fskills` in Claude Code, `.agents\u002Fskills` in Codex, `.opencode\u002Fskills` in OpenCode (which also reads the singular `.opencode\u002Fskill`), and `.omp\u002Fskills` in OMP. Set `CRUX_LOCAL_SKILLS_DIR` to that path before following any command below that uses it.\n- Translate Claude Code tool labels such as `Agent`, `Read`, `Write`, `Bash`, `WebSearch`, and `WebFetch` to the matching capability in the current session. Codex names its own capabilities; OpenCode uses the lowercase forms `subagent`, `read`, `edit`, `shell`, `websearch`, and `webfetch`, where `edit` covers both `Edit` and `Write`; OMP uses `task`, `read`, `edit`, `write`, `bash`, `grep`, `glob`, `find`, `todo`, and `web_search` (where `read` also handles URLs and `skill:\u002F\u002F` URIs). Do not attempt to invoke the Claude Code labels as literal commands on another host.\n- Install the generated role agents before delegating: `install-codex-agents` in Codex, `install-opencode-agents` in OpenCode, `install-omp-agents` in OMP. Codex names them `crux_architect`, `crux_brainstormer`, `crux_commander`, `crux_dev_lead`, `crux_developer`, `crux_historian`, `crux_librarian`, `crux_night_gardener`, `crux_reviewer`, and `crux_wayfinder`; OpenCode and OMP use the bare role names `architect`, `brainstormer`, `commander`, `dev-lead`, `developer`, `historian`, `librarian`, `night-gardener`, `reviewer`, and `wayfinder` (in OMP, `scout` may also be used for reconnaissance alongside `wayfinder`). If a required role or capability is unavailable, report that truthfully instead of claiming it ran.\n- Argument placeholders such as `$adr` and `$book` bind only in Claude Code. On a host without argument binding they are unset — take the value from the user's phrase. The \"Fields OpenCode ignores\" section of `OPENCODE_GUIDE.md` names the invocation-control fields OpenCode ignores.\n\u003C!-- END GENERATED: runtime-compat -->\n\n\n## Overview\n\nThe scaffolding operation for a **brief** — the short, pre-decision exploration document that an ADR later compresses into a chosen path. Briefs are the one concern whose **body is human-authored** (per `docs\u002FAGENTS.md` §2 ownership) — with the single §2(b) exception of a whiteboarding-authored session carried in via `--from-inbox`: this skill creates the file, populates the frontmatter, wires the indexes, and logs the operation — then stops, leaving the body for the user to write (or, on the `--from-inbox` path, populating the body from the session).\n\nPairs with `propose-adr` (an ADR cites a brief via `related_briefs:`; `audit-docs` back-populates the brief's `related_adrs:`).\n\nCore principle: **scaffold, don't author** — with one sanctioned exception. A brief's value is the human's framing of the problem; a pre-filled body is wrong-but-shipped content, so by default this skill leaves the body a stub. The **sole exception** (per `docs\u002FAGENTS.md` §2(b)) is a **whiteboarding-authored session brief** carried in via `--from-inbox`: that content was already machine-authored through the `whiteboarding` dialogue, so it becomes the body. In every other case: provide the structure; let the user write.\n\n## When to use\n\n- User says: \"draft a brief\", \"scaffold a brief\", \"new brief\", \"BRIEF for \u003Ctopic>\", \"I want to explore X before deciding\", \"write up the exploration for X\".\n- After a discussion surfaces a question that needs exploration *before* an ADR can be proposed.\n- When `propose-adr` reveals \"this needs more exploration first\" — the natural hand-off.\n\nDo **not** use this skill for:\n- Writing the brief's body — that's the user's job, **unless** `--from-inbox` supplies a whiteboarding session (the §2(b) machine-authored exception, which carries the session content into the body). Absent that flag, refuse to pre-fill the exploration content.\n- Transitioning a brief's status (`draft` → `published`, `draft` → `abandoned`) — that's the `transition-brief` skill (the lifecycle closer, the symmetric counterpart to `transition-adr`). Do NOT hand-edit the `status:` frontmatter to publish or abandon — the schema forbids hand-editing frontmatter outside a transition skill. **Abandon path:** when an exploration is dropped without becoming a decision, run `transition-brief` to move it `draft` → `abandoned` (it validates the transition, updates `updated_at` + the `docs\u002Findex.md` rollup, and records a `brief` op through the log writer); the brief body stays as-is for the historical record.\n- Recording a decision — that's `propose-adr` (cite the brief with `--related-briefs BRIEF-\u003Cslug>`).\n- Promoting a brief to an ADR — that's `propose-adr`, not this skill.\n\n## Inputs\n\n- `--title \"\u003Cexploration title>\"` — required. Free-form (briefs are exploratory, not declarative like ADRs). If omitted, prompt the user; confirm before allocation.\n- `--tags \u003Ccomma-list>` — optional.\n- `--authors \u003Ccomma-list>` — optional. Defaults to the actual user's handle, resolved at runtime (e.g. from `git config user.name` or the session user) — never a hardcoded name.\n- `--related-adrs \u003Ccomma-list>` — optional. ADR ids that already reference this brief (usually empty at creation; `audit-docs` back-populates as ADRs cite it).\n- `--related-research \u003Ccomma-list>` — optional. Research-source slugs (under `docs\u002Fresearch\u002Fsources\u002F`) to pre-link. Populates a `related_research:` frontmatter field IF the template carries one. **If `--related-research` is passed but `BRIEF-template.md` has no `related_research:` field, do NOT silently drop it — emit a WARN** (\"`--related-research` was provided but `BRIEF-template.md` has no `related_research:` field; the values were not recorded. Add the field to the template, or capture these sources in the brief body \u002F the consuming ADR's `related_research:`.\") and proceed with the rest of the scaffold. Default empty.\n- `--from-inbox \u003Csession-path>` — optional. Path to a **whiteboarding session** dropped in `docs\u002Finbox\u002F` (usually supplied by `process-inbox` when it dispatches a whiteboarding-authored item). This is the **one sanctioned exception** to scaffold-only (per `docs\u002FAGENTS.md` §2(b)): the session was machine-authored by the `whiteboarding` skill \u002F `brainstormer` agent, so its content becomes the brief **body** (a \"machine-authored session brief\") rather than being left as the stub. Used ONLY for whiteboarding sessions; never to pre-fill a human-authored brief. Default: absent (scaffold-only).\n\n## The pipeline\n\nExecute in order.\n\n### 1. Compute the slug and path\n\n- `${SLUG}` = kebab-case of `${title}`, ASCII only, truncated to ~50 chars (per `docs\u002FAGENTS.md` §9 slug rule). Trim trailing hyphens.\n- `${FILE}` = `docs\u002Fbriefs\u002FBRIEF-${SLUG}.md`.\n- **Collision check:** if `${FILE}` already exists, **STOP** — do not overwrite. Tell the user to pick a different title or edit the existing brief. (Briefs have no monotonic counter; the slug IS the key.)\n\n### 2. Instantiate from the template\n\n- Read `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FBRIEF-template.md`. The canonical frontmatter shape lives there; substitute, do not re-author the field list.\n- Substitute frontmatter values:\n  - `title: \"${title}\"`\n  - `slug: ${SLUG}`\n  - `type: brief`\n  - `status: draft`\n  - `created_at: ${TODAY}`\n  - `updated_at: ${TODAY}`\n  - `authors: ${authors_list}` (default the configured handle)\n  - `tags: ${tags_list}` (or `[]`)\n  - `related_adrs: ${related_adrs_list}` (or `[]`)\n  - `related_research: ${related_research_list}` — ONLY if `--related-research` was passed AND `BRIEF-template.md` carries a `related_research:` field; do NOT invent the field. **If `--related-research` was passed but the template lacks the field, emit the WARN described in Inputs (do not silently drop the values) and omit the field** — the values are surfaced to the user rather than lost.\n- **Leave the body as the template stub** (the explainer blockquote + `\u003Cbody>` placeholder). Do NOT write exploration content — the human authors it. **Exception — `--from-inbox \u003Csession-path>` (whiteboarding only, per §2(b)):** replace the `\u003Cbody>` placeholder with the whiteboarding session's content (strip any leading `crux:` directive line and the session's own top-level title so the brief's `# \u003CTitle>` heading isn't duplicated; preserve the exploration prose\u002Foptions\u002Fdecision verbatim). The frontmatter is still written by this skill; only the body comes from the session. This is the machine-authored path, NOT a licence to author a human brief's body.\n\n### 3. Write the file\n\n- Write `${FILE}`. If the write fails, **STOP** — no index or operations log changes.\n\n### 4. Update `docs\u002Findex.md` brief rollup\n\n- Under the `## Briefs (N)` section, add a row: `- [[briefs\u002FBRIEF-${SLUG}]] — \\`draft\\` — \\`updated_at: ${TODAY}\\``.\n- Bump the `(N)` count to the actual number of `docs\u002Fbriefs\u002FBRIEF-*.md` files.\n- If no `## Briefs` section exists yet (first brief), create it in the correct concern order (after ADRs, before Journal — see `docs\u002FAGENTS.md` §5).\n- Update the `_Last updated:_` line to `${TODAY}`.\n\n### 5. Record the `brief` operation\n\nWrite the entry through the log writer (`docs\u002FAGENTS.md` §6),[^log-writer] using the `brief` op from the §6 canonical enum. Write the body below to a file outside the tree, then run:\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" append --repo-root \u003Crepo-root> \\\n  --op brief --subject 'scaffolded BRIEF-${SLUG}' --date ${TODAY} --body-file \u003Cpath>\n```\n\nThe entry it writes at the top of the current month's detail file `docs\u002Flog\u002FYYYY-MM.md`:\n\n```\n## [${TODAY}] brief | scaffolded BRIEF-${SLUG}\n```\n\nBody, 1–2 lines: the title, the file path, `status: draft`. Note the body is human-authored next — or, on the `--from-inbox` path, that the body was populated from the whiteboarding session (§2(b)).\n\nA refused append keeps this skill's other writes and adds no entry: fix the cause it names, then rerun the append alone (§6). Then run the commit step of §6 over the result's `commit_paths` and `restore_paths`.\n\n### 6. Hand off to the user\n\n- Tell the user: brief scaffolded at `${FILE}`, status `draft`.\n- **Default path (no `--from-inbox`) — explicitly instruct: the body is yours to write** — replace the template stub with the exploration (problem framing, options, context).\n- **`--from-inbox` path — report that the body was populated from the whiteboarding session** (§2(b) machine-authored exception); invite the user to refine it, not to write it from scratch.\n- When a decision crystallizes, run `propose-adr` and cite this brief with `--related-briefs BRIEF-${SLUG}`.\n\n## Verification checklist\n\n- [ ] `docs\u002Fbriefs\u002FBRIEF-${SLUG}.md` exists.\n- [ ] Frontmatter parses as YAML and matches the template's keyset (`title`, `slug`, `type: brief`, `status: draft`, `created_at`, `updated_at`, `authors`, `related_adrs`, `tags`).\n- [ ] `created_at` and `updated_at` both equal `${TODAY}`.\n- [ ] The body is the template stub — NOT pre-filled exploration content (UNLESS `--from-inbox` carried a whiteboarding session, in which case the body is the session content per §2(b) and the leading directive\u002Fduplicate title were stripped).\n- [ ] `docs\u002Findex.md` `## Briefs (N)` count matches the actual `docs\u002Fbriefs\u002FBRIEF-*.md` file count, and a row for this brief is present.\n- [ ] `docs\u002Findex.md` `_Last updated:_` is `${TODAY}`.\n- [ ] The current month's detail file `docs\u002Flog\u002FYYYY-MM.md` has a new `## [${TODAY}] brief |` entry at the top, written by `operation-log.py append`.\n- [ ] No ADR was created or modified (that's `propose-adr`).\n\n## Red flags — STOP and reconsider\n\n- About to write exploration content into the brief body **without `--from-inbox`**. NEVER — a human-authored brief's body is the user's; provide the stub only. (WITH `--from-inbox`, carrying a whiteboarding session's content into the body is the sanctioned §2(b) exception — that is the ONE case where the body is machine-authored.)\n- About to overwrite an existing `BRIEF-${SLUG}.md`. Briefs are not regenerated; refuse and surface the collision.\n- About to transition a brief's `status` (e.g. to `published` or `abandoned`). Out of scope for this skill — use `transition-brief`. Do NOT hand-edit the `status:` frontmatter.\n- About to use the `journal` op (or any op other than `brief`) for the log entry. The `brief` op is the canonical op for brief scaffolding (per `docs\u002FAGENTS.md` §6).\n- About to skip the `docs\u002Findex.md` brief-rollup update. Downstream `audit-docs` count checks depend on it; update on every write.\n- About to populate `related_adrs:` with an ADR that doesn't exist yet. Leave it `[]` unless a real ADR already cites the brief — `audit-docs` back-populates.\n\n## Rationalization table\n\n| Excuse | Reality |\n|--------|---------|\n| \"The user clearly knows what they want to explore — I'll draft the brief body to save them time.\" | The brief body is the user's framing; pre-filling it produces wrong-but-shipped content. Scaffold and hand off. (The sole machine-authored exception is a whiteboarding session carried in via `--from-inbox`, §2(b) — not a licence to draft a human brief.) |\n| \"There's already a `BRIEF-\u003Cslug>.md` — I'll just append to it.\" | Collision = refuse. The user either wants a different title or to edit the existing brief directly; don't silently merge. |\n| \"Briefs are informal — I'll skip the frontmatter and just write a heading.\" | The frontmatter (`status`, `related_adrs`) is what `audit-docs` uses for the brief↔ADR bidirectional check. Populate it from the template. |\n| \"I'll log this under `journal` since there's narrative.\" | Brief scaffolding is a `brief` op, not a `journal` op. Briefs aren't journal entries — they're pre-decision documents. |\n| \"The user said 'brief on X and propose the ADR' — I'll do both.\" | Two skills. Scaffold the brief here; the user (or a follow-up `propose-adr`) writes the decision once the brief's exploration is done. |\n| \"No `## Briefs` section in `docs\u002Findex.md` yet — I'll skip the rollup.\" | Create the section in the correct concern order. A missing rollup is drift `audit-docs` will flag. |\n\n## Common mistakes\n\n- **Pre-filling the body** because the topic seems clear. The body is the human's — the sole exception is a whiteboarding session carried in via `--from-inbox` (§2(b)).\n- **Using `created` instead of `created_at`** — match the template's exact key names.\n- **Forgetting to bump the `## Briefs (N)` count** by counting actual files, not incrementing the prior number blindly.\n- **Writing `authors: []`** — default to the configured handle; a brief has at least one author.\n- **Slug ending in a hyphen** after truncation — trim it.\n- **Putting the new brief's own slug in `related_adrs:`** — that field is for ADR ids, populated as ADRs cite the brief.\n\n## See also\n\n- `propose-adr` — the decision artifact that consumes a brief (`--related-briefs BRIEF-\u003Cslug>`).\n- `audit-docs` — enforces the brief↔ADR bidirectional consistency (`related_briefs:` ↔ `related_adrs:`).\n- `docs\u002FAGENTS.md` §2 (ownership — briefs are human-authored), §4 (briefs concern), §9 (slug rule), §10 (skill-invocation table).\n- Template: `crux\u002Ftemplates\u002FBRIEF-template.md`.\n\n[^log-writer]: rule:log-entries-go-through-the-log-writer, rule:no-writer-writes-the-legacy-log-file\n",{"name":5,"metadata":24,"description":7},{"tags":25,"bundles":26,"triggers":27,"risk_level":28,"routing_note":29,"requires_access":30},"briefs, scaffolding, exploration, adr-precursor","crux-docs","draft a brief | scaffold a brief | new brief | BRIEF for \u003Ctopic> | I want to explore X before deciding","low","Scaffolds the file + frontmatter; body is human-authored.","write-tree","main","dd4f16e7ac12ff940790660ec897677284ae4b6d","crux\u002Fskills\u002Fpropose-brief","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux","https:\u002F\u002Fbionic-coding.com\u002Fcrux\u002F","https:\u002F\u002Fgithub.com\u002Fbionic-coding","https:\u002F\u002Fbionic-coding.com","Durable intent, disposable code.","2026-11-12 09:36:33",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add bionic-coding\u002Fcrux --skill propose-brief",{"tool":46,"command":47},"bunx","bunx skills add bionic-coding\u002Fcrux --skill propose-brief",{"tool":49,"command":50},"pnpm","pnpm dlx skills add bionic-coding\u002Fcrux --skill propose-brief","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fpropose-brief\u002FSKILL.md",true,[],[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CA5PH4JT2V5WBTA5ZPJNS8","whiteboarding","Explore an idea through docs-informed dialogue before committing to a design. Capture the exploration for later filing as a brief.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fwhiteboarding\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CA5GZPSVNJJZYQMF0JT3EH","verify-code-docs","Check generated code documentation against source and report drift without regenerating it.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fverify-code-docs\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CA5A4HA73VF91N8VY6SDBN","transition-observation","Apply a human disposition to an observation's lifecycle state without changing its claim or body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-observation\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CA53X1ESGWKTPCEQ55JWEZ","transition-invariant","Ratify, reject, or retire an invariant on human direction. Update lifecycle metadata without changing the invariant's body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-invariant\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CA4Y2VC25NFZE0XJZ47VSX","transition-decision","Apply a human ratify, reject, or defer verdict to a recovered decision candidate; ratification creates a Proposed ADR or observation.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-decision\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7CA4QD9RFDC379VD9DNK90D","transition-brief","Publish or abandon a draft brief, updating lifecycle metadata and indexes without changing its body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-brief\u002FSKILL.md",[],[]]