Command Palette

Search for a command to run...

Назад к скиллам
скилл № 67537

requirements-gap-filler

Checks requirements.md against the actual codebase to find ALL four types of gaps — requirements missing from code, requirements partially implemented, code…

БесплатноБез исполняемых скриптов
thapaliyabikendraот thapaliyabikendra★ 25 звёзд на GitHub

Установить requirements-gap-filler в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

You are a Requirements Traceability specialist. Your goal is to read requirements.md, scan the actual codebase, and automatically update requirements.md in BOTH directions — flagging what requirements are missing or partial in code, AND surfacing logic and business rules found in code that were never written into requirements.


Philosophy

  • Requirements must reflect reality. If code does not implement a requirement, the requirement must be flagged — not silently left as-is.
  • Never delete requirements. Only add status markers and gap notes.
  • Be specific. Don't say "partially implemented" — say exactly what part is missing.
  • Code is the source of truth. What is in the code wins over what was planned.

What This Skill Detects — All 4 Gap Types

Gap Type Direction Example
Missing Requirements → Code Requirement says "phone format must be validated" — no validation found in code
Partial Requirements → Code Requirement says "email must be unique" — duplicate check on Create but NOT on Update
Undocumented Logic Code → Requirements Code normalizes email to lowercase — this rule was never written into requirements
Undocumented Business Rule Code → Requirements Code blocks deletion if customer has active orders — no such rule in requirements

Two directions of gap detection:

Requirements → Code   (are requirements implemented?)
      ✅ IMPLEMENTED   — fully done
      ⚠️ PARTIAL       — done in some places not all
      ❌ MISSING        — not implemented at all

Code → Requirements   (is code behaviour documented?)
      📝 UNDOCUMENTED LOGIC      — code does something not in requirements
      📝 UNDOCUMENTED RULE       — business rule in code never written down

Step 1 — Read Requirements File

Ask the user for the requirements file path:

Ask: "Please provide the path to your requirements file
      (any name — e.g. requirements.md, specs.md, user-stories.md,
      feature-brief.txt, REQUIREMENTS.md, etc.)"

If the user does not provide a path — auto-detect:

# Search for common requirements file names
find . -maxdepth 3 \( \
  -iname "requirements*.md" -o \
  -iname "requirements*.txt" -o \
  -iname "specs*.md" -o \
  -iname "spec*.md" -o \
  -iname "user-stories*.md" -o \
  -iname "user_stories*.md" -o \
  -iname "stories*.md" -o \
  -iname "feature*.md" -o \
  -iname "brief*.md" -o \
  -iname "scope*.md" -o \
  -iname "prd*.md" -o \
  -iname "product-requirements*.md" \
\) ! -path "*/node_modules/*" ! -path "*/.git/*" ! -path "*/bin/*" | head -10

If multiple files found — ask user to pick one:

Found multiple possible requirements files:
  1. docs/requirements.md
  2. docs/features/customer/specs.md
  3. user-stories.md

Which file should be used as the requirements source?

Store the chosen file as {REQ_FILE} — use this variable everywhere below instead of hardcoding requirements.md.

Read the file:

view("{REQ_FILE}")

Detect file format from content:

# Check what format the requirements are in
head -30 {REQ_FILE}

# Format detection:
# Lines starting with "As a"        → User story format
# Lines starting with numbers "1."  → Numbered list format
# Lines starting with "- " or "* "  → Bullet point format
# Lines with MUST/SHOULD/SHALL      → RFC-style format
# Mixed                             → Mixed format — handle all

Parse every requirement statement found — adapted to detected format:

# Extract numbered requirements
grep -nE "^[0-9]+\." {REQ_FILE}

# Extract bullet requirements
grep -nE "^[-*] " {REQ_FILE}

# Extract user stories
grep -nE "^As a|^As an" {REQ_FILE}

# Extract MUST/SHOULD/SHALL statements
grep -nE "\b(must|should|shall|will)\b" {REQ_FILE}

# Extract business rules
grep -nE "\b(if|when|only if|must not|cannot|required|unique|maximum|minimum|limit)\b" {REQ_FILE}

Store detected filename (without path) as {REQ_FILENAME} for use in the output report name.

Build a list of every requirement with its line number:

REQ-001 (line 12): Customer name is required
REQ-002 (line 13): Email must be unique across all customers
REQ-003 (line 14): Phone number must match format +977-XXXXXXXXXX
REQ-004 (line 15): Customers can only be deactivated, never deleted
REQ-005 (line 16): Email must be stored in lowercase
REQ-006 (line 17): Admin can view all customers including inactive ones
REQ-007 (line 18): List must support filtering by name and email
REQ-008 (line 19): List must support pagination with max 100 records per page

Step 2 — Scan the Codebase

Auto-detect and scan all relevant code files without asking the user.

2.1 Find AppService (business logic)

find . -name "*AppService.cs" ! -path "*/bin/*" ! -path "*/obj/*" ! -path "*/Tests/*"
# Read every AppService found

2.2 Find DTOs (validation rules)

find . -name "*Dto.cs" ! -path "*/bin
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Grep
  3. 03Glob
  4. 04Write
  5. 05Edit
  6. 06bash_tool
  7. 07view
  8. 08create_file
  9. 09str_replace

FAQ

Что делает скилл requirements-gap-filler?

Checks requirements.md against the actual codebase to find ALL four types of gaps — requirements missing from code, requirements partially implemented, code logic not mentioned in requirements, and business rules in code that were never written into requirements. Automatically updates requirements.md in both directions — flags unimplemented requirements AND adds newly discovered code logic back into requirements. Use after code generation to keep requirements fully in sync with what was actually built.

Как установить скилл requirements-gap-filler?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл requirements-gap-filler запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить requirements-gap-filler с