project-documentation
БесплатноБез исполняемых скриптовНе проверенComprehensive codebase documentation generator following a layered methodology. This skill should be used when scanning and documenting a codebase for the…
от vneseyoungster★ 27 звёзд на GitHubОб этом скилле
Project Documentation
Comprehensive skill for scanning codebases and generating layered documentation to help developers get familiar quickly.
Overview
This skill implements a 6-phase documentation methodology:
- Understand - Explore codebase before documenting
- Structure - Create layered documentation (high/mid/low level)
- Essential Docs - Generate core documents
- Functions - Document code with intent
- Onboarding - Create self-paced learning materials
- Maintain - Keep documentation versioned and searchable
Documentation Workflow
Phase 1: Understand Before Documenting
Before writing documentation, thoroughly explore the codebase:
Explore Version Control History
git log --oneline -50 # Recent changes git log --all --oneline --graph # Visual branch history git shortlog -sn # Top contributorsAnalyze Code Structure
- Run
tree -L 3 -I node_modulesfor structure - Identify entry points (main., index., app.*)
- Detect framework patterns (React, Express, FastAPI, etc.)
- Run
Read Development Tests
- Tests reveal how code is intended to work
- Failed test history shows fixed issues
- Test structure mirrors code architecture
Trace Execution Flows
- Follow imports from entry points
- Map API routes to handlers
- Document data flow patterns
Phase 2: Create Layered Documentation
Generate three documentation layers:
| Layer | Purpose | Audience | Location |
|---|---|---|---|
| High-Level | Architecture, design principles | New devs, stakeholders | docs/architecture/ |
| Walkthrough | Flows, patterns, interactions | Contributing devs | docs/walkthroughs/ |
| Low-Level | Functions, parameters, returns | Active maintainers | Inline + docs/api/ |
Phase 3: Essential Documents
Generate using templates in templates/:
- README.md - See templates/readme-template.md
- Architecture Overview - See templates/architecture-template.md
- Walkthrough Guide - See templates/walkthrough-template.md
- API/Function Reference - See templates/api-reference-template.md
- Setup Guide - See templates/setup-guide-template.md
Phase 4: Document Functions Effectively
When documenting individual functions:
- Describe WHY, not just WHAT - Business assumptions, algorithm steps
- Use meaningful names - Self-documenting code
- Document intent - Design choices, trade-offs
- Include examples - Expected usage patterns
Reference: references/function-documentation.md
Phase 5: Onboarding-Focused Documentation
Create self-paced onboarding materials:
- Clear language - Avoid jargon without explanation
- Code snippets - Illustrate concepts with examples
- Consistent naming - Classes, functions, variables, files
- Decision rationale - Explain coding decisions
Phase 6: Maintainability
- Version documentation with source code
- Make documentation searchable
- Link from team communication channels
- Incrementally improve as codebase evolves
Documentation Priority Order
Generate documentation in this order:
- README with setup instructions (get developers running)
- Architecture diagram showing major components
- Entry points documentation (where code starts)
- Core patterns used throughout codebase
- Key functions/modules with purpose and examples
- Edge cases and gotchas that trip up newcomers
Output Structure
docs/
├── README.md # Project overview
├── architecture/
│ ├── overview.md # System architecture
│ ├── components.md # Component descriptions
│ └── diagrams/ # Architecture diagrams
├── walkthroughs/
│ ├── entry-points.md # Where code starts
│ ├── data-flow.md # How data moves
│ └── patterns.md # Recurring patterns
├── api/
│ ├── endpoints.md # API endpoints
│ └── functions.md # Key functions
├── setup/
│ ├── installation.md # Installation guide
│ ├── configuration.md # Configuration options
│ └── troubleshooting.md # Common issues
└── onboarding/
├── quickstart.md # 5-minute start
├── tutorials/ # Hands-on tutorials
└── gotchas.md # Edge cases & tips
Scanning Checklist
- Version control history analyzed
- Project type and framework identified
- Entry points documented
- Directory structure mapped
- Dependencies catalogued
- Key patterns identified
- Configuration files documented
- README created/updated
- Architecture overview generated
- Walkthrough guides cr
Установить project-documentation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл project-documentation?
Comprehensive codebase documentation generator following a layered methodology. This skill should be used when scanning and documenting a codebase for the first time, when creating onboarding documentation for new developers, when generating architecture overviews, walkthroughs, and API references. Supports README generation, architecture diagrams, entry point documentation, pattern guides, and edge case documentation.
Как установить скилл project-documentation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-documentation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic