Docs Evidence Backfill
Custom skill created by Maggie Lerman.
Use this skill to retrofit an existing repo onto a unified evidence system.
Treat the repository's configured docs root (DOCS/, docs/, or equivalent) as the source of truth. The examples below use {{DOCS_ROOT}} to mean that root.
Start Here
Before editing, inventory where the repo currently stores:
- audits and baseline packets
- review packets and review templates
- screenshots, exports, and manual evidence
- visual comparison boards, decision packets, and correction manifests
- repo-root
artifacts/ortmp/output - script defaults that still emit to old paths
- durable artifacts that embed absolute machine-specific paths
If the repo is greenfield or early-stage and does not already have evidence drift, use $product-operating-system-scaffold instead.
Target Model
Use this canonical layout:
{{DOCS_ROOT}}/development/- process docs only
{{DOCS_ROOT}}/evidence/active/- current durable evidence
{{DOCS_ROOT}}/evidence/archive/- historical evidence
{{DOCS_ROOT}}/evidence/templates/- reusable packet shells and review templates
Prefer project-scoped organization under each bucket.
Migration Workflow
- Inventory current evidence locations.
- Classify files into:
activearchivetemplates- delete
- Create the
{{DOCS_ROOT}}/evidence/root if it does not exist. - Move durable evidence into the canonical structure.
- Move review templates into
{{DOCS_ROOT}}/evidence/templates/. - Update docs references and script defaults that still point at old evidence paths.
- Rewrite non-portable path references where reasonable.
- Delete true scratch and cache material.
- Rebuild docs-generated surfaces and verify links.
Known Drift Patterns To Handle
{{DOCS_ROOT}}/assets/audits/{{DOCS_ROOT}}/review-boards/- repo-root
artifacts/ - repo-root
tmp/ tmp/review-boards/tmp/pdfs/output/playwright/-style evidence references- JSON/MD/TXT artifacts with stale worktree-specific absolute paths
Classification Rules
- Reusable structure belongs in
templates. - Live proof for active, blocked, or in-review work belongs in
active. - Older but still useful proof belongs in
archive. - True caches, downloads, and scratch files should be deleted rather than preserved in a fake durable temp area.
Review Board Evidence Rule
- Store reusable review-board scaffolding in
{{DOCS_ROOT}}/evidence/templates/review-board-operating-pattern/. - Treat review boards as repo-agnostic visual evidence packets, not ecommerce-only artifacts.
- If a review packet is intentionally kept, store it in the owning project's evidence directory under
review-packets/. - Do not keep a separate durable review-board temp root.
Validation
After migration, verify:
- repo docs point to
{{DOCS_ROOT}}/evidence/ - script defaults no longer point to retired evidence locations
pnpm docs:linkspnpm docs:manifestpnpm docs:projects-dashboardgit diff --check