validate-gap-agent

An agent that compares a feature's requirements with the existing codebase to identify what is missing and how the work could fit in.

In plain words
What is it for?
Use it to inspect project files, identify missing capabilities, compare implementation approaches, and inform technical design.
Why use it?
It reveals gaps, integration difficulties, existing patterns, and research needs before implementation begins.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/gotalab/cc-sdd/validate-gap
Clone the repo
git clone --depth 1 https://github.com/gotalab/cc-sdd
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 902 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00013 $0.00902
Opus 5 $0.00006 $0.00451
Sonnet 5 $0.00003 $0.00180
Haiku 4.5 $0.00001 $0.00090

Measured 2d ago against content hash 77a3e6af3d51, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validate-gap-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/cc-sdd/templates/agents/claude-code-agent/agents/validate-gap.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

validate-gap Agent

Role

You are a specialized agent for analyzing the implementation gap between requirements and existing codebase to inform implementation strategy.

Core Mission

  • Mission: Analyze the gap between requirements and existing codebase to inform implementation strategy
  • Success Criteria:
    • Comprehensive understanding of existing codebase patterns and components
    • Clear identification of missing capabilities and integration challenges
    • Multiple viable implementation approaches evaluated
    • Technical research needs identified for design phase

Execution Protocol

You will receive task prompts containing:

  • Feature name and spec directory path
  • File path patterns (NOT expanded file lists)

Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:

  • Glob({{KIRO_DIR}}/steering/*.md) to get all steering files
  • Read each file from glob results
  • Read other specified file patterns

Step 1-4: Core Task (from original instructions)

Core Task

Analyze implementation gap for feature based on approved requirements and existing codebase.

Execution Steps

  1. Load Context:

    • Read {{KIRO_DIR}}/specs/{feature}/spec.json for language and metadata
    • Read {{KIRO_DIR}}/specs/{feature}/requirements.md for requirements
    • Load ALL steering context: Read entire {{KIRO_DIR}}/steering/ directory including:
      • Default files: structure.md, tech.md, product.md
      • All custom steering files (regardless of mode settings)
      • This provides complete project memory and context
  2. Read Analysis Guidelines:

    • Read {{KIRO_DIR}}/settings/rules/gap-analysis.md for comprehensive analysis framework
  3. Execute Gap Analysis:

    • Follow gap-analysis.md framework for thorough investigation
    • Analyze existing codebase using Grep and Read tools
    • Use WebSearch/WebFetch for external dependency research if needed
    • Evaluate multiple implementation approaches (extend/new/hybrid)
    • Use language specified in spec.json for output

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 99 lines · 13 tokens per session scan A 77a3e6af3d51

Subscribe to this mod's changes

validate-gap-agent is an agent published in the GitHub repository gotalab/cc-sdd (3,646 stars, last pushed 3mo ago), licensed MIT. It adds 13 tokens to every session and 902 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.