Skip to content
Back to skills

Projectstore Codemap

ASecurity

Regenerate code-map.md (epic ↔ code overview) from frontmatter code_refs, or set an artifact's code_refs. This command and a story's close write refs — planner/reviewer only propose them. Arguments: [set <epic-id | story-path> <ref> [ref…]].

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

Security analysis

A100/100

Scanned November 20, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Projectstore Codemap?

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

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

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-codemap
description: "Regenerate code-map.md (epic ↔ code overview) from frontmatter code_refs, or set an artifact's code_refs. This command and a story's close write refs — planner/reviewer only propose them. Arguments: [set <epic-id | story-path> <ref> [ref…]]."
---

## 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 epic↔code mapping (ADR-004).

## Bare `codemap` — regenerate the view

1. **Check config**; stop if missing.
2. Compute (read-only, the unified reconcile path):

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

   The `codemap` entry carries `{ path, changed, content?, stats }`.
   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. Show `stats` (epics, epics_with_refs, story_rows) + first ~15 lines of
   `content` when changed.
4. **Approval** via the harness's user-input mechanism: Yes / No (disclose: content is recomputed
   from frontmatter at write time; the preview is advisory). On Yes → apply
   through the core, never the file-writing tool:

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

   Explicit selection writes the map even on a vault with no `code_refs` yet.
   Render the report's `codemap` entry; nonzero exit — surface the `error`.
5. Suggest: "A story's close writes its refs and widens its epic's; `codemap set` changes or removes them."

## `codemap set <target> <ref…>` — update frontmatter (the write path)

1. **Resolve target**: an epic id (`PS-AGENTS` → `epics/PS-AGENTS/epic.md`) or a
   story path relative to the vault. Stop with a clear error if not found.
2. **Read the file**, show current `code_refs` vs proposed (`["src/auth/", …]`).
   Validate: repo-relative paths/globs; warn (don't block) on paths that don't
   exist yet — planning-time refs are legitimate (doctor is status-aware).
3. **Approval** via the harness's user-input mechanism (diff preview). On Yes → Edit the frontmatter
   `code_refs` line only; also bump `updated:` if the artifact has it.
4. **Offer regen**: "Refresh the view? (runs bare `codemap`)" — on Yes, run the
   bare flow above.

## Notes

- Story `code_refs` = files that story touched; epic `code_refs` = the epic's
  overall footprint. Doctor checks story ⊆ epic and path existence
  (status-aware). `reconcile` also regenerates the view.
- Never write refs without approval; never let an agent edit them directly —
  planner/reviewer *propose*; this command and a story's close *write*, each
  behind its approval (`$projectstore-story close` adds the files of the
  story's pull request, through `close-refs`, and widens the epic's footprint).
  A close only adds; this command is the way to change or remove a ref.

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.