Interactively resolve open questions and documentation gaps in project docs. Scans all docs for unknowns, proposes resolutions from existing sources, and interviews the user for the rest. Writes answers back into the correct doc files. Use when: onboarding to a project with incomplete docs, preparing docs for AI-DLC, or stress-testing a design by walking through every open question.
Interactively find and resolve documentation gaps. Reads all project docs, identifies unknowns, proposes answers from existing sources, and interviews the user for the rest — writing everything back into the correct files.
docs/ folder for a new project — fill in the gapsThis skill expects a docs/ folder with:
INDEX.md (or similar entry point) linking to all doc filesdecisions/open-questions.md file tracking unresolved items (can be empty)If this structure doesn't exist yet, stop and tell the user that a structured docs/ folder is a prerequisite. Recommend running first to create it from their initial documentation files.
/docs-scaffoldRead the docs index file and follow every link to read all documentation files. Then present a structured summary of your current understanding to the user before doing anything else:
End this summary with: "Is this understanding correct? Let me know if anything is wrong or missing before I continue."
Wait for the user to confirm or correct before proceeding. If they correct something, update the relevant doc immediately.
Read all documentation files (if not already done in Step 1). Identify:
Present a numbered list of all gaps found, grouped by category.
For each gap, check whether it can be answered from:
If you find an answer from these sources, do NOT write it yet. You MUST call the AskUserQuestion tool to present the proposed resolution. Structure the AskUserQuestion call as:
Only write the resolution after the user approves via the tool. If they provide a custom answer via Other, use their version instead.
For each gap that requires human input, you MUST call the AskUserQuestion tool — one question at a time. NEVER print questions as text output and wait for typed responses. Always use the tool.
Structure each AskUserQuestion call as:
Do not batch questions. Wait for the AskUserQuestion response before moving to the next question.
After the user approves or provides an answer (not on "skip"):
Always tell the user exactly which files were updated and why, so there's a clear audit trail per resolution.
Projects often have reference files such as OpenAPI/Swagger specs, database schemas, or configuration dumps. These are valuable for resolving gaps but vary widely in size.
If resolving a gap requires information from a reference file:
User: /resolve-docs
Agent: [Reads all docs, presents understanding summary]
"Is this understanding correct?"
User: "Yes"
Agent: [Scans for gaps, finds 12 open questions + 3 undocumented gaps]
"Found 15 gaps. 2 can be resolved from existing docs."
[AskUserQuestion: "OQ-8 is already answered in the API spec. Write it?"]
User: "Yes"
Agent: [Updates open-questions.md, notes API doc already had the info]
[AskUserQuestion: "OQ-1: How does the app connect to the database?
Recommended: Use H2 for local dev, real instance for integration tests"]
User: "Yes"
Agent: [Writes to architecture doc, updates open-questions.md]
... continues through all gaps ...
Agent: "Session complete. 11 resolved, 4 skipped. Updated: architecture.md,
data-model.md, open-questions.md"