用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/devclarityai/environment-setup --skill process-directory-list命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | process-directory-list |
| description | Batch-process directory-instructions.json to generate CLAUDE.md files in parallel |
Process the directory-instructions.json file and generate CLAUDE.md files for each directory by invoking the /generate-instructions skill.
This skill orchestrates the batch generation of CLAUDE.md files for multiple directories in the monorepo. It reads the directory list JSON file and systematically processes each directory item.
Reads from directory-instructions.json in the project root, which has this structure:
{
"items": [
{
"id": "1",
"directory": "app/controllers",
"output_file": "CLAUDE.md",
"status": "pending",
"analyzed_at": null
}
]
}
directory-instructions.json from the current working directoryitems arrayFor each item in the items array where status is "pending":
Use the Task tool with subagent_type: "general-purpose" for each pending directory.
Each sub-agent receives this prompt:
Process directory "{directory_path}" from directory-instructions.json (ID: {id}):
Steps:
1. Read directory-instructions.json
2. Update item {id} to set status="in_progress"
3. Write the updated JSON back
4. Run: /generate-instructions {directory_path}
5. Read directory-instructions.json again
6. Update item {id} to set status="completed" and analyzed_at="{ISO timestamp}"
7. Write the final JSON back
8. If any errors occur, set status="error" instead
The /generate-instructions skill will analyze the directory and create the CLAUDE.md file.
CRITICAL: Spawn ALL sub-agents in a single message by making multiple Task tool calls:
Task(subagent_type="general-purpose", prompt="Process app/controllers...", description="Generate controllers CLAUDE.md")
Task(subagent_type="general-purpose", prompt="Process app/models...", description="Generate models CLAUDE.md")
Task(subagent_type="general-purpose", prompt="Process app/services...", description="Generate services CLAUDE.md")
... (one Task call for each pending directory)
This allows all directories to be processed simultaneously.
After all sub-agents have completed, display a summary:
✓ Completed: 6 directories
✗ Errors: 1 directory
⊘ Skipped: 1 directory (already completed)
Launched 7 sub-agents in parallel
pending items# 1. First create the directory list
/create-directory-list
# 2. Then process all directories
/process-directory-list
# 3. Check results
cat directory-instructions.json
/generate-instructions skill directly - do NOT reimplement its logic