using-system-archaeologist
Installation
SKILL.md
System Archaeology
Build a source-grounded view of the system appropriate to the requested question. Direct source inspection is expected; tools and optional reviewers support it.
Workflow
- Establish scope and baseline (revision, relevant dirty state, entry points and instructions). Infer a useful default deliverable from the request; ask only for material missing intent.
- Inventory files, packages, interfaces, runtime/deployment paths, tests and dependencies. Use static extraction to orient, then follow real execution/data paths in source.
- Maintain a coverage ledger: inspected areas, method/evidence, inferred relationships and unknown/unread areas. Claims apply only to that scope.
- For large repositories, partition along domain/runtime boundaries and record cross-boundary contracts. Delegate only bounded independent questions when it improves coverage; no module-size threshold or fixed reviewer/scribe hierarchy applies.
- Reconcile tool/reviewer outputs against source. Spot-check decisive claims, investigate disagreement and correct either party when evidence warrants it. No agent is an unquestionable authority.
- Produce source-linked findings and diagrams, distinguishing observed structure from inference and intended design. If fixes are authorized, implement/verify them; for read-only work report recommendations only.
- Checkpoint durable results when reuse is expected. For refresh, compare against the baseline and re-evaluate affected dependencies and prior findings.
Evidence contract
A concise map/report includes baseline, scope/coverage, entry paths, important boundaries/dependencies, findings with location/consequence/confidence, checks run/omitted and open questions. Use an existing schema only when a real consumer needs it; do not force a JSON catalog or multiple documents for a small review.