aigc: Skill for Claude Code

.claude/skills/docs-management/SKILL.md

docs-management is a skill for Claude Code from xiaoyuge886/aigc. It costs 135 tokens per session (7,197 once invoked), scanned B, original, MIT.

A documentation-management guide for locating, storing, searching, and resolving official Claude documentation.

In plain words
What is it for?
Finding Claude Code documentation by topic, discovering relevant pages, scraping documentation, and resolving documentation questions.
Why use it?
It combines a local documentation cache with live web checks so answers can use both saved and current information.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is xiaoyuge886/aigc's own configuration. It tells Claude Code how to work on aigc itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aigc configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/management/manage_index.py count.

Reuse

Borrowing it

Nothing to install: this file belongs to xiaoyuge886/aigc. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xiaoyuge886/aigc/main/.claude/skills/docs-management/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xiaoyuge886/aigc

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoyuge886/aigc/docs-management/github.svg)](https://agentmods.dev/skills/xiaoyuge886/aigc/docs-management)
Your own site
<a href="https://agentmods.dev/skills/xiaoyuge886/aigc/docs-management"><img src="https://agentmods.dev/badge/skills/xiaoyuge886/aigc/docs-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoyuge886/aigc/docs-management"><img src="https://agentmods.dev/badge/skills/xiaoyuge886/aigc/docs-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 535
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Privilege Escalation · line 684
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.07197
Opus 5.5 $0.00054 $0.02879
Sonnet 5.5 $0.00027 $0.01439
Haiku 4.5 $0.00014 $0.00720

Measured 1mo ago against content hash 0694c1f478de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

docs-management scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Linux: `sudo apt install python3.13`
.claude/skills/docs-management/SKILL.md · 821 lines

How it starts

The opening of the file, as written. The whole thing — 821 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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
[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

Read the full file on GitHub · 821 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 821 lines · 135 tokens per session scan B 0694c1f478de

Subscribe to this mod's changes

docs-management is a skill published in the GitHub repository xiaoyuge886/aigc (200 stars, last pushed 3mo ago), licensed MIT. It adds 135 tokens to every session and 7,197 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards…

vercel/next.js · 123 tokens