name: excavate-assumptions description: Audits a spec, plan, or PRD by spawning an Assumption Excavator subagent to cross-reference the proposed plan with the live codebase, identifying mismatches in APIs, schemas, configurations, and file structures.
Excavate Assumptions Skill
Use this skill when you or the user have proposed a spec, plan, or PRD, and you want to verify that the implementation plan aligns with the actual, current state of the codebase.
Workflow
Identify the Plan/Spec:
- Locate the target plan, spec, or design document (typically in
.jai/plans/or.jai/tmp/).
- Locate the target plan, spec, or design document (typically in
Spawn the Assumption Excavator Subagent:
- Launch a specialized
researchorselfsubagent. - CRITICAL: The prompt to the subagent must be goal-oriented. Do not prescribe specific files to read or commands to run. Instead, define the objective and constraints.
- Goal-Oriented Prompt Template:
You are the Assumption Excavator. Your objective is to audit the proposed plan/spec (<PLAN_PATH>) against the live codebase. Identify and report: 1. Stale or incorrect assumptions about existing APIs, function signatures, data schemas, and exports. 2. Mismatches in configuration structures, file layouts, or environment variables. 3. Hidden dependencies or API prerequisites that are omitted from the plan. Constraints: - Do not make or suggest changes to the codebase. - Rely only on live codebase verification (do not guess). - Focus on technical blocking issues that would make the plan unbuildable or break existing flows.
- Launch a specialized
Integrate Findings:
- Once the subagent reports back, summarize the findings (specifically flagging critical vs. minor assumption mismatches).
- Update the spec or plan directly to correct these assumptions, or present the findings to the user for guidance.