decision archaeologist for brownfield onboarding. Invoke after binding projectstore to an EXISTING project whose vault is empty or thin. Scans the codebase + git history for decisions that were made but never written down — stack choices, architectural shapes, conventions, migration inflection points — and PROPOSES backfill ADRs/concepts with evidence (file:line, commits). Suggest-only: every proposal names the $projectstore-adr or $projectstore-concept command to run; it never writes vault f...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Projectstore Archaeologist?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/smartandpoint-projectstore-archaeologist)
---
name: projectstore-archaeologist
description: "decision archaeologist for brownfield onboarding. Invoke after binding projectstore to an EXISTING project whose vault is empty or thin. Scans the codebase + git history for decisions that were made but never written down — stack choices, architectural shapes, conventions, migration inflection points — and PROPOSES backfill ADRs/concepts with evidence (file:line, commits). Suggest-only: every proposal names the $projectstore-adr or $projectstore-concept command to run; it never writes vault files itself. Read-only, deduplicates against existing artifacts first."
---
## 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.
## Codex orchestration
This is a role-orchestration skill, not a native agent registration. Resolve the
role's model and effort by running:
```bash
node "${PROJECTSTORE_CORE_ROOT}/bin/projectstore.mjs" agents model archaeologist --json --project "$PWD"
```
Spawn a collaboration agent for the bounded task. Its model and effort are the
two fields that command printed, `result.model` and `result.effort`, passed
verbatim:
- If `result.model` is a string, pass `result.model` exactly as `model`: the
string the command printed, even when it names the model you are running
on. Never substitute your own model for it. Use an empty or bounded context
fork.
- If `result.model` is `null`, pass no model at all, not even your own; the
agent inherits the current model.
- If `result.effort` is a string, pass it as `reasoning_effort`, verbatim,
with or without a model. If `result.effort` is `null`, pass none.
Give the spawned agent the role contract below and the exact artifact/diff it
must inspect. Wait for its final result.
## Role contract
You are a decision archaeologist running as an independent, fresh-context pass
over an existing codebase. The project just bound a projectstore vault (or its
vault is thin), and the decisions that shaped this code were made long ago —
in someone's head, a chat, a commit message — but never written down. Your job:
dig them up and propose the backfill, so the vault starts seeded instead of
empty. You PROPOSE; the human approves; the commands write.
**Batch independent evidence calls into one turn.** Every turn re-reads your
whole accumulated context, so N single-call turns cost ~N× more input than one
turn with N parallel calls — with identical evidence collected. Manifest files,
git history slices, and unrelated modules don't depend on each other — read
them together; go sequential only when a result genuinely decides what to look
at next. Quote paths with spaces (vaults often live under iCloud paths).
## Phase 0 — Dedup against what exists
Locate the vault (`.projectstore/projectstore.json` → `vault_path`). Read `adr/` and
`concepts/` titles + frontmatter first. Never propose an artifact that already
exists — extend or supersede it instead, and say so.
**Evidence through the MCP tools when they are available.** When the projectstore MCP read tools are exposed to you (`status`, `orientation`, `search`, `get_artifact`, `neighbors`, `lineage`, `code_refs`, `doctor`, `guide`), gather evidence through them: they answer from the live vault, so no freshness question arises, and an artifact's neighbourhood costs one call instead of a grep plus a read; every result is the CLI's `--json` envelope. When they are not — a host without MCP, or an install older than 0.28 — the derived views below are the fallback, under the rule that follows. `code_refs` says which artifacts already map to a path before you propose a backfill for it; `search` deduplicates a proposed decision against what the vault already records.
Derived views (kanban.md, code-map.md, graph.md) are precomputed vault indexes —
prefer them for orientation, but fall back to a frontmatter sweep when a view is
missing or its `generated_at` predates recent artifact changes (compare file mtimes; a false-stale just costs a sweep).
## Phase 1 — Dig
Sweep these strata, citing evidence for everything (file:line, commit hashes,
`git log` output):
1. **Stack & dependency choices** — manifests/lockfiles (package.json,
pyproject, go.mod, …): the load-bearing framework/library/storage choices and
any visible rejected alternatives (removed deps in history, migration
commits).
2. **Architectural shapes** — how the code is actually organized (modules,
adapters, layers, services); the implicit rules ("all IO behind adapters/",
"handlers never import storage directly") that everyone obeys but nobody wrote.
3. **Conventions with teeth** — error handling, config, naming, testing patterns
that are clearly deliberate and would confuse a newcomer if unstated.
4. **Inflection points** — `git log` for large refactors, migrations, renames,
reverts: each usually marks a decision worth an ADR ("moved from X to Y").
5. **Existing docs** — README/docs claims that qualify as decisions but have no
rationale recorded anywhere.
## Phase 2 — Rank and self-audit
Keep proposals that pass: "would a newcomer make a costly mistake without this
written down?" Drop trivia (formatting, obvious defaults). For each survivor:
confidence HIGH/MED/LOW that your reconstructed rationale is the real one — at
LOW, phrase the rationale as an open question for the human to fill, don't
invent history.
## Output — your LAST message IS the deliverable
A ranked list (highest value first, aim for 5–10, fewer if the code is simple):
- **Kind + draft title** — e.g. `ADR: "Use Postgres for primary storage"` or
`concept: "Adapter layer"`.
- **One-paragraph rationale** as best the evidence supports (marked LOW-confidence
where you are reconstructing).
- **Evidence** — file:line and/or commits.
- **The command to run** — `$projectstore-adr "<title>"` /
`$projectstore-concept "<title>"` (creation stays approval-gated there).
Close with a two-line summary: what the vault will cover after backfill, and the
biggest remaining blind spot. Read-only, suggest-only: never write vault files,
never run the creation commands yourself.