/verity:analyzefrom Verity by Codacy
Invokes an independent Verity AI review of code changes, providing a second opinion on quality, security, and intent alignment. Supports specific files, directories, or full codebase sampling.
Ships in Verity by Codacy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running an on-demand Verity analysis. This is like a "second opinion" — the user (or you) can invoke it at any point to get a quality and security review with rich context.
Usage:
/verity:analyze — Curate files, write intent, select specs autonomously (deep review)/verity:analyze src/api/routes.ts src/db.ts — Analyze specific files (quick check)/verity:analyze src/api/ — Analyze a directory and related files/verity:analyze --full — Sample the full codebase (20 most recently modified files)/verity:analyze --intent "Implementing OAuth2 PKCE flow per spec/AUTH.md" — User provides intent.verity/standard.yaml exists. If not: "Run /verity:init (or verity init in a terminal) first."verity CLI is available: which verity. If not: "Install it: npm install -g @codacy/verity-cli, or install the Verity Claude Code plugin."verity auth verify to check the token is valid.
verity login (one login covers every
repository they can write to).
Continue — verity review degrades to a local static-only report on its own.--full)Specific files (paths or directories provided):
--full flag (full codebase sample):
FILES=$(git ls-files | grep -E '\.(ts|tsx|js|jsx|mjs|cjs|py|go|java|kt|rb|rs|c|cpp|h|hpp|cs|php)$')
If more than 20 files, select the 20 most recently modified:
echo "$FILES" | xargs ls -t | head -20
In quick mode, skip Steps 3 and 4 — go straight to Step 5.
When no specific files are given, curate a comprehensive review scope:
CHANGED=$(git diff --name-only HEAD 2>/dev/null; git diff --name-only --cached 2>/dev/null; git ls-files --others --exclude-standard 2>/dev/null)
CHANGED_CODE=$(echo "$CHANGED" | sort -u | grep -E '\.(ts|tsx|js|jsx|mjs|cjs|py|go|java|kt|rb|rs|c|cpp|h|hpp|cs|php)$')
Also check if the agent just committed (clean tree but recent HEAD):
# If working tree is clean, check what the last commit changed
git diff --name-only HEAD~1..HEAD 2>/dev/null
If the user provided directory hints (e.g., /verity:analyze src/api/), also include all files under those directories.
For each changed file, identify and add:
foo.test.ts for foo.ts, test_foo.py for foo.py).Rank files by relevance:
Cap at 20 files total. If you need to cut, drop reverse dependencies first, then tests.
Keep two lists:
changed_files — the files that were actually modified (git dirty or recently committed)all_files — all files to include in the analysis (changed + context)If no analyzable files found: "No analyzable files found."
Synthesize the conversation context into a clear intent description. This is NOT the raw user prompt — it's your understanding of what the work is trying to achieve.
Template:
I am [adding/modifying/fixing/refactoring] [feature/component name].
Goal: [What the user asked for, or the problem being solved.]
Approach: [Key architectural decisions. What patterns are being used?]
Trade-offs: [Anything you chose deliberately that could be questioned.]
Review focus: [Specific concerns you want the reviewer to evaluate.]
Guidelines:
--intent, use it as the base and augment with your understandingIdentify spec/documentation files that provide context:
Read each spec file and prepare for inclusion. Limits: max 10 files, 10KB per file, 30KB total.
Common spec locations to check:
spec/*.md, docs/*.mdCLAUDE.md, AGENTS.md, CONTRIBUTING.mdIf no specs are relevant, skip this step.
Use the verity review command with all the context you gathered:
verity review \
--files 'src/auth/pkce.ts,src/auth/callback.ts,src/auth/types.ts,src/middleware/auth.ts' \
--changed 'src/auth/pkce.ts,src/auth/callback.ts' \
--specs 'spec/AUTH.md,CLAUDE.md' \
--intent - <<'VERITY_EOF_<random>'
I am adding OAuth2 PKCE authentication flow...
VERITY_EOF_<random>
Arguments:
--files (required): Comma-separated list of ALL files to include (changed + context)--changed (optional): Comma-separated list of actually-modified files (subset of --files). If omitted, all files are treated as changed.--intent - (optional): Your synthesized intent description, read from the heredoc (- means stdin).--specs (optional): Comma-separated list of spec file paths to include.Keep the shell out of it. The intent carries the user's words, so it goes
through the quoted heredoc (<<'VERITY_EOF_<random>'), never inside "…" on the
command line, where a ", a backtick or $(…) would run in the shell.
Replace <random> with 8 random letters and digits that you pick for this call,
the same at both ends. Text written before you picked them cannot contain the
line that ends the heredoc, so it cannot end it early.
Path lists go in single quotes, which expand nothing. Leave out any path that
itself contains a '.
The CLI handles static analysis, file reading with size limits, payload construction, and the API call.
Parse the JSON response and format clearly:
=== Verity Analysis ===
Gate Decision: WARN
Quality: 7.5/10 | Security: 8.0/10 | Overall: 7.8/10
Trend: stable
--- Assessment ---
[narrative from assessment.narrative]
--- Findings (2) ---
[HIGH] Service Role Client for Non-Admin Operations
File: supabase/functions/webhook/index.ts:25
Pattern: access-control-checks (CWE-639)
Fix: Limit SELECT fields to only what's needed for the notification.
[MEDIUM] File Complexity Exceeds Threshold
File: supabase/functions/webhook/index.ts:1
Pattern: comprehensibility
Fix: Refactor into separate handler files per event type.
--- Intent Alignment ---
Score: 9/10 (aligned)
Goal: "Add webhook handlers for Stripe events"
Implementation matches intent. No gaps detected.
--- Quality Dimensions ---
Comprehensibility: 6.5/10 — webhook file is too large
Modularity: 7.0/10 — good separation except webhook handler
Type Safety: 9.0/10 — strict TypeScript throughout
Test Adequacy: 5.0/10 — missing webhook handler tests
--- Pending Items ---
1. [HIGH] Add tests for webhook event handlers
2. [MEDIUM] Refactor webhook into handler modules
View full report: https://verity.md/runs/run-20260327-...?token=verityview_...
trigger: "review" in the database.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub codacy/verity --plugin verity11 skills in this plugin
/feedback/verity:feedback — Send feedbackSend the user's feedback about Verity to the Verity team, verbatim. Use only when the user explicitly asks to send feedback./init/verity:init — set Verity up in this projectSet Verity up in this project: ask the setup questions in the session (sign in, and the Standard: use the team's, or write project rules from a repo profile), sign in, and run the install with those answers. Use right after installing the Verity plugin, or when Verity says this project is not set up./insights/verity:insights — Project quality insights and Standard evolutionReport project quality metrics from accumulated run data, and manage the Standard's evolution suggestions. Use when the user asks for quality trends or metrics, or whether the Standard should change./learn/verity:learn — View and manage project knowledgeView and manage the durable project knowledge Verity has accumulated — decisions, patterns, gotchas, and conventions extracted from past analysis runs. Use when the user asks what Verity has learned, or before changing an area of the code you do not know./memory/verity:memory — Manage the project knowledge graphBrowse, query, and extend the project knowledge graph at .verity/memory/ — typed nodes and edges covering decisions, patterns, security constraints, and gotchas. Use to pull prior context on files you are about to change, or when the user asks to record or inspect project knowledge./prove/verity:prove — Formal verification of small pieces of codeFormally verify a small, risky piece of code with a Lean 4 model written by the Verity service: rank candidates from git history and the user's hint, CONFIRM with the user which code to model, have the service generate the model, check it locally with `verity prove check`, and replay any counterexample on the real code before calling it a bug. Use when the user asks to verify, prove, or model-check code, or asks "can this race / double run / fail open?". Anything typed after /verity:prove is the user's hint: the file, function, or worry to check.