document-guideline
БесплатноБез исполняемых скриптовНе проверенInstructs AI agents on documentation standards for design docs, folder READMEs, source code interfaces, and test cases
Об этом скилле
Document Guideline
This skill instructs AI agents on how to maintain comprehensive documentation throughout the development lifecycle. It defines documentation standards that are enforced via pre-commit linting for structural requirements, while providing guidance on content quality and workflow integration.
Documentation Philosophy
Good documentation is:
- Comprehensive: Covers all code files, folders, and high-level designs
- Enforced: Structural requirements validated automatically via pre-commit linting
- Design-first: Documentation written before implementation (following TDD approach)
- Milestone-friendly: Documentation-code inconsistency acceptable during incremental development
- Self-descriptive: Each file, folder, and component documents its purpose and interfaces
Documentation Types
This project maintains three levels of documentation:
- High-level design documents (
docs/*) - Architecture and design decisions - Folder organization (folder
README.mdfiles) - Purpose and file organization - Code interface documentation (
.mdcompanions to source files) - External and internal APIs
High-Level Design Documentation
Location: docs/* directory
Purpose: Document architectural decisions, design rationale, and high-level project structure.
When to create/update:
- During planning phase (before implementation)
- When making architectural decisions
- When introducing new subsystems or major features
- When documenting workflows or processes
Not enforced by linting: Creating design documents requires human judgment about what constitutes a "high-level design" versus implementation details.
Content guidelines:
- Focus on the "why" (design rationale) not just the "what"
- Document alternatives considered and trade-offs
- Include diagrams, workflows, or examples where helpful
- Keep design docs synchronized with actual implementation
Examples of good design documents:
docs/git-msg-tags.md- Documents commit message tag standardsdocs/developer.md- Developer workflow and contribution guidelinesdocs/options.md- SDK configuration options and usage
When NOT to create design docs:
- For simple implementation details (put in code
.mdfiles instead) - For temporary decisions or experiments
- For information that duplicates existing documentation
Folder Organization Documentation
Requirement: Every folder (except hidden folders like .git) MUST have a README.md file.
Enforced by: Pre-commit linting (scripts/lint-documentation.sh)
Purpose: Document folder purpose and file organization so developers can quickly understand the codebase structure.
When to create:
- When creating a new folder in the project
- Before committing any code that introduces a new directory
Required content:
- Folder purpose: What is this folder for? (1-2 sentences)
- File organization: What types of files are in this folder?
- Key files: Brief description of important files (optional)
Examples of good folder README.md:
# Skills Directory
This directory contains all Claude Code skills that define AI agent behavior.
## Organization
Each skill is in its own subdirectory with a `SKILL.md` file:
- `commit-msg/` - Skill for creating meaningful git commits
- `fork-dev-branch/` - Skill for creating development branches
- `milestone/` - Skill for incremental implementation with milestone commits
## Adding New Skills
Create a new subdirectory and add a `SKILL.md` file with frontmatter defining
the skill name and description.
Format flexibility:
- Can be brief (3-5 lines) for simple folders
- Can be detailed for complex subsystems
- Should reference key files if there are many files
Source Code Interface Documentation
Requirement: Every source code file MUST have a corresponding .md file documenting its interfaces.
File types requiring documentation (enforced by linting):
- Python:
*.py→*.md - C/C++:
*.c,*.cpp,*.cxx,*.cc→*.md
Enforced by: Pre-commit linting (scripts/lint-documentation.sh)
Naming convention: Same prefix as source file
foo.py→foo.mdbar.cpp→bar.mdbaz.c→baz.md
Required sections:
1. External Interfaces (Public APIs)
Document all interfaces exposed to external callers:
- Public functions/methods with signatures
- Public classes/structures with key attributes
- Module-level exports or entry points
- Expected inputs and outputs
- Error conditions and exceptions
2. Internal Helpers (Private APIs)
Document internal implementation details:
- Private functions and their purpose
- Internal data structures
- Helper utilities
- Algorithms or complex logic explanations
Example interface documentation:
# validate_target_dir.sh
Script for validating target directories before SDK initialization.
## External Interface
### Command-line usage
```bash
./v
Установить document-guideline в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл document-guideline?
Instructs AI agents on documentation standards for design docs, folder READMEs, source code interfaces, and test cases
Как установить скилл document-guideline?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл document-guideline запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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