Skip to main content
The using-engineering-docs skill is the master orchestrator for the Engineering Docs plugin. Give it a project idea in any form — a one-liner, a messy paragraph, a half-formed concept — and it takes over: runs a structured discovery conversation, decides which of the 21 specialist document skills apply and in what order, then executes that sequence one skill at a time until a complete, cross-consistent document set is ready for a coding agent or a human engineer to build from. You never need to know a skill’s name, a template’s structure, or the right order to generate documents.

At a Glance

Best For

  • Turning a raw business or product idea into a complete set of pre-development documents automatically
  • Starting any new project when you don’t know (and shouldn’t have to know) which specific documents you need
  • Handing a project to an AI coding agent and wanting the full context it would need already written down
  • Working through documentation for a project idea interactively, one document at a time, with the right skill invoked automatically at each step

How to Invoke It

The argument is your project idea in your own words — any level of polish.
You can hand it a single sentence or several paragraphs — the more context the better, but the orchestrator’s first job is to extract whatever is missing through structured questions.

Example Scenarios

The orchestrator handles the full range from greenfield products to brownfield feature additions:

Custom gift-box e-commerce

“I have an idea: an e-commerce site where customers build custom gift boxes by picking items, and the site recommends what pairs well or auto-builds a set from a short quiz. Help me turn this into everything needed to build it.”

Habit tracker SaaS

“I want to build a subscription-based habit tracker app. I don’t know what documents I need, just help me figure out and write whatever’s necessary.”

Internal support tool

“Here’s a rough concept for an internal tool our support team needs. Take it from idea to something a developer could start building from.”

Brownfield: add payments

“We have an existing app and want to add a payment system. Help me document what’s needed.”

Mode Detection

Before asking a single question, the orchestrator determines which mode it is operating in.
Triggered when: No .engineering-docs/ folder exists and no indication of an existing codebase is present.The full pipeline runs, starting from business concept. All six phases execute in order.

The 6-Phase Workflow

1

Phase 0: Business Concept Completion (Mode A Only)

Before any technical skill runs, the orchestrator interviews the user until the business idea is fully understood. All questions are delivered one at a time via tool calls — never inline — with multiple-choice options and an “I don’t know, you decide” escape hatch. Six standing constraint questions are asked first (team size, hosting, budget, timeline, regulatory needs, existing integrations); they are asked once and never repeated.Output: 1-business-plan.md — the foundational document every later skill reads from.Quality gate: Cannot proceed until the business concept is clear enough that a stranger could understand what’s being built, for whom, and why.
2

Phase 1: Idea Intake & Project Characterization

For Mode A, the business concept is the idea intake; the orchestrator summarizes key facts and proceeds to skill selection. For Mode B, it reads existing docs or scans the codebase and asks the user to confirm its inference about the current state.Using the Skill Directory (below), the orchestrator determines internally which conditional skills apply to this specific project. The user sees the plan, not the routing logic.
3

Phase 2: Sequencing Plan Preview

The resulting document list and order is presented in a few lines — what will be produced, roughly in what order, and a one-line reason for any conditional skill included or excluded. The user can redirect (“skip the design system doc, we’re API-only”) but this is not a multi-question gate. A progress ledger (index.md) is initialized at this point — it survives context compaction and lets the pipeline resume across sessions.
4

Phase 3: Sequential Document Generation

For each document in the plan, in order:
  1. Read the skill’s SKILL.md to know what that document needs.
  2. Read all prior documents in .engineering-docs/ to extract already-known information.
  3. Diff: what does this document need that isn’t already known?
  4. Ask only the truly missing items — maximum 2–3 questions per skill.
  5. Generate the document using the skill’s template.
  6. Write it to .engineering-docs/<N>-<slug>.md with the required metadata header.
  7. Update index.md with the new document’s status.
  8. Confirm with the user before chaining to the next document.
5

Phase 4: Consistency & Completeness Pass

After each document (incremental) and as a final pass before the set is declared ready:
  • Do architecture decisions match what the database and API docs assume?
  • Does every endpoint in the API doc have a corresponding entity in the database doc?
  • Does the security threat model cover every external-facing API surface?
  • Do entity names, role names, and terminology match across all documents?
Mismatches are surfaced to the user with a recommended resolution before moving on.
6

Phase 5: Master Project Index

Produce the master index — the single document listing everything produced, its status, and the recommended reading order for anyone (or any agent) picking up the project cold. Includes an “If you only read three documents” pointer for focused tasks.
Phase 6: Revision — After the user reviews any document, the orchestrator applies requested changes, re-runs the consistency check across all dependent documents, updates index.md, and confirms with the user before moving on.

The Skill Directory (All 22 Skills)

Right-sizing, not maximalism. A weekend side project and a payments platform do not need the same 15 documents. The orchestrator’s job is to determine which conditional skills actually apply — generating every possible document regardless of project size defeats the purpose.

Anti-Rationalization Table

These are shortcut thoughts the orchestrator must never act on:

Output Structure

Session Persistence

Interviews for a full Mode A pipeline can span multiple sessions. The orchestrator is designed to stop and resume without restarting:
  • After every phase completes, index.md records which phases are done, which is in progress, and what the next unanswered question is.
  • On a new invocation in a project with a partial .engineering-docs/ folder, the orchestrator reads that state first and resumes exactly where it left off — nothing already answered is re-asked.

Subagent Delegation for Large Projects

For projects requiring 10 or more documents, the orchestrator can delegate document generation to subagents to preserve its context window for coordination.
  • Independent documents: After the architecture is complete, database design and API design can be generated in parallel because they share the same source (the architecture) but do not depend on each other.
  • Long sessions: If the context window is growing large, delegate the next document generation to a subagent that starts fresh.
  • Complex documents: Documents like system-architecture-document (8 phases, 4–8 hrs) benefit from a dedicated subagent with focused context.
Documents that can run in parallel once architecture is complete:
  • database-design-document and api-design-document
  • admin-access-control-specification and security-threat-model
  • Multiple technical-blueprint documents for independent features
Documents that must be sequential:
  • business-conceptproject-planuser-personas-behaviortechnical-specificationsystem-architecture-document
  • implementation-plantest-strategy-documentdeployment-plan
  • After 5–7 documents: Suggest starting a fresh session. Quality degrades when context is too large.
  • Signal to watch for: If the agent starts re-asking questions already answered, or loses track of entity names from earlier documents, context is too full — start a fresh session immediately.
  • How to resume: The index.md file is the anchor. A fresh session reads index.md first, loads the most recent 2–3 documents for context, and resumes exactly where the previous session left off.

Handoff

Reads From

  • User’s raw project idea or existing codebase
  • Existing .engineering-docs/ folder (if brownfield)
  • Standing constraints: team size, hosting, budget, timeline, compliance

Feeds Into

  • Every downstream skill in the pipeline
  • The master index.md — tracks progress and reading order
  • Any AI coding agent starting cold — the complete document set is the handoff artifact

Quality Gate

Before declaring the document set complete, verify:
  • Mode detection was correct (greenfield vs brownfield)
  • Phase 0 (business concept) was completed for Mode A
  • Standing constraint questions were asked once, early
  • Each document was generated using its skill’s template
  • Each document has the required metadata frontmatter
  • Incremental consistency checks were run after each document
  • Final consistency pass found no unresolved conflicts
  • Master index (index.md) is complete and accurate
  • All [agent-decided] items are flagged in the index
  • No secrets, credentials, or API keys appear in any document
  • Reading order in index matches dependency order
  • “If you only read three documents” pointer is accurate

Document Metadata Standard

Every generated document opens with a frontmatter block so any agent parsing the folder can understand a file’s status without reading its full body:
owner_reviewed: false flags any document containing [agent-decided] answers — it signals to a human reviewer exactly where to focus before the build starts.

Security Policy

Never write actual secrets, credentials, API keys, or connection strings into any generated document — even if the user provides them during the interview. Where a document references such a value, use the name/purpose only (e.g., STRIPE_SECRET_KEY, to be set via environment variable) and never the literal value.