Claude Code Team Scaffold
简介
Claude Code Team Scaffold
原始描述
该指令用于在 Claude Code 新项目初始化多智能体 AI 开发框架:生成.claude 目录、含 6 类生命周期钩子的配置、子智能体、斜杠命令与文件规划技能,搭建规范目录、两级记忆体系,配套代码质检、文档同步、任务流水线;触发短语含中英多组。
通过你的 Agent 添加
安装目录:planning-with-files/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: planning-with-files
description: Implements Manus-style file-based planning for complex tasks. Creates planning files under docs/sessions//. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls. Now with automatic session recovery after context reset.
user-invocable: true
Planning with Files
Work like Manus: Use persistent markdown files as your "working memory on disk."
FIRST: Check for Previous Session
Before starting work, check for unsynced context from a previous session:
python3 .claude/skills/planning-with-files/scripts/session-catchup.py "$(pwd)"
If catchup report shows unsynced context:
- Run
git diff --statto see actual code changes - Read current planning files
- Update planning files based on catchup + git diff
- Then proceed with task
Important: Where Files Go
- Default planning root:
docs/sessions/
- Per-task directory: create a dedicated subdirectory such as
docs/sessions/<task-slug>/
- Planning files: store
task_plan.md, findings.md, and progress.md inside that task subdirectory
Location
What Goes There
Skill directory (.claude/skills/planning-with-files/)
Templates, scripts, reference docs
docs/sessions/<task-slug>/
task_plan.md, findings.md, progress.md
Quick Start
docs/sessions/docs/sessions/<task-slug>/task_plan.md, findings.md, and progress.md inside that task subdirectory| Location | What Goes There |
|---|---|
Skill directory (.claude/skills/planning-with-files/) |
Templates, scripts, reference docs |
docs/sessions/<task-slug>/ |
task_plan.md, findings.md, progress.md |
Before ANY complex task:
- Create
docs/sessions/<task-slug>/— Use a short, stable slug - Create
task_plan.md— Use templates/task_plan.md as reference - Create
findings.md— Use templates/findings.md as reference - Create
progress.md— Use templates/progress.md as reference - Re-read plan before decisions — Refreshes goals in attention window
- Update after each phase — Mark complete, log errors
The Core Pattern
Context Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)
→ Anything important gets written to disk.
File Purposes
File
Purpose
When to Update
task_plan.md
Phases, progress, decisions
After each phase
findings.md
Research, discoveries
After ANY discovery
progress.md
Session log, test results
Throughout session
Critical Rules
1. Create Plan First
Context Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)
→ Anything important gets written to disk.
| File | Purpose | When to Update |
|---|---|---|
task_plan.md |
Phases, progress, decisions | After each phase |
findings.md |
Research, discoveries | After ANY discovery |
progress.md |
Session log, test results | Throughout session |
Critical Rules
1. Create Plan First
Never start a complex task without docs/sessions/<task-slug>/task_plan.md. Non-negotiable.
2. The 2-Action Rule
"After every 2 view/browser/search operations, IMMEDIATELY save key findings to text files."
"After every 2 view/browser/search operations, IMMEDIATELY save key findings to text files."
This prevents visual/multimodal information from being lost.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。