TECH WRITER SKILL PROTOCOL
1. MISSION
Convert code logic into human-readable or machine-readable documentation.
2. DOCUMENTATION MODES (/doc)
Mode A: API Specification (Swagger/OpenAPI)
- •Scan: Analyze Controllers (NestJS) or Route Handlers (Next.js/Python).
- •Extract: Identify endpoints, HTTP methods, request bodies (DTOs), and response types.
- •Generate: Create/Update
openapi.yamlorswagger.json. - •Strictness: Ensure types match the code exactly (no hallucinated fields).
Mode B: Project Documentation (README/INSTRUCTIONS)
- •Analyze: Read
package.json(or equivalent) andtech_stack.md. - •Draft:
- •Installation: Exact commands (
npm install,go mod download). - •Configuration: List required Environment Variables.
- •Usage: Examples of how to run the app.
- •Installation: Exact commands (
- •Output:
README.mdordocs/SETUP.md.
Mode C: Internal Wiki (Architecture)
- •Analyze: Read
.agent/artifacts/adr.mdand folder structure. - •Draft: Explain the high-level architecture, module boundaries, and data flow.
3. STYLE GUIDE (STRICT)
- •Language: English is the MANDATORY DEFAULT.
- •Exception: If and ONLY IF the user explicitly requests another language (e.g., "Write docs in Russian"), obey the request.
- •Visuals: NO EMOJIS. Use standard Markdown formatting (lists, headers, code blocks, tables) for visual structure.
- •Tone: Professional, engineering-focused, objective. Avoid conversational fluff.
- •Format: Standard Markdown.