Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

repo-docs

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when the user asks to "generate repository documentation", "create a README", "document API", "write architecture docs", "add…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub3 установки в других каталогах

Об этом скилле

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:

  1. Repository Structure

    • Use Glob to 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/, *.md files)
  2. Cross-Repository Integration Discovery

    • Search for imports/requires referencing other repos (use Grep for 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, workspace declarations, or subpackage references
  3. 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:

  1. Read the current document using Read
  2. Compare against current codebase state
  3. Identify gaps (missing features, outdated integrations, stale dependencies)
  4. Use Edit to update specific sections
  5. Preserve existing voice and formatting where appropriate
  6. 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
Полный SKILL.md на GitHub

Установить repo-docs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/API-template.mdexamples/ARCHITECTURE-template.mdexamples/CONTRIBUTING-template.mdexamples/INTEGRATIONS-template.mdexamples/README-template.mdreferences/integration-patterns.mdreferences/tech-detection.mdscripts/analyze-repo-structure.pyscripts/find-integration-points.pyskill-report.json

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить repo-docs с