Skip to content
Back to skills

Projectstore Graph

ASecurity

Regenerate graph.md — the vault link graph (nodes + typed edges) derived from body links and frontmatter relations. Compute → preview → approval → apply through the core.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgoshellbashnodeaws

Security analysis

A100/100

Scanned November 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Projectstore Graph?

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

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

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-graph
description: "Regenerate graph.md — the vault link graph (nodes + typed edges) derived from body links and frontmatter relations. Compute → preview → approval → apply through the core."
---

## 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 managing the vault link graph — the third root-level derived view
beside kanban.md and code-map.md (spec:
vault-link-graph-derived-view-and-shared-link-resolver).

## Steps

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

2. **Compute** (read-only, the unified reconcile path):

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

   The `graph` entry carries `{ path, changed, content?, stats }` — stats:
   node count, edge count, edges by kind.
   Once `spec-tree.md` exists, a `spectree` entry comes too: every reconcile
   keeps that view fresh, so when its `changed` is true, show it in the preview
   as well; the write below rewrites it with the rest.

3. **Nothing changed** (`changed: false`) → report "graph.md already matches
   the vault — nothing to regenerate." and stop.

4. **Preview**: show `stats` and the first ~15 lines of `content`. Surface
   `dead` and `ambiguous` edge counts FIRST — they are the actionable part
   (the same facts doctor reports as wikilink findings, from the same
   resolver).

5. **Approval** via the harness's user-input mechanism: Yes / No. Disclose that content is
   recomputed from vault state at write time — the preview is advisory, the
   approval covers the regeneration action. On Yes → apply through the core,
   never the file-writing tool:

   ```bash
   node "${PROJECTSTORE_CORE_ROOT}/bin/projectstore.mjs" reconcile --write --only graph
   ```

   Explicit selection creates graph.md when absent — bare reconcile
   deliberately never mints it (first creation and re-minting after deletion
   are this command's job). Render the report's `graph` entry; nonzero exit —
   surface the `error`.

6. **Verify**: run `node "${PROJECTSTORE_CORE_ROOT}/bin/projectstore.mjs" doctor --vault` (exit 1 = findings, not failure)
   and show the summary line.

## Notes

- The grep contract: `grep '<vault-relative-path>' graph.md` returns an
  artifact's full typed neighborhood — outgoing AND incoming edges — in one
  call. Node keys are full vault-relative paths, never short names.
- Edge kinds: wikilink, mdlink, supersedes, spec-covers, spec-implements-adr,
  spec-part-of, initiative-contains, epic-contains, amends, attachment, dead, ambiguous,
  out-of-scope. Nothing resolves silently. `attachment` runs from an artifact to a kept file
  in the layout's attachments folder that it links; kept files are never nodes. `amends` runs from a story to a spec one of its
  amendment markers (`> amended YYYY-MM-DD by <ref>: <KIND> — <why>` under a
  contract) changes: one edge per pair; a marker whose ref resolves to no story
  is a `dead` edge from the spec. `initiative-contains` runs from an initiative
  to each epic whose `initiative:` names it; a value that names no initiative,
  or a list, is a `dead` edge from the epic. `spec-part-of` runs from a spec to
  the parent spec its `parent:` names; a spec tree is read from its root down
  with `projectstore graph lineage <root path> --kind spec-part-of --depth <n>`,
  and from any spec up to its root with `graph lineage <spec path>`.
  `spec-tree.md` draws the same trees, one diagram per tree; create it with
  `reconcile --write --only spectree`.
- Hand-edits to graph.md never stick: doctor flags staleness, reconcile
  repairs. Fix the source artifact, then regenerate.

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.