一键导入
deft-directive-decompose
Convert approved specification/phase/epic scope xBRIEFs into swarm-ready story xBRIEFs before concurrent agent allocation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert approved specification/phase/epic scope xBRIEFs into swarm-ready story xBRIEFs before concurrent agent allocation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Cut a v0.X.Y release of the deft framework safely. Use when the user says "release", "cut release", "v0.X.Y", or "publish release" -- to walk an 8-phase workflow that pre-flights, runs an end-to-end rehearsal against a temp repo, lands a draft GitHub release (npm ships irrevocably at tag push), optionally QA's draft assets, then publishes the GitHub release or rolls back. Re-uses the deft-directive-swarm Phase 6 Step 5 Slack announcement template.
Build a project from scope xBRIEFs following Deft Directive framework standards. Use after deft-directive-setup has generated the project definition, or when the user has story xBRIEFs in xbrief/active/ ready to implement. Handles scaffolding, implementation, testing, and quality checks phase by phase.
Conversational refinement session. Ingests external work items into xBRIEF proposed/ scope, deduplicates via origin references, evaluates proposals with the user, reconciles stale origins, and promotes/demotes scopes through the lifecycle using deterministic task commands.
Triage-cache hygiene and "what's next?" work selection (ordered plan or ranked queue) -- the agent-facing playbook for syncing the triage cache, classifying candidates, presenting a ranked queue or binding to an active plan-sequence, walking per-item decisions (accept / reject / defer / needs-ac / mark-duplicate), and auditing the session. Use when the operator asks what to work on next, wants to build a cohort, work the cache, or run a triage hygiene pass.
Parallel local agent orchestration. Use when running multiple agents on story-level xBRIEFs simultaneously — to scan active/ for allocatable work, set up isolated worktrees, launch agents with proven prompts, monitor progress, handle stalled review cycles, and close out PRs cleanly.
Greptile / bot reviewer response and PR-shepherding workflow. Use when running a review cycle or babysitting a PR to merge-ready -- audit process prerequisites, fetch bot findings, fix all issues in a single batch commit, and exit cleanly when no P0 or P1 issues remain. Supersedes Cursor global babysit on Deft-managed repos (#2261).
| name | deft-directive-decompose |
| description | Convert approved specification/phase/epic scope xBRIEFs into swarm-ready story xBRIEFs before concurrent agent allocation. |
Use this skill when a specification, Phase 4 implementation scope, or epic xBRIEF is too broad for direct concurrent swarm work and must be decomposed into story-level xBRIEFs.
Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.
See also: strategies/speckit.md Phase 4.5 | vbrief/vbrief.md Swarm-Ready Story Contract | deft-directive-swarm
Convert approved specification/phase/epic scope xBRIEFs into swarm-ready child story xBRIEFs. Story xBRIEFs are the only valid input for concurrent swarm worker allocation.
xbrief/specification.xbrief.json and relevant scope xBRIEFs from xbrief/proposed/, xbrief/pending/, and xbrief/active/.plan.metadata.kind = "phase" or "epic" or scopes with broad plan.narratives.Acceptance and empty plan.items.plan.items as input signals only; they are not automatically child stories.xbrief/.triage-cache/decompositions/, using a parent-derived slug such as xbrief/.triage-cache/decompositions/ip001-auth.json.<parent-slug> from the parent xBRIEF filename by removing .xbrief.json and any leading YYYY-MM-DD- date prefix; for example, xbrief/pending/2026-05-12-ip001-auth.xbrief.json uses ip001-auth, while xbrief/pending/feature-xyz.xbrief.json uses feature-xyz.id, title, Description, ImplementationPlan, UserStory, executable items or acceptance, traces or explicit trace justification, swarm.file_scope, swarm.verify_commands, swarm.expected_outputs, swarm.depends_on, swarm.conflict_group, swarm.size, swarm.file_scope_confidence, and swarm.model_tier.Description MUST provide at least two concrete sentences explaining the user/product behavior, boundaries, and why this story is independently buildable.ImplementationPlan MUST provide at least two concrete implementation steps that identify the expected code path, state/data changes, and test/evidence approach.UserStory MUST use the exact product-story shape As a <role>, I want <capability>, so that <outcome>..swarm.acceptance_criteria_justification explains the exception.backend/**, frontend/**, docs/**, xbrief/**, or any other directory glob.task check.parallel_safe: false or file_scope_confidence: low; use readiness: sequential or readiness: needs_refinement instead.readiness: sequential or readiness: needs_refinement; it is not eligible for concurrent allocation.subItems in newly drafted story items; use items.task scope:decompose ... --check, then apply without --check.task scope:decompose ... --check before explicit approval only to validate a draft without writing files.task scope:decompose without --check before explicit approval.task scope:decompose -- xbrief/pending/2026-05-12-ip001-auth.xbrief.json --draft xbrief/.triage-cache/decompositions/ip001-auth.json --check
task scope:decompose -- xbrief/pending/2026-05-12-ip001-auth.xbrief.json --draft xbrief/.triage-cache/decompositions/ip001-auth.json
The command creates generated child story xBRIEFs as lifecycle artifacts, defaulting to xbrief/pending/. It preserves origin/provenance references, sets each child planRef to the parent, updates parent references to include the children, rejects dependency cycles, and rejects ready stories missing executable acceptance, user-story shape, concrete acceptance, narrow file scope, focused verify commands, or traces.
task swarm:readiness -- xbrief/pending/<child-story-1>.xbrief.json xbrief/pending/<child-story-2>.xbrief.json
task scope:promote, task scope:activate, and the swarm skill lifecycle bridge).deft-directive-decompose complete -- exiting skill. Next, activate the approved child story xBRIEFs through the existing lifecycle flow, then run skills/deft-directive-swarm/SKILL.md for concurrent allocation.