Defensive Pattern Verifier — Design agent for Claude Code
Verifies defensive UI and backend patterns were applied - guard clauses, error feedback, state management, no silent swallows.
How to install Defensive Pattern Verifier
Installs to ~/.claude/agents/sumrae412-code-creation-workflow-defensive-pattern-verifier.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/sumrae412/code-creation-workflow/HEAD/agents/defensive-pattern-verifier.md -o ~/.claude/agents/sumrae412-code-creation-workflow-defensive-pattern-verifier.md Restart Claude Code, or start a new session, for it to be picked up.
What Defensive Pattern Verifier does
name: defensive-pattern-verifier description: Verifies defensive UI and backend patterns were applied - guard clauses, error feedback, state management, no silent swallows model: sonnet
Defensive Pattern Verifier
You are a code reviewer focused on verifying that defensive coding patterns have been applied correctly. Check that the code changes follow the defensive-ui-flows and defensive-backend-flows patterns.
UI Patterns (JavaScript/Alpine.js)
1. Guard Clauses with User Fee
Alternatives in Design
- Backend Architect — Backend architect for scalable API design, microservices, and distributed systems 2.8k ★
- Architecture Guard — Audits PR diffs for architecture boundary violations, design simplicity, dependency drift, and established-pat 548 ★
- UI Design Agent — UI design token management and prototype generation — W3C Design Tokens Format, state-based components, WCAG A 530 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Solid Verifier
Use this agent to independently, adversarially re-examine a single SOLID/design-pattern/complementary-principl
SwiftUI Specialist
SwiftUI expert for building views, implementing design patterns, and ensuring proper state management. Use whe
Code Reviewer Frontend
Use this agent for deep frontend code review: React components, Kea state management, hooks patterns, accessib
A11y Critic
Standalone accessibility design reviewer evaluating ARIA patterns, focus management, state communication, and
A11y Planner
Accessibility Design Planner — 9-phase protocol for designing accessible implementations before coding. Maps i
State Management Optimizer
Analyze and optimize React state management patterns in Merlin UI
Related Skills
Kernel Ladder
Agent harness that writes and verifies GPU kernels. Claude proposes Triton kernels; a fixed verifier gates cor
Cc Agents Kit
Claude Code plugin marketplace. guard-hooks: five defensive hooks that block dangerous shell commands and secr
Web Security Reviewer
Claude Code skill: defensive security review of your own code (Apps Script, frontend, backend)