SKILL.md spec for a coding agent — a prompt pack, not a shipped product.
split-plan
Deterministic Plan-to-GitHub Issue Graph Compiler
The zip contains SKILL.md, the reference notes, and the scripts.
Unzip it into the folder your agent loads skills from. For Grok, that is ~/.grok/skills/.
Keep the folder name so SKILL.md stays at the top of that folder, then start a new chat and use the command above.
- ✓ When converting an implementation plan (docs/plan/plan.md) into actionable GitHub issues.
- ✓ When structuring project development into parallel, dependency-aware execution layers.
- ✓ When decomposing complex engineering epics into small, verifiable sub-tasks (< 2 hours each).
- ✓ When publishing issues to GitHub, only if docs/plan/flow.json sets publish to true.
Trigger: Activated when the user requests converting an implementation plan into trackable GitHub issues or a dependency DAG.
"Convert docs/plan/plan.md into GitHub issues."
Deterministic Graph Compiler & Topological DAG Leveling
Reads plan.md, generates individual issue files in docs/plan/issues/.
Outputs issues-graph.json containing nodes, edges, subtasks, and topological layers.
Automation Scripts
Validates the issue files and writes issues-graph.json. Refuses a cycle.
scripts/compile_graph.py Creates GitHub issues in dependency order when flow.json has publish true, and writes the issue numbers back.
scripts/push_issues.py Adds GitHub blocker links when flow.json has link true. Separate from push_issues.py.
scripts/link_issues.py Reference Specifications (`references/`)
Rules for coalescing related tasks and splitting oversized descriptions into focused issues.
Standardized GitHub issue schema containing intent, inputs, outputs, criteria, and test strategy.
Domain-specific sub-task generation rules covering UI/UX, database migrations, and APIs.
JSON schema for issues-graph.json and topological sorting algorithms.
Template for summary index table and visual Mermaid issue dependency chart.
Executive Overview
A high-level implementation plan without granular decomposition is prone to ambiguity. When autonomous agents or engineering teams attempt to execute oversized tasks, they frequently encounter deadlocks, missing contract definitions, or circular blockers.
split-plan is a deterministic graph compiler that translates architecture plans into an executable, acyclic GitHub Issue Dependency Graph (DAG).
4-Phase Compilation Pipeline
docs/plan/plan.md
↓
[Phase 1: Parsing] --> Extracts Architecture, Tech Stack, and Task Matrix
↓
[Phase 2: Smart Group] --> Coalesces micro-tasks, splits oversized tasks (>300 words)
↓
[Phase 3: Sub-Tasks] --> Decomposes each issue into domain-aware specifications
↓
[Phase 4: DAG & Output] --> Computes topological layers and outputs issues-graph.json
1. Smart Grouping Heuristics
- Coalescing: Tightly coupled operations (e.g., creating a TypeORM entity + database migration) are combined into a single cohesive issue.
- Splitting: Any issue description exceeding 300 words or containing more than 5 distinct acceptance criteria is split into focused prerequisite issues.
2. Domain-Aware Sub-Task Decomposition
Every issue contains ordered, atomic sub-tasks sized for < 2 hours of work:
- UI/UX Issues: Sub-tasks name layout, components, and states. A mockup is included only when the user asks. Otherwise the issue carries a written visual hierarchy.
- Database Issues: Sub-tasks define entity schemas, foreign keys, indexes, and generate Mermaid ERD diagrams for validation.
- API Issues: Sub-tasks explicitly define HTTP verbs, endpoints, request/response DTOs, and RFC 9457 error contracts.
Topological Layering for Multi-Agent Execution
split-plan groups all generated issues into execution layers:
- Layer 0 (Root Nodes): Issues with zero prerequisites (e.g., Docker environment, database connection module). These can be implemented concurrently by independent subagents.
- Layer 1 (Direct Dependents): Issues depending strictly on Layer 0 components.
- Layer N (Terminal Nodes): End-to-end integration tests, final builds, and deployment verification.
{
"layers": [
["issue-001", "issue-002"],
["issue-003", "issue-004"],
["issue-005"]
]
}
GitHub, only when flow.json says so
docs/plan/flow.json is the switch. A missing file means publish off and link off.
{ "publish": false, "link": false, "repo": null }
repo is owner/name, or null. The scripts live in this skill and run with the target repo as the working directory.
compile_graph.py: Checks the issue files for a cycle and writesissues-graph.json.push_issues.py: Whenpublishis true, creates the GitHub issues in dependency order and writes each issue number back into the file.link_issues.py: Whenlinkis true and the numbers exist, tells GitHub which issue blocks which.push_issues.pydoes not insert those links.