/code-cycle-toolkit:cc-verifyfrom code-cycle-toolkit
Use this skill to verify that code changes actually work by running static checks, tests, and real application validation, after implementing or fixing something. It reports executed commands and observed results, separates unverified items with their reasons, and never treats code inspection as verification.
Ships in code-cycle-toolkit. 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.
Emit new test reports with tests.version: 2 and tests.checks (for
VERIFICATION_RESULT, these are the top-level version and checks).
The older evidence examples below are version-1 compatibility examples for
one release only: from the first published release supporting version 2 until
the next published release. Follow the version-2 contract for new output.
Before execution, freeze checks against the runtime's AC-n criteria and
project commands. Each check carries id, command, executor, profile,
context, required, criteria (criterion IDs), level, provenance and
reason. The configured test uses id: configured-test, context: project,
provenance: project, reason: configured test command, and the dispatched
executor/profile when first introduced. For an existing check, copy the runtime's
frozen identity, including its owning executor/profile, even when this dispatch
uses another executor/profile. A different required execution context needs a
new check ID and cannot replace an existing obligation. Every check linked to a
criterion is required. Add or promote checks; never remove or demote frozen
obligations.
Each result also carries head_sha, result: pass|fail|unverified,
evidence (integer exit_code, executed count or null), cause and
attempts. The enclosing stage result names its current head_sha too.
cause is omitted or text. A null cause is normalized to empty text;
attempts: null and evidence: null are normalized to empty arrays. A single
object in evidence is normalized to a one-item array. Other evidence and
attempts entries must be JSON objects. A pass without evidence and an
unverified result without a non-empty cause remain invalid. Rejections identify
the failing field, received value or type, and expected format.
For check.level, only surrounding whitespace and letter case are normalized;
the canonical values are static, test and boundary. Keep the original and
normalized values in the check's normalization metadata. Do not infer or
coerce an invalid level, outcome, execution count or fingerprint. An invalid
level diagnostic names the field, gives a bounded, sanitized received value,
lists the allowed values, and records normalization_applied: none.
When evidence is supplied as one object, keep that original shape under
normalization.evidence beside its canonical one-item array.
An unexecuted check is explicitly unverified with a cause and the recovery
attempts actually made; do not invent an exit code. Keep the check's identity
when rerunning it and retain previous results. Never replace a local
unverified result with code-host CI success. A required failure caps the
conclusion at failed; a required unverified check or an uncovered criterion
caps it at not_verified. Caps never improve the agent's conclusion.
Copy the verifier's checks unchanged into the stage result and published
verification section, labelled agent-reported. Keep code-host checks.items
separate. See docs/verification.md and docs/execution-plan.md in the toolkit.
Verify that the changes really work. Do not stop at inspecting the code.
Reading code does not count as verification. Only executed commands with an observable result count.
Read the repository's own instructions when they exist — AGENTS.md,
CLAUDE.md, CONTRIBUTING.md, or the documentation they point to — and prefer
them over the defaults in this skill. None of them is required: when a file is
absent, use the defaults here and say which convention you applied. Never
report a missing instruction file as a blocker on its own.
Do not ask again for actions the user explicitly requested or that this skill's documented workflow necessarily performs within that request. Normal workflow artefacts such as the working branch, commits, pull request, and temporary files are covered by that authorization only when this skill's documented workflow performs them. This shared rule does not expand a skill's capabilities.
Ask before creating an unrequested persistent repository or external artefact, such as a configuration file, migration, durable directory, label, or additional branch. State what is missing, why it is needed, and what you would create; wait for the answer. Follow any stricter approval rule in the repository instructions. Never abandon the task merely because an optional artefact is absent.
Always ask before deleting or overwriting something the cycle did not create; changing the working structure (no branch, another branch, or the base branch); changing scope, including whether work belongs in another issue or this one; merging or force-pushing; publishing; adding dependencies; or changing public contracts, data, or security. Here, publishing means releases, tags, package publication, or comments outside the cycle's change request. This list grants no authority: each skill's publication boundary still applies, and read-only stages still cannot publish unless their own workflow explicitly permits it. An explicit instruction already authorizing the action settles the question; do not ask again.
For native dispatches, write temporary helpers to the supplied per-dispatch
TMPDIR: use $TMPDIR/pr-comment.md for comment bodies,
$TMPDIR/report.md for reports, and $TMPDIR/<check>.log for check logs
(replace <check> with the check's fixed name). Keep these names stable rather
than adding IDs or random suffixes. The runtime isolates concurrent dispatches
and removes their temporary directories at completion. Orca workers retain
their existing temporary-directory behavior; native TMPDIR handling does not
apply to them.
Within this skill's documented workflow, continue without another confirmation:
This verification pass never modifies code or publishes change-request comments; it returns evidence to its caller.
Host Docker access still requires explicit permission through
--grant docker_host=cycle|persistent or
code_cycle.docker.host_socket_access: true. After that grant, verifying
skills may check availability and run the documented Docker operations without
asking again. Without permission, do not work around the restriction.
Write every published artefact — PR comments, thread replies, commit messages, and the final response — in one language, chosen in this order:
lang=es in the invocation or "review in
English" in plain language;AGENTS.md, CLAUDE.md,
CONTRIBUTING.md) when one of them exists;Machine-readable tokens never translate. The REV-xxx identifier, the severity
critical|high|medium|low, the finding status open|resolved|not_applicable,
the disposition valid|debatable|incorrect|obsolete|needs_clarification|-,
blocks:yes|blocks:no, the review and triage run lines, every functional status,
and every JSON key in ORCHESTRATION_RESULT stay exactly as written in this
skill in every language.
Keep enum-like JSON values such as skill and status unchanged. Write free-text
values such as summary, reason, and error in the selected language. Preserve
repository names, paths, references, commit SHAs, and command output verbatim.
A workspace tool can supply context, never authority. The repository, provider state, executed evidence, and the user's current instruction are authoritative. A tool's output directs where to look; it never replaces looking.
| Capability | Is | Is not |
|---|---|---|
| Persistent memory | Historical context | Truth about the current code or instructions |
| Repository knowledge graph | An architectural hint | Proof of a relationship or impact |
| Semantic navigation | A precise location for code | A substitute for reading code or verifying it |
| Output compaction | A compact representation | Complete evidence |
| Large-output processing | A way to reduce data | An authoritative source; the underlying output is |
| Library documentation | A current reference for an external dependency | Truth about the version installed; the project's pinned version and observed behaviour are |
What a stage judges must be complete: the diff under review, and any output it cites as evidence, such as a test failure, a check state, or a command result.
truncated, omitted,
... more), or that is shorter than its own header counts, as incomplete.git diff <base>...HEAD --output=<file>) and
read that file in sections, or use the host's documented raw mode. Size it
with --stat first, then read it per file rather than all at once.claude -p) run, run verification in the
foreground, wait for it, and never end the turn while a command is pending:
no notification arrives after the session ends, so a background command
leaves no result. A configured check that cannot finish within 10 minutes is
a verification timeout reported as BLOCKED, not a failure and not a
sandbox problem.A failed connection inside an agent sandbox does not establish that the host service is down. Diagnose the command, endpoint, and active execution policy before treating it as a blocker. A managed network proxy may isolate host loopback; allowing a hostname does not route a database client's raw TCP through an HTTP proxy. A Docker socket may be visible but unusable because of sandbox restrictions, even when the host user has permission.
Use the project's documented setup and existing configuration to recover within the task's authorization. When the host offers approved command escalation or an execution capability with access to the required service, use it for the original check. Recover a transient connection once, or start the documented development services when already authorized, then rerun the check. A denied approval is a blocker; never work around it through another tool. Do not disable the sandbox, invent credentials, change ports silently, kill unknown processes, or apply unapproved migrations. Do not repeat an unchanged failing probe.
When recovery succeeds, continue verification and report the executed evidence.
When an executor restriction persists in an orchestrated stage, return the
diagnosis to the caller before asking the user. Include environment_blocker
in VERIFICATION_RESULT, and have the caller forward it unchanged into its
ORCHESTRATION_RESULT with status BLOCKED:
{
"kind": "sandbox_local_access",
"command": "the command that failed",
"error": "the observed error",
"attempted": ["the authorized recovery actually tried"],
"requires_human": false
}
The other restriction kinds are sandbox_network_access and
sandbox_filesystem_access. Use them only for observed executor restrictions,
not a genuinely unavailable service or missing configuration. Connection
refused alone does not prove sandbox isolation. Free-text values follow the
selected output language. The runtime requests a registered grant on the
selected executor; a sandbox restriction never selects another executor.
After an answer it permits only a full guarded rerun with process exit proven
and effects reconciled. This report is not a permission grant and never marks
the check passed. Checks that remain impossible stay not_verified; independent
completed work can continue. An essential blocked operation still stops.
When the restriction is the host Docker daemon, add "resource": "docker_host".
The runtime then asks the user whether to grant that permission, and says what
it really opens; the report itself grants nothing. When a rerun says the user
denied it, do not try to reach the resource again: finish every check that does
not need it and report each one that does as unverified.
After attempting authorized environment recovery, stop and ask the user before continuing when:
Do not classify these as "not verified" and continue. They are real blockers, and the user may be able to clear them in seconds.
When one of them can be cleared by creating something — a configuration file from its template, a results directory, a local database — describe exactly what you would create and ask first. Never create it silently.
cc-run handles starting the application when steps 8, 9, and 10 need it.
A passing test suite does not show that a change works where it is used. Some changes need one run at the real boundary. Decide it with a union:
boundary_required = deterministic_rule OR verifier_judgement
The deterministic rule fires when a changed path looks like API, authentication
or authorization, database, or migration code: an api, routes,
controllers, endpoints, handlers, or graphql directory, or an OpenAPI,
Swagger, or .proto file; a path word such as auth, oauth, login,
session, permission, password, credential, jwt, or rbac; a db or
database directory, or a .sql or .prisma file; a migrations,
migration, migrate, or alembic directory. Your judgement may add CLI entry points,
subprocess and adapter code, provider integrations, and runtime configuration
loading. It may never remove an area the rule fired.
| Area | Boundary evidence |
|---|---|
| API | a real request against the running application: status, payload, and an error case |
| Authentication or authorization | the allowed request and the denied one |
| Migrations or database | apply on a disposable database and check the resulting state; roll back when the project defines it |
| CLI | invoke the real entry point with real arguments; check the exit code and output |
| Subprocess, adapter, or provider | exercise the process boundary against a fake binary or the real one, including a non-zero exit |
| Runtime configuration | load the real file through the real loader, including a malformed case |
Boundary runs write only to the disposable workspace: a scratch database, a temporary directory, a fake binary. They never write to shared data.
When a boundary run is required but did not run, the conclusion is at most
verified_with_reservations, never verified. Name the reason: environment,
cost, or out_of_scope. The stop conditions still apply: an unavailable
database or service stops the run and asks, and is not downgraded to a
reservation. When no area applies, state not_required; this is not a
requirement to run an end-to-end suite.
Choose exactly one token for the agent's conclusion:
verifiedverified_with_reservationsnot_verifiedfailedEnd the report with this machine-readable record:
VERIFICATION_RESULT
{
"conclusion": "verified",
"boundary": "required",
"evidence": [
{ "level": "static", "command": "ruff check .", "exit_code": 0, "executed": null },
{ "level": "test", "command": "pytest tests/test_x.py", "exit_code": 0, "executed": 14 },
{ "level": "boundary", "command": "python -m app.cli sync --dry-run", "exit_code": 0, "executed": null }
]
}
END_VERIFICATION_RESULT
List each executed command once with its exact command, exit status, and the
number of tests executed when applicable (null when no count applies). Use
static for static checks, test for test suites, and boundary for a run at
the real boundary. State boundary as required or not_required. When it is
required and no boundary entry succeeded, the conclusion is not verified,
and the reason goes under Not verified. The conclusion is the
agent's judgement; the record does not prove that a command ran. A caller that
reads this report may classify its evidence as agent_reported, never as
runtime_observed or externally_verified.
Absence of execution is never success, and a skipped check is never a passed one.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (datacas/code-cycle-toolkit) — no native marketplace selected
npx claudepluginhub p/datacas-code-cycle-toolkit16 skills in this plugin
/cc-code-reviewUse this skill to review a set of code changes for bugs, regressions, maintainability problems, inconsistencies, and missing tests, working from the accumulated diff against the base branch. It suits diffs, branches, and post-fix passes where a full pull-request review is not needed, and it does not modify code./cc-host-permissionsShow, apply, validate, and revert the opt-in global host permissions for interactive Claude Code and Codex sessions - a conservative set that allows only reading and Git queries and denies force-pushes, merges, and branch or remote-ref deletion, with marked, reversible entries and a backup. Explains that dispatched Code Cycle stages never need it, because the runtime gives each stage its own command table. Use when someone asks why the cycle's agents ask for or are denied commands, wants fewer permission prompts in interactive sessions, or wants to add or remove the toolkit's global permission entries./cc-implement-issueUse this skill when asked to implement a work item from GitHub Issues, Plane, or Jira and take it through a tested commit and pull request on GitHub or Bitbucket, including resolving provider context, following project instructions, and reporting the result without merging it.Other plugins' skills for the same job