Load config:
gad-tools config-get planning 2>/dev/nullAlso parse
--sink <path>from$ARGUMENTSto overridedocs_sink.Validate sink:
- If
docs_sinkis not configured and--sinknot provided, show error:No docs_sink configured. Set docs_sink in planning-config.toml or pass --sink <path>.
- If
For each root: a. Read
<root.path>/<root.planningDir>/STATE.mdb. Read<root.path>/<root.planningDir>/ROADMAP.mdc. Write to<sink>/<root.id>/STATE.mdxand<sink>/<root.id>/ROADMAP.mdxMDX transformation:
- Add frontmatter header:
--- title: <root.id> — Planning State description: Auto-compiled from <root.path>/<root.planningDir>/STATE.md generated: <ISO date> source: <root.path>/<root.planningDir>/STATE.md --- - Preserve all Markdown content verbatim below the frontmatter
- Replace relative links
./phases/→<sink>/<root.id>/phases/
- Add frontmatter header:
Copy phase subdirs (if they exist): For each
<root.planningDir>/phases/directory, compile each phase'sPLAN.md,SUMMARY.md,KICKOFF.md→.mdxequivalents in<sink>/<root.id>/phases/<phase>/.Summary:
✓ Compiled 3 roots → apps/portfolio/content/docs/planning/ global → STATE.mdx, ROADMAP.mdx, 8 phase files grime-time → STATE.mdx, ROADMAP.mdx, 4 phase files gad → STATE.mdx, ROADMAP.mdx (no phases yet)
Skill
gad:docs-compile
gad-docs-compile
Compile planning docs from all roots into docs_sink as MDX files
Source on GitHub
vendor/get-anything-done/sdk/skills/gad-docs-compile/SKILL.md