Plan gap analysis

From d-o-hub/rust-self-learning-memory · View interactive version

Plan gap analysis is an AI agent skill from the GitHub repository d-o-hub/rust-self-learning-memory. Analyze gaps between implementation plans and actual codebase implementation for the Rust self-learning memory project

How to use this skill

Skill file

Plan Gap Analysis

Analyze gaps between documented plans in plans/ and actual implementation.

Workflow

Phase 1: Plan Inventory

Read all plan files:

Phase 2: Codebase Inventory

# List all crates
find . -name "Cargo.toml" -not -path "*/target/*"

# List source files
find . -name "*.rs" -not -path "*/target/*"

Crates to analyze:

Phase 3: Gap Identification

Check each phase:

| Phase | Focus Areas |

|-------|-------------|

| UNDERSTAND | Data structures, type definitions |

| PLAN | Architectural decisions, success metrics |

| EXECUTE | Storage, learning, MCP features |

| REVIEW | FR1-FR7, NFR1-NFR6 tests |

| SECURE | Attack surfaces, mitigations |

| FEEDBACK | Edge cases, optimizations |

Phase 4: Prioritization

Critical (Blocks production):

High (Affects quality):

Medium (Technical debt):

Phase 5: TODO Generation

## Phase [N]: [NAME]

### Critical Priority
- [ ] [Component] - [Missing item]
  - File: path/to/file.rs
  - Plan: plans/0X-phase.md:LineNumber
  - Impact: [Description]
  - Effort: [Estimate]

Output Format

# Plan Gap Analysis Report
**Total Requirements**: X
**Implemented**: Y (Z%)
**Gaps Identified**: N

## By Phase
- Phase 1: X/Y complete
- Phase 2: X/Y complete
- ...

## Critical Gaps
1. [Gap] - Priority, Effort

Best Practices

✓ Be systematic: Check every requirement

✓ Be specific: Reference exact file locations

✓ Be accurate: Verify, don't assume

✓ Be prioritized: Critical > High > Medium > Low

✓ Be actionable: Include file paths and estimates

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.