Files
T
Luong NGUYEN 0f8012c36e docs: sync to Claude Code v2.1.126 (six new releases since April 27) (#111)
Bumps tutorial coverage from v2.1.119 → v2.1.126 (May 1, 2026 release).
v2.1.120 was rolled back on its first release day (2026-04-24) but
re-released 2026-04-28 with regressions fixed; v2.1.124/125 skipped.

New feature documentation:
- claude project purge (v2.1.126) — 10-cli
- claude plugin prune / --prune (v2.1.121) — 07-plugins, 10-cli
- claude ultrareview [target] (v2.1.120) — 10-cli
- ${CLAUDE_EFFORT} placeholder + type-to-filter /skills (v2.1.120-121) — 03-skills
- alwaysLoad MCP server config option (v2.1.121) — 05-mcp
- PostToolUse.updatedToolOutput for non-MCP tools (v2.1.121) — 06-hooks
- ANTHROPIC_BEDROCK_SERVICE_TIER, AI_AGENT env vars — 10-cli
- --dangerously-skip-permissions extended path coverage — 09-advanced-features
- Windows PowerShell-as-primary-shell + /model gateway discovery (v2.1.126)
- OAuth code paste fallback (v2.1.126) — 10-cli

Fixes:
- xhigh missing from 03-skills effort enum (regression from April 24)
- README.md latest-version claims (lines 105, 204) and version badge
- CHANGELOG.md v2.4.0 stale "v2.1.120 was rolled back" paragraph

Footer refresh: 22 in-scope English files bumped to May 2, 2026 / 2.1.126.
Localized vi/zh/uk/ja trees out of scope (community-maintained).
2026-05-03 00:07:51 +02:00

2.7 KiB

Claude How To

Documentation Plugin

Comprehensive documentation generation and maintenance for your project.

Features

API documentation generation README creation and updates Documentation synchronization Code comment improvements Example generation

Installation

/plugin install documentation

What's Included

Slash Commands

  • /generate-api-docs - Generate API documentation
  • /generate-readme - Create or update README
  • /sync-docs - Sync docs with code changes
  • /validate-docs - Validate documentation

Subagents

  • api-documenter - API documentation specialist
  • code-commentator - Code comment improvements
  • example-generator - Code example creation

Templates

  • api-endpoint.md - API endpoint documentation template
  • function-docs.md - Function documentation template
  • adr-template.md - Architecture Decision Record template

MCP Servers

  • GitHub integration for documentation syncing

Usage

Generate API Documentation

/generate-api-docs

Create README

/generate-readme

Sync Documentation

/sync-docs

Validate Documentation

/validate-docs

Requirements

  • Claude Code 1.0+
  • GitHub access (optional)

Example Workflow

User: /generate-api-docs

Claude:
1. Scans all API endpoints in /src/api/
2. Delegates to api-documenter subagent
3. Extracts function signatures and JSDoc
4. Organizes by module/endpoint
5. Uses api-endpoint.md template
6. Generates comprehensive markdown docs
7. Includes curl, JavaScript, and Python examples

Result:
✅ API documentation generated
📄 Files created:
   - docs/api/users.md
   - docs/api/auth.md
   - docs/api/products.md
📊 Coverage: 23/23 endpoints documented

Templates Usage

API Endpoint Template

Use for documenting REST API endpoints with full examples.

Function Documentation Template

Use for documenting individual functions/methods.

ADR Template

Use for documenting architectural decisions.

Configuration

Set up GitHub token for documentation syncing:

export GITHUB_TOKEN="your_github_token"

Best Practices

  • Keep documentation close to code
  • Update docs with code changes
  • Include practical examples
  • Validate regularly
  • Use templates for consistency

Last Updated: May 2, 2026 Claude Code Version: 2.1.126 Sources: