/prd-os:prd-map [--force]from prd-os
Builds a facts-only structured codebase map (JSON + Markdown) so PRDs have repo context. Supports --force rebuild and status command to check staleness.
Ships in prd-os. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Scan the current repo and write a structured codebase map to
.prd-os/codebase-map.json (canonical) plus .prd-os/codebase-map.md
(human-readable sibling). The map records languages, package manifests,
entry points, top-level directory structure, and lint/test config. It is
facts-only — no pattern distillation, no opinions.
Why this exists:
/prd-start produces PRDs. Without a codebase map, the author relies on
memory about what already exists in the repo./prd-review can cite the map when checking scope.schema_version: 1) and carries built_at +
git_sha so /prd-map status can report staleness.Security: dotenv files (.env, .env.*) have their names recorded but
contents are never read. Reports/, node_modules/, .venv/,
__pycache__/, and similar are skipped entirely.
Run:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/prd_map_runner.py" build ${1:-}
If the map already exists, the runner exits non-zero. Pass --force to
rebuild:
/prd-map --force
To check whether the current map is stale without rebuilding:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/prd_map_runner.py" status
Default staleness thresholds: 30 days since last build, 50 commits ahead of
git_sha at build. Override with --max-age-days or --max-commits-ahead.
Do not auto-run this inside other commands. The map is a deliberate, author-triggered artifact so PRD work stays grounded in a known snapshot rather than an ever-shifting scan.
7-day visitors to each command page
14 commands in this plugin
/issue-amendIssue AmendRe-snapshot the active issue's scope from the spec, clear verified and reviewed receipts, and record the change as a permanent amendment/issue-approveIssue ApproveApprove the planned DSSE issue and transition it from open to in-progress/issue-closeoutIssue CloseoutTriage Codex findings via per-finding dispositions, mark findings_triaged, close the active issue/issue-reviewIssue ReviewRun Codex native + adversarial review against the active issue, scoped to allowed_files, capped per kind/issue-startIssue StartLoad a DSSE issue spec and begin structured work/issue-verifyIssue VerifyRun all required_checks for the active issue and record the verified receipt2 plugins ship this exact command · first indexed Jul 18, 2026
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Other plugins' commands for the same job