Skip to main content
skill CX Codex

claude-docs-consultant — Claude Code skill: what it does, install

claude-docs-consultant pulls official Claude Code documentation directly from code.claude.com on demand. Fetches only the markdown files needed for the active task.

MIT ★ 2,744 updated 2026-10-08

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add centminmod/my-claude-code-setup --skill claude-docs-consultant -a claude-code
Open on GitHub

What claude-docs-consultant does

This skill routes documentation queries directly to specific markdown files hosted on code.claude.com. Instead of dumping entire guides into context, it maps the current task to an exact doc name and retrieves it via WebFetch.

Frequent topics like hooks, MCP configuration, permissions, plugins, agent teams, and CLAUDE.md memory rules have direct routing entries. For everything else, it consults a reference table covering over 60 pages or fetches claude_code_docs_map.md to discover new endpoints.

Active network access is mandatory because the skill pulls live web content and explicitly forbids relying on memorized or cached fallback notes.

What it helps with

  • verify hook lifecycle events and API syntax against official guides
  • configure MCP servers and permission rules without outdated flags
  • integrate Claude Code into GitHub Actions CI workflows
  • format project rules inside CLAUDE.md using official standards

Example prompts for the agent

  • Help me create a pre-tool-use hook to log tool calls
  • How do I install a plugin from the Claude Code marketplace?
  • Check the official documentation for Claude Code output styles

How to install claude-docs-consultant

1Skills CLI (Vercel)

npx skills add centminmod/my-claude-code-setup --skill claude-docs-consultant -a claude-code

2Manually: put the files in place

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

Copy the whole skill folder; for one project use .claude/skills/claude-docs-consultant/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about claude-docs-consultant

How do I install claude-docs-consultant in Claude Code?

Run npx skills add centminmod/my-claude-code-setup --skill claude-docs-consultant -a claude-code. Alternatively, place the file into ~/.claude/skills/claude-docs-consultant/SKILL.md.

What does claude-docs-consultant do?

It maps your task to the corresponding markdown file on code.claude.com and fetches the documentation live without bloating context.

Does claude-docs-consultant use cached documentation?

No, it strictly fetches current markdown files from code.claude.com through WebFetch to avoid outdated instructions.

Source text

SKILL.md · MIT
---
name: claude-docs-consultant
description: Consult official Claude Code documentation from code.claude.com using selective fetching. Use when working on hooks, skills, subagents, plugins, agent teams, MCP servers, permissions, settings, CI/CD (GitHub Actions, GitLab), IDE extensions (VS Code, JetBrains), desktop/web app features, scheduling, memory/CLAUDE.md, deployment (Bedrock, Vertex, Foundry), sandboxing, monitoring, or any Claude Code feature requiring official docs. Fetches only the specific docs needed per task.
metadata:
  version: 2.0.0
---

# Claude Docs Consultant

Fetch official Claude Code documentation on-demand from code.claude.com. Uses progressive disclosure: resolve the topic to a filename, then fetch only that doc. Never fetch documentation speculatively.

## URL Pattern

All docs follow this pattern — substitute the filename:

```
https://code.claude.com/docs/en/{filename}.md
```

## Quick Routing (Common Topics)

For these high-frequency topics, fetch directly without consulting the full index:

| Topic | Filename(s) to fetch |
| --- | --- |
| Hooks (creating, events, lifecycle) | `hooks-guide.md` (guide + examples), `hooks.md` (API reference + all events) |
| Skills (creating, SKILL.md format, triggers) | `skills.md` |
| Subagents (types, config, delegation) | `sub-agents.md` |
| Agent Teams (multi-agent, teammates, cowork) | `agent-teams.md` |
| Plugins (creating, marketplace, installing) | `plugins.md` (creating), `discover-plugins.md` (marketplace + installing) |
| MCP Servers (setup, config, scopes) | `mcp.md` |
| Settings (settings.json, config scopes) | `settings.md` |
| Permissions (rules, modes, auto mode) | `permissions.md` (rules + syntax), `permission-modes.md` (plan/auto/dontAsk modes) |
| Memory (CLAUDE.md, auto memory, rules) | `memory.md` |
| GitHub Actions (CI/CD, @claude PR) | `github-actions.md` |

## Full Routing

For topics not listed above, consult `references/docs-index.md` for the complete routing table covering all 60+ documentation pages across platforms, deployment, security, configuration, administration, and reference.

## Workflow

1. **Identify topic** — determine which Claude Code feature the task involves
2. **Route to filename** — use quick routing above, or consult `references/docs-index.md`
3. **Fetch with WebFetch** — use the URL pattern with the resolved filename

Fetch multiple docs in parallel when the task spans multiple topics.

## Fallback: Discovery via Docs Map

If routing does not match any known filename, fetch the documentation map to discover available pages:

```
https://code.claude.com/docs/en/claude_code_docs_map.md
```

Identify the relevant doc from the map, then fetch it using the URL pattern.

## Rules

- Fetch only the docs actually needed for the current task
- Fetch multiple docs in parallel if the task requires 2+ sources
- Always fetch live from code.claude.com — do not use cached or memorized content
- Do not fetch docs "just in case" — fetch when required by the task

## Examples

### Example 1: Creating a Hook

**Task:** "Help me create a pre-tool-use hook to log tool calls"

1. Route: hook creation -> `hooks-guide.md` + `hooks.md`
2. Fetch both in parallel via WebFetch
3. Apply: create hook using guide examples and API reference for PreToolUse event

### Example 2: Installing a Plugin

**Task:** "How do I install plugins from a marketplace?"

1. Route: plugin installing -> `discover-plugins.md`
2. Fetch via WebFetch
3. Apply: follow marketplace and installation instructions

### Example 3: Unknown Feature

**Task:** "How do I configure Claude Code output styles?"

1. Route: not in quick routing table
2. Consult `references/docs-index.md` -> find `output-styles.md` under Configuration
3. Fetch `output-styles.md` via WebFetch
4. Apply: configure output styles per documentation

© centminmod · MIT · centminmod/my-claude-code-setup

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set35

The whole set →
create-readme-section The create-readme-section command for Claude Code generates README sections based on project files. Create installation instructions, API references, or contribution guides. CX Codex +1 ★ 2,744repo stars 01_claudemd_summarise 01_claudemd_summarise — a Claude Code prompt that compresses CLAUDE.md documentation into exactly 120 words in a single paragraph, without headings or lists. Use it to standardize project architecture summaries for AI coding context. GP ChatGPT ★ 2,744repo stars security-audit The security-audit command scans a codebase for vulnerabilities and unsafe patterns across a project or a specific module. CX Codex +1 ★ 2,744repo stars check-best-practices The check-best-practices command reviews code against language-specific standards, conventions, and best practices. It spots issues from critical bugs to style violations and suggests concrete improvements. CX Codex +1 ★ 2,744repo stars explain-architecture-pattern The explain-architecture-pattern command identifies architecture and design patterns in a codebase, then explains the structure behind them. Use it when the project’s organization needs a clear rationale. CX Codex +1 ★ 2,744repo stars convert-to-test-driven-prompt convert-to-test-driven-prompt turns a plain request into a TDD-style prompt with test cases, expected outcomes, and success criteria. Useful when behavior needs to be pinned down before code exists. CX Codex +1 ★ 2,744repo stars batch-operations-prompt batch-operations-prompt transforms bulk code modification requests into structured plans with parallel stages and sequential tasks. It optimizes Claude Code execution through TodoWrite checklists. CX Codex +1 ★ 2,744repo stars memory-bank-synchronizer memory-bank-synchronizer is a Claude Code subagent that checks memory-bank files against the codebase and refreshes documentation when CLAUDE-*.md diverges from the implementation. CX Codex ★ 2,744repo stars

Project sponsors

Companies that keep this analytics open