Technical Documentation Writer
This skill empowers you to produce technical documentation that is:
- •Effective: Clear, actionable, and comprehensive.
- •Structured: Organized logically into easy-to-navigate modular files.
- •Token-Efficient: Optimized for consumption by both Humans and AI Agents.
When to Use This Skill
- •Initializing documentation for a new project.
- •Refactoring existing "monolithic" documentation into a modular structure.
- •Documenting specific system components (Architecture, API, Database, etc.) following a standard schema.
The Standard Structure
We adopt a modular "folders and subfolders" approach to keep context focused and manageable. This is similar to the modular skill structure itself. This creates a "Knowledge/Documentation Graph" where each node (file) has a specific purpose.
Core Sections
See the bundled script for the canonical list, but generally:
- •Architecture: System review, tech stack, diagrams.
- •Database: Schemas, relationships.
- •API: Endpoints, contracts.
- •Security: Auth, compliance.
- •Operations: Deployment, monitoring, logging.
- •Quality: Testing strategies.
- •Edge Cases: Specific handling of non-happy paths.
Workflow
1. Scaffold the Structure
Don't worry about creating files manually. Use the bundled script to generate the standard folder and file structure.
Command:
python3 .agent/skills/technical-doc-writer/scripts/scaffold_docs.py <target_directory>
Example: python3 .agent/skills/technical-doc-writer/scripts/scaffold_docs.py docs/technical
2. Populate the Content
Iterate through the generated files. You do not need to fill them all at once. Priorities usually are:
- •System Architecture & Database Schema (The Foundation)
- •API Specifications & Integration (The Interface)
- •Others as implementation details solidify.
3. Writing Guidelines for Token Efficiency
- •Use Mermaid Diagrams: Instead of long textual descriptions of flows, use
mermaiddiagrams. - •Lists over Paragraphs: Use bullet points for features, requirements, and steps.
- •Link, Don't Duplicate: If a concept is defined in
01_system_architecture.md, reference it in other files rather than redefining it. - •Consistent Headers: Stick to the provided headers in the templates.
- •Data over Prose: For schemas and APIs, prefer table formats or code blocks (JSON/SQL) over descriptive text.
Resources
- •Script:
scripts/scaffold_docs.py- Automates the creation of the documentation folder and markdown skeletons.