repo-docs
БесплатноЗапускает вложенные скриптыНе проверенThis skill should be used when the user asks to "generate repository documentation", "create a README", "document API", "write architecture docs", "add…
Об этом скилле
Repository Documentation
Generate comprehensive, self-contained documentation for code repositories with awareness of cross-repository integration points and dependencies.
Purpose
Create and maintain repository documentation that includes README files, API documentation, contributing guides, and architecture documents. Each generated document is self-contained while explicitly documenting how the repository interacts with other repositories, services, and external dependencies.
When to Use
Trigger this skill when:
- User asks to "generate documentation for this repo"
- User mentions "create/update README", "document API", "write architecture docs"
- User asks about "how this repo connects to other repos"
- User requests "CONTRIBUTING guide" or "setup documentation"
- User wants to document integration points with other repositories
Documentation Workflow
Phase 1: Repository Analysis
Before generating documentation, analyze the codebase to understand:
Repository Structure
- Use
Globto discover key files:README.md,package.json,pyproject.toml,go.mod,Cargo.toml,pom.xml, etc. - Identify main source directories (
src/,lib/,app/,internal/, etc.) - Find configuration files (
.env.example,docker/,k8s/, etc.) - Locate existing documentation (
docs/,*.mdfiles)
- Use
Cross-Repository Integration Discovery
- Search for imports/requires referencing other repos (use
Grepfor common patterns) - Look for API client libraries pointing to internal services
- Find shared dependencies or monorepo references
- Identify external service integrations (databases, APIs, message queues)
- Check for
.gitmodules,workspacedeclarations, or subpackage references
- Search for imports/requires referencing other repos (use
Technology Detection
- Identify primary programming language(s)
- Find frameworks and major dependencies
- Detect build systems and tooling
- Note testing frameworks and CI/CD configuration
Phase 2: Document Generation
For each document type, follow the structured templates in examples/. Templates contain:
- Section headers with placeholder content
- Specific placeholders for integration points
- Cross-repository dependency sections
Key Principle: Every generated document must include an "Integrations" or "Related Repositories" section that explicitly documents:
- Which other repositories this repo depends on
- How this repo is consumed by other repositories
- External services and dependencies
- Data flow between repositories
Phase 3: Existing Document Updates
When updating existing documentation:
- Read the current document using
Read - Compare against current codebase state
- Identify gaps (missing features, outdated integrations, stale dependencies)
- Use
Editto update specific sections - Preserve existing voice and formatting where appropriate
- Add newly discovered integration points
Document Types
README.md
The primary entry point for the repository. Use examples/README-template.md as a starting point.
Required sections:
- Project title and brief description
- Integration points with other repositories
- Quick start / Installation
- Usage examples
- API/CLI reference (link to detailed docs if separate)
- Contributing (link to CONTRIBUTING.md)
- License
API Documentation
Document public APIs, functions, classes, and endpoints. Use examples/API-template.md.
Required sections:
- Overview
- Authentication/Authorization
- Endpoints/Functions with signatures
- Request/response examples
- Error handling
- Rate limits (if applicable)
- Integration points with other services
CONTRIBUTING.md
Guide for contributors. Use examples/CONTRIBUTING-template.md.
Required sections:
- Prerequisites (other repos to clone, tools to install)
- Development setup
- Running tests
- Code style guidelines
- Pull request process
- Related repositories and their roles
ARCHITECTURE.md
High-level design and integration documentation. Use examples/ARCHITECTURE-template.md.
Required sections:
- System overview
- Component diagram (describe verbally or use Mermaid)
- Cross-repository architecture
- Data flow between repositories
- Design decisions and rationale
- Scaling considerations
INTEGRATIONS.md (Optional but Recommended)
Dedicated document for cross-repository relationships. Use examples/INTEGRATIONS-template.md.
Sections:
- Upstream dependencies (repos/services this depends on)
- Downstream consumers (repos/services that depend on this)
- Sibling repositories (related repos in the same ecosystem)
- External services
- Communication protocols between services
Integration Discovery Guidelines
When scanning for integration points, search for:
| Pattern | Indicates |
|---|---|
from @org/ |
Internal package/repo imports (JS/TS) |
import.*internal |
Internal imports (Python/Java) |
github.com/org/ |
Go module references to other repos |
client.*[Aa]pi |
API clients |
Установить repo-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл repo-docs?
This skill should be used when the user asks to "generate repository documentation", "create a README", "document API", "write architecture docs", "add CONTRIBUTING guide", "update repo docs", "document codebase", or mentions repository documentation, codebase analysis, or cross-repository integration documentation.
Как установить скилл repo-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл repo-docs запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic