スキル一覧に戻る
JokeJason

generate-agent-skills

by JokeJason

downloads official documentation, filters it with AI assistance, and generates skills that make the docs available as local context for AI coding agents—a local alternative to Context7's cloud-based documentation lookup

2🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: generate-agent-skills description: Generate documentation skills for AI agents from downloaded docs. Use after /build-my-context7 to create skills.

Generate Agent Skills

Generate SKILL.md files for Claude, Codex, and OpenCode agents.

Usage

/generate-agent-skills              # Generate ALL skills
/generate-agent-skills zod-docs     # Generate only zod-docs skill

Instructions

Step 1: Verify docs exist

  • If argument provided: verify output/{argument}/ exists
  • If no argument: process all output/*-docs/ directories
  • If missing, tell user to run /build-my-context7 first

Step 2: Copy to shared folder

mkdir -p dotfiles/shared
rm -rf dotfiles/shared/{skill-name}
cp -r output/{skill-name} dotfiles/shared/

Step 3: Determine tier

file_count=$(find dotfiles/shared/{skill-name} -name "*.md" -o -name "*.mdx" | wc -l)
total_size=$(du -sk dotfiles/shared/{skill-name} | cut -f1)
TierCriteriaTemplate
1< 30 files AND < 500KBtemplates/tier1.md
230-100 files OR 500KB-2MBtemplates/tier2.md
3> 100 files OR > 2MBtemplates/tier3.md

Step 3.5: Generate STRUCTURE.md (Tier 3 only)

For tier 3 docs, generate dotfiles/shared/{skill-name}/STRUCTURE.md with:

# {Library} Documentation Structure

Total: {N} files

## {directory1}/ ({count} files)

- `{directory1}/file1.md`
- `{directory1}/file2.md`
- `{directory1}/subdir/file3.md`

## {directory2}/ ({count} files)

- `{directory2}/file1.md`
...

Generation approach:

  1. List all .md and .mdx files in the docs folder
  2. Group files by top-level directory
  3. Sort directories alphabetically
  4. Include full relative paths for each file
  5. Add file counts per directory and total

This gives the agent a complete map of available documentation before it starts searching.

Step 4: Generate SKILL.md

For each agent (Claude, Codex, OpenCode):

  1. Create dotfiles/<agent>/skills/<skill-name>/SKILL.md
  2. Use the appropriate tier template
  3. Do NOT create references/ - install script handles this

Step 5: Report results

Summarize which skills were generated and recommend /install-agent-skills to deploy.

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です