Command Palette

Search for a command to run...

Назад к скиллам
скилл № 44944

plan-audit

Reconcile every plan-state surface a project tracks into one completion audit — how many recent plan tasks shipped, how many remain, and which surfaces…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

Установить plan-audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/plan-audit — Plan-Completion Audit (project-agnostic)

Wraps the native fak dev plan-audit reconciler + the plan_docs_glob declared in .claude/project.yaml. If a project keeps a single plan-state surface (the plan docs themselves — no typed registry, no live-percent YAML), then drift is structurally empty and the helper's percent_complete is a coarse header-marker signal (shipped/built marker present → 100), not a verified per-unit census — read the "Work-units rollup" as a floor. The reconcile machinery below activates only once a project grows a second surface.

Answer "how much of the plan portfolio is done, and how much is left" with one reconciled view instead of the several surfaces that routinely disagree (a typed plan registry, a live-percent state file, the plan-doc glob, git claim/ship history — projects vary in which subset they keep, but the failure mode is the same: they drift).

This skill does not re-implement any per-surface scan. The project's helpers.plan_audit script orchestrates whatever surfaces the project has, joins them on plan id, and emits one reconciled JSON. This skill consumes that JSON and renders an operator snapshot.

⚓ One surface per metric. This is the audit surface. It is read-only on every plan file. Drift is reported; the operator resolves it by editing the project's plan-state files. The audit itself never writes a plan file.

Project contract

This skill reads .claude/project.yaml at the repo root. Required keys:

  • python — interpreter path (default: python).
  • helpers.plan_audit — native command that emits the reconciled JSON (shape below).
  • plan_docs_glob — glob for the project's plan documents (default: docs/*-plan.md).
  • audits_dir — where to write plan-completion-<YYYY-MM-DD>.md (default: docs/_audits/).

If .claude/project.yaml is missing or helpers.plan_audit is absent, print one line pointing at .claude/skills/README.md and stop. Do not improvise file locations.

No-plans projects. If plan_docs_glob matches zero files, the skill prints no plan docs found — nothing to audit and exits 0. A project that does not run phased plans is a supported configuration — the contract just no-ops.

Expected JSON shape from helpers.plan_audit

The native command is invoked as <helpers.plan_audit> --json and must emit a single JSON object to stdout with these keys:

Key Type Purpose
counts object Headline totals: total_plans, complete, in_progress, not_started, plus any project-defined slot/class buckets (e.g. keep_slots)
plans array of per-plan rows One row per plan; columns are project-defined but should include at minimum id, name, and one reconciled percent_complete-style value plus the per-surface raw values
drift array Each entry: {id, name, flags: [string, …]} — one row per plan with at least one surface disagreement
work_units object Two rollups: plan_weighted (every plan = 1 unit scaled by reconciled percent) and task_weighted (sum of per-plan phase counts where the helper can parse them). Both carry a pct_complete; task_weighted additionally carries coverage_plans / coverage_total so the renderer can label it a floor

If a project's helper does not yet emit work_units (a phased-plan portfolio with no parseable phase counts), the skill still renders counts, plans, and drift, and notes "work-units rollup not available for this project" once in the summary.

Expected behavior of helper exit codes

  • 0 — audit ran cleanly; the JSON is consumable.
  • 1 — used by --check mode only (drift gate). Means "drift detected, please look." The skill in normal (--json/--markdown) mode treats 1 as "ran with non-blocking findings" and proceeds.
  • 2 — infra error (a surface file missing, a sub-script failed). Skill prints the helper's stderr verbatim and stops; do not guess at numbers by hand.

Step 1: Run the reconciler

<helpers.plan_audit> --json

Read the JSON inline from the Bash tool result. If the helper exits 2, print its stderr and stop.

If the helper exits 0 with {"counts": {"total_plans": 0}} (or equivalent — see "No-plans projects" above), print one line — no plan docs found — nothing to audit — and exit 0.

Step 2: Render the operator snapshot

<helpers.plan_audit> --markdown --out <audits_dir>/plan-completion-<YYYY-MM-DD>.md

Use today's date in UTC. Use --out (not a shell > redirect) — PowerShell redirects re-encode to UTF-16 and mangle non-ASCII glyphs like · / —; --out writes UTF-8 directly. If a report for today already exists, overwrite it (one audit per day).

If audits_dir does not exist, create it (the audit file is the only thing the skill writes — a fresh project may not have the directory yet).

Step 3: Summarize for the user

In the chat response, lead with the headline counts (total_plans / `comp

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Bash
  3. 03Write
  4. 04Grep
  5. 05Glob

FAQ

Что делает скилл plan-audit?

Reconcile every plan-state surface a project tracks into one completion audit — how many recent plan tasks shipped, how many remain, and which surfaces disagree. Runs the project's plan-audit helper and renders a dated operator snapshot. Use when the user asks "where do we stand on the plans", "audit plan completion", "what's shipped vs remaining", or wants the portfolio percent-complete picture. Read-only — never edits a plan file.

Как установить скилл plan-audit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл plan-audit запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить plan-audit с