К основному содержанию
скилл CX Codex

project-docs — скилл для Claude Code: что делает и как установить

Скилл сканирует репозиторий и создаёт актуальные файлы ARCHITECTURE.md, API_ENDPOINTS.md и DATABASE_SCHEMA.md. Он полезен при онбординге новичков или после масштабного рефакторинга.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add jezweb/claude-skills --skill project-docs -a claude-code
Открыть на GitHub

Что делает project-docs

Скилл исследует реальное состояние кодовой базы, а не абстрактные планы разработчиков. Сначала он определяет тип проекта по конфигурационным файлам вроде package.json, Cargo.toml или pyproject.toml. Ручной ввод параметров здесь минимален. Затем агент предлагает выбрать только подходящие документы: для чисто статического сайта он не станет предлагать схему базы данных.

Для архитектурного обзора агент изучает точки входа, конфиги и первые два уровня каталогов. Чтобы зафиксировать API и базу данных, он разбирает маршруты, схемы Zod, файлы миграций и модели Drizzle. Скилл сохраняет ручные правки. Если документация уже лежит в папке docs/, он показывает диф и обновляет только расхождения с кодом. В манифесте указано claude-code-only, поэтому в других средах поведение может отличаться.

Какие задачи решает

  • сформировать ARCHITECTURE.md с деревом каталогов и ключевыми потоками данных
  • задокументировать маршруты, типы ответов и авторизацию в API_ENDPOINTS.md
  • описать таблицы, связи и миграции базы данных в DATABASE_SCHEMA.md
  • обновить устаревшую документацию проекта без потери ручных заметок

Примеры запросов агенту

  • Сгенерируй документацию по архитектуре проекта и сохрани её в ARCHITECTURE.md
  • Проанализируй маршруты в коде и создай API_ENDPOINTS.md
  • Проверь схему базы данных и обнови DATABASE_SCHEMA.md

Как установить project-docs

1Через Skills CLI (Vercel)

npx skills add jezweb/claude-skills --skill project-docs -a claude-code

2Вручную: положить файлы

~/.claude/skills/project-docs/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/project-docs/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора54

github-release Готовит GitHub-релиз: проверяет код перед публикацией, создаёт тег и выпускает релиз через gh. Нужен перед открытой публикацией репозитория. CX Codex +1 1 300установок d1-migration Ведёт миграции Cloudflare D1 через Drizzle: генерация SQL, проверка на опасные места, применение к локальной и удалённой базе, починка зависших миграций. CX Codex +1 1 200установок proposal-writer Помогает составить коммерческое предложение, смету или SOW для сервисного бизнеса. Пригодится веб-разработчикам, консультантам и агентствам при согласовании условий с клиентом. CX Codex +1 1 200установок shopify-content Создаёт и обновляет контент магазина Shopify через Admin API или автоматизацию браузера. Нужен для страниц, статей, меню, редиректов и SEO-полей. CX Codex +1 1 200установок git-workflow Ведёт агента по операциям Git: подготовке PR, чистке веток, разрешению конфликтов и выпуску тегов в монорепозитории. CX Codex +1 1 200установок resume-cover-letter Пишет резюме, CV или сопроводительное письмо под конкретную вакансию с учётом формата региона и требований ATS. CX Codex +1 1 200установок shopify-setup Настраивает Shopify CLI и постоянный Admin API токен для магазина. Пригодится, когда нужно безопасно подключить магазин и проверить доступ к товарам через GraphQL. CX Codex +1 1 200установок google-chat-messages Скилл учит агента отправлять сообщения в Google Chat через входящий вебхук: текст, карточки cardsV2 и ответы в ветке. CX Codex +1 1 200установок

Похожие

project-documenter официальный Awesome Copilot Community Создаёт документацию репозитория в Markdown и Word, добавляя схемы draw.io и PNG-изображения. Нужен, когда кодовую базу требуется описать по её реальной структуре. ★ 40 418звёзд репо get-api-docs andrewyng Скилл для получения свежей документации по API, SDK и библиотекам прямо из IDE. Вместо того чтобы полагаться на обучающие данные, которые могли устаревать, используй chub для поиска и загрузки актуальных справочников перед написанием кода. CX Codex +1 1 300установок project-workflow-analysis-blueprint-generator официальный github Скилл для GitHub Copilot, который разбирает архитектуру проекта и описывает сквозные рабочие процессы. Пригодится для подготовки шаблонов реализации и документации. 9 366установок codebase-documenter ailabs-393 Скилл помогает создавать понятные README, описания архитектуры, комментарии к коду и документацию к API. Пригодится, когда нужно быстро ввести новых разработчиков в проект. CX Codex +1 1 500установок backend-to-frontend-handoff-docs davila7 Скилл собирает API-хендофф-документ для фронтенд-разработчиков: эндпоинты, DTO, валидация и граничные случаи в одном markdown-файле. 164установок design-doc-mermaid SpillwaveSolutions Генерирует диаграммы Mermaid и техническую документацию по коду или описанию задачи. Подходит для оформления GitHub wiki, системных архитектур и схем баз данных. CX Codex +1 80 700установок

Рядом в теме «Тексты и документация»

Всё по теме «Тексты и документация» →

Вопросы о project-docs

Как установить project-docs в Claude Code?

Выполните команду npx skills add jezweb/claude-skills --skill project-docs -a claude-code. Файл сохранится по пути ~/.claude/skills/project-docs/SKILL.md.

Какие документы умеет создавать project-docs?

Скилл формирует файлы ARCHITECTURE.md, API_ENDPOINTS.md и DATABASE_SCHEMA.md. Он сканирует кодовую базу и предлагает создать только те отчёты, которые подходят стеку проекта.

Что произойдёт, если документация уже существует?

Скилл прочитает текущий файл, сравнит его со свежим кодом и покажет разницу. Ручные заметки и кастомные разделы останутся на месте, потому что инструмент обновляет структуру без слепого перезаписывания.

Исходный текст

SKILL.md · MIT
---
name: project-docs
description: "Generate project documentation from codebase analysis — ARCHITECTURE.md, API_ENDPOINTS.md, DATABASE_SCHEMA.md. Reads source code, schema files, routes, and config to produce accurate, structured docs. Use when starting a project, onboarding contributors, or when docs are missing or stale. Triggers: 'generate docs', 'document architecture', 'create api docs', 'document schema', 'project documentation', 'write architecture doc'."
allowed-tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - Bash
compatibility: claude-code-only
---

# Project Documentation Generator

Generate structured project documentation by analysing the codebase. Produces docs that reflect the **actual code**, not aspirational architecture.

## When to Use

- New project needs initial documentation
- Docs are missing or stale
- Onboarding someone to the codebase
- Post-refactor doc refresh

## Workflow

### 1. Detect Project Type

Scan the project root to determine what kind of project this is:

| Indicator | Project Type |
|-----------|-------------|
| `wrangler.jsonc` / `wrangler.toml` | Cloudflare Worker |
| `vite.config.ts` + `src/App.tsx` | React SPA |
| `astro.config.mjs` | Astro site |
| `next.config.js` | Next.js app |
| `package.json` with `hono` | Hono API |
| `src/index.ts` with `Hono` | API server |
| `drizzle.config.ts` | Has database layer |
| `schema.ts` or `schema/` | Has database schema |
| `pyproject.toml` / `setup.py` | Python project |
| `Cargo.toml` | Rust project |

### 2. Ask What to Generate

```
Which docs should I generate?
1. ARCHITECTURE.md — system overview, stack, directory structure, key flows
2. API_ENDPOINTS.md — routes, methods, params, response shapes, auth
3. DATABASE_SCHEMA.md — tables, relationships, migrations, indexes
4. All of the above
```

Only offer docs that match the project. Don't offer API_ENDPOINTS.md for a static site. Don't offer DATABASE_SCHEMA.md if there's no database.

### 3. Scan the Codebase

For each requested doc, read the relevant source files:

**ARCHITECTURE.md** — scan:
- `package.json` / `pyproject.toml` (stack, dependencies)
- Entry points (`src/index.ts`, `src/main.tsx`, `src/App.tsx`)
- Config files (`wrangler.jsonc`, `vite.config.ts`, `tsconfig.json`)
- Directory structure (top 2 levels)
- Key modules and their exports

**API_ENDPOINTS.md** — scan:
- Route files (`src/routes/`, `src/api/`, or inline in index)
- Middleware files (auth, CORS, logging)
- Request/response types or Zod schemas
- Error handling patterns

**DATABASE_SCHEMA.md** — scan:
- Drizzle schema files (`src/db/schema.ts`, `src/schema/`)
- Migration files (`drizzle/`, `migrations/`)
- Raw SQL files if present
- Seed files if present

### 4. Generate Documentation

Write each doc to `docs/` (create the directory if it doesn't exist). If the project already has docs there, offer to update rather than overwrite.

For small projects with no `docs/` directory, write to the project root instead.

## Document Templates

### ARCHITECTURE.md

```markdown
# Architecture

## Overview
[One paragraph: what this project does and how it's structured]

## Stack
| Layer | Technology | Version |
|-------|-----------|---------|
| Runtime | [e.g. Cloudflare Workers] | — |
| Framework | [e.g. Hono] | [version] |
| Database | [e.g. D1 (SQLite)] | — |
| ORM | [e.g. Drizzle] | [version] |
| Frontend | [e.g. React 19] | [version] |
| Styling | [e.g. Tailwind v4] | [version] |

## Directory Structure
[Annotated tree — top 2 levels with purpose comments]

## Key Flows
### [Flow 1: e.g. "User Authentication"]
[Step-by-step: request → middleware → handler → database → response]

### [Flow 2: e.g. "Data Processing Pipeline"]
[Step-by-step through the system]

## Configuration
[Key config files and what they control]

## Deployment
[How to deploy, environment variables needed, build commands]
```

### API_ENDPOINTS.md

```markdown
# API Endpoints

## Base URL
[e.g. `https://api.example.com` or relative `/api`]

## Authentication
[Method: Bearer token, session cookie, API key, none]
[Where tokens come from, how to obtain]

## Endpoints

### [Group: e.g. Users]

#### `GET /api/users`
- **Auth**: Required
- **Params**: `?page=1&limit=20`
- **Response**: `{ users: User[], total: number }`

#### `POST /api/users`
- **Auth**: Required (admin)
- **Body**: `{ name: string, email: string }`
- **Response**: `{ user: User }` (201)
- **Errors**: 400 (validation), 409 (duplicate email)

[Repeat for each endpoint]

## Error Format
[Standard error response shape]

## Rate Limits
[If applicable]
```

### DATABASE_SCHEMA.md

```markdown
# Database Schema

## Engine
[e.g. Cloudflare D1 (SQLite), PostgreSQL, MySQL]

## Tables

### `users`
| Column | Type | Constraints | Description |
|--------|------|-------------|-------------|
| id | TEXT | PK | UUID |
| email | TEXT | UNIQUE, NOT NULL | User email |
| name | TEXT | NOT NULL | Display name |
| created_at | TEXT | NOT NULL, DEFAULT now | ISO timestamp |

### `posts`
[Same format]

## Relationships
[Foreign keys, join patterns, cascading rules]

## Indexes
[Non-primary indexes and why they exist]

## Migrations
- Generate: `npx drizzle-kit generate`
- Apply local: `npx wrangler d1 migrations apply DB --local`
- Apply remote: `npx wrangler d1 migrations apply DB --remote`

## Seed Data
[Reference to seed script if one exists]
```

## Quality Rules

1. **Document what exists, not what's planned** — read the actual code, don't invent endpoints or tables
2. **Include versions** — extract from package.json/lock files, not from memory
3. **Show real response shapes** — copy from TypeScript types or Zod schemas in the code
4. **Keep it scannable** — tables over paragraphs, code blocks over prose
5. **Don't duplicate CLAUDE.md** — if architecture info is already in CLAUDE.md, either move it to ARCHITECTURE.md or reference it
6. **Flag gaps** — if you find undocumented routes or tables without clear purpose, note them with `<!-- TODO: document purpose -->`

## Updating Existing Docs

If docs already exist:
1. Read the existing doc
2. Diff against the current codebase
3. Show the user what's changed (new endpoints, removed tables, updated stack)
4. Apply updates preserving any hand-written notes or sections

Never silently overwrite custom content the user has added to their docs.

© jezweb · MIT · jezweb/claude-skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой