docs-management
Single source of truth and librarian for ALL Claude official documentation. Manages local documentation storage, scraping, discovery, and resolution. Use when finding, locating, searching, or resolving Claude documentation; discovering docs by keywords, category, tags, or natural language queries; scraping from sitemaps or docs maps; managing index metadata (keywords, tags, aliases); or rebuilding index from filesystem. Run scripts to scrape, find, and resolve documentation. Handles doc_id resolution, keyword search, natural language queries, category/tag filtering, alias resolution, sitemap.xml parsing, docs map processing, markdown subsection extraction for internal use, hash-based drift detection, and comprehensive index maintenance.
What this skill does
# Claude Docs Management
## ๐จ๐จ๐จ MANDATORY: Hybrid Parallel Pattern ๐จ๐จ๐จ
> **STOP - Before using this skill for ANY Claude Code documentation query:**
>
> **IF YOU ARE THE MAIN AGENT**, you MUST invoke BOTH sources **in the same message**:
>
> 1. **This skill** (`docs-management`) - local cache, token-efficient
> 2. **`claude-code-guide` subagent** - live web search
>
> ```text
> [Skill tool: docs-management]
> "Find documentation about {topic}"
>
> [Task tool: claude-code-guide] (SAME MESSAGE - USE THIS EXACT PROMPT)
> "First WebFetch https://code.claude.com/docs/en/claude_code_docs_map.md to find
> relevant doc pages about {topic}. Then WebFetch those specific pages. Use WebSearch
> only if needed for additional context. Do NOT use Skill tool (not available).
> Return key findings with source URLs."
> ```
>
> **โ ๏ธ CRITICAL:** claude-code-guide does NOT have Skill tool access. Always prompt it
> to use **WebSearch/WebFetch explicitly**. If you see "No such tool: Skill" error,
> you prompted it wrong.
>
> **This is AUTOMATIC. Do NOT wait for user to ask for it.**
>
> **IF YOU ARE A SUBAGENT**: Note in your response that main agent should also query `claude-code-guide`.
---
## ๐จ CRITICAL: Path Doubling Prevention - MANDATORY
**ABSOLUTE PROHIBITION: NEVER use `cd` with `&&` in PowerShell when running scripts from this skill.**
**The Problem:** If your current working directory is already inside the skill directory, using relative paths causes PowerShell to resolve paths relative to the current directory instead of the repository root, resulting in path doubling.
**REQUIRED Solutions (choose one):**
1. **โ
ALWAYS use helper scripts** (recommended - they handle path resolution automatically)
2. **โ
Use absolute path resolution** (if not using helper script)
3. **โ
Use separate commands** (never `cd` with `&&`)
**NEVER DO THIS:**
- โ Chain `cd` with `&&`: `cd <relative-path> && python <script>` causes path doubling
- โ Assume current directory
- โ Use relative paths when current dir is inside skill directory
**For all scripts:** Always run from repository root using relative paths, OR use helper scripts that handle path resolution automatically.
## ๐จ CRITICAL: Large File Handling - MANDATORY SCRIPT USAGE
### โ ๏ธ ABSOLUTE PROHIBITION: NEVER use read_file tool on the index.yaml file
The file exceeds 25,000 tokens and will ALWAYS fail. You MUST use scripts.
**โ
REQUIRED: ALWAYS use manage_index.py scripts for ANY index.yaml access:**
```bash
python scripts/management/manage_index.py count
python scripts/management/manage_index.py list
python scripts/management/manage_index.py get <doc_id>
python scripts/management/manage_index.py verify
```
All scripts automatically handle large files via `index_manager.py`.
## Available Slash Commands
Use the consolidated `docs-ops` skill for common workflows:
- **`/claude-ecosystem:docs-ops scrape`** - Scrape all configured Claude documentation sources, then refresh index and validate
- **`/claude-ecosystem:docs-ops refresh`** - Refresh the local index and metadata without scraping from remote sources
- **`/claude-ecosystem:docs-ops validate`** - Validate the index and references for consistency and drift without scraping
- **`/claude-ecosystem:docs-ops rebuild-index`** - Force rebuild the search index from filesystem
- **`/claude-ecosystem:docs-ops clear-cache`** - Clear the documentation search cache
## Overview
This skill provides automation tooling for documentation management. It manages:
- **Canonical storage** (encapsulated in skill) - Single source of truth for official docs
- **Subsection extraction** - Token-optimized extracts for skills (60-90% savings)
- **Drift detection** - Hash-based validation against upstream sources
- **Sync workflows** - Quarterly maintenance automation
- **Documentation discovery** - Keyword-based search and doc_id resolution
- **Index management** - Metadata, keywords, tags, aliases for resilient references
**Core value:** Prevents link rot, enables offline access, optimizes token costs, automates maintenance, and provides resilient doc_id-based references.
## Quick Reference: Which Command to Use
| I want to... | Command | Example |
|--------------|---------|---------|
| Find docs by keywords | `search` | `search skills progressive` |
| Find docs by natural language | `query` | `query "how to create skills"` |
| Get full document content | `content` | `content code-claude-com-docs-en-skills` |
| Get specific section | `content --section` | `content <doc_id> --section "metadata"` |
| Resolve doc_id to path | `resolve` | `resolve code-claude-com-docs-en-skills` |
| Find related docs | `related` | `related code-claude-com-docs-en-skills` |
| List docs by category | `category` | `category api` |
| List docs by tag | `tag` | `tag skills` |
**Key Workflow:** `search` by keywords โ Get `doc_id` from results โ `content` by doc_id
**Important distinctions:**
- `search` and `query` accept **flexible keywords** (no full doc_id needed)
- `content`, `resolve`, and `related` require **full doc_id** (e.g., `code-claude-com-docs-en-skills`)
## When to Use This Skill
This skill should be used when:
- **Scraping documentation** - Fetching docs from sitemaps or docs maps
- **Finding documentation** - Searching for docs by keywords, category, or natural language
- **Resolving doc references** - Converting doc_id to file paths
- **Managing index metadata** - Adding keywords, tags, aliases, updating metadata
- **Rebuilding index** - Regenerating index from filesystem (handles renames/moves)
## Hybrid Parallel Documentation Strategy
> **CRITICAL: This section is the authoritative source for Claude Code documentation access patterns.**
### Architecture Constraint
**Skills cannot spawn subagents.** Only the main conversation thread can use the Task tool.
This means:
- When **main agent** loads this skill โ Main agent must also invoke `claude-code-guide` in parallel
- When **subagent** loads this skill โ Subagent should note in response that main agent should invoke `claude-code-guide` for live coverage
- When **command** invokes this skill โ Same as main agent (commands run in main context)
### Caller-Aware Guidance
**If you are the main agent:**
- You MUST invoke both this skill AND `claude-code-guide` subagent in the SAME message
- This is the only way to get comprehensive Claude Code documentation coverage
**If you are a subagent:**
- You CANNOT invoke `claude-code-guide` yourself (architectural constraint)
- Include in your response: "For comprehensive coverage, main agent should also query claude-code-guide subagent"
- Proceed with local cache results
### Always-Parallel Pattern (Main Agent Only)
**โ ๏ธ MANDATORY DEFAULT BEHAVIOR - NOT OPTIONAL:**
When ANY Claude Code documentation query is detected, the main agent MUST automatically:
1. Invoke `docs-management` skill (local cache)
2. Spawn `claude-code-guide` subagent (live web) **in the same message**
**This is automatic. The user does NOT need to ask for it.**
#### Detection Triggers
Use both sources automatically when user asks about:
- Claude Code features (hooks, skills, memory, MCP, plugins, settings, etc.)
- How to do something in Claude Code
- Claude Code configuration or troubleshooting
- Any topic in the Claude Code documentation
#### Same-Message Parallel Invocation
```text
# Main agent sends BOTH in a single message (AUTOMATIC):
[Skill tool: docs-management]
"Find documentation about {topic}"
[Task tool: claude-code-guide] (same message = parallel execution)
"First WebFetch https://code.claude.com/docs/en/claude_code_docs_map.md to find
relevant doc pages about {topic}. Then WebFetch those specific pages. Use WebSearch
only if needed for additional context. Do NOT use Skill tool (not available).
Return key findings with source URLs."
```
**IMPORTANT:** `claude-code-guide` is a built-in subagent with tools: `Glob, Grep, Read, WebFetch, WebSearch`.
It does NOT have the `Skill` tool Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing โ use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.