/devco-agent-skills:verifyfrom devco-agent-skills
Runs a multi-mode verification pipeline (build, compile, lint, test, security, static analysis) on Java/Spring projects. Supports quick, pre-commit, full, and gate modes.
Ships in devco-agent-skills. Installing the plugin adds it to Claude Code.
Update workflow state:
PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
mkdir -p "$PROJECT_ROOT/.claude"
python3 -c "
import json, datetime, os
path = os.environ['PROJECT_ROOT'] + '/.claude/workflow-state.json'
state = {}
if os.path.exists(path):
with open(path) as f:
state = json.load(f)
now = datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')
state['phase'] = 'VERIFY'
state.setdefault('phaseHistory', [])
already = any(e.get('phase') == 'BUILD' for e in state['phaseHistory'])
if not already:
state['phaseHistory'].append({'phase': 'BUILD', 'completedAt': now})
state['retryCount'] = 0
with open(path, 'w') as f:
json.dump(state, f, indent=2)
f.write('\n')
print('workflow-state.json updated: phase=VERIFY')
" 2>/dev/null || echo "workflow-state.json update skipped"
AUTO-CONTINUATION RULE — READ FIRST After verification PASSES:
- IMMEDIATELY invoke
/dc-review— do NOT ask, do NOT wait- Task NOT done until REVIEW verdict. Never stop after VERIFY. On FAIL: invoke build-fixer → re-verify (max 3 retries, then escalate to user). Read
.claude/devco-config.jsonforworkflow.autoReview(default: true).
Run verification on current Java/Spring codebase. Supports multiple modes.
/verify -> defaults to "full"
/verify quick -> build + compile only
/verify pre-commit -> build + compile + tests + debug audit
/verify full -> build + compile + lint + tests + security + debug audit
/verify gate -> full + all reviewers + coverage gate + PR readiness check
/build firstgate mode: ensure all spec implementation tasks complete.claude/workflow-state.json — verify BUILD phase completed (phaseHistory contains BUILD entry)Update .claude/workflow-state.json:
phase to "VERIFY"{"phase": "BUILD", "completedAt": "{ISO timestamp}"} to phaseHistory (if not present)retryCount to 0quick./gradlew clean build -x test # Gradle
./mvnw clean package -DskipTests -q # Maven
./gradlew compileJava compileTestJava # Gradle
./mvnw compile test-compile -q # Maven
Either fails → STOP and report errors with file:line.pre-commitAll quick steps plus:
Test Suite
./gradlew test # Gradle
./mvnw test -q # Maven
Report: pass/fail count.
Debug Statement Audit
grep -rn --include="*.java" "System\.out\.\|System\.err\.\|\.printStackTrace()" src/main/ | head -10
full (default)All quick steps plus:
Lint/Style Check
./gradlew checkstyleMain spotbugsMain # Gradle
./mvnw checkstyle:check spotbugs:check -q # Maven
Test Suite
./gradlew test jacocoTestReport # Gradle
./mvnw test jacoco:report # Maven
Report: pass/fail count, coverage percentage.
Security Scan
# Dependency vulnerabilities
./gradlew dependencyCheckAnalyze # Gradle
./mvnw org.owasp:dependency-check-maven:check # Maven
# Hardcoded secrets
grep -rn --include="*.java" --include="*.yml" --include="*.properties" \
-E "password\s*=\s*['\"][^'\"\$\{]|api[._-]?key\s*=\s*['\"][^'\"\$\{]|secret\s*=\s*['\"][^'\"\$\{]|token\s*=\s*['\"][^'\"\$\{]" \
src/ | grep -v "test\|example\|placeholder" | head -20
Static Analysis
# Blocking calls in reactive code
grep -rn --include="*.java" "\.block()\|\.blockFirst()\|\.blockLast()" src/main/ | head -10
# Field injection
grep -rn --include="*.java" "@Autowired" src/main/java | grep -v "//\|test" | head -10
# Debug statements
grep -rn --include="*.java" "System\.out\.\|System\.err\.\|\.printStackTrace()" src/main/ | head -10
Git Status
git status --short
git diff --stat
gateAll full steps plus:
Coverage Gate
| Threshold | Level | Action |
|---|---|---|
| >= 80% | PASS | Proceed |
| 60-79% | WARN | Flag for review |
| < 60% | BLOCK | Must increase coverage |
Build Artifact Check
./gradlew bootJar --no-daemon 2>&1 | tail -10 # Gradle
./mvnw package -DskipTests -q 2>&1 | tail -10 # Maven
Anti-Pattern Sweep
# N+1 patterns
grep -rn --include="*.java" "findAll()\|getAll()" src/main/ | grep -v "test\|@Bean" | head -10
# TODO/FIXME without ticket
grep -rn --include="*.java" "TODO\|FIXME\|HACK" src/main/ | grep -v "//.*#[0-9]" | head -10
# SELECT *
grep -rn "SELECT \*" src/ --include="*.java" --include="*.sql" | head -10
PR Readiness Verdict Summarize all findings, produce final PASS/BLOCK verdict.
VERIFICATION REPORT
===================
Mode: [quick|pre-commit|full|gate]
Branch: {branch} Commit: {short SHA}
Build: [PASS/FAIL]
Compile: [PASS/FAIL]
Lint: [PASS/FAIL/SKIP]
Tests: [X/Y passed, Z% coverage]
Security: [PASS/WARN/BLOCK]
Static: [PASS/WARN]
Coverage: [PASS/WARN/BLOCK] (gate mode only)
VERDICT: [PASS / BLOCKED]
Issues to Address:
1. [BLOCK] ...
2. [WARN] ...
.claude/workflow-state.json:
{"phase": "VERIFY", "completedAt": "{ISO timestamp}", "verdict": "PASS"} to phaseHistoryretryCount to 0.claude/devco-config.json for workflow.autoReview (default: true)/dc-review — do NOT ask, do NOT wait"VERIFY passed. Run /dc-review to complete."retryCount in workflow-state.json/verify| Breaker | Trigger | Action |
|---|---|---|
| No-progress | Same normalized error 3 consecutive times | ESCALATE to user |
| Max retries | retryCount > config.workflow.maxRetryOnFail (default: 3) | FORCE-ACCEPT with warning |
| Context budget | >95% context utilization | Force exit with summary |
Detect "same error" across consecutive runs:
When max retries exceeded:
workflow-state.json⚠️ FORCE-ACCEPTED after {N} failed verify attempts. Issues:
- {issue 1}
- {issue 2}
Proceeding to /dc-review with known issues flagged.
forceAccepted: true and unresolvedIssues: [...] in workflow-state.json/dc-review with WARNING flag — reviewer sees unresolved issuesWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
16 commands in this plugin
/alignGrill ambiguity, surface assumptions, extract vocabulary. Run before Plan when requirements vague (standard lane) or always (high-stakes lane). Output feeds Plan + Spec gates./brainstormTournament-style solution exploration. Generates 2-5 options with adversarial challenges, recommends with trade-offs. Mandatory high-stakes (≥3 options), conditional standard (multi-path)./buildExecute gate — dispatches one slice-executor subagent per plan slice (parallel where independent). Reads plan + spec + pre-flight 4 artifact. Lane-aware (trivial: direct execute, no dispatch).Other plugins' commands for the same job
npx claudepluginhub taipt1504/agent-skills --plugin devco-agent-skills