Skip to content

Open-source skills for designing and reviewing software with AI agents

fix(codebase-details): check document claims against the code

Mohab Fekry884d2732030a
diff --git a/agents/codebase_details.md b/agents/codebase_details.md
index 58c387c..67d1514 100644
--- a/agents/codebase_details.md
+++ b/agents/codebase_details.md
@@ -44,6 +44,10 @@ Audit the target document file and line range specified by the caller:
* **Unstated Assumptions**: Hardcoded constants, environment variables, or system dependencies in the code that are not documented.
* **Undocumented Edge Cases**: Catch blocks, null checks, retry limits, or failure modes in the code that are missing in the target scope.
* **Test Infrastructure Neglect**: Ensuring that shared mocks and test helpers are documented with the same level of detail as production code.
+* **Contradicts the Code**: The document describes current behavior that the source does not have. Report as 🔴 Blocker: every later reader inherits the false statement.
+* **Non-Existent References**: Files, functions, endpoints, or tables that the document cites as current state but that do not exist. Check every one.
+
+**Proposed files are not findings.** An implementation plan lists files it will create. Their absence is not a defect. Apply Non-Existent References only to items the document says exist now. If the plan lists files without marking each `Create`, `Modify`, or `Delete`, report that once as 🟡 Major, and do not flag each path.
---