lucasduys/forge/planning
Claude Code and agent skill by lucasduys/forge
- community
Checking that the SKILL.md file is still in the repository.
Decompose approved specs into ordered task frontiers with dependency DAGs, token estimates, and repo tags
Install
npx vskill@latest install lucasduys/forge/planningSKILL.md
Planning Skill
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.
Inputs
You will receive:
- Spec files: One or more approved spec files from
.forge/specs/ - Depth:
quick,standard, orthorough - Repo config: From
.forge/config.json(may include multiple repos with ordering) - Capabilities: From
.forge/capabilities.json(optional, informs task design) - Knowledge graph:
graphify-out/graph.json(optional, enables architecture-aware decomposition) - Design system: DESIGN.md (optional, enables design-tagged UI tasks)
Procedure
Step 1: Read and Validate Specs
For each spec file in .forge/specs/ (or the filtered subset):
- Read the file and parse its YAML frontmatter
- Verify
status: approved— skip any spec that is not approved - Extract all R-numbered requirements and their acceptance criteria
- Note the
linked_reposfield — this determines which repos tasks will target - Note the
complexityfield — this informs task sizing
Step 2: Determine Depth Parameters
Reference 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 |
Step 2.5: Load Architecture Context (optional)
Knowledge Graph: If graphify-out/graph.json exists, load it and extract:
- God nodes (highest-connectivity concepts) for task prioritization
- Community structure for aligning task boundaries with module boundaries
- Cross-module dependencies for implicit dependency edges in the DAG
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.
Step 3: Dispatch Planner Agent Per Spec
For each approved spec, dispatch a forge-planner agent (via the Agent tool) with:
- The full spec content (requirements + acceptance criteria)
- The resolved depth level
- The repo configuration (which repos are available, their roles and ordering)
- The capabilities map (which MCP servers and skills are available)
- The knowledge graph summary (if available: god nodes, communities, key dependencies)
- The design system reference (if available: DESIGN.md path)
The agent returns a frontier file in the template format. See templates/plan.md.
Step 4: Validate and Refine Frontiers
After receiving each frontier from the planner agent:
- Requirement coverage: Verify every R-number from the spec maps to at least one task. If any requirement is missing, add tasks to cover it.
- Dependency validity: Verify all
depends:references point to real task IDs. No circular dependencies. - Tier correctness: Tier 1 tasks must have zero dependencies. Tier N tasks must depend only on tasks in Tiers 1 through N-1.
- Repo ordering: If
cross_repo_rules.api_firstis true, API tasks in the same tier must be listed before frontend tasks. - Task count: Verify the task count falls within the depth range (e.g., 6-12 for standard). Adjust if needed.
- Token estimates: Verify per-task estimates are reasonable for the depth level. Total should be sum of all tasks.
Step 5: Write Frontier Files
For each spec, write the frontier to .forge/plans/{spec-domain}-frontier.md.
The frontier file format (matching templates/plan.md):
Step 6: Write Token Ledger
Write initial estimates to .forge/token-ledger.json:
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.
Step 7: Initialize State
Write .forge/state.md with the first spec queued:
Step 8: Present Summary
After all frontiers are written, present a summary showing:
- Number of specs planned
- Total tasks across all frontiers
- Estimated total tokens
- Depth level used
- List of frontier files with task counts
Then instruct the user to run /forge execute to begin implementation.
Task Design Principles
When designing tasks (enforced by the forge-planner agent):
- Atomic: Each task has one clear deliverable. "Implement user model + migration" is one task, not "implement entire auth system."
- Testable: Each task's completion can be verified by running tests or checking observable output.
- Dependency-minimal: Prefer fewer dependencies. Tasks should be as parallelizable as possible.
- API-first: For multi-repo projects, API/backend tasks come before frontend tasks that depend on them.
- Scaffolding first: Structural tasks (models, controllers, routes) in early tiers, logic tasks (business logic, validation) in later tiers.
- Cross-repo boundary: Tasks that cross repo boundaries should be split into separate tasks per repo.
- Requirement-traced: Every task should trace back to one or more R-numbers from the spec. Every R-number must be covered by at least one task.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/planning/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lucasduys/forge/planning)