planning-with-files
它能做什么
它把任务计划、发现和进度日志以 Markdown 形式保存在你的 Kiro 工作区中,并将它们链接到 steering 中,使智能体能够看到。适合使用 Kiro、并运行长时间多步骤 AI 任务的人。
适用场景
- ✓当你使用 Kiro,并希望把长任务的计划保存在磁盘上时。
- ✓当你希望 steering 把规划文件保留在智能体的上下文中时。
- ✓当多步骤任务需要保存进度,以便之后能够恢复时。
技能链接
https://github.com/OthmanAdi/planning-with-files/blob/master/.kiro/skills/planning-with-files/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我正在用 Kiro 开发一个为期数周的功能。请设置规划文件并保持它们在上下文中,以便你追踪我们的进度。”
每周 5 个新技能,1 分钟读完。
工作原理
一个引导脚本在你的工作区中创建计划、发现和进度文件,以及一个指向这些文件的 steering 文件。随着工作进展,智能体更新这些文件,并且不会安装任何后台钩子。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Planning with Files (Kiro)
Work like Manus: use persistent markdown as your working memory on disk while the model context behaves like volatile RAM. Deep background: references/manus-principles.md.
Kiro complements this with:
- Agent Skills (this file) — progressive disclosure when the task matches the description.
- Steering — after bootstrap,
.kiro/steering/planning-context.mdusesinclusion: autoand#[[file:.kiro/plan/…]]live references (Steering docs).
Hooks are not bundled: project-level hooks affect every chat in the workspace. Prefer this skill + steering + the reminder block below.
STEP 0 — Bootstrap (once per workspace)
From the workspace root:
sh .kiro/skills/planning-with-files/assets/scripts/bootstrap.sh
Windows (PowerShell):
pwsh -ExecutionPolicy RemoteSigned -File .kiro/skills/planning-with-files/assets/scripts/bootstrap.ps1
Creates:
.kiro/plan/task_plan.md,findings.md,progress.md.kiro/steering/planning-context.md(auto +#[[file:.kiro/plan/…]])
Idempotent: existing files are not overwritten.
Import as a workspace skill (optional): Kiro → Agent Steering & Skills → Import a skill → choose this planning-with-files folder (Skills docs).
STEP 1 — Persistent reminder (after skill activation)
Append the following block to the end of your reply, and repeat it at the end of subsequent replies while this planning session is active:
[Planning Active]Before each turn, read.kiro/plan/task_plan.mdand.kiro/plan/progress.mdto restore context.
STEP 2 — Read plan every turn (while active)
- Read
.kiro/plan/task_plan.md— goal, phases, status - Read
.kiro/plan/progress.md— recent actions - Use
.kiro/plan/findings.mdfor research and decisions
If .kiro/plan/ is missing, run STEP 0.
STEP 3: Project-file catchup (after a long gap or suspected drift)
Summaries and planning-file mtimes (compare with git diff --stat if needed). This helper does not read Kiro or other agent transcript stores:
$(command -v python3 || command -v python) \
.kiro/skills/planning-with-files/assets/scripts/session-catchup.py "$(pwd)"
Windows:
python .kiro/skills/planning-with-files/assets/scripts/session-catchup.py (Get-Location)
Then reconcile planning files with the actual codebase.
Optional — Phase checklist
From workspace root (defaults to .kiro/plan/task_plan.md):
sh .kiro/skills/planning-with-files/assets/scripts/check-complete.sh
pwsh -File .kiro/skills/planning-with-files/assets/scripts/check-complete.ps1
New plan creation contract
For a new Kiro task, run STEP 0 bootstrap before implementation. Set PWF_SKILL_DIR to the directory containing this SKILL.md, then run from the workspace root:
sh "$PWF_SKILL_DIR/assets/scripts/bootstrap.sh"
# After filling in the selected plan, validate its explicit path:
sh "$PWF_SKILL_DIR/assets/scripts/check-complete.sh" --validate .kiro/plan/task_plan.md
PowerShell equivalents are assets/scripts/bootstrap.ps1 and assets/scripts/check-complete.ps1 -Validate -PlanFile .kiro/plan/task_plan.md.
Keep each phase as ### Phase N: Name with exactly one **Status:** pending, **Status:** in_progress, or **Status:** complete line. A ## Phases checklist or numbered summary alone is not trackable. Preserve these markers when tailoring the generated plan; do not replace the skeleton with a compact custom format. Validation must succeed before substantive work and after changing phase structure. This checks format, not task completion or attestation.
Reuse existing plans without overwriting them. If an existing plan fails validation, report the issue for its owner to review; do not automatically rewrite it. If helpers cannot run, copy the shipped template exactly and state that native validation is unavailable.
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 resul |
常见问题
它会安装钩子吗?
不会。技能说明没有捆绑钩子,它依赖于技能和 steering 文件。
它是如何设置的?
你在工作区根目录运行一次引导脚本,已有的文件不会被覆盖。
我可以把它作为工作区技能导入吗?
可以。Kiro 的“导入技能”选项可以加载该文件夹。
详情
作者的原始描述
Persistent file-based planning for multi-step AI-agent work. Keeps task_plan.md, findings.md, and progress.md on disk; Kiro skill instructions and steering state read selected project planning context. Recovery reads project planning files and their timestamps only, not agent transcript stores. This adapter registers no Stop hook, never requests continuation, and never runs commands declared in Markdown. The skill has no network upload path. Use for research or work needing 5+ tool calls.
热度
- GitHub 星标
- 28k
- 排名
- #9871
- 许可证
- MIT
- 更新时间
- 2026/10/30
评论
- …