norbertsuski/sdd-toolkit/sdd-impl-review

Claude Code and agent skill by norbertsuski/sdd-toolkit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Review implementation against plan for drift, dangerous decisions, and pattern compliance

Install

npx vskill@latest install norbertsuski/sdd-toolkit/sdd-impl-review

SKILL.md

The same SKILL.md was published earlier as norbertsuski/sdd-toolkit/sdd-impl-review.

Implementation Review

Compare actual implementation work against the original plan to catch drift, dangerous decisions, architecture violations, and pattern misuse before they compound.

Two granularities:

  • Phase review: after a single phase — fast, focused on that phase's changes
  • Full plan review: after all phases — comprehensive sweep

Two modes:

  • Fresh review: analyze → findings → interactive triage
  • Resume triage: load a saved report and jump to per-issue triage

Input resolution

This skill operates under the CONTEXT_ROOT handed to it (the resolved base); app: may be absent for flat roots — do not require it.

  1. Argument points to a saved review file (contains <!-- IMPL-REVIEW-REPORT -->) → resume triage (skip to Step 5)
  2. Argument is a bare <change-id> → resolve CONTEXT_ROOT by globbing context/*/changes/<change-id>/ (legacy cross-root search) and, for flat roots, <dir>/context/changes/<change-id>/ (look for plan.md): exactly one match → use it and derive CONTEXT_ROOT (and <app>, for legacy roots) from the resolved path; more than one match → ask which root; zero matches → the not-found branch below. Then fresh review on $CONTEXT_ROOT/changes/<change-id>/plan.md. (Fallback: repos with no workspace layout use flat $CONTEXT_ROOT/changes/<change-id>/plan.md.)
  3. Plan path provided (e.g. @$CONTEXT_ROOT/changes/<change-id>/plan.md, legacy: @context/<app>/changes/<change-id>/plan.md) → fresh review on that plan; derive CONTEXT_ROOT (and <app>, for legacy roots) from the path.
  4. Phase number provided (e.g. "phase 3") → review only that phase
  5. No argument → enumerate context/*/changes/*/change.md (legacy cross-root search) and flat $CONTEXT_ROOT/changes/*/change.md; pick the most recently updated change with status in {implementing, implemented, impl_reviewed} and confirm via Ask the user:

This skill receives a plan path or <change-id> [phase N] — it does NOT ask for the root/app; it is resolved from the path/glob above ("ask once, store it").

If the resolved plan path matches context/*/archive/… (legacy) or $CONTEXT_ROOT/archive/…, refuse: print "This change is archived. Reviews are not appended to archived plans." and STOP.

Step 1: Load plan and detect change scope

Create a task named "Implementation Review" with active form "Loading context"

  1. Read the plan file fully — no limit/offset.
  2. Read `$CONTEXT_ROOT/foundation/lessons.md` (legacy: `context/<app>/foundation/lessons.md`) if present and use accepted rules as priors when scanning for findings — a deviation that violates a known recurring rule is a stronger signal than a generic style nit.
  3. Read the canonical state from the plan's `## Progress` section (see references/progress-format.md): completion = count([x]) / count([ ] + [x]); current phase = phase containing the first - [ ] (or last phase if all done). Also read sibling change.md for status and updated.
  4. Scope: specific phase requested → that phase only; else all phases whose Progress checkboxes are fully [x] (i.e., completed phases).
  5. Extract from phases under review: file paths from "Changes Required", architectural decisions, success criteria (Automated/Manual bullets in Phase blocks + their [ ]/[x] mirror in Progress), and the "What We're NOT Doing" list (scope guardrails).
  6. Git scope detection — what actually changed:

``bash PLAN_DATE="<YYYY-MM-DD from filename>" git log --oneline --after="${PLAN_DATE}" -- . git diff --name-only $(git log --reverse --after="${PLAN_DATE}" --format="%H" | head -1)^..HEAD 2>/dev/null `` If the range can't be cleanly determined, fall back to commits whose messages reference the plan/feature.

Compare changed-file list against plan-file list:

  • In plan AND in diff → expected change, verify content matches intent
  • In diff but NOT in plan → unplanned change, investigate and flag
  • In plan but NOT in diff → potentially missing implementation

Don't pre-read every changed file into the main context — let the sub-agents read what they need. Main context should carry the plan and the diff summary, not the full source of 20 files.

Step 2: Parallel review via sub-agents

Update the task's active form to "Gathering evidence"

Launch two sub-agents simultaneously. Each gets targeted context — don't dump the full plan into both.

Agent 1 — Plan Drift Detection (subagent_type: "general-purpose")

Give it: the "Changes Required" text for the reviewed phases, the list of file paths to read.

Instructions: for each planned change, read the actual file and verify implementation matches intent. Check for:

  • Changes implemented differently than planned (intent mismatch, not formatting)
  • Planned items skipped without documentation
  • Additions not described in the plan (scope creep)

Report each: file path, what the plan said, what exists, verdict (MATCH / DRIFT / MISSING / EXTRA).

Agent 2 — Safety, Quality & Pattern Compliance (subagent_type: "general-purpose")

Give it: the full list of changed files to read, the project root path.

Instructions:

  1. Safety & quality scan on each changed file. Flag:
  • Security: injection risks (SQL, command, XSS), hardcoded secrets, missing authn/authz at system boundaries, overly permissive CORS/permissions.
  • Performance: N+1 queries, unbounded iteration/recursion, missing pagination, unnecessary sync I/O.
  • Reliability: missing error handling at external boundaries (API calls, file I/O, DB), race conditions, resource leaks.
  • Data safety: destructive DB ops without rollback, schema changes without migration path, data loss potential.
  1. Pattern compliance — for each changed file, find 1–2 similar existing files and compare naming, error handling approach, module structure, imports/exports, test structure, config patterns. Only report substantive mismatches (e.g., a new module uses camelCase where siblings use snake_case; a new endpoint skips the auth middleware pattern the rest of the API uses). Skip trivial style differences — if the code works and follows the plan, minor formatting is not a finding.
  1. Budget pattern work to scope — if the diff changed ≤3 files, spend minimal time on patterns (not much to compare). Scale pattern depth with change scope.

Report each finding with: file, line number, category, severity (CRITICAL / WARNING / OBSERVATION), description, recommendation.

Step 3: Verify success criteria

Update the task's active form to "Verifying success criteria"

For each reviewed phase:

Automated: run each command from the "Automated Verification" checkboxes using a bash shell. Record command, pass/fail, actual output (truncate if huge).

Manual: in the ## Progress section, check Manual items as - [x] vs - [ ]. Flag items marked complete that lack observable evidence in the diff (possible rubber-stamping); acknowledge unchecked items as pending.

Step 4: Compile findings and present report

Update the task's active form to "Compiling findings"

Each finding has:

  • ID: F1, F2, F3…
  • Severity: CRITICAL / WARNING / OBSERVATION (how bad if ignored)
  • Impact: LOW / MEDIUM / HIGH (how much focus the decision needs)
  • Dimension: Plan Adherence / Scope Discipline / Safety & Quality / Architecture / Pattern Consistency / Success Criteria
  • Title: one line
  • Location: file:line (or "N/A" for missing items)
  • Detail: what's wrong with evidence — plan vs. actual, or code vs. expected
  • Fix options: 1 or 2 (see below)
Impact

Orthogonal to severity. A CRITICAL with LOW impact (obvious one-line fix) is cheap; a WARNING with HIGH impact (architectural rework) deserves careful thought.

ImpactMeaning
🏃 LOWQuick decision. Fix is obvious and narrowly scoped. Safe to batch.
🔎 MEDIUMWorth pausing. Real tradeoff or non-trivial edit — think before deciding.
🔬 HIGHArchitectural stakes. Wide blast radius, strategic implications, or unclear best path.
Fix options

Default to one fix. Only offer two when there's a genuine tradeoff a smart reviewer would want to weigh (e.g. "patch the call site" vs. "fix it at the source"). If you find yourself inventing a weak second option, don't — present one and move on.

LOW-impact findings: just Fix: [one line]. Noise isn't helpful when the answer is obvious.

MEDIUM/HIGH-impact findings: each option gets:

[1-sentence approach] · Strength: [advantage, ideally grounded in code/plan evidence] · Tradeoff: [cost or risk] · Confidence: HIGH|MED|LOW — [1-line why] · Blind spot: [what we haven't verified, or "None significant"]

When offering two options, mark exactly one ⭐ Recommended.

Dimension verdicts

PASS / WARNING / FAIL per dimension:

  • Plan Adherence — planned changes implemented as described? FAIL on MISSING or major DRIFT.
  • Scope Discipline — "not doing" boundaries respected? WARNING if EXTRA changes exist but are benign.
  • Safety & Quality — security, performance, reliability, data safety. FAIL on any CRITICAL finding.
  • Architecture — module boundaries, dependency direction, abstraction justification. FAIL on violations.
  • Pattern Consistency — follows existing conventions. WARNING on minor inconsistencies.
  • Success Criteria — automated checks pass, manual checks addressed. FAIL on automated failures.
Overall verdict
  • APPROVED — all PASS, or PASS with ≤2 minor warnings
  • NEEDS ATTENTION — multiple warnings or 1 non-critical FAIL
  • REJECTED — any critical FAIL (security, major drift, data safety, failing tests)

Sort findings by severity: CRITICAL → WARNING → OBSERVATION. Cap at 10 — consolidate related findings if more.

Report format

Plain text, box-drawing. PASS dimensions appear only in the verdicts table, never as findings. Omit severity groups with zero findings.

═══════════════════════════════════════════════════════════
IMPLEMENTATION REVIEW: [Plan Title]
Scope: Phase [N] of [Total] | Date: YYYY-MM-DD
Findings: [N critical] [N warnings] [N observations]
═══════════════════════════════════════════════════════════
Plan Adherence PASS ✅
Scope Discipline WARNING ⚠️ (1 finding)
Safety & Quality FAIL ❌ (1 finding)
Architecture PASS ✅
Pattern Consistency WARNING ⚠️ (1 finding)
Success Criteria PASS ✅
► Overall: NEEDS ATTENTION
═══════════════════════════════════════════════════════════
CRITICAL FINDINGS ❌
═══════════════════════════════════════════════════════════
F1 — SQL injection in auth handler
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
Severity: ❌ CRITICAL
Impact: 🔎 MEDIUM — real tradeoff; pause to reason through it
Dimension: Safety & Quality
Location: src/auth/handler.ts:42
Detail:
SQL query built with string concatenation. Plan specified
parameterized queries but implementation uses template literals.
Fix: Replace the template literal with a parameterized query using
db.query($1, [value]).
Strength: Matches the pattern in src/users/query.ts and removes
the injection class entirely.
Tradeoff: Minor — one call site, a few-line change.
Confidence: HIGH — identical pattern used elsewhere in this repo.
Blind spot: None significant.
═══════════════════════════════════════════════════════════
WARNING FINDINGS ⚠️
═══════════════════════════════════════════════════════════

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/norbertsuski/sdd-toolkit/sdd-impl-review/badge)](https://verified-skill.com/skills/norbertsuski/sdd-toolkit/sdd-impl-review)

Something wrong with this skill or its page? Tell us.