← 返回
未分类 中文

Skill Index

Auto-scan all installed skills, generate a categorized INDEX.md, and keep it in sync via git hooks. Triggers: skill index, scan skills, update index, skill c...
自动扫描所有已安装的技能,生成分类的INDEX.md文件,并通过git hooks保持同步。触发词:skill index, scan skills, update index, skill c...
kenwang-dev kenwang-dev 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 319
下载
💾 0
安装
1
版本
#latest

概述

Skill Index

Auto-scan every SKILL.md under skills/, extract metadata, categorize, and produce a single searchable INDEX.md. Git hooks keep the index fresh on every commit and pull.

Problem It Solves

As skill count grows past 20+, finding the right one becomes painful — especially for the AI agent that must read descriptions at startup. Manual lists go stale fast.

Skill Index solves this by:

  • One command → complete, up-to-date inventory
  • Zero maintenance → git hooks auto-update on commit/pull
  • Instant lookup → AI reads INDEX.md instead of crawling the whole directory

Quick Start

Manual scan

bash skills/skill-index/register.sh

Install git hooks (one-time)

bash skills/skill-index/install-hooks.sh

After that, INDEX.md updates automatically whenever you commit or pull.

How It Works

  1. Scan — Recursively find all SKILL.md files under skills/
  2. Extract — Parse YAML frontmatter: name, description, relative path
  3. Categorize — Smart matching by directory structure + description keywords
  4. Generate — Write skills/INDEX.md as a categorized Markdown table

Output Format

# Skills Index
> Auto-generated. Run `bash skills/skill-index/register.sh` to update.

## Category Name
| Skill | Path | Trigger |
|-------|------|---------|
| my-skill | path/to/SKILL.md | Description preview... |

Customization

Adding categories

Edit the categorize() function in register.sh to add your own rules:

    *your-keyword*) echo "Your Category"; return ;;

Excluding skills

Add the skill's directory to the find exclusion list in register.sh:

find "$SKILLS_DIR" -name "SKILL.md" -not -path "*/skill-index/*" -not -path "*/your-private-skill/*"

Requirements

  • Bash 4+
  • Git (for hooks)
  • OpenClaw workspace with skills/ directory

License

MIT

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 15:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,418
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,227 📥 267,818
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,082 📥 810,014