AGENT SKILL

plan-audit

Audit ele plans against the code and each other for stale premises, contradictions, waits nothing ends, inbox items to triage and plans ready to close. Use when about to pick up or close a plan, when plans feel stuck, or when asked for a plan audit; with close and a plan's path, when working its closing action.

License 许可
GPL-3.0
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
plan-audit
description
Audit ele plans against the code and each other for stale premises, contradictions, waits nothing ends, inbox items to triage and plans ready to close. Use when about to pick up or close a plan, when plans feel stuck, or when asked for a plan audit; with close and a plan's path, when working its closing action.
argument-hint
[<path>... | drafts <path>... | close <path>]

03 SKILL.md 正文

A plan audit runs ticket-audit's engine over plans. <ticket-audit> is ticket-audit/SKILL.md in the skills directory holding this skill's base directory. Read it first and follow its sections, with each item standing for a ticket and the differences below. Then run this skill's own methods.

Plan files are repository files: every fix is an edit made on approval, never a script. Notes go through the ele:remember skill's Propose section.

Which plans

With paths, those plans; /ele:plan new and convert pass their drafts to Drafts mode below, and close with a plan's path goes to Close mode below, skipping this section. With none, every active plan of the repository:

ele plan list --project <name>

<name> is the repository's basename. Then, per plan, from the root of the repository holding it, since ele plan check resolves a path in the working directory's checkout:

ele plan check <path>

Its warnings, which ele plan check --help lists, are mechanical and already found. Report them as found by ele plan check; no method re-derives them.

Done when every plan in scope is listed with its path and its check warnings, or "no warnings".

Drafts mode

With drafts and paths: the paths are unstarted drafts, audited for a review loop. It reports and changes nothing. In scope are the drafts and every active plan of the repository, listed by ele plan list run at its root. The Which plans section and the ticket-audit sections below run with these differences:

  • No §0, and none of this skill's own methods, Waits nothing ends to Closing
  • §1: read each draft's ## Requirements with its Context and Decisions. A repository the caller does not mark ours or read-only, and current, is a question
  • §2: no scope approval. §3 runs over every open action of the drafts, the closing one included; §4 to §8 across every plan in scope, so a draft contradicting an active plan is found
  • Ask the user nothing: a question §1 or Questions and rulings would ask, after its recall and grep, goes in the report, as does a subagent's
  • No §9 and no §10 ledger record: no file is edited and nothing is recorded
  • Each finding takes a level from the Severity section of reference/plan-practices.md in the plugin root, the directory holding skills/, and the plan path and line it rests on, in each plan for a contradiction between two

The report: ticket-audit's §10 report without its record, plus each plan's ele plan check warnings, the findings blockers first, each with its level, and the open questions.

Done when every finding carries a level and a line, every question is in the report, and no plan file or ledger was written.

Close mode

With close and one path: the plan's closing action is being worked, and this mode sends each Decision where it outlives the plan, since the plan's file is deleted and its reasons with it. It runs alone: none of ticket-audit's sections and none of this skill's other methods. Run it from the plan's checkout, where its ADRs and spec are found. Sort each line of the plan's ## Decisions into one kind:

  • Architectural: hard to reverse, surprising without context, and the result of a real trade-off, all three; failing any part, it is design, since an ADR is earned. Where the repository keeps ADRs, found by the ADRs section of reference/plan-practices.md in the plugin root, draft one ADR a Decision as the next number in its series, the topic's in a per-topic series, asked when unclear. Follow the format of the series' latest record, or its template where it keeps one, the status accepted where the series writes one; its considered options are the Decision's rejected: lines, and its context, decision and every consequence, good and bad, go in the sections that format holds. A Decision contradicting an accepted ADR asks whether it supersedes that one, its own question. Write the ADR on approval; declined, write none and fold the Decision as design. A repository keeping no ADRs folds it as design: it never gets one unasked
  • Design: why what was built behaves as it does, which a later reader would otherwise undo. Its reason goes into the spec beside the behaviour it explains; where the spec already carries it there, say where and write nothing. With no spec:, propose it as a decision through the ele:remember skill's Propose section
  • Process: how the plan was run, its order, sizing or research. It goes with the plan; git keeps it

Show the sort, each Decision with its kind, its reason for the kind, and its fold drafted: the ADR's file name and text, the spec line, the decision note, or where the spec already carries it. Done when the user has approved or changed each, and each approved fold is written.

Ticket-audit's sections, for plans

  • §0: one recall per plan, <topic> being its file name and audit, since recall matches only an entry holding every word. Also read the newest handoff, ele handoff list --all --project <name>, and keep ele context's open question notes for Open questions below

  • §1: one corpus for every plan in scope:

    mktemp -d
    ele ticket corpus --plan <path> --plan <path> ... --out <audit>
    

    run as two calls, <audit> being the path mktemp -d prints, written into each later command as ticket-audit §1 says

    Each Actions and Inbox item lands as <plan>-<nn>.md and raw/<plan>-<nn>.md, <plan> being the file name without .md, <nn> its position in the file. Add each plan's spec from its front matter, and read its Context and Decisions as the plan's notes. Name an item <plan>/<name>, the kebab name after its checkbox; an unnamed one, an inbox item or the closing action, by plan and title. Its ledger key is the repository's origin project path, so another checkout keeps its rulings, then the plan's path and its name, so rewording keeps them; an unnamed action's or an inbox item's key is its title, a leading word: on an inbox line included. Two plans of one file name, drafts in two repositories, are refused: audit each repository's plans in a run of its own

  • Frontier: per plan, the open actions ele plan show <path> does not list as blocked. Each item a blocked: line names is an edge to it. A prose blocked: line, and an after: line until its date, hold the item off the frontier with no edge. plan/SKILL.md's format, in the skills directory holding this skill's base directory, has both lines' syntax

  • §2: the subagent brief also carries this file's absolute path, which a subagent reads after <ticket-audit>

  • §3 runs over the frontier of every plan in scope

  • §4 and §5 always run, and across plans: a producer in one plan and its consumer in another is what a single-plan audit misses

  • §6: the edges above. ele plan check already flags a blocker done or missing; check that file order builds, an item reading what a later item produces being out of order

  • §7: a decision lives once, in a plan's Decisions or its spec; an item or another plan restating it is a second copy

  • §8: each as of line under its age limit still needs its figure re-counted where §3 reaches it; a plan's status sentence is checked against its ticks

  • §9: propose each edit, apply it on approval, and read the file back. A ruling that commits an item to an edit not made in this audit is written as a next: line in the item's body. Skip the script, the ! and --compare

  • §10: the ledger takes §3 to §8's methods only; this skill's own methods are reported, not recorded

  • Elsewhere: <n>.md is <plan>-<nn>.md; a ticket's comments are its item's body; the map's notes are the plans' Context and Decisions

Waits nothing ends

Every blocked: line, after: line, and decision or item saying it waits until, once or after something: name the item, date or event that ends the wait. A wait on an item no plan holds, on an event nothing produces, or on prose nobody will remove is a finding: the item sits off the frontier for good.

Done when every wait in scope is listed with what ends it, or flagged.

Inbox triage

For each inbox item of every plan in scope, with its age from its leading date, propose one:

  • Delete: an action already covers it, or it is done
  • Finding: it contradicts a decision; report it as contradicting that decision
  • Move to an action in its plan, named, with a done-when
  • Move to another plan's inbox: it serves that plan's why
  • Plan candidate: it serves no active plan's why; a question note starting Plan candidate: through the ele:remember skill's Propose section, then delete the line
  • Out of scope: - <gist>: <why> (ruled <date>, from <source>) under the plan's ## Out of scope, adding it as the plan's last section if it has none
  • Leave: not sharp enough to be an action yet

A line moved into a plan cites no ele data, which resolves only in its author's data directory: delete a note id or session that records where it came from, describe what was observed in place of one cited as evidence, and move a note it depends on into the plan, superseding the note.

Done when every inbox item has a proposal and each approved one is applied.

Plan candidates

From ele context --project <name>, every open question note that is a plan candidate, grouped by theme: its text starts plan candidate in any case, then optional spaces and :, ( or ,, the set the start block counts. For each group, propose: a new plan through /ele:plan new, an active plan's inbox, or waiting. A group becoming a plan or moving into an inbox supersedes its notes.

Done when every plan candidate note is in a group with a proposal.

Open questions

Every other open question note of the project: propose a home. A plan's inbox, when an active plan's why covers it; a plan candidate, reworded to start Plan candidate:; or staying a question, when it waits on a measurement or a person. A note that moves is superseded through ele remember --supersedes, on approval. Related questions become one candidate note, repeating --supersedes once per question.

Done when every open question note has a proposed home.

Handoff

The newest handoff from §0: check each claim it makes about a plan, an item's state, a commit or a next step against the plan files and git log. A claim the files no longer bear out is a finding; the next session starts from it.

Done when each of the handoff's claims about plans is marked holds or stale, or there is no handoff.

Closing

  • Per plan that ele plan check calls ready to close: its inbox empty, or each item triaged above; its out-of-scope lines ready for the fold. Propose closing it next
  • How many plans are active. Over 3, flag it and propose which to close first: the one nearest done, or one whose why another plan now covers

Done when each plan's readiness is stated and, over 3 active, an order to close them is proposed.

Report

ticket-audit's §10 report, plus:

  • Each plan with its ele plan check warnings
  • Per method of this skill: what it found, or "nothing" with what it read
  • Every proposal, applied, declined or open

Done when every plan in scope and every method above, Drafts and Close mode aside, appears in the report.

04 同仓库更多 Skills

nicolaspearson
nicolaspearson/claude-ephant

wrap

Wrap up a session by asking what to keep as notes, plan inbox items, progress lines or a recipe, which due reminders to close, and whether to hand off. Use when the user asks to wrap up or end a session, or asks "anything to remember or hand off?"; never start one unasked.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

ticket-audit

Audit a tracker's ticket map against the code for stale premises and contradictions. Use when about to pick up a ticket or close a map, or when asked for a ticket audit; for ele plans, use ele:plan-audit.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

setup

Set up ele after installing it, or in a directory no owner covers, by proposing the ele owner commands that map it and running them once the user approves. Use when the user asks to set up or configure ele, when the start block says no owner covers the directory, or when ele status names no owner here.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

review

Review a merge request or pull request, a local branch or a commit with checkpoint's reviewers, and walk through its major findings, then any minor ones you pick, to publish, copy or skip. Uncommitted work is checkpoint's.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

remember

Save a decision, an open question, a dated fact or a reminder for a later date so later sessions start with it. Use when the user says "remember this", "we decided…" or "remind me on…", or a skill or ele's Stop hook asks for notes.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

recipe

Propose a reusable multi-step procedure this session ran as a user skill, and write it once the user approves; with audit, check the user's skills for commands, flags and versions that no longer exist. Use when the user asks to save a procedure as a recipe or skill, or to audit their skills for stale commands; /ele:wrap offers a recipe too; never start one unasked.

★ 0