technical-docs
Standards and best practices for creating technical documentation. Use when the user requests documentation updates or asks to create README files, API docs…
от danchamorro★ 18 звёзд на GitHub
Установить technical-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Technical Documentation Standards
Follow these guidelines to create clear, maintainable technical documentation across all formats.
Using This Skill
When creating or updating documentation:
- Identify the documentation type (README, API docs, docstrings, user guide)
- Apply the relevant sections below based on the type
- Follow the Documentation Workflow (Section 3) as the process guide
- Use Core Writing Standards (Section 4) for all content
- Reference
references/diagrams.mdguidelines when adding visual elements - Reference
references/examples.mdfor complete before/after samples - Run through the Quality Checklist (Section 8) before finalizing
- Optionally use
scripts/validate_docs.pyto automate validation checks
For docstrings: Focus on "Python Documentation" section (6.1) For API docs: Focus on "API Documentation" section (5) For guides/READMEs: Apply "Core Writing Standards" comprehensively (Section 4)
Documentation Workflow
Follow this workflow when creating documentation:
- Understand the audience and purpose - Determine technical depth needed
- Structure the content - Use logical hierarchy with clear sections
- Write concisely - Active voice, present tense, focused sentences
- Include examples - Provide runnable code samples
- Validate accuracy - Cross-reference with actual implementation
- Review for clarity - Read from target audience perspective
Core Writing Standards
Structure and Organization
- Start with concise overview explaining "what" and "why"
- Use hierarchical headings (H1 → H2 → H3) for logical flow
- Include table of contents for documents >3 sections
- Place most important information first (inverted pyramid)
- Group related concepts in coherent sections
Writing Style
- Use active voice and present tense: "The function returns" not "will return"
- For user-facing instructions, write in second person: "You can configure"
- Keep sentences concise and single-focused
- Define technical terms on first use
- Maintain consistent terminology (avoid synonym alternation)
Code Examples
- Provide complete, runnable examples demonstrating real use cases
- Include both basic and advanced examples when appropriate
- Add comments explaining non-obvious logic
- Show expected output/results when relevant
- Use syntax highlighting with proper language tags
- Follow project coding standards (type hints, docstrings, etc.)
Formatting Conventions
- Use code blocks (```) for multi-line code, inline code (`) for short references
- Format file paths, commands, environment variables as code
- Bold for important concepts, italics for emphasis (sparingly)
- Use bullet points for lists, numbered lists for sequential steps
API Documentation
Document APIs with these required elements:
- Document all parameters with types, descriptions, required/optional status
- Specify return types and possible return values
- List all exceptions/errors with triggering conditions
- Include authentication/authorization requirements
- Provide curl examples or SDK usage examples
- Document rate limits, pagination, constraints
Project-Specific Conventions
Python Documentation
Follow these Python-specific standards from the project:
Docstring Format:
- Use Sphinx-style docstrings:
:param,:returns,:raises - Include type hints in all function signatures (not just in docstrings)
- Document each parameter, return value, and exception
Example from this codebase:
def build_audience(
self,
target_type: TargetType,
source: MatchSource | ListSource,
name: str,
*,
description: str = "",
external_id: str = "",
) -> AudienceBuildResponse:
"""Build a new audience using the Bridge API.
:param target_type: Type of audience target (INDIVIDUAL or HOUSEHOLD)
:param source: Source configuration (MatchSource for file matching, ListSource for lists)
:param name: Human-readable audience name
:param description: Optional audience description
:param external_id: Optional external identifier for tracking
:returns: Response containing process ID and initial status
:raises BridgeAPIError: If API request fails
:raises ValueError: If required credentials are missing
"""
Code Documentation Patterns:
- Reference Pydantic models for data structures
- Document context managers and resource cleanup
- Explain purpose of explicit flags and typed parameters
- Show proper enum usage (e.g.,
TargetType.INDIVIDUALnot strings) - Include logging examples with loguru-style format strings:
logger.info("Building audience for client {}", client_name)
Resource Management: Document context managers with cleanup guarantees:
@contextmanager
def _resource_context(self) -> Generator[Resource, None, None]:
"""Context manager for resource lifecycle.
Ensures proper cleanup in both test and production scenarios.
:yields: Configured
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/diagrams.md
- references/examples.md
- scripts/validate_docs.py
FAQ
Что делает скилл technical-docs?
Standards and best practices for creating technical documentation. Use when the user requests documentation updates or asks to create README files, API docs, user guides, or docstrings.
Как установить скилл technical-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл technical-docs запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…