brainstorming
Refine feature and sprint intent into a useful specification. Capture scope, observable criteria and material choices without…
Develop greenfield intent or initialized brownfield target and delta in existing decomposition and knowledge records.
Claude Code
$ npx -y skills add arbiterForge/codeArbiter --skill ca-decompose --agent claude-code
Codex
$ npx skills add arbiterForge/codeArbiter --skill ca-decompose -a codex -y
Cursor
$ npx skills add arbiterForge/codeArbiter --skill ca-decompose -a cursor -y
Gemini CLI
$ npx skills add arbiterForge/codeArbiter --skill ca-decompose -a gemini-cli -y
GitHub Copilot
$ npx skills add arbiterForge/codeArbiter --skill ca-decompose -a github-copilot -y
OpenCode
$ npx skills add arbiterForge/codeArbiter --skill ca-decompose -a opencode -y
Windsurf
$ npx skills add arbiterForge/codeArbiter --skill ca-decompose -a windsurf -y
name: ca-decompose description: Develop greenfield intent or initialized brownfield target and delta in existing decomposition and knowledge records. argument-hint: (none)
<!-- catalog-compatibility-notice:start --> > Compatibility route. Prefer `$ca-init --greenfield` for new usage. This installed route remains > functional under the command-route compatibility policy at [includes/command-compatibility.md](../../includes/command-compatibility.md); > continue with the greenfield workflow below. <!-- catalog-compatibility-notice:end -->
Develop the project specification before implementation. Keep actual user decisions, planned architecture and observed repository facts distinct. Load [includes/knowledge.md](../../includes/knowledge.md) for the record vocabulary and the `knowledge.py` verbs used below.
When source already exists and the user selects project-model acquisition, preserve `<!--INITIALIZED-->`, the current context documents, existing decomposition records, question history, ADRs, and work identities. Read those owners index-first before asking or writing. Use the selected `context-check` refresh for source-backed changes to the code map and other observed knowledge; do not invoke the initial-population route, rerun `initialize`, or invent the original interview. A denied or incomplete source inspection leaves its claim unknown and does not erase independent existing records.
After reading the relevant decomposition records and checking their cited sources, run `knowledge.py stale decomposition`. If it reports no baseline, run `knowledge.py rebaseline decomposition` once after the check. Leave deferred or unresolved records in their existing states; a baseline records the checked source revision and does not answer them.
Add observed capabilities and architecture to the existing decomposition document with `basis: source-observed` and actual source references. Distinguish the current implementation from the intended target and delta: target capabilities, future phases, and possible work are `proposed` until the user decides. Link to the existing global open-question and ADR owners by identity; do not make a second writable answer or acceptance status. A source file does not establish historical rationale, deployment, passing tests, or an accepted decision. Ask only consequential choices still unresolved after the saved answers and current user direction are considered.
Save discovered gaps as decomposition `work_item` candidates. Do not call `knowledge.py promote` or create an external issue merely because a gap was recorded. If multiple candidates cite the same external item, keep them as separate proposals until their scope and identity are resolved; a shared title or citation does not select one or authorize publishing both. When the user selects promotion, check the candidate's stable origin against the selected work owner, including archived work, and retain the actual returned `work_id`; a retry repairs the same link. Reinspect only affected records on later source changes through `context-check`. Continue with independent useful work when a separate choice remains open. Report the selected records and remaining unknowns, then return to the requested work; the greenfield interview and initialization steps below do not run on this path.
For an initialized project that keeps Markdown format, use the initialized acquisition section in [routines/decompose/references/markdown-format.md](../../routines/decompose/references/markdown-format.md). Do not silently convert. The numbered procedure below remains the greenfield route for projects that have not been initialized.
Read `.codearbiter/CONTEXT.md` frontmatter. An initialized project returns to normal operation; context changes use `$ca-context-check`. Meaningful implementation source routes to `$ca-create-context`. If the scaffold is absent, run `$ca-init` first. If `knowledge.py format` reports `markdown`, this is an older scaffold: offer `knowledge.py convert`; read every returned Markdown section, record its meaning, map each section ID to its saved record or note references (`[]` only for `content=false`), then run `knowledge.py convert --finish <token> --coverage @checklist.json` (the transaction retains the original bytes). If the user keeps the Markdown format, load [routines/decompose/references/markdown-format.md](../../routines/decompose/references/markdown-format.md) and follow that unchanged procedure instead of this one; never convert silently.
Run `knowledge.py create-missing`, then `knowledge.py read decomposition`. Existing `question` records with `status: answered` are settled: do not ask them again or require another approval of unchanged answers. Resume with the open question that matters most for what the user wants to do next, not a fixed first-unfinished step. An explicit restart retires earlier records with a reason; it never deletes them.
Explain briefly that you will establish scope, architecture and a build sequence. Ask focused questions only where existing answers do not establish the needed facts or choices. Cover these areas, in whatever order the conversation makes natural; record an inapplicable area with its reason:
| Area | Outcomes to capture | |---|---| | Vision | Problem, primary users, demonstrable success and exclusions. | | Flows | User journey, non-human actors, failure experience and privilege boundaries. | | Functional scope | Capabilities with initiators, inputs and outputs; MVP/v1/later; hardest user-facing risk. | | Technical shape | Components and ownership, entities, state/write paths, stack and hard constraints, technical risks, copyright holder, release intent. | | Integrations | External dependencies, contracts and authentication, ownership, reliability, cost and fallback. | | Risks | Material risks with mitigations, open questions, bounded spikes and
Open-source governance and hard gates for AI coding agents across Claude Code, Codex CLI, and Pi.
Refine feature and sprint intent into a useful specification. Capture scope, observable criteria and material choices without…
Create a verified local Git commit when committing changes is requested. Not for explaining commit history, drafting a message…
Inspect context drift and refresh selected source-backed documents under existing authorization.
Build source-backed project context through bounded inspection, optional agents, and record-level knowledge writes.
The banned-primitive gate. Routed to when changed code hashes, signs, encrypts, derives keys, generates security-relevant…
Investigate an unexplained defect or unexpected behavior without changing application code. Use for root-cause diagnosis and an…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.