planning-with-files
Skill này làm gì
Skill này giữ kế hoạch tác vụ, phát hiện và nhật ký tiến độ dưới dạng markdown trong workspace Kiro của bạn, và liên kết chúng vào steering để agent nhìn thấy. Dành cho người dùng Kiro chạy các tác vụ AI nhiều bước kéo dài.
Khi nào nên dùng
- ✓Khi bạn dùng Kiro và muốn kế hoạch của một tác vụ dài được lưu trên đĩa.
- ✓Khi bạn muốn steering giữ các file kế hoạch trong ngữ cảnh của agent.
- ✓Khi một tác vụ nhiều bước cần lưu tiến độ để có thể tiếp tục sau này.
Liên kết skill
https://github.com/OthmanAdi/planning-with-files/blob/master/.kiro/skills/planning-with-files/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi đang dùng Kiro cho một tính năng kéo dài nhiều tuần. Hãy thiết lập các file kế hoạch và giữ chúng trong ngữ cảnh để bạn theo dõi tiến độ của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Một script bootstrap tạo file kế hoạch, phát hiện và tiến độ trong workspace của bạn, cùng một file steering trỏ đến chúng. Agent cập nhật các file khi công việc tiến triển, và không cài đặt hook nền nào.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 |
Câu hỏi thường gặp
Nó có cài hook không?
Không. Skill nói rằng hook không được đi kèm, và nó dựa vào file skill và file steering thay thế.
Thiết lập như thế nào?
Bạn chạy một script bootstrap một lần từ thư mục gốc của workspace, và các file đã có sẵn sẽ không bị ghi đè.
Tôi có thể nhập nó như một skill của workspace không?
Có. Tùy chọn “Import a skill” của Kiro có thể tải thư mục này.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 28k
- Vị trí xếp hạng
- #9871
- Giấy phép
- MIT
- Cập nhật
- 30/10/2026
Bình luận
- …
Thêm skill từ kho mã này
planning-with-files
28kGiúp agent của bạn giữ kế hoạch, phát hiện và tiến độ trong các file markdown trên đĩa, để công việc nhiều bước kéo dài có thể tiếp tục sau khi đặt lại.
planning-with-files
28kGiúp agent của bạn giữ một dự án nhiều bước đi đúng hướng bằng cách lưu kế hoạch, phát hiện và tiến độ vào file, để công việc vẫn còn sau một phiên dài hoặc bị gián đoạn.
planning-with-files
28kGiúp agent của bạn giữ một dự án nhiều bước đi đúng hướng bằng cách lưu kế hoạch, phát hiện và tiến độ vào file, có hook Gemini bổ sung ngữ cảnh.
Skill tương tự
knowledge-capture
394kDạy agent của bạn lưu các quyết định, sở thích và sự kiện quan trọng vào kho Knowledge dưới dạng ghi chú ngắn có ghi nguồn.
knowledge-claim-consolidation
394kGiúp agent của bạn dọn gọn kho Knowledge bằng cách gộp các khẳng định trùng lặp, chuyển chúng đến đúng trang chủ đề và loại bỏ những cái lỗi thời.
knowledge-correct
394kCho phép agent của bạn sửa hoặc rút lại một khẳng định hoặc trang Knowledge cụ thể theo yêu cầu của bạn, và giữ nhật ký những gì đã thay đổi.