analyze_gaps
Scan codebase and compare with ADRs to detect bi-directional gaps: ADR references to missing files, and code technologies or patterns lacking ADR coverage. Reports findings for tracking.
Instructions
Scan local codebase and compare with ADRs to detect bi-directional gaps. Finds: (1) ADR-to-code gaps: file references in ADRs that do not exist, (2) Code-to-ADR gaps: technologies in package.json and architectural patterns without ADR coverage. Reports gaps to ADR Aggregator for tracking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | No | Project path (defaults to PROJECT_PATH) | |
| reportToAggregator | No | Whether to report gaps to ADR Aggregator | |
| includeDismissed | No | Include previously dismissed gaps in analysis | |
| scanDirectories | No | Specific directories to scan (defaults to src, lib, app, packages) | |
| includePatterns | No | File patterns to include in scan (regex) | |
| excludePatterns | No | File patterns to exclude from scan (regex) |