数据库规划
- 作者仓库星标 2
- 作者更新于 实时读取
- 作者仓库 anton
- 领域
- AI 智能
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @wcygan · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: planner
description: Anton planner skill — author, update, and close multi-session initiatives (migrations, rollouts…
category: AI 智能
runtime: 无特殊运行时
---
# planner 输出预览
## PART A: 任务判断
- 适用问题:提示词、Agent 工作流、模型评估或自动化推理。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Why this skill exists / Hard rules / Workflow — new”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于提示词、Agent 工作流、模型评估或自动化推理,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Why this skill exists / Hard rules / Workflow — new”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/planner` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Why this skill exists / Hard rules / Workflow — new”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: planner
description: Anton planner skill — author, update, and close multi-session initiatives (migrations, rollouts…
category: AI 智能
source: wcygan/anton
---
# planner
## 什么时候使用
- 用于审阅代码、文档或方案并给出可执行反馈 适合处理AI Agent、提示词、模型评估与自动化推理,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常不需要…
- 面向提示词、Agent 工作流、模型评估或自动化推理,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Why this skill exists / Hard rules / Workflow — new」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "planner" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Why this skill exists / Hard rules / Workflow — new
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Planner
Anton-local skill for the in-repo plan lifecycle. Owns four workflows: new, list, update, close. Plans live at context/plans/NNNN-kebab-slug.md and are mutable — the body is edited as work progresses, tasks get checked off, the log grows.
Why this skill exists
Anton already has two complementary persistence layers:
- ADRs (
context/adrs/) — immutable decisions. Answer why. - Auto-memory — ephemeral cross-session hints. Answer what did I just learn.
- Git log — immutable commits. Answer what changed.
But there's a missing layer: the multi-session initiative — "adopt Longhorn", "migrate Tailscale", "roll out OpenTelemetry". These span many commits and several sessions. Memory is too ephemeral (decays as new entries push it out); git log is too coarse (no sense of what's next); ADRs are too rigid (decisions, not execution state).
Plans fill that gap. They're in-repo (survive across sessions without relying on memory), mutable (task lists churn), discoverable at session start (via the SessionStart hook), and trunk-compatible (just files edited on main — no long-lived branches).
The skill is anton-local. Format is intentionally compatible with the global context-repo skill but this skill never delegates to that one.
Hard rules
- Plans are mutable — but carefully. Task lists, logs, and status flip freely. Goal and Acceptance criteria should change only when the scope itself changes; substantial scope changes should
closethe plan as abandoned andnewa replacement rather than quietly mutating the intent. - Numbers are never reused. Next number is
max(existing) + 1, zero-padded to four digits. - Active statuses are
Draft,In-progress,Blocked. Terminal statuses areDone,Abandoned. Only active plans are surfaced in the SessionStart index. - Close on done. Plans should not drift into a permanent In-progress state. If nothing has changed in >30 days, mark
Blockedwith a reason, orcloseas abandoned. - Plans point at ground truth; they do not duplicate it. Renovate dashboards, Flux kustomization status, memory entries — reference them, don't mirror them.
- Plans do not replace ADRs. If a plan surfaces a durable architectural decision during execution, hand off to the
adrskill to record it. Link the new ADR from the plan's References section.
References:
- Field reference, status enum, and immutability rules → conventions
- Canonical template for new plans → template
Workflow — new
Triggered by:
- The user says "open a plan for X" / "start tracking X" /
/planner new "<title>" - The user wants to promote an in-flight memory entry into a durable plan
- The user commits to a multi-session migration, rollout, or refactor
Before running the full workflow, ask: does this really need a plan? If the work is a single commit, a Renovate PR, or something that will finish in this session, say so and decline. Plans are for work that spans sessions.
Steps
Allocate the next number.
Glob('context/plans/0[0-9][0-9][0-9]-*.md'). Sort. Next number ismax + 1, zero-padded to 4 digits. Never reuse.Generate the slug. Lowercase, kebab-case, drop articles/prepositions, 4–6 meaningful words. Example: "Migrate Tailscale to the new tailnet" →
migrate-tailscale-new-tailnet→0001-migrate-tailscale-new-tailnet.md.Interview the user. Ask only for what isn't already known:
- Title (one short sentence, imperative or descriptive)
- Goal (one paragraph — what "done" looks like in plain language)
- Acceptance criteria (2–5 outcome bullets, not tasks — conditions that must be true at close)
- Initial task list (3–10 concrete next steps; more will accrue during execution)
affects— same category list as ADRs (storage,observability,networking,security,compute,all, etc.)intent—concrete-need/learning/unknownrelated-adrs— list of ADR NNNNs that scope this plan (usually the decision that triggered the work)review-by— required forintent: learning, optional otherwise. Date to re-evaluate.- Initial log entry — one-line note of why now, to anchor the history.
Write the plan file at
context/plans/NNNN-slug.mdusing the shape from template. Setstatus: In-progress(orDraftif the user is still shaping the goal),opened: YYYY-MM-DDto today.If this replaces an in-flight memory entry, tell the user to remove the memory file (auto-memory is not self-cleaning). Cite the exact path. The plan supersedes the memory.
Confirm to the user with the file path, the plan number, and a reminder that the SessionStart hook will pick it up on the next session.
Workflow — list
Triggered by:
/planner list— default, shows active plans only/planner list --all— include terminal (Done / Abandoned)/planner list --status <X>or--affects <X>— filter
Steps
Glob('context/plans/0[0-9][0-9][0-9]-*.md').- Read frontmatter of each. Extract
status,opened,closed,affects,intent,related-adrs,review-by, and the H1 title. - Apply filters:
- Default: keep only
Draft/In-progress/Blocked --all: no filter--status X: case-insensitive exact match--affects X: substring match on theaffects:field
- Default: keep only
- Format as a markdown table sorted by NNNN. Columns: #, Title, Status, Opened, Review-by, Related ADRs.
- If a plan has
review-by≤ today and status is still active, flag it with⚠in the Status column.
Workflow — update
Triggered by:
/planner update <NNNN>— the user wants to edit an existing plan- The user says "check off X on plan NNNN" / "log Y on plan NNNN" / "mark NNNN blocked"
This is the most-used workflow. The skill doesn't wrap every possible edit — it knows the plan's shape and uses the ordinary Edit tool to make targeted changes.
Common edit recipes
- Check off a task. Find the task line in the Tasks section and replace
- [ ] textwith- [x] text(preserve exact indentation). Then append a one-line entry to the Log with today's date. - Add a task. Append to the Tasks section under the appropriate heading (or at the end). Keep the task imperative, concrete, and verifiable.
- Log a decision or surprise. Append to the Log section. Format:
- YYYY-MM-DD: <one sentence>. The log is append-only; never rewrite past entries. - Flip to
Blocked. Edit thestatus:line in frontmatter and append a Log entry naming the blocker. Don't lose visibility — blocked plans should name a concrete unblock condition in the Log. - Un-block. Flip
status:back toIn-progressand log the resolution. - Refine acceptance criteria. Edit the Acceptance criteria section and log the refinement so the history explains the change. If the refinement is large enough to change what "done" means, consider
close+newinstead.
Steps
- Read the plan.
Read('context/plans/NNNN-*.md'). Confirm it exists and isn't terminal (Done/Abandoned). Terminal plans should not be edited — log a new plan instead if the work is resuming. - Make the edit(s) via
Editwith precise old/new strings. One edit per change; keep diffs small. - Append a Log entry for anything non-trivial (checking off a single task may skip the log if it's a small step; status changes and new tasks should always log).
- Confirm to the user with a one-line summary of what changed.
Workflow — close
Triggered by:
/planner close <NNNN> done "<closing note>"/planner close <NNNN> abandoned "<reason>"
Steps
- Read the plan. Confirm it's not already terminal.
- Verify acceptance criteria (for
doneonly). Walk through the Acceptance criteria checklist. If any are unchecked, ask the user explicitly: "criterion X is unmet — close asdoneanyway, or re-scope?" Don't close with false-done signals. - Flip the frontmatter:
status:toDoneorAbandoned,closed:to today's date. - Append a final Log entry with the closing note.
- Offer an ADR handoff (only on
Done). Ask: "did this plan surface a durable architectural decision worth recording as an ADR?" If yes, invoke theadrskill with a pre-populated title drawn from the plan's Goal. If no, move on. - Confirm to the user with the file path and the terminal status. The SessionStart hook will drop the plan from the next session's index automatically.
What this skill does NOT do
- Does not write Flux manifests — that is
add-flux-app. - Does not make architectural decisions — that is
adr. - Does not auto-close stale plans. A
review-bybreach is flagged inlist; the operator still closes manually. - Does not duplicate cluster state, Renovate state, or git log. Plans reference these sources; they do not mirror them.
- Does not push, commit, or tag — the user owns git operations.
- Does not delete plans. Terminal plans are append-only history.
- Does not replace auto-memory for ephemeral cross-session hints. Memory stays; plans capture the durable "what's next" layer.
Related skills and agents
adr— hand off here onclose doneif a durable decision emerged. Link the new ADR back from the plan's References section.cluster-intake-gatekeeper— may hand off toplanner(as well asadr) when anAdd (learning)verdict comes with a multi-session rollout plan that needs tracking beyond the ADR's own checklist.debug-flux-reconciliation/anton-cluster-health— reactive; a plan is the forward-looking companion to these. If a reactive session surfaces follow-up work that spans sessions, open a plan.
When a plan is NOT warranted
- Single-commit fixes
- Renovate PR triage — use
anton-upgrade-auditinstead; the Renovate dashboard is ground truth - Read-only investigations with no committed output
- Work that will finish in the current session
- "I'll probably want to do X someday" — not a plan, that's speculation. Revisit when the work is actually starting.
Rule of thumb: if I walk away for two weeks, would I need this file to pick up where I left off? If yes, open a plan. If no, skip it.
Anti-patterns
- Opening a plan for work that fits in one commit. Pure overhead. Skip it.
- Duplicating memory into a plan, or a plan into memory. Pick one home per piece of state. The plan is canonical for execution state; memory is canonical for ephemeral hints. When in doubt, promote to plan and delete the memory.
- Editing the Goal to reflect a pivoted scope. That erases history.
close abandoned+newinstead. - Leaving a plan
In-progressfor >30 days with no Log entries. Either the work died (close as abandoned) or it's actually blocked (flip toBlockedand name the blocker). Silent drift is the failure mode this system exists to prevent. - Letting the active-plan list grow past ~5. If you have more concurrent initiatives than that, the bottleneck is focus, not tooling.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核