Docs Scaffold logo

Docs Scaffold

Organization
TSS-Blue-AI-Lab
docs-scaffold

Organize raw project documentation into a focused, cross-linked docs/ structure with an adaptive INDEX.md and a recommended AGENTS.md entry point. Preserve the source's natural document types; create stories only when they already exist and incremental slices only when the user wants them. Use when starting from raw documentation or restructuring scattered project docs.

Overview

PublisherTSS-Blue-AI-Lab
Repositoryai-lab-agent-skills
Skill namedocs-scaffold
Stars
26
Forks
3
Bundled files
7
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by TSS-Blue-AI-Lab on GitHub. Read the source before you install it.

Installation

Install the Docs Scaffold AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/docs-scaffold
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills.git /tmp/ai-lab-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-lab-agent-skills/skills/docs-scaffold .claude/skills/docs-scaffold
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Docs Scaffold in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Docs Scaffold on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Docs Scaffold is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Docs Scaffold

Take raw project documentation and produce a structured docs/ folder that people and AI agents can navigate efficiently. Split monolithic files into focused documents without forcing every project into the same folder model.

This skill creates the structure. The companion resolve-docs skill can help resolve gaps afterward.

Constraints

  • Never invent content; unsupported details become entries in decisions/open-questions.md
  • Check reference file sizes before loading; read references/large-files.md for the protocol
  • Confirm both the source understanding and the planned structure before creating files
  • Preserve the source's natural content types; do not manufacture stories, tasks, or slices to fill a template
  • Create stories/ only for explicit source stories and slices/ only after the user approves an incremental breakdown
  • When work units are selected, keep one independently assignable work unit per file
  • Recommend AGENTS.md as the general project-instructions entry point, but inspect existing instruction files and help the user choose before creating or changing one
  • Do not duplicate content; keep one canonical location and link from related documents
  • Do not add source-file or heading provenance to generated documents unless the user explicitly requests it
  • Read gotchas.md before starting

Phase 0 — Understand the Source Material

Read every input file the user provides, following the large-file protocol when necessary. Identify:

  • Project purpose, domain, and boundaries
  • Existing content types: architecture, requirements, guides, operations, decisions, API material, reference data, or others
  • Components and responsibilities
  • Explicit stories, tasks, milestones, or delivery phases, if any
  • Whether an incremental slice plan would be useful or was requested
  • External systems, APIs, databases, and services
  • Cross-cutting concerns that appear in multiple places
  • Domain terminology, mixed languages, and jargon
  • Sensitive or restricted reference material that should not be copied

Present a structured summary and wait for confirmation before planning files.

Phase 1 — Plan an Adaptive Folder Structure

Design the docs/ tree from the confirmed content. Only include folders and INDEX sections that have content. Always include decisions/open-questions.md, even when it initially states that no open questions were found.

Choose the work-unit treatment explicitly:

Source and user intentResult
Reference or explanatory documentation onlyNo stories/ or slices/ folder
Source contains explicit user stories that should remain storiesstories/, one source story per file
User wants independently deliverable increments and approves the proposed boundariesslices/, one incremental slice per file
Intent is unclearShow the options and ask; do not choose a work-unit folder by default

Present the planned tree, label optional choices, explain why each folder exists, and get confirmation before creating files.

See examples/synthetic-docs-session.md for documentation-only and optional-slice examples.

Phase 2 — Split and Create Files

Read references/splitting-rules.md for content routing, work-unit structures, and cross-reference rules.

Identify shared concerns before writing documents. Put system-wide rationale and constraints in architecture docs; put actionable repeated rules in conventions/. Link between them instead of duplicating text.

When using the templates, remove every unused optional block, placeholder, and template comment from the final files.

Phase 3 — Create INDEX.md

Use templates/INDEX.md.tmpl as a flexible starting point, not a required section list.

INDEX.md must contain:

  • Task-oriented navigation instructions based on the folders that actually exist
  • One section per included folder, with links and one-line descriptions
  • No empty or placeholder sections
  • Warnings for large or restricted references that should not be auto-loaded

Phase 4 — Create or Reconcile AGENTS.md

Use templates/AGENTS.md.tmpl as an adaptive starting point. Recommend AGENTS.md at the project root as the general default, then inspect existing root instruction files before writing.

Existing stateRecommendation to present
No project instruction fileCreate AGENTS.md from the template
AGENTS.md existsPropose a merge; never overwrite it
A different instruction file existsOffer to keep it, add AGENTS.md, or make one canonical and keep the other as a short pointer
Multiple instruction files existChoose one canonical source with the user and remove duplicated guidance from the others

Individual tools may use additional filenames, so explain the trade-off and let the user decide. Keep AGENTS.md sections only when their corresponding docs or rules exist.

Phase 5 — Populate Open Questions

Use templates/open-questions.md.tmpl. Capture undefined terms, missing decisions, contradictions, vague sections, and explicit placeholders.

  • Number questions sequentially: OQ-1, OQ-2, ...
  • Group them by useful categories
  • Assign a priority and status
  • If none exist, state that clearly instead of leaving template placeholders

Phase 6 — Handle Large or Restricted References

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

  • Check size, format, relevance, and sensitivity before loading
  • Distill only material relevant to the generated documentation or approved work units
  • Map distilled material to related documents or work units when that helps navigation
  • Do not copy raw references into the repository without user approval and a confidentiality, licensing, and version-control check
  • Prefer linking to an existing approved location when copying is unnecessary

Phase 7 — Verify and Summarize

Before presenting the result:

  1. Remove unused template sections, comments, and placeholders.
  2. Check that every INDEX link resolves.
  3. Check that cross-links do not create duplicate canonical content.
  4. Confirm that no stories or slices were created without the selected work-unit mode.
  5. List created and modified files, important open questions, skipped references, and any remaining limitations.

Recommended next step: use the resolve-docs skill to work through unresolved questions.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Docs Scaffold AI skill do?

Organize raw project documentation into a focused, cross-linked docs/ structure with an adaptive INDEX.md and a recommended AGENTS.md entry point. Preserve the source's natural document types; create stories only when they already exist and incremental slices only when the user wants them. Use when starting from raw documentation or restructuring scattered project docs.

Why use Docs Scaffold on TypingMind?

Because you install it once and use it with any model. Docs Scaffold is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Docs Scaffold in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/docs-scaffold. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Docs Scaffold?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Docs Scaffold?

As many as you like. As long as a model supports skills, you can use Docs Scaffold with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Docs Scaffold AI skill free?

It is published on GitHub by TSS-Blue-AI-Lab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇