documentation-expert
Skill28 starsChanged 3 months agoApache-2.0View on GitHub
Establishes guidelines, frameworks, and visual templates to create professional technical documentation, design records, and diagrams. Use this skill when asked to write user manuals, API docs, system overviews, or architectural diagrams.
In this repository34 other files it gives its agents.
- bigquery-query-optimizationSkill
- build-and-ci-gatesSkill
- cdc-scd-patternsSkill
- code-implementerSkill
- code-smells-expertSkill
- commit-expertSkill
- compliance-verifierSkill
- context-captureSkill
- context-restoreSkill
- database-migration-expertSkill
- design-spec-expertSkill
- flutter-architecture-decisionsSkill
- flutter-performance-profilingSkill
- flutter-release-engineeringSkill
- flutter-review-checklistSkill
- flutter-senior-orchestrationSkill
- flutter-test-strategySkill
- flutter-upgrade-migrationSkill
- gcp-data-engineeringSkill
- guidelines-karpathySkill
- loop-engineeringSkill
- performance-scalabilitySkill
- product-analystSkill
- pull-request-expertSkill
- python-expertSkill
- qa-testerSkill
- refactoring-code-expertSkill
- repo-researchSkill
- security-auditSkill
- senior-architect-engineeringSkill
- senior-dev-orchestratorSkill
- sql-query-optimizationSkill
- test-driven-developmentSkill
- testing-expertSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Use flowcharts for component layouts and pipelines.
- Distinctive: line 35
Use sequence diagrams for API exchanges and multi-agent loops.
- Distinctive: line 36
Use ER diagrams for data entity relationships.
- Very specific: line 59
Claude Code: Run validate_docs.py via bash to audit markdown files after authoring documentation.
- Very specific: line 60
Antigravity: Ensure that diagrams use valid Mermaid blocks and verify links with validate_docs.py.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Documentation Expert Skill
Overview
This skill guides the authoring, structuring, and validation of technical documentation and architectural diagrams. It acts as a Lead Technical Writer and Information Architect, applying the Diátaxis documentation framework (Tutorials, How-To Guides, Reference, Explanation) to match user intent, rendering visual diagrams with Mermaid.js, and strictly enforcing relative link integrity.
When to Use
Trigger Scenarios
- Writing, refactoring, or reviewing project READMEs, user manuals, and API references.
- Visualizing system architectures, sequence flows, or data models using Mermaid.js diagrams.
- Structuring technical docs to eliminate confusion between reference specifications and how-to guides.
- Auditing documentation for broken relative links, heading nesting violations, and absolute path leaks.
When NOT to Use
- Scaffolding Software Design Documents for unbuilt features: Route to
design-spec-expert. - Authoring Architectural Decision Records (ADRs): Route to
senior-architect-engineering. - Extracting repo-wide codebase maps into project-context.md: Route to
repo-research.
Process
Phase 1: Diátaxis Pillar Alignment
Categorize the document into one of the four distinct Diátaxis modes based on reader intent:
- Tutorials (Learning-oriented): Hand-held, end-to-end beginner lessons with guaranteed successful outcomes.
- How-To Guides (Problem-oriented): Step-by-step recipes solving specific real-world tasks.
- Reference (Information-oriented): Accurate, dry, complete descriptions of classes, functions, flags, and APIs.
- Explanation (Understanding-oriented): High-level architectural discussions, historical context, and design rationales. Rule: Do NOT blend multiple pillars into a single document section.
Phase 2: Visual Diagramming via Mermaid.js
Insert Mermaid.js diagrams to visually illustrate complex interactions, data flows, or states:
- Use flowcharts for component layouts and pipelines.
- Use sequence diagrams for API exchanges and multi-agent loops.
- Use ER diagrams for data entity relationships. Always quote labels containing special characters to prevent rendering syntax errors.
Phase 3: Link Portability & Automated Verification
- Enforce relative link paths (e.g., pointing to relative project files instead of hardcoded machine-specific absolute paths).
- Execute the documentation validator script to check markdown layout nesting, link validity, and absolute path leaks:
python3 ./skills/documentation-expert/scripts/validate_docs.py
Usage
Commands & Automation Scripts
# Validate markdown files, relative links, and heading hierarchies
python3 ./skills/documentation-expert/scripts/validate_docs.pyExample Prompts
- "Write a comprehensive README for our payments service following the Diátaxis framework, including an architecture diagram."
- "Create a Mermaid sequence diagram illustrating the OAuth2 authorization code flow with PKCE."
- "Audit the docs/ directory for broken relative links and heading hierarchy violations."
Host Execution Instructions
- Claude Code: Run
validate_docs.pyvia bash to audit markdown files after authoring documentation. - Antigravity: Ensure that diagrams use valid Mermaid blocks and verify links with
validate_docs.py.
Red Flags
- Mixing How-To steps with deep theoretical Explanations in the same section.
- Hardcoding user machine absolute paths (such as user home directories) in markdown links or code snippets.
- Creating broken relative markdown links pointing to non-existent files.
- Describing multi-component distributed architectures in walls of text without a diagram.
Verification
- Document aligns cleanly to a Diátaxis pillar.
- Automated documentation validator script passes with zero errors:
python3 ./skills/documentation-expert/scripts/validate_docs.py - All relative file links point to existing files.
- Zero absolute user paths leaked.
- Mermaid diagrams render without syntax errors.
References
- Diátaxis Documentation Framework Reference
- Mermaid.js Graphic Reference Guide
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

