documentation – skill Lập trình cho agent AI
Quy trình tạo tài liệu gồm tài liệu API, tài liệu kiến trúc, file README, chú thích code và viết kỹ thuật.
Cài skill documentation bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/documentation-45c54.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /documentation – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/documentation-45c54.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $documentation – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/documentation-45c54.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /documentation – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/documentation-45c54.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /documentation – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Documentation Workflow Bundle
Overview
Comprehensive documentation workflow for generating API documentation, architecture documentation, README files, code comments, and technical content from codebases.
When to Use This Workflow
Use this workflow when:
- Creating project documentation
- Generating API documentation
- Writing architecture docs
- Documenting code
- Creating user guides
- Maintaining wikis
Scope
Select only the phases needed for the request; this bundle does not authorize every referenced skill or external publication. Verify each ID and local prerequisites before invocation. Preserve existing docs, distinguish proposed from accepted decisions, keep private data out of public examples, and run the project's actual documentation checks.
Workflow Phases
Phase 1: Documentation Planning
Skills to Invoke
docs-architect- Documentation architecturedocumentation-templates- Documentation templates
Actions
1. Identify documentation needs
2. Choose documentation tools
3. Plan documentation structure
4. Define style guidelines
5. Set up documentation site
Copy-Paste Prompts
Use @docs-architect to plan documentation structureUse @documentation-templates to set up documentationPhase 2: API Documentation
Skills to Invoke
api-documenter- API documentationapi-documentation-generator- Auto-generationopenapi-spec-generation- OpenAPI specs
Actions
1. Extract API endpoints
2. Generate OpenAPI specs
3. Create API reference
4. Add usage examples
5. Set up auto-generation
Copy-Paste Prompts
Use @api-documenter to generate API documentationUse @openapi-spec-generation to create OpenAPI specsPhase 3: Architecture Documentation
Skills to Invoke
c4-architecture-c4-architecture- C4 architecturec4-context- Context diagramsc4-container- Container diagramsc4-component- Component diagramsc4-code- Code diagramsmermaid-expert- Mermaid diagrams
Actions
1. Create C4 diagrams
2. Document architecture
3. Generate sequence diagrams
4. Document data flows
5. Create deployment docs
Copy-Paste Prompts
Use @c4-architecture-c4-architecture to create C4 diagramsUse @mermaid-expert to create architecture diagramsPhase 4: Code Documentation
Skills to Invoke
code-documentation-code-explain- Code explanationcode-documentation-doc-generate- Doc generationdocumentation-generation-doc-generate- Auto-generation
Actions
1. Extract code comments
2. Generate JSDoc/TSDoc
3. Create type documentation
4. Document functions
5. Add usage examples
Copy-Paste Prompts
Use @code-documentation-code-explain to explain codeUse @code-documentation-doc-generate to generate docsPhase 5: README and Getting Started
Skills to Invoke
readme- README generationenvironment-setup-guide- Setup guidestutorial-engineer- Tutorial creation
Actions
1. Create README
2. Write getting started guide
3. Document installation
4. Add usage examples
5. Create troubleshooting guide
Copy-Paste Prompts
Use @readme to create project READMEUse @tutorial-engineer to create tutorialsPhase 6: Wiki and Knowledge Base
Skills to Invoke
wiki-architect- Wiki architecturewiki-page-writer- Wiki pageswiki-onboarding- Onboarding docswiki-qa- Wiki Q&Awiki-researcher- Wiki researchwiki-vitepress- VitePress wiki
Actions
1. Design wiki structure
2. Create wiki pages
3. Write onboarding guides
4. Document processes
5. Set up wiki site
Copy-Paste Prompts
Use @wiki-architect to design wiki structureUse @wiki-page-writer to create wiki pagesUse @wiki-onboarding to create onboarding docsPhase 7: Changelog and Release Notes
Skills to Invoke
changelog-automation- Changelog generationwiki-changelog- Changelog from git
Actions
1. Extract commit history
2. Categorize changes
3. Generate changelog
4. Create release notes
5. Prepare updates; publish only to the explicitly authorized destination
Copy-Paste Prompts
Use @changelog-automation to generate changelogUse @wiki-changelog to create release notesPhase 8: Documentation Maintenance
Skills to Invoke
doc-coauthoring- Collaborative writingreference-builder- Reference docs
Actions
1. Review documentation
2. Update outdated content
3. Fix broken links
4. Add new features
5. Gather feedback
Copy-Paste Prompts
Use @doc-coauthoring to collaborate on docsDocumentation Types
Code-Level
- JSDoc/TSDoc comments
- Function documentation
- Type definitions
- Example code
API Documentation
- Endpoint reference
- Request/response schemas
- Authentication guides
- SDK documentation
Architecture Documentation
- System overview
- Component diagrams
- Data flow diagrams
- Deployment architecture
User Documentation
- Getting started guides
- User manuals
- Tutorials
- FAQs
Process Documentation
- Runbooks
- Onboarding guides
- SOPs
- Decision records
Quality Gates
- [ ] All APIs documented
- [ ] Architecture diagrams current
- [ ] README up to date
- [ ] Code comments helpful
- [ ] Examples working
- [ ] Links valid
Related Workflow Bundles
development- Development workflowtesting-qa- Documentation testingai-ml- AI documentation
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- documentation-generation-doc-generate – Bạn là chuyên gia tài liệu, chuyên tạo tài liệu toàn diện, dễ bảo trì từ code. Tạo tài…
- songsee – Phổ tần số và đặc trưng âm thanh (mel, chroma, MFCC) qua CLI.
- documentation-templates – Mẫu tài liệu và hướng dẫn cấu trúc. README, tài liệu API, chú thích code và tài liệu…
- product-discovery – Dùng khi xác thực cơ hội sản phẩm, lập bản đồ giả định, lên kế hoạch sprint khám phá…
- dotnet-architect – Kiến trúc sư backend .NET chuyên về C#, ASP.NET Core, Entity Framework, Dapper và các…
- dotnet-backend – Xây dựng dịch vụ backend ASP.NET Core 8+ với EF Core, xác thực, tác vụ nền và các mẫu…
- dotnet-backend-patterns – Thành thạo các mẫu C#/.NET để xây dựng API, máy chủ MCP và backend doanh nghiệp đạt…
- doubt-driven-development – Đưa mọi quyết định không tầm thường qua một lượt phản biện đối kháng với ngữ cảnh mới…