Skip to content
Back to skills

Projectstore Reconcile

ASecurity

Re-derive every derived view (kanban, folder-index READMEs, code-map, graph, flow, spec-tree) from the vault's source of truth — the repair half of doctor's vault checks. Hand-edits can never permanently desync the board.

  • 13 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsgoshellbashnode

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add SmartAndPoint/ProjectStore --skill projectstore-reconcile --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Projectstore Reconcile?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Projectstore Reconcile
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smartandpoint-projectstore-reconcile/badge)](https://www.skillsdirectory.com/skills/smartandpoint-projectstore-reconcile)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: projectstore-reconcile
description: "Re-derive every derived view (kanban, folder-index READMEs, code-map, graph, flow, spec-tree) from the vault's source of truth — the repair half of doctor's vault checks. Hand-edits can never permanently desync the board."
---

## Runtime path

Resolve paths from this skill's own directory, never from the checkout or a
remembered cache path. The plugin root is two directories above this SKILL.md;
the bundled core is `<plugin-root>/node_modules/projectstore`. Before running
any ProjectStore command, export `PROJECTSTORE_CORE_ROOT` to that bundled-core
path in its own shell statement, then use `node "${PROJECTSTORE_CORE_ROOT}/…"`.
Do not prefix the command with the assignment: a shell expands the quoted path
before that inline assignment takes effect. If the bundled core is missing, stop
and report a broken plugin install; do not fetch a different version from npm.

## User arguments

The source command's host-substituted argument token is rendered here as
`<user-arguments>` (or `<user-arguments-without-fix>`). Before executing a
shown command, replace that token with the actual arguments from the user's
request and shell-quote values safely. Never pass the angle-bracket token
literally and never treat it as a shell variable.

You are reconciling the vault's derived views with their source of truth (frontmatter).

## Steps

1. **Check config**; stop if missing.

2. **Compute** (read-only):

   ```bash
   node "${PROJECTSTORE_CORE_ROOT}/bin/projectstore.mjs" reconcile
   ```

   Output JSON: `kanban` / `codemap` / `graph` / `flow` / `spectree` /
   `indexes[]`, each `{path, changed, content?}`, plus `summary.changed`. A
   graph.md that does not exist yet reports `skipped` — bare reconcile never
   mints the file; first creation goes through `$projectstore-graph` (or
   `--only graph`). The same holds for flow.md, the flow page (WIP, the date
   each open story entered its status, the epics without movement, weekly
   throughput, the cycle time, cumulative flow): an absent one reports
   `skipped`, and first creation is `--only flow`.
   `spec-tree.md`, the view of the spec trees, is created only by
   `--only spectree` too; once it exists, every reconcile keeps it fresh,
   whatever `--only` names.

3. **Nothing changed** (`summary.changed == 0` and `summary.failed == 0`) →
   report "Derived views already match frontmatter — nothing to reconcile."
   and stop.

4. **Preview**: list each changed target (path + a one-line what: "kanban board",
   "adr/ index", "code map", "link graph", "flow page", "spec tree"). Show a short diff excerpt for indexes.
   **Surface any target carrying `error` first** — an errored target has no
   `changed` flag, so it never appears in the changed list; a broken board
   must not hide behind a clean-looking preview.

5. **Approval** via the harness's user-input mechanism: **Apply all** / **Select targets** / **Cancel**.
   Disclose in the question that content is recomputed from the vault at write
   time — the preview is advisory, the approval covers the regeneration action.
   When `spec-tree.md` exists, say that every write refreshes it: leaving its
   `spectree` target out of a selection does not keep the old file.

5a. **Delegate the apply — enumerated case: two or more targets** (ADR "Artifact
   content is authored by the context-holder, the write ceremony by a clerk").
   When the approved set contains two or more targets, hand steps 6-7 to
   `$projectstore-clerk`: pass the exact selector list from step 4's preview and
   the expectation that doctor ends clean. **Model and effort (ADR-008)**: resolve
   them with `node "${PROJECTSTORE_CORE_ROOT}/bin/projectstore.mjs" agents model clerk --json --project "$PWD"` and pass `result.model` as the spawn's model parameter, verbatim — never substitute the model you are running on (`null` → pass nothing), and `result.effort` as its effort parameter when it is not `null` and the spawn offers one;
   missing key, `inherit`, or unreadable config → pass nothing and let the
   agent's own frontmatter decide; never guess a model. The clerk applies
   through the core exactly as step 6 specifies and reports per target. A single
   approved target stays in the main thread — the spawn costs more than it
   saves. No clerk available → steps 6-7 yourself; never a general-purpose
   substitute.

6. **On approval**: apply through the core — never the Write/file-editing tools:

   ```bash
   node "${PROJECTSTORE_CORE_ROOT}/bin/projectstore.mjs" reconcile --write --only <approved,targets>
   ```

   Selectors: `kanban`, `codemap`, `graph`, `flow`, `spectree` (needs a spec
   folder), `indexes` (all), `indexes=<folder>` (one).
   "Apply all" means the targets previewed in step 4, passed explicitly — not a
   bare `--write`. The script recomputes each target immediately before its own
   atomic replace; manual prose outside the managed Index tables is preserved by
   construction (check-and-retry re-reads the README before writing). Render the
   report: per target `{path, changed, written, error?}` + `summary`. A nonzero
   exit means at least one target failed — surface its `error`.


7. **Verify**: run `node "${PROJECTSTORE_CORE_ROOT}/bin/projectstore.mjs" doctor --vault` (exit 1 = findings, not failure) and show
   the summary line — reconcile's whole point is a clean doctor afterwards.

## Notes

- Reconcile owns **vault-side** repair (ADR-005 boundary); install-side repair
  lives in `$projectstore-doctor --fix`.
- Frontmatter is never modified here — if the *frontmatter* is what's wrong, fix
  the artifact, then reconcile.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.