plan
Create or evolve project planning docs. Modes - seed (write BRIEF.md, the frozen problem statement, and gate on written architecture pushback), build (write PLAN.md, the living phase plan with runnable exit criteria), replan (supersede decisions with dated verdicts, insert decimal phases). Hackathon shape via config or the hackathon argument.
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- plan
- description
- Create or evolve project planning docs. Modes - seed (write BRIEF.md, the frozen problem statement, and gate on written architecture pushback), build (write PLAN.md, the living phase plan with runnable exit criteria), replan (supersede decisions with dated verdicts, insert decimal phases). Hackathon shape via config or the hackathon argument.
- argument-hint
- [seed|build|replan] [hackathon] [notes]
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/brief-template.md3.4 KB
- 参考文档references/hackathon-template.md10.4 KB
- 参考文档references/mode-seed.md6.1 KB
- 参考文档references/plan-template.md3.5 KB
- 参考文档references/tickets-mode.md2.9 KB
03 SKILL.md 正文
/plan — the seed, the gate, and the living plan
Planning docs are deliberate artifacts. This skill is user-invoked only and never regenerates a plan spontaneously.
Adjacent skills: /challenge (interrogates the BRIEF this creates) ·
/plan-review (locks the PLAN this creates before code) · /eval-spec (sets
the score targets a phase exit criterion cites) · /do (executes the tasks).
<!-- acstack:runtime --> Run before the skill's steps — per invocation, not per session (4.36); failures degrade to markdown:
link="$(readlink "$HOME/.claude/skills/health" 2>/dev/null || true)" # empty = not symlinked
pack="$(dirname "$(dirname "$link")")" # NEVER trust this unless $link was non-empty
if [ "${link#/}" != "$link" ] && [ -x "$pack/bin/acstack-config" ] && ! "$pack/bin/acstack-config" runtime | grep -q '=off'; then
"$pack/bin/acstack-config" || true # resolved keys, with sources
"$pack/bin/acstack-update-check" || true # ≤1 fetch/day; silent ONLY if already checked today
"$pack/bin/acstack-recall" || true # LEARNINGS.md + bug-class names, capped 3KB
else
echo "runtime off — proceeding without recall/update-check"
fi
<!-- /acstack:runtime -->
<!-- acstack:principles -->
Operating principles
- Be direct. Push back in writing when the plan or the user is wrong. No sycophancy.
- Never delete a decision. Supersede it:
~~old~~ → **Verdict (YYYY-MM-DD):** new call — reason. - Never fix, tune, or delete a test or eval case to raise a score. Log the miss honestly and leave the case unchanged.
- Name exact things: regex patterns, function signatures, model names, before → after numbers. Never "fixed bugs".
- Attribution: follow the project's
attributionsetting (defaultnone) — no AI-tool mentions in generated docs, no attribution trailers in commits or PRs. Commit with explicit-m/-Fmessages only. - Config: read
.claude/acstack.mdat the project root (fall back to~/.claude/acstack.md) before acting.## Settingskeys override pack defaults; a## <skill-name>section overrides both. Unknown keys and sections are ignored. - Docs: BRIEF.md (frozen seed) / PLAN.md (living plan) / JOURNAL.md (rolling journal). If the repo uses legacy names (PLANNING_PROMPT.md / PLANNING.md / STATUS.md), use those instead — never create both.
- Recall: if
LEARNINGS.mdexists at the project root, read it before starting. - Conduct: follow the
acstack-conductblock in this repo's AGENTS.md — the word is the mode; the user sets the pace. - Hackathon lane: if the project's AGENTS.md carries the
acstack:hackathon-laneblock, only/dochanges the repository during the event. Any other skill that would write a tracked file, commit or push says what it would have done and stops; a change that is not a task goes through the lane's operator route. <!-- /acstack:principles -->
One document set. Resolve exactly ONE BRIEF/PLAN/JOURNAL set and name
its path in the report's scope line. If more than one candidate set exists
— a monorepo, nested products, an apps/* tree each with its own docs —
list the candidates and STOP. Never pick one silently: a confident answer
about the wrong product is worse than no answer (conduct rule 8).
Mode dispatch
Parse the arguments. No mode given: if no BRIEF.md exists → seed; if
BRIEF.md exists but no PLAN.md → build; otherwise ask which mode is wanted.
seed when BRIEF.md already exists → STOP. The BRIEF is the frozen
record of what was believed at the start; regenerating it destroys the
only artifact that can later be compared against what was learned. Say it
exists, name its path, and offer the two honest routes: build if the
plan is what's missing, or replan to supersede a decision with a dated
verdict. Editing the BRIEF is the user's own call, never this skill's side
effect.
hackathon as an argument (or mode: hackathon in config) switches the
templates to the hackathon shape.
Mode: seed — write the frozen BRIEF
Full procedure: references/mode-seed.md — read it when the dispatch
selects seed, and not otherwise. It carries the BRIEF's sections, the
interview discipline, and the never-regenerate rule.
The gate — before build
build runs only after the gate: deliver written architecture pushback on
the BRIEF — what won't work, where the user is being naive, risks, the
rejected alternatives reconsidered — and get the user's explicit
acknowledgment. Record the verdict in a short Gate verdict block at the
top of PLAN.md (date, what was challenged, what changed, what was accepted
as-is). No pushback delivered → no plan, no code.
Mode: build — write the living PLAN
Generate PLAN.md following references/plan-template.md. The grammar:
- Top: purpose blockquote (what this doc is, pointer to BRIEF.md) + cross-cutting constraints blockquote + the Gate verdict block.
## Index of phases— table: Phase | Goal | Exit criterion (add Days when timeboxed).- Phase headings carry state:
## [ ] Phase N — Title. - Each phase:
**Goal:**one-liner, then**Exit criterion:**as a RUNNABLE command with expected output — never prose like "works well". - Tasks: numbered bold-ID checkboxes 3–5 levels deep
(
- [ ] **1.2.3** …), leaf text naming exact files, functions, and literal values. Task groups close with**Acceptance:**— also runnable. - Decisions:
> **Decision (YYYY-MM-DD):** <call>. Tradeoff: <cost>; mitigated by <mitigation>. Revisit when <trigger>. ## Cross-cutting risks— each risk owned:**Owner: Phase N.M**.## Open items— dated checkboxes.- Optional
## Glossaryfor invented terms.
Mode: replan — change the plan honestly
- Nothing is deleted or silently edited. Changed decisions:
~~old text~~ → **Verdict (YYYY-MM-DD):** new call — reason. - New scope discovered mid-project becomes a decimal phase (
Phase 3.5) inserted in place, with a Goal explaining why it exists mid-stream. The phase number, and the task numbers under it, are provisional until the branch merges: a second session inserting at the same point draws the same number, and a keep-both merge leaves twoPhase 3.5headings with duplicate task IDs beneath them (measured 2026-09-16, 5.17.1). On collision keep both and renumber the later-merged phase and its tasks; never drop either side. - Deferred work leaves a breadcrumb at both ends: the origin notes
1.4.2 moved to Phase 3.5 (<reason>); the destination names the origin. - Reality diverging from plan gets
**Status (YYYY-MM-DD):**lines under the phase, keeping the original target visible.
Tickets mode (tracking: tickets)
Full deltas: references/tickets-mode.md — read it when the resolved
config sets tracking: tickets, and not otherwise. Document mode is the
default and needs none of it.
Hackathon mode
Use references/hackathon-template.md instead: clock-window phase headings
with hour estimates, a > **Build order:** blockquote with arrows and
unblock rationale, owner tags from the config's ## Collaborators,
← unblocks <owner> annotations, a ## Demo Script section, a
## Future Extensions (mention, don't build) section, and a submission
checklist that includes verifying no secrets file was ever committed
(the template's name check over git log --all --name-only) and that any
event-required sections are present and user-authored.
Four more things the event needs, all in the template:
- An
**Acceptance:**line on every task, runnable, written when the task is./dowill not tick a box without one. A hackathon plan that leaves them out stops every session to ask the user. - A
## File ownershiptable: every file the plan creates is owned by exactly one track. That table is what keeps parallel sessions out of each other's files, because there is no time to review. - The
acstack:hackathon-laneblock written into AGENTS.md, between its markers, with the event end filled in. The block is how this one repo overrides a personal "merge only through a pull request" rule, and it is what switches/dointo the lane, since AGENTS.md is committed and so present in every session's worktree. Offer to setmode: hackathonin.claude/acstack.mdas well if it is not already set. - The template's
.gitignorelines, withnode_modulesand the build output anchored at their real paths./dowill not land a task while its worktree holds an untracked file, and these are what common tools leave.
Then walk the user through the template's Phase 0 before any session
starts: the branch is called main; everything above, plus the dependency
files with their lockfiles and the test setup, is committed there (each
session's worktree is built from main, and a file not committed there is
missing in it); the hook that refuses commits on main is installed; and on
event day an update-ref ask rule, if they have one, comes off.
04 同仓库更多 Skills
why
Decision archaeology - answers why the code, config, or plan is the way it is by searching the record in a fixed order: BRIEF constraints, dated PLAN decisions, JOURNAL entries, then git history. Stops at the first real answer, cites it with a date, and says no recorded rationale rather than inventing one. Use when someone asks why something is this way, why a choice was made, or where a decision is written down.
verify
Audit a completion claim made by someone else - another session, agent, or teammate - against the running system rather than the diff. Re-derives what the claim's acceptance demands, runs it, and returns CONFIRMED, OVERSTATED, FALSE or UNVERIFIABLE with the command and its output. Never fixes, never edits the claim or the acceptance. Use when handed a "done", "all green", "merged" or "it works" you did not produce yourself.
triage
Backlog hygiene sweep - stale items, duplicate pairs, missing acceptance criteria, unblocked-but-unassigned work, and milestone burn, delivered as a report first with only user-approved actions applied. Works on GitHub Issues in tickets mode and on PLAN.md checkboxes in document mode. Use when the user asks to triage, groom, or clean up the backlog or the plan's open tasks.
ticket
Capture a brain-dump as a well-formed work item - verb-first title, acceptance criteria, file paths when known, an out-of-scope line. Files a GitHub issue in tickets mode or appends a numbered PLAN.md task in document mode; unknowns are marked TBD, never invented. Use when the user brain-dumps an idea, bug, or task to capture for later, or asks to ticket, file, or note something as work.
ship
Branch-level release with five gates before the act - clean-state, tests, eval-vs-target, docs drift, and attribution sweep; any failing gate stops the release with its output. Then push, and under push: branch-pr open a report-shaped PR wiring the issue-closing reference in tickets mode or PLAN task IDs in document mode. Use when the user asks to ship, release, cut, or open the PR for a feature or branch.
secure
Security review with a confidence gate - a finding exists only with a concrete exploit scenario and a high/medium/low confidence rating; everything else goes to a worth-hardening list, never inflated. Sweeps five surfaces: auth gates, secrets hygiene, injection and unsafe sinks, unsafe deserialization/crypto/transport, and LLM tool-use trust boundaries. Reports only, never fixes. Use when the user asks for a security review or to check vulnerabilities, secrets, or auth.