Skip to content
Agent Orchestration
Skill

/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

From plugin
aigc
20029 skills15 agents19 commands10 MCP

Claude Code

$ npx -y skills add xiaoyuge886/aigc --skill docs-management --agent claude-code

SKILL.md

docs-management.SKILL.md
name: docs-management
description: 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.
allowed-tools: Read, Glob, Grep, Bash, Skill

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:**

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

This skill provides three slash commands for common workflows:

  • **`/claude-ecosystem:scrape-docs`** - Scrape all configured Claude documentation sources, then refresh index and validate
  • **`/claude-ecosystem:refresh-docs`** - Refresh the local index and metadata without scraping from remote sources
  • **`/claude-ecosystem:validate-docs`** - Validate the index and references for consistency and drift without scraping

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.

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 th
Read more
@xiaoyuge886
Ships withaigc

基于 Claude AI 的智能对话与任务执行平台,支持自定义技能生态和场景化 AI 解决方案

20029 skills15 agents10 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
200
Star history of xiaoyuge886/aigc on GitHub, a chart by star-history.com

Other skills on aigc.

agent-sql-pro

agent-sql-pro

Expert SQL developer specializing in complex query optimization, database design, and performance tuning across PostgreSQL,…

@xiaoyuge886@xiaoyuge886Install Skill
data-analysis

data-analysis

Perform data analysis tasks including data cleaning, statistical analysis, visualization, and insight generation. Use when the…

@xiaoyuge886@xiaoyuge886Install Skill
echarts_chart

echarts_chart

ECharts数据可视化专家,能够根据数据和分析需求生成专业的ECharts图表配置。适用于:数据可视化、图表生成、数据展示、趋势分析图表、对比图表、分布图表、饼图、柱状图、折线图、散点图、雷达图、热力图、仪表盘、漏斗图、树形图、关系图、桑基图、数据报表图表、…

@xiaoyuge886@xiaoyuge886Install Skill
frontend-design

frontend-design

Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and…

@xiaoyuge886@xiaoyuge886Install Skill
meta_agent

meta_agent

综合智能代理系统,整合任务分析、规划和ReAct执行循环能力。当用户需要处理复杂任务、多步骤工作流或需要自主决策和反思的任务时使用。

@xiaoyuge886@xiaoyuge886Install Skill
minio_uploader

minio_uploader

简化版MinIO文件上传工具,支持一键上传文件到MinIO对象存储并获取访问链接

@xiaoyuge886@xiaoyuge886Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about docs-management.

Which coding agents can use docs-management?
docs-management installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.