/credo:verifyfrom credo
Enforces visual verification as the Definition of Done for UI changes. Drives real browser rendering with Playwright to prove behavior before marking items complete.
Ships in credo. 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.
Visual verification is the credo Definition-of-Done gate for anything with a runtime
surface. If a change renders something, updates something on screen, or reacts to a
user action, it is not done until that behavior has been observed - either by the user
in a real browser, or by a reliable automated Playwright check that drives the real
build. This skill is the DoD gate that ui: true items require.
Task backend. If the task backend is
gsd(.credo/config: task_backend, or theCREDO_TASK_BACKENDenv override), the credo item lifecycle is inactive, so there is no credo item to move to done - GSD owns task tracking. The verification method here still applies as a general "prove it renders" tool; just do not gate a credo item with it in that mode.
None of these are a substitute for visual proof:
node --check, a type-check, a lint pass, or a successful buildThey can all be green while the surface renders broken, never updates, or ignores the user. Verification means the rendered surface was exercised and observed.
Anything else is "wired-but-behavior-unverified", not "exercised".
Which test level a change must pass before it may move to done is resolved by a
fallback chain, so a project can pin its own primary method without credo hardcoding any
project-specific tool or device:
Project primary test level. credo ships verify.primary_test pre-filled with a
default example (a debug read/write device driving a state machine) so the setting is
discoverable instead of silently empty. credo does not know what the stage is; it is
referenced only through the config key. Read it with:
"${CLAUDE_PLUGIN_ROOT}/scripts/credo-config.sh" get verify.primary_test
verify.primary_test to the project's actual primary
test entry point or to clear it (empty -> rely on the fallback). Include a short
explanation of what the setting is and what it is for. Never keep a stale value
silently. In autonomous mode there is no Ask tool, so this question goes into
the end-of-run report as text with a Q code.Else Playwright. If no primary test level is configured, drive the real build in a browser with Playwright for the optical, responsive, and theme behavior (measured layout, real interaction, each configured viewport).
Else a reviewer / audit agent. If neither applies, fall back to a reviewer or audit agent as the last resort.
Passing the applicable level in this chain is the condition for bringing an item to
done. Do not skip up the chain: a configured verify.primary_test is not satisfied by
running Playwright instead.
Every Playwright version needs its own browser revision (250-600 MB each), so old lockfile
pins pile up old browsers under ~/.cache/ms-playwright.
npx playwright install for the browsers) as a separate step with a test run. Green
-> keep it; red -> go back to the old version and report. Raising it changes the lockfile
and downloads browsers, so it IS an install. It needs the owner's explicit consent each
time (credo safety, no-autonomous-installs). In autonomous runs or wherever the Ask tool
is not used, never do it. Note it as a proposal for the owner and carry on with the
installed version.credo-cleanup.py playwright-prune: it finds every Playwright installation
on disk (any browsers.json: Node playwright-core also in ~/.npm/_npx, global and pnpm
installs, the Python and .NET driver package, the Java driver jar, plus Playwright's own
.links) and removes the revision directories under ~/.cache/ms-playwright (or
PLAYWRIGHT_BROWSERS_PATH when it holds .links) that none of them names and no running
process uses. It only
deletes and never downloads or installs anything. A project that still needs a removed
revision gets it back only when a user (or an agent with consent) runs its install. It
never touches mcp-chrome-* or any directory that is not a known browser-revision name,
keeps revisions installed less than 2 hours ago, and prunes nothing when anything is
unclear (search not finished, an unreadable directory, a malformed Playwright
browsers.json or jar, /proc unreadable, no installation found).When a verification can ONLY be done by the human (a human-only criterion, or the
re-test that lets an item move to 3_verified/), never hand it over as a vague "please
test this". Always give a NUMBERED, step-by-step list the user can execute one step at a
time and answer per step:
One step per number. Each step is a single, concrete, executable action - never bundle several actions into one number.
Directly under each step, a separate line starting with -> Answer: that states
exactly WHAT to observe or report back (a status, a value, yes/no). This lets the user
test step by step and answer each step individually.
Keep a test round small: 1-2 items per round, not a long checklist of everything.
Example:
### 🧪 T1) #37 Auto-Grant + Auto-Submit
1. Hard-reload localhost:5173 (Ctrl+Shift+R), Network tab, filter api.
-> Answer: on load, without a click, does a POST /api/games appear? Status? With token+seed?
2. Win the board (just play).
-> Answer: on the win, does a POST /api/result fire automatically? Status (201?)?
Use plain - and ->, no special arrow or dash characters.
Owner-facing tests and tasks follow the presence rule of the session-active skill ("Owner actions in full while the owner is present"). While the owner is present, the steps go into the chat reply in full, copyable commands and the expected result included, never as "see item" or "see report". While the owner is away, the test stays open and is presented in full at the first owner prompt after the absence.
Every manual test block, every question to the user and every product-visible decision the owner may overrule gets a typed code (internal process decisions get none, see the veto rules below), so the user can answer unambiguously ("T3 vf", "Q4: option 2", "V12 ok"). This applies in every session mode and every repo where credo is active. The agent keeps the convention by following this text; no hook enforces it.
T1, T2, T3 ..., questions Q1, Q2, Q3 ..., vetos V1, V2, V3 .... Each counter is monotonic: a number is never reused, never reset, and there is no wrap-around. The numbers carry on across replies and across compacts. When unsure whether a number is free, skip it rather than repeat one: one number too many is fine, a repeated number is not.### heading line, never inline text:
### 🧪 T3) <topic>### ❓ Q4) <topic> (a question asked through the Ask tool carries the same ❓ Q4) prefix in its question text)### ✋✋ V2) Veto possible: <what was decided or done> ✋✋ (in a German conversation the marker word is Veto möglich). Use it only when an agent decides or does something on its own that the owner notices in the product (behaviour, visible text, money or cost, taste, data) and may want to overrule, typically in autonomous runs, instead of a plain "veto possible" sentence. Internal process, measurement, test-set or tooling decisions get no veto code: they go only into the requirements log and the item History. Each veto states the consequences for the user when they are not obvious.T3 vf (test passed), T3.2 vf (step 2 passed), Q4: <answer> (question answered), V12 <objection> (veto objected to: the agent acts on the objection, and the veto is closed), V12 ok (veto accepted, closed).**🧪: T3** · **❓: Q4, `#177`** · **✋: V2, V5**. Repeat the still-open codes in every reply: the band reads only the footer of the last reply. Omit a part with no open codes, and omit the footer when nothing is open. The footer is a comma list of codes, never prose. An open question about an item still gets its own code (### ❓ Q4) `#177` <topic>), and item refs may stand next to codes (**❓: Q4, `#177`**, item refs in backticks like every #N in a reply). credo's band reads this line; it still accepts the older English and German word labels for tests and questions (vetos have no word label).B or DX) stay as they are until closed and may still appear in footers. All new codes use T, Q or V."${CLAUDE_PLUGIN_ROOT}/scripts/credo-code-next.sh" Q (one number per output line; a count as second argument, Q 3 for three numbers). All sessions of one project share the counters, so two sessions never issue the same code.compact-plus skill records them in HANDOFF.md), so the numbering continues after a /compact instead of restarting at 1.#N) nor harness task numbers (§cct_N); never mix them.remote.mirror_command). Only two markers in a reply reach the owner's remote sink, and only when the owner has set that sink: a test block whose heading carries [blocking] (### 🧪 T4) <topic> [blocking], for a test that must pass before the work can go on) and a blocker line Blocker: <what only the owner can solve> (or **Blocker:** ...). Blocker: none is not a blocker. The lines below the blocker line, up to the next heading, go to the sink as its context, so write the question and what you need from the owner in that block. An ordinary test without the marker is never mirrored, and the marker is for real owner blockers only, not for status. A question heading (### ❓ Q4) ...) is mirrored by the hook as well; the rest of this section is unchanged.Verification needs the surface running. If it is down, locality decides whether you may
bring it up yourself - this is what keeps a ui: true item from being verify-dead in an
autonomous run:
main, develop, or prod does NOT make the runtime remote - only the actual
target does. Judge locality by where the process runs, never by the branch name.human-only: pending in the item, which
does not block the move to 2_done) and record why.Get the bring-up command from config first; never guess one:
"${CLAUDE_PLUGIN_ROOT}/scripts/credo-config.sh" get verify.local_bringup
If verify.local_bringup is set, use it. If it is empty, fall back to the project's
documented local run procedure (a README step, a package script) only when you can identify
it with confidence; if no safe local command can be established, defer rather than guess -
the credo safety skill forbids running a guessed command. After bringing the surface up -
or after any rebuild - force a hard reload before measuring, so you verify the new build.
getBoundingClientRect() (and
computed styles where relevant), do not rely on a screenshot alone. A screenshot is
evidence, not the measurement; a plausible-looking screenshot can still hide a
zero-height or off-canvas element that the box metrics expose.Timing-, gesture-, and hold-dependent behavior - long-press, held chords, drag, and anything that depends on an input being held over time - may ONLY be verified through a real input path:
mouse.down() held
across the duration, real touch), so the press genuinely persists over time, ORSynthetically dispatched events (dispatchEvent, hand-constructed PointerEvents) are
NOT sufficient proof for "holds while held" behavior. A synthetic event fires once and
does not model an input being held; it can report green while the real held-input path is
broken. Concretely: a synthetic measurement taken before a 200ms long-press timer falsely
reported green, and only a real held mouse exposed the bug. For this class of behavior,
treat synthetic dispatch as no proof at all - use real held input or human hands-on.
Verify at each configured viewport width. The universal defaults are 320, 768 and 1440 px, but read them from config as the source of truth - they may be overridden per project:
"${CLAUDE_PLUGIN_ROOT}/scripts/credo-config.sh" get verify.viewports
(Config key: verify.viewports.) Resize to each width, then measure and capture at
that width.
Run the Playwright verification inside a subagent that owns a single browser instance (a singleton), rather than spawning browsers in the main agent or opening several in parallel. One browser, driven step by step, keeps the run deterministic and keeps browser noise out of the main context. See the credo orchestration skill for how to delegate and monitor such a subagent without flooding the main context.
Capture one screenshot per viewport and save it to .credo/screenshots/ using this
exact naming rule:
<task-or-feature>-<viewport>-<YYYY-MM-DD>.png
Example: login-form-320-2026-07-04.png. <task-or-feature> is a short slug (an item
slug or feature name), <viewport> is the width in px, and the date is the day of the
verification. The .credo/ directory is git-excluded by design, so screenshots are
local evidence, not committed artifacts. They are kept as evidence; the disposable-files
exception of the credo safety skill does not cover .credo/screenshots/.
You do not need to resolve the path to .credo/screenshots/ yourself: save with the bare
filename above, and a credo PostToolUse hook relocates the screenshot into the pinned
project's .credo/screenshots/ automatically (the screenshot tool is sandboxed to its cwd
and cannot write into the project directly, so the hook moves the file afterwards). Keep
the naming rule exactly; only the naming is your responsibility.
A change with a runtime surface is done only when every observable success criterion the
agent can check is exercised. A genuinely human-only check never holds an item in
2_go: it is written into the done item as human-only: pending with the numbered steps
("Handing a manual test to the user") and the user runs it in the verify phase (credo
items, "Human-only checks do not block done"). For items marked ui: true, a passing
visual verification at every configured viewport - measured layout, real interaction,
live update where required, hard reload after rebuild, and saved screenshots - is
mandatory before the item may move to done. Where the item carries an acceptance
measurement (data set + target value, credo items), the measured value is part of this
proof, and the builder's adversarial self-check covers the unhappy paths of the surface too
(bad input, empty and error states, a reload mid-action). If verification
surfaces a defect, the item is not done: it goes back to clarification with a note on
what was missed, per the credo item model. Never downgrade or self-approve this gate.
Passing this gate moves an item to 2_done/, never to 3_verified/. 3_verified/ is
human-authorized: an agent never moves an item there on its own initiative. Only the MAIN
agent, and only on the user's explicit instruction, performs that move (via
credo-item-move.sh <id> verified --user-authorized); subagents never do - they report
back and the main agent moves it. Hand the user a numbered manual-test list (see "Handing
a manual test to the user" above) so they can confirm before instructing that move.
Visual proof is not the whole DoD: the same change must also carry its docs currency -
including the project wiki (a separate repo), via /dogma:docs-update where dogma is
installed or a best-effort manual update otherwise. The credo items skill owns that
requirement; this gate does not restate it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marcel-bich/marcel-bich-claude-marketplace --plugin credo28 skills in this plugin
/auditRead-only quality gate that audits already-built work against its stated requirement and Definition of Done before it is allowed to move to 2_done/. Produces a severity-ranked decision proposal (BLOCKER/MAJOR/MINOR/NIT) with evidence; the judgement never edits, only a recorded post-audit step may fix small findings. Use when an item is claimed complete, before moving anything to 2_done/, when asked to audit or review finished work for completeness against requirements, or when acting as the dedicated post-completion review subagent. This gate is mandatory in every session mode. Not for diagnosing why something is broken (use diag) and not for verifying rendered UI behavior (use verify)./budgetThe single source for all API budget cap and reset rules - how much of the 5-hour and weekly API limits may be spent, when to throttle, pause, wake up, or hibernate, and the commit-identity gate that runs before any commit. Use whenever you are about to start or continue autonomous work, before spawning or stopping subagents, when deciding how large a task chunk to take on, when a limit is near a cap, before a commit, or whenever someone asks "how much budget is left" or "can I keep going". Works standalone (no session skill required) and applies inside subagents too: any agent that spends API budget or commits must apply these rules.
/compact-plusSecure everything the user approved before a context compaction so a later /compact can never lose or alter it. Writes verbatim intent and handoff state to disk and commits plus pushes the tracked work product in the correct repository, then reports whether it is safe to compact. It does NOT run /compact itself - it makes a later compact safe. Run this only when the limit plugin's injected ACTION line names it (session-context fill crossed a configured threshold; in interactive modes only after asking the user once, autonomous mode runs it directly) or when the user invokes it manually. Never self-trigger it proactively - that only wastes tokens. Accepts extra trailing instructions to perform in addition to the securing checklist. A minimal mode (invoke as /compact-plus min) secures only intent plus handoff to disk - no audit, no commit or push - for a quick token-cheap save.
/cross-cutting-checklist-generatorDetect when a concern is scattered across many places in a project (config keys, enums, translations, feature flags, API endpoints, doc references) and auto-generate a project-local checklist so that same concern is never partially updated again. Use whenever you add or change something that also exists in several other spots, or when you edit something that already has a checklist. Runs fully autonomously with no user effort, including inside subagents./diagRead-only root-cause diagnosis for a symptom, bug, failure, or unexpected behavior. Establishes the mechanism at file:line and reads up the facts instead of guessing, before any fix is attempted. Produces a diagnosis report; the fix is always a separate step gated by an explicit GO. Use when something is broken, failing, throwing, or behaving unexpectedly and the cause is not yet proven, or when asked to investigate or find the root cause. Not for judging whether finished work meets its requirement (use audit) and not for confirming rendered UI behavior (use verify)./disableDisable the credo items workflow for the current directory. Use when the user wants to stop credo's workflow here - for example "stop using credo here", "disable credo for this repo", "turn credo off here", "no credo in this directory", "credo hier aus", "credo hier deaktivieren", "credo hier abschalten" - or runs the /credo:disable command. It persists a per-directory declined decision (so the SessionStart onboarding ASK and the workflow text stay silent here across future sessions), records the current session as declined, clears its active session mode, and switches keep-alive autonomy off (same effect as switching to active/passive). Model presets and the shorthand legend stay on. Fully reversible via /credo:enable.
Other plugins' skills for the same job