AgentSkillsCN

build-my-context7

为 C++23 提供现代化改造建议、符合语言习惯的重构方案,并结合 cppreference.com 提供丰富示例。当用户寻求 C++ 代码的现代化改造、重构优化,或希望对代码进行详细解释时,此技能将始终以 C++23 为基准,并引用 cppreference.com 获取语言与库的权威信息。

SKILL.md
--- frontmatter
name: build-my-context7
description: Build local Context7 documentation by downloading and filtering docs from manifests. Use when setting up or updating local documentation reference.

Build My Context7

Download and filter documentation from manifests for Context7 integration.

Quick Start

code
/build-my-context7              # Process ALL manifests
/build-my-context7 zod-docs     # Process only zod-docs manifest

Output goes to output/.

Workflow

Phase 1: Check Arguments

Check if $ARGUMENTS is provided:

  • If argument provided: Process only that specific manifest
  • If no argument: Process all manifests

Phase 2: Discovery

If processing a specific manifest:

  • Verify the manifest exists at .claude/skills/download-docs/scripts/manifests/{argument}.json
  • If not found, list available manifests and ask user to choose

If processing all manifests:

  • List all manifests:
bash
ls .claude/skills/download-docs/scripts/manifests/*.json
  • Extract manifest names (without .json extension)

Phase 3: Processing

Spawn manifest-processor sub-agent(s):

code
Task tool call:
- subagent_type: manifest-processor
- prompt: "{manifest-name}"

The sub-agent handles everything:

  • Downloads files from the manifest source
  • Detects source type (URL vs GitHub)
  • Applies AI filtering for GitHub sources (skips for URL sources)
  • Returns a summary

For multiple manifests: Spawn ALL sub-agents in a SINGLE message for maximum parallelism.

Phase 4: Summary

After sub-agent(s) complete, compile results into a summary table:

ManifestSourceDownloadedFilteredFinalStatus
nameurl/githubNN/N/AN✅/❌

Remind user to run /generate-agent-skills if needed.

Requirements

  • jq - JSON parsing
  • git - GitHub cloning
  • curl - URL downloads