用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Abilityai/abilities --skill setup-index命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | setup-index |
| description | Initialize file indexing for this workspace. Creates file_index.md with directory structure. |
| user-invocable | true |
| allowed-tools | Read, Write, Bash, AskUserQuestion |
Initialize file indexing for this workspace.
Use AskUserQuestion to ask the user:
Question 1: "Which directories should be indexed?"
Question 2: "What should be excluded from the index?"
Create memory/index_config.json with the user's choices:
{
"root": ".",
"exclude_patterns": ["node_modules", ".git", "__pycache__", ".venv", "dist", "build", "*.pyc", ".DS_Store"],
"include_sizes": true,
"include_dates": true,
"last_indexed": null
}
Run the indexing command based on configuration:
find . -type f \
! -path "*/node_modules/*" \
! -path "*/.git/*" \
! -path "*/__pycache__/*" \
! -path "*/.venv/*" \
! -name "*.pyc" \
! -name ".DS_Store" \
-exec ls -lh {} \; 2>/dev/null | \
awk '{print $9, $5, $6, $7, $8}' | sort
Create memory/file_index.md with format:
# File Index
Last updated: [ISO timestamp]
## Directory Tree
[tree structure]
## Files by Directory
### /path/to/dir
| File | Size | Modified |
|------|------|----------|
| file.txt | 1.2K | 2025-01-15 |
Tell the user:
memory/file_index.md/refresh-index to update/search-files to searchAdd to CLAUDE.md if it exists:
## File Index
- Index location: `memory/file_index.md`
- Refresh with: `/refresh-index`
基于 SOC 职业分类