AgentSkillsCN

documentation-specialist

GitHub CLI(gh)命令参考,涵盖仓库搜索、代码发现、CI/CD监控、工作流编写与自动化。可触发“gh”命令、“github cli”、在仓库中搜索文件/目录(.skilz、.cursor、.codex、Dockerfile)、监控GitHub Actions工作流、检查PR CI状态、下载制品、通过命令行创建PR/Issue/Repository、触发工作流、fork仓库、执行批量操作、“编写工作流”、“github actions”、“CI/CD流水线”、“workflows yaml”以及“矩阵构建”。适用于gh search、gh run、gh pr、gh issue、gh repo、gh workflow、gh api、工作流编写,以及自动化GitHub相关操作。

SKILL.md
--- frontmatter
name: "documentation-specialist"
description: |
  This skill should be used when creating professional software documentation (SRS, PRD, OpenAPI,
  user manuals, tutorials, runbooks) from templates (greenfield) or reverse-engineering documentation
  from existing code like Spring Boot or FastAPI (brownfield). Also handles documentation audits/reviews,
  format conversion (Markdown, DOCX, PDF), and diagram generation (C4, Mermaid, PlantUML, ER, sequence).
  Use when asked to "create documentation", "document my code", "write SRS", "generate PRD", or "documentation specialist".
metadata:
  author: arelben
  scope: [root]
  auto_invoke: "Creating/modifying documentation"
allowed-tools: ["Read", "Write", "Edit", "Glob", "Grep", "Bash", "Skill"]

Documentation Specialist Skill

Quick Start

Software documentation creation, extraction, conversion, and diagramming capabilities.

Capabilities:

  1. Greenfield - Create documentation from templates (SRS, PRD, OpenAPI, User Manuals, Tutorials, Runbooks)
  2. Brownfield - Reverse-engineer documentation from code (Spring Boot, FastAPI)
  3. Audit - Review and improve existing documentation
  4. Convert - Transform formats (MD → DOCX → PDF)
  5. Diagram - Generate visuals (Mermaid C4, PlantUML UML)

Example Requests:

code
Create an SRS for a billing system with PCI-DSS compliance
Document my Spring Boot application at ~/projects/customer-api
Create a user manual for my SaaS product
Write a database failover runbook
Audit my API documentation at docs/api/openapi.yaml
Convert docs/srs.md to Word format
Create a C4 container diagram for my microservices

Execution Flow:

  1. Classify intent → 2. Load workflow → 3. Execute steps → 4. Generate documentation → 5. Present post-processing options

Intent Classification

IntentKeywordsWorkflow
CREATE_NEW"create", "generate", "write" + doc typegreenfield-workflow.md
CODE_TO_DOCS"document", "extract", path referencebrownfield-workflow.md
AUDIT"audit", "review", "check", "improve"audit-workflow.md
CONVERT"convert", "to Word", "to PDF"convert-workflow.md
DIAGRAM"diagram", "C4", "sequence", "ER"diagram-workflow.md
USER_DOCS"user manual", "how-to", "getting started"user-docs-workflow.md
TUTORIAL"tutorial", "API guide", "CLI docs"tutorial-workflow.md
RUNBOOK"runbook", "procedure", "incident"runbook-workflow.md

CRITICAL: Load only the workflow needed for the current intent. Avoid loading multiple workflows.


Document Type → Template

Requirements & Design:

User Documentation:

TypeTemplate
User Manualuser-manual.md
How-To Guidehowto-guide.md
Getting Startedgetting-started.md

Developer & Operations:

TypeTemplate
Developer Tutorialdeveloper-tutorial.md
Runbookrunbook.md

Framework Detection (Brownfield)

FrameworkDetectionMapping
Spring Bootpom.xml, @SpringBootApplicationspring-boot-mapping.yaml
FastAPIrequirements.txt, from fastapi importfastapi-mapping.yaml

Process: Glob for detection files → Grep for patterns → Load mapping → Follow brownfield workflow


On-Demand Resources

Load only what is needed for the current task.

Workflows

Reference Guides

Examples


Skill Integration

SkillInvocation Trigger
docxRequest includes Word format
pdfRequest includes PDF format
plantumlUML diagrams (ER, sequence, component)
mermaid-architectC4 diagrams, flowcharts

Error Handling

ErrorResponse
Cannot detect frameworkAsk: "Is this Spring Boot, FastAPI, or another framework?"
Missing templateUse closest match, inform user
Skill not availableOffer markdown-only alternative
Ambiguous requestAsk: "Would you prefer SRS (formal) or PRD (agile)?"

End of SKILL.md (v3.0-PDA)