用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill index-folder命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | index-folder |
| description | Index a folder's contents into the context system for fast retrieval |
| model | haiku |
| tools | ["Read","Write","Edit","Glob"] |
Scan a folder and add its contents to context/index.json for fast topic-based retrieval.
/index-folder [path] - Index all supported files in path/index-folder [path] --recursive - Include subfolders/index-folder [path] --type [type] - Only index specific typeConfirm the path exists and is accessible:
Supported file types:
.md - Markdown documents.json - JSON data files (skip package.json, node_modules)Always skip:
node_modules/.git/__pycache__/.venv/, venv/dist/, build/.For each file, extract:
{
"id": "DOC-YYYY-NNN",
"title": "[H1 or filename]",
"type": "[detected type]",
"path": "[relative path]",
"topics": ["topic1", "topic2"],
"phase": "[V2V phase if detectable]",
"created": "[file creation date]",
"lastAccessed": "[current date]",
"size": "[file size]"
}
Type Detection:
| Pattern | Type |
|---|---|
Contains "PRD" or in prd/ | prd |
Contains "Decision Record" or DR- | decision |
Contains "Strategic Bet" or SB- | bet |
| Contains "Roadmap" | roadmap |
| Contains "GTM" or "Go-to-Market" | gtm |
| Contains "Analysis" | analysis |
Contains "Feedback" or FB- | feedback |
Contains "Learning" or L- | learning |
Topic Extraction:
Phase Detection: Look for V2V phase indicators:
Read context/index.json and:
# Folder Indexed: [path]
**Scanned**: [N] files
**Added**: [N] new entries
**Updated**: [N] existing entries
**Skipped**: [N] (already indexed, unchanged)
## New Entries
| ID | Title | Type | Topics |
|----|-------|------|--------|
| DOC-2026-015 | Authentication PRD | prd | auth, security, login |
| DOC-2026-016 | Pricing Decision | decision | pricing, enterprise |
## Topic Summary
| Topic | Documents |
|-------|-----------|
| authentication | 5 |
| pricing | 3 |
| enterprise | 3 |
| security | 2 |
---
*Index updated at context/index.json*
The context/index.json structure:
{
"version": "1.0",
"lastUpdated": "2026-01-25",
"entries": [
{
"id": "DOC-2026-001",
"title": "Authentication PRD",
"type": "prd",
"path": "documents/prd-auth.md",
"topics": ["authentication", "security", "login", "oauth"],
"phase": "phase3",
"created": "2026-01-15",
"lastAccessed": "2026-01-25",
"size": 4520
}
]
Generate unique IDs:
DOC-YYYY-NNN/index-cleanup