/verity:reflectfrom Verity by Codacy
Captures durable learnings (decisions, gotchas, patterns) at task completion by drafting concrete, cited observations and recording them directly into the project knowledge base via the verity CLI.
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.
At a natural task-completion moment, the agent reflects and records — draft a concrete, cited observation from what actually happened, write it to the project knowledge base, and say what you wrote. No question, no waiting.
This is the second half of the "reflection flip". Verity first stopped asking the user to do the reflecting; it now also stops asking permission to keep it. The human is a reader and editor of the record, not a gate in front of it.
When a task is complete, draft 1–3 things genuinely worth remembering — a decision, a gotcha, or a pattern — from what happened this task. Each item must be concrete and cited: name the files, PR, commands, or error-signatures it came from. Skip entirely if nothing non-obvious happened — an empty reflection is better than a filler one.
That last rule is now the only filter. Nobody is going to catch a weak reflection before it lands, so do not record one.
Pick the right --kind per item: decision, gotcha, pattern, security,
quality, intent, domain, integration.
Citing the files is not decoration — it is what makes the reflection findable.
Verity scopes a node to the paths named in its text, and retrieval seeds on that
scope. A reflection that names no file in this repo is recorded and then never
surfaces again, in any future review. So write src/payments/retry.ts:88, not
"the retry path".
verity reflect --user-input - --kind <kind> <<'VERITY_EOF_<random>'
<your draft>
VERITY_EOF_<random>
That is the whole step. It never blocks, never prompts, and works the same in a TTY, a hook, CI, or a cron run.
Write the title as the first line of the draft: the node is titled by its first
line, or by the first sentence of it, up to 120 characters. The command prints
the title it stored. If it is wrong, or the reflection is, correct it with
verity memory edit <node-id> or remove it with verity memory delete <node-id>.
Paths count when they are written from the repository root, as a file
(scripts/verity.sh), a glob with a folder (config/*.yaml) or a folder with a
trailing slash (src/payments/).
The text goes through the quoted heredoc, never inside "…" on the command
line: there, a ", a backtick or $(…) in the words would run in the shell.
The quotes around the first VERITY_EOF_<random> are what stop the shell
expanding anything. 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.
If the reflection genuinely cannot name its files in prose, scope it explicitly:
verity reflect --user-input - --kind <kind> --file-globs 'src/auth/**' <<'VERITY_EOF_<random>'
<your draft>
VERITY_EOF_<random>
The command warns when a reflection resolved to no files, so you will know when this is needed rather than discovering it months later as a node nobody read.
When the user authored the words — they said "record this: …", or dictated
a lesson in their own terms — add --confirmed:
verity reflect --user-input - --kind <kind> --confirmed <<'VERITY_EOF_<random>'
<what they said>
VERITY_EOF_<random>
This is not a formality. Without the flag a reflection is stored as
source: agent (confidence 0.7) — Verity thought this, nobody checked it. With
it, source: user at confidence 1.0 — a person stands behind this. The
dashboard, the retrieval ranking, and the next agent to read the node all rely on
the difference. Never pass --confirmed for your own draft, even a good one.
The command prints the node id, the local file path, and a dashboard link. Relay it — one line, no ceremony:
Recorded a gotcha about the Stripe retry path →
.verity/memory/gotchas/n104-stripe-idempotency-keys.md
They did not agree to this in advance, so they need to know it happened and where to go if it is wrong. Do not ask them to confirm it after the fact either — the file is right there, and editing or deleting it is the correction.
Only Verity's own memory namespace — .verity/memory/ (mirrored to the service).
Verity never writes a repo's own agents/memory or any other store. One node per
item, synced to disk immediately so it is readable and editable straight away.
Complementary to the above: trigger the server-side LLM extractor to mine the current task's run history and produce 0–3 nodes. This is the same extraction that runs automatically on task close and every 5 runs — use it to trigger mid-task:
verity reflect
Use the draft flow above for the compound moment (a specific insight worth a node); use auto-extract to harvest what the run history shows.
At natural task-completion moments:
payments/retry.ts:88." → gotchas/stripe-idempotency-keys.mddecisions/advisory-locks-for-versioning.mdmigrations/0190, cron/cleanup.sql)." → gotchas/rls-cleanup-coupling.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codacy/verity --plugin verity11 skills in this plugin
/analyze/verity:analyze — Run Verity analysis on demandRun an independent AI review of the current change on demand — a second opinion on quality, security, and whether the code matches its stated intent. Use when the user asks to review, check, or analyze code before committing, or to get an independent check on work you have just finished./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 project