Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ai-lab-yonder avatar

Docs Scaffold

  • 1 installs
  • 23 repo stars
  • Updated July 31, 2026
  • ai-lab-yonder/ai-lab-agent-skills

docs-scaffold is a Claude Code skill that scaffolds a structured docs/ folder with INDEX.md and AGENTS.md from raw project markdown for AI-assisted development.

About

A Claude Code skill that scaffolds a structured docs/ folder from raw markdown so AI agents can navigate a codebase. It splits monolithic docs into focused cross-linked files, creates an INDEX.md entry point and an AGENTS.md at the project root, and logs gaps as open questions. A developer uses it when onboarding a codebase to AI-assisted development or restructuring scattered docs.

  • Splits monolithic docs into focused, cross-linked files
  • Generates INDEX.md entry point and root AGENTS.md
  • Records unknowns as open-questions instead of guessing

Docs Scaffold by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #1,366 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

docs-scaffold capabilities & compatibility

Use cases
documentation
Pricing
Free
From the docs

What docs-scaffold says it does

Take raw project documentation and produce a structured `docs/` folder that AI agents can navigate efficiently.
SKILL.md
Never invent content — unknowns become entries in `decisions/open-questions.md`, not guesses
SKILL.md
npx skills add https://github.com/ai-lab-yonder/ai-lab-agent-skills --skill docs-scaffold

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars23
Last updatedJuly 31, 2026
Repositoryai-lab-yonder/ai-lab-agent-skills

What it does

Scaffold a structured, cross-linked docs/ folder with INDEX.md and AGENTS.md for AI-assisted development.

Who is it for?

Teams onboarding a codebase to AI-assisted development by structuring scattered docs

Skip if: Writing new content from scratch; it never invents content and only restructures provided material

When should I use this skill?

Starting a project with raw documentation, onboarding a codebase to AI-assisted development, or restructuring scattered docs

What you get

A focused, cross-linked docs/ tree with an INDEX.md entry point and root AGENTS.md.

  • structured docs/ folder
  • INDEX.md
  • AGENTS.md

By the numbers

  • Runs an 8-phase workflow (Phase 0 through Phase 7)

Files

SKILL.mdMarkdownGitHub ↗

Docs Scaffold

Take raw project documentation and produce a structured docs/ folder that AI agents can navigate efficiently. Splits monolithic files into focused, cross-linked documents with an INDEX.md entry point and AGENTS.md at the project root.

Companion skill to /resolve-docs — this skill creates the structure, /resolve-docs fills the gaps.

Constraints

  • Never invent content — unknowns become entries in decisions/open-questions.md, not guesses
  • Check reference file sizes before loading — read references/large-files.md for the protocol
  • Always confirm understanding AND planned structure before creating any files (two checkpoints)
  • One story per file — never combine stories even if short
  • Use AGENTS.md (not CLAUDE.md) at project root for tool-universality
  • Do not duplicate content — one canonical location, link from others
  • Read gotchas.md before starting

Phase 0 — Read Source Material

Read every input file the user provides. Build a mental model:

  • What is this project? Purpose, domain, landscape position
  • What are the components/layers? Responsibilities and boundaries
  • What stories/tasks exist? Grouped by feature or layer
  • What external systems are involved? APIs, databases, services
  • What cross-cutting concerns exist? Patterns appearing in 2+ stories (logging, retry, auth, status tracking)
  • What domain terminology is used? Mixed languages, jargon

Present a structured summary and wait for confirmation before proceeding.

Phase 1 — Plan Folder Structure

Design the docs/ structure based on source content. Only include folders that have content — not every project needs every folder. Always include decisions/open-questions.md.

Present the planned tree to the user and get confirmation before creating files.

See examples/erp-adapter-session.md for a real-world example of the output structure.

Phase 2 — Split and Create Files

Read references/splitting-rules.md for detailed routing rules: which content goes where, story file structure, and cross-reference conventions.

Key principle: identify cross-cutting concerns FIRST and extract them into conventions/ BEFORE writing story files. This prevents duplication.

Phase 3 — Create INDEX.md

Use templates/INDEX.md.tmpl as the starting structure. INDEX.md must contain:

  • "How to Use" navigation instructions (not just a file list)
  • A section per folder with file links and one-line descriptions
  • Warnings about large reference files that should not be auto-loaded

Phase 4 — Create AGENTS.md

Use templates/AGENTS.md.tmpl as the starting structure. Create at the project root (not inside docs/).

If an AGENTS.md or CLAUDE.md already exists, present the proposed additions and ask the user how to reconcile.

Phase 5 — Populate Open Questions

Use templates/open-questions.md.tmpl as the starting structure. Populate with gaps discovered during scaffolding: undefined terms, missing decisions, contradictions, vague sections, "TBD" markers.

Number questions sequentially (OQ-1, OQ-2, ...) grouped by category.

Phase 6 — Handle Large Reference Files

Read references/large-files.md for the full protocol. Key points:

  • Check file size first — small files (under ~200KB) can be loaded directly; for large files, ask the user with file name and approximate size
  • Distill only relevant endpoints/schemas into a readable markdown doc
  • Include a mapping table connecting endpoints to stories
  • Store the original in api/specs/ with clear warnings

Phase 7 — Summary and Next Steps

Present a summary of all created files, highlight the most critical open questions, and recommend:

Recommended next step: Run /resolve-docs to work through the open questions interactively.

Related skills

FAQ

Does it invent missing content?

No, unknowns become entries in decisions/open-questions.md rather than guesses.

Where does the root context file go?

It creates AGENTS.md (not CLAUDE.md) at the project root for tool universality.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.