Docs vs Implementation Comparison
Workflow
- •Identify the target docs to compare (usually in
guardrails-and-roadmap). - •Extract concrete claims from docs (behavior statements, flow descriptions, security notes).
- •Locate the implementation:
- •Prefer file paths referenced in the doc.
- •If paths are missing, use
rgto find the relevant code.
- •Verify the implementation and record the exact file path(s).
- •Present a comparison with explicit labels:
- •"Docs claim"
- •"Implementation"
- •Provide a real-world example for each entry, and explicitly label it as:
- •"Real-world example (Docs claim)"
- •"Real-world example (Implementation)"
- •Update docs to match implementation if requested:
- •Use full Windows file paths in doc references.
- •Keep wording precise and avoid ambiguous claims.
Commands (PowerShell)
- •Find doc references:
- •
rg -n "File:|Implementation|middleware|tenant|auth" C:\Projects\Capsule\guardrails-and-roadmap
- •
- •Locate implementation:
- •
rg -n "signInWithPassword|createUser|tenant_id|middleware" C:\Projects\Capsule
- •
- •Read files with parentheses in the path:
- •
Get-Content -LiteralPath "C:\Projects\Capsule\apps\web\app\(auth)\login\page.tsx"
- •
Output Format (Use This)
For each item:
- •Topic
- •Docs claim: ...
- •Real-world example (Docs claim): ...
- •Implementation: ...
- •Real-world example (Implementation): ...
- •Docs claim: ...
Update Guidance
- •When editing markdown docs, use full file paths (Windows-style) for references.
- •If docs are less secure or less accurate than implementation, update docs to reflect the safer behavior.
- •Do not add new architecture files; update existing docs only.