一键导入
planning
Decompose approved specs into ordered task frontiers with dependency DAGs, token estimates, and repo tags
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Decompose approved specs into ordered task frontiers with dependency DAGs, token estimates, and repo tags
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Hackathon-native multiplayer collaboration mode -- brain-dump together, claim tasks across machines, flag decisions async. Drives the subcommands of /forge:collaborate.
Autonomous task implementation workflow — implement, test, review, commit for each task in the frontier
Interactive spec generation — turn ideas into concrete specs with R-numbered requirements and testable acceptance criteria
Graph-aware planning and research using codebase knowledge graphs — enables architecture-aware task decomposition, dependency discovery, and context reduction
DESIGN.md integration for Forge — ensures visual consistency across all UI tasks through standardized design specifications
Behavioral guardrails for Forge agents based on Andrej Karpathy's principles — prevents over-engineering, silent assumptions, scope creep, and unfocused execution
| name | planning |
| description | Decompose approved specs into ordered task frontiers with dependency DAGs, token estimates, and repo tags |
This skill guides the decomposition of approved specifications into executable task frontiers. Each frontier is a dependency-ordered list of tasks grouped into parallelizable tiers.
You will receive:
.forge/specs/quick, standard, or thorough.forge/config.json (may include multiple repos with ordering).forge/capabilities.json (optional, informs task design)graphify-out/graph.json (optional, enables architecture-aware decomposition)For each spec file in .forge/specs/ (or the filtered subset):
status: approved — skip any spec that is not approvedlinked_repos field — this determines which repos tasks will targetcomplexity field — this informs task sizingReference references/token-profiles.md for depth-specific settings:
| Parameter | Quick | Standard | Thorough |
|---|---|---|---|
| Tasks per spec | 3-5 | 6-12 | 12-20 |
| Tokens per task | ~3k | ~6k | ~12k |
| Review steps | None | After critical tasks | After every task |
| TDD enforcement | No | If skill available | Always |
| Phase verification | Skip | Quick check | Full goal-backward |
Knowledge Graph: If graphify-out/graph.json exists, load it and extract:
See skills/graphify-integration/SKILL.md for details.
Design System: If the spec has a design: field or DESIGN.md exists in the project root, load it. UI tasks will be tagged with design: DESIGN.md in the frontier, and a design verification task will be added for depth >= standard.
See skills/design-system/SKILL.md for details.
For each approved spec, dispatch a forge-planner agent (via the Agent tool) with:
The agent returns a frontier file in the template format. See templates/plan.md.
After receiving each frontier from the planner agent:
depends: references point to real task IDs. No circular dependencies.cross_repo_rules.api_first is true, API tasks in the same tier must be listed before frontend tasks.For each spec, write the frontier to .forge/plans/{spec-domain}-frontier.md.
The frontier file format (matching templates/plan.md):
---
spec: {domain}
total_tasks: {N}
estimated_tokens: {total}
depth: {quick|standard|thorough}
---
# {Domain} Frontier
## Tier 1 (parallel -- no dependencies)
- [T001] Task name | est: ~Nk tokens | repo: REPO
- [T002] Task name | est: ~Nk tokens | repo: REPO
## Tier 2 (depends on Tier 1)
- [T003] Task name | est: ~Nk tokens | repo: REPO | depends: T001, T002
## Tier 3 (depends on Tier 2)
- [T004] Task name | est: ~Nk tokens | repo: REPO | depends: T003
Write initial estimates to .forge/token-ledger.json:
{
"total": 0,
"iterations": 0,
"per_spec": {
"auth": { "estimated": 45000, "actual": 0 },
"ui": { "estimated": 32000, "actual": 0 }
},
"estimated_total": 77000,
"last_transcript_tokens": 0
}
The estimated_total is the sum of all frontier estimated tokens. The total (actual usage) starts at 0 and is updated during execution by the stop hook.
Write .forge/state.md with the first spec queued:
---
phase: idle
spec: {first-spec-domain}
current_task: null
task_status: null
iteration: 0
tokens_used: 0
tokens_budget: {from config, default 500000}
depth: {resolved depth}
autonomy: {from config, default gated}
handoff_requested: false
---
## What's Done
## In-Flight Work
## What's Next
{List all specs and their task counts}
## Key Decisions
- Depth: {depth} ({reason -- auto-detected or user-specified})
- Planning generated {N} total tasks across {M} specs
After all frontiers are written, present a summary showing:
Then instruct the user to run /forge execute to begin implementation.
When designing tasks (enforced by the forge-planner agent):