as-built-architecture
As-Built Architecture Discovery
Use this skill to build a factual architecture snapshot of an existing codebase. The goal is not to improve, refactor, or redesign the system. The goal is to make the current system understandable enough that the user can reason about what has been built.
Core stance
Treat the repository as the source of truth. Existing documentation, file names, framework conventions, and user expectations are useful clues, but code and runtime behavior take priority.
Keep a strict separation between:
- Observed: directly seen in files, commands, tests, logs, configs, schemas, or runtime behavior.
- Inferred: likely based on multiple observations, but not directly proven.
- Unknown: not verified, blocked, missing, ambiguous, or outside the safe exploration scope.
Do not present intended architecture as fact. If a README claims one thing and code suggests another, report the mismatch explicitly.
Start with narrow questions
Ask up to three questions only when the answers would materially change scope, risk, or cost. Do not block on questions if reasonable assumptions let you begin safely.