ワンクリックで
speckit-spectest-gaps
Find spec requirements with no matching tests and suggest what to test
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Find spec requirements with no matching tests and suggest what to test
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate a human-readable diff between two spec versions showing exactly what changed
Generate a full changelog from spec git history showing all requirement changes over time
Generate stakeholder notifications summarizing spec changes for team communication
Generate release notes for a specific version or tag from spec changes
Generate a custom checklist for the current feature based on user requirements.
Identify underspecified areas in the current feature spec by asking up
| name | speckit-spectest-gaps |
| description | Find spec requirements with no matching tests and suggest what to test |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"spectest:commands/speckit.spectest.gaps.md"} |
Scan the codebase for spec requirements that have no corresponding tests. For each gap, provide a specific suggestion for what to test, which test type to use, and where to add the test file. Designed for quick post-implementation audits and CI integration.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). The user may specify:
.specify/scripts/bash/check-prerequisites.sh --json from the repo root and parsing FEATURE_DIR and AVAILABLE_DOCS. The spec lives at $FEATURE_DIR/spec.md (under specs/<feature>/), not under .specify/.spec.md to extract all requirements, scenarios, and success criteria.tasks.md exists, read it to understand which phases are complete (only flag gaps for completed phases).Extract Requirements: Parse spec.md for all testable items.
## Requirements## User Scenarios & Testing## Success Criteriaplan.md (if present)Scan Existing Tests: Find all test files and extract their coverage targets.
Identify Gaps: Compare requirements against covered topics.
Generate Gap Report: List every untested requirement with actionable suggestions.
## Untested Requirements
| # | Requirement | Severity | Suggested Test | File |
|---|------------|----------|----------------|------|
| 1 | Rate limiting on login endpoint | 🔴 Critical | Integration test: verify 429 after N attempts | `tests/integration/rateLimit.test.ts` |
| 2 | Email verification flow | 🟡 Medium | Unit test: verify token generation + expiry | `tests/unit/auth/verify.test.ts` |
| 3 | Admin can deactivate users | 🟡 Medium | E2E test: admin dashboard deactivation flow | `tests/e2e/admin.test.ts` |
**3 gaps found across 8 requirements (62.5% covered)**
Prioritized Action List: Rank gaps by severity and suggest implementation order.
## Recommended Test Order
1. 🔴 **Rate limiting** — security requirement, test first
- What to test: send N+1 requests, verify 429 response
- Framework: supertest + jest
- Estimated: 1 test file, 3-4 test cases
2. 🟡 **Email verification** — user-facing flow
- What to test: token generation, token expiry, invalid token handling
- Framework: jest unit tests
- Estimated: 1 test file, 4-5 test cases
3. 🟡 **Admin deactivation** — admin feature
- What to test: deactivate user, verify login blocked, verify reactivation
- Framework: playwright or cypress E2E
- Estimated: 1 test file, 3 test cases
Quick Summary: One-line pass/fail suitable for CI output.
SPECTEST GAPS: 3 untested requirements (2 critical, 1 medium) — 62.5% coverage