Gap analysis

From dean0x/devflow · View interactive version

Gap analysis is an AI agent skill from the GitHub repository dean0x/devflow. Use when analyzing specs or plans for completeness gaps.

How to use this skill

Skill file

Gap Analysis

Domain expertise for detecting gaps in design documents, specifications, and plans before implementation begins.

Iron Law

GAPS IN DESIGN BECOME BUGS IN PRODUCTION

Every undefined error state, vague requirement, and missing integration point is a bug

waiting to be written. Catch gaps in the plan so the implementation reflects reality,

not assumption. Evidence-required: every gap must cite specific text from the artifact.

Focus Areas

1. Completeness

Detection patterns:

Evidence trigger: Any requirement phrase that cannot be directly translated into a test case.

2. Architecture

Detection patterns:

Evidence trigger: Any design element that references an existing system component without specifying the integration contract.

3. Security

Detection patterns:

Evidence trigger: Any data flow that crosses a trust boundary without specifying the security control.

4. Performance

Detection patterns:

Evidence trigger: Any data access pattern that scales linearly with user count or data volume without a mitigation strategy.

5. Consistency (multi-issue only)

Detection patterns:

Evidence trigger: Any requirement in one issue that cannot coexist with a requirement in another issue.

6. Dependencies (multi-issue only)

Detection patterns:

Evidence trigger: Any issue that references state, contracts, or resources that may be in flux due to another issue in the batch.

Extended References

| Reference | Content |

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

| references/check-layers.md | Detailed detection checklists per focus area |

Severity Guidelines

| Level | Criteria | Examples |

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

| CRITICAL | Gap that will cause data loss, security breach, or system failure | Missing auth on sensitive endpoint, undefined error recovery for financial transaction |

| HIGH | Gap that will cause incorrect behavior or significant technical debt | Missing pagination on unbounded list, undefined race condition in concurrent update |

| MEDIUM | Gap that will require rework if unaddressed | Vague acceptance criteria, missing caching on a stated hot path |

| LOW | Gap that is an improvement opportunity | Naming inconsistency, minor UX ambiguity with obvious resolution |

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.