Skip to content
Back to skills

Gap Analysis

ASecurity

Use when analyzing specs or plans for completeness gaps.

  • 23 stars
  • 0 votes
  • 2 copies
  • 15 views
  • Added September 3, 2026
developmentrustapisecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add dean0x/devflow --skill gap-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gap Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gap Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dean0x-gap-analysis/badge)](https://www.skillsdirectory.com/skills/dean0x-gap-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gap-analysis
description: Use when analyzing specs or plans for completeness gaps.
user-invocable: false
allowed-tools: Read, Grep, Glob
---

# 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:**
- Missing acceptance criteria — requirements without testable success conditions
- Undefined error states — happy path described, failure paths absent
- Vague requirements — "fast", "secure", "user-friendly" without measurable thresholds
- Ambiguous user journeys — "user submits form" without specifying what happens next
- Missing rollback specification — no recovery path if operation partially fails
- Unspecified data constraints — fields mentioned without type, size, or validation rules

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

### 2. Architecture

**Detection patterns:**
- Implied patterns violating existing conventions — new module structure that contradicts codebase layout
- Missing integration points — feature touches shared state but integration method unspecified
- Layering issues — business logic pushed to wrong layer (e.g., validation in presentation layer)
- Undeclared dependencies — feature needs data/service not mentioned in scope
- Missing schema changes — new data structure implied but migration not mentioned
- Shared resource contention — multiple features/requests accessing same resource without concurrency plan

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

### 3. Security

**Detection patterns:**
- Auth gaps — feature creates new endpoints or data access without specifying auth requirements
- Input validation missing — user-provided data consumed without specifying sanitization
- Secret handling — credentials, tokens, or keys mentioned without specifying storage/transmission
- OWASP implications — mass assignment, IDOR, SSRF risks implied by the design
- Privilege escalation paths — role or permission changes without specifying boundary checks
- Audit trail missing — sensitive operations without logging or change tracking

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

### 4. Performance

**Detection patterns:**
- N+1 patterns implied — loop-based data fetching without batch operation specified
- Missing caching strategy — repeated expensive calls on a stated or measured hot path, without cache layer
- Concurrency concerns — shared mutable state accessed without locking or isolation strategy
- Query patterns — filtering/sorting on unindexed fields implied by the feature
- Unbounded result sets — list operations without pagination or size limits
- Synchronous blocking — long-running operations blocking request threads without async design

**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:**
- Cross-issue contradictions — Issue A says feature X works one way, Issue B implies another
- Duplicate requirements — same functionality specified in multiple issues without coordination
- Conflicting scope — one issue's in-scope is another issue's out-of-scope
- Naming conflicts — same entity called different names across issues
- Interface mismatches — Issue A produces output that Issue B consumes, but shapes differ

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

### 6. Dependencies (multi-issue only)

**Detection patterns:**
- Inter-issue ordering — Issue B depends on data/schema/interface created by Issue A
- Shared resources — multiple issues modify the same file, table, or API without coordination
- Breaking change propagation — one issue changes a contract that other issues assume stable
- Circular dependencies — two issues each require the other to be implemented first
- Implicit sequencing — implementation order not specified but technically required

**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 |

Files in this skill

  • SKILL.md7.9 KB
  • references/check-layers.md5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.