---
name: obsidian-prune
description: Audit repository-backed Obsidian project plans, reconcile phase boards without changing manual ordering, check completion evidence and update current requirements. Use for a planning cleanup or progress audit; does not delete unfinished work or imply a commit.
---

# Audit plans against the work

Use the repository's planning conventions. Defaults are an Obsidian vault at
`planning/`, project boards in `planning/Boards/`, and each project's notes and
phase files in `planning/projects/NN. Project Name/`. Project folders and phase
filenames stay fixed. This skill supplies no synchronization script and requires
no API connection.

## Inspect before rewriting

Read the boards, Research.md, Planning.md, decisions.md and phase files in the
requested scope. Record initial project states so newly completed projects are
identifiable. A phase has a unique `phase: "NN.X"`, `project:` and a status of
pending, in progress, done or deferred.

List inconsistent counts, duplicate IDs, missing files, malformed frontmatter,
stale links and status disagreements. Read actual code and relevant test results
before accepting a completion claim. Do not remove a missing-file card just to
make the count work; find its target or report the unresolved reference.

Keep deliberately deferred and archived projects parked. Read their notes when
needed for context without treating an audit as a request to resume them.

## Check phases and evidence

Each actionable phase needs Goal, Context, Files, numbered Tasks and verifiable
Done Criteria. Missing sections are a reason to inspect, not evidence that work
can be discarded. Complete an incomplete phase specification when its intended
work is clear. Convert a reference-only note to `status: documentation`, remove
its phase property and number, and update its links without overwriting another
file. Keep the content and flag ambiguous cases.

Check that done phases satisfy their criteria, with concrete Evidence for the
checks performed. A board tick is a completion request to inspect, not proof.
If recorded status overstates the result, correct it and explain what remains.
Do not invent runs, verifier names or dates.

When acceptance needs a person, ensure the phase has `verification: manual` and
one or more kinds: app, install, platform, visual, live-data or users. Test Steps
must have separate cases with stable IDs, setup and inputs, repeatable actions,
expected outcomes, pass conditions, actual results and a verifier/date field.
Only a recorded human pass closes that gate; automated checks alone cannot.

A phase may need both implementation and manual acceptance. Keep its manual
marker while work is unfinished, and keep the project out of testing. A failed
manual check records the failure and leaves the gate open; describe the required
fix in an unfinished phase without losing the original acceptance case.

## Reconcile deterministically

Use the phase files as the source for the board after adjudicating checkbox and
status disagreements. Do not assume external sync commands are present.

1. Give every phase exactly one linked card on its project's board. Use
   vault-relative links, for example
   `[[projects/NN. Project Name/NN.0 Project Name — Foundation|NN.0 Foundation]]`.
   Preserve card annotations, unrelated frontmatter and Kanban settings.
2. Place pending and in-progress phases in phases; done phases with `[x]` in
   completed; deferred phases in deferred. Always keep phases and completed.
   Only use testing for unfinished manual gates when the project has at least
   one done phase and no implementation or automated acceptance left.
3. Preserve the relative order of cards already in the correct lane. Append
   moved cards in their previous board order, then newly found cards in numeric
   phase order. Never sort an existing lane to make it look tidier.
4. Count done over all non-deferred phases; exclude documentation. With a
   positive total, all done means done; ready human checks remaining means
   testing; work begun means started; otherwise planned. All-deferred work is
   deferred, and an empty project is not complete. Keep deliberately parked or
   archived projects in their chosen state until the user changes it.
5. Set `kanban-plugin: board` in board frontmatter and update its project,
   status, phases count and docs links; match the
   project status in Planning.md and reconcile its phase links. Do not move
   project folders or rename files just because phases completed.
6. Refresh `planning/Manual verification.md` with unfinished manual phases,
   links, kinds and whether they are ready to run. Keep detailed cases and
   results in their original phase files.

An unreadable or ambiguous phase prevents a clean completion claim. Resolve
what can be established from the files and report the remaining discrepancy.

## Review completed projects

For projects newly complete, compare Research, Planning, decisions and other
documentation with the implementation and relevant checks. Check referenced
paths and identifiers, then read the behavior they describe. Finding a symbol
is not sufficient proof that a design claim is true.

Correct stale current documentation, preserving the decision history. Append a
dated completion coherence entry to decisions.md with what was checked, the
outcome and any remaining limitations. If the review finds unfinished required
work, reopen the appropriate phase and reconcile the project again. Avoid
adding identical coherence entries on repeated audits of unchanged work.

Update `planning/requirements/<topic>.md` for behavior that is now confirmed.
Use `status: current` and `topic:` frontmatter, present-tense testable statements
and links to the relevant `[[projects/NN. Project Name/decisions]]`. Refine
existing statements instead of duplicating them. Scope branch-only behavior to
that branch; do not present it as already released.

Maintain `planning/requirements.md` as a Kanban index with exactly one card per
topic linking to its requirements file. Requirements describe current behavior,
not implementation steps or a list of completed projects.

## Finish the audit

Review the diff, resolve broken links and confirm counts and lane order. A
second reconciliation over unchanged inputs should produce no new edits.
Summarize projects and their done/total counts, reopened work, human checks
still waiting and unresolved discrepancies. Follow the user's Git workflow;
this skill does not itself authorize a commit, push or external update.
