agentleFS
liush2yuxjtuliush2yuxjtu/pi-debug-mode/.agents/skills/verify/SKILL.md

verify

Skill4 starsChanged 30 days agoMITView on GitHub

Verify a code change before shipping by running the relevant existing tests locally, then running the real application or public surface and observing the affected behavior end to end. Use before every pull request, for PR verification, manual acceptance, confirming a fix, or validating local changes before shipping.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use instinct-export, instinct-import and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • TheKREATORSSkill

    instinct-export

    Export instincts from project/global scope to a file

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-import

    Import instincts from file or URL into project/global scope

    Also in 3 projects that use this

  • AviadPSkill

    risk-assess

    Assess the risk and blast radius of a proposed code change before implementing it. Evaluates CI impact, framework-wide vs localized scope, rollback path, and identifies blindspots. Use when user says "what's the risk", "is this safe", "assess the impact", "risk assess", "blast radius", or before applying framework-wide or CI-affecting changes. Do NOT use for code quality review (use code-quality) or plan validation (use design-validator).

    Also in 3 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 6 projects that use this

  • AaravChadhaSkill

    secure

    Security review with a confidence gate - a finding exists only with a concrete exploit scenario and a high/medium/low confidence rating; everything else goes to a worth-hardening list, never inflated. Sweeps five surfaces: auth gates, secrets hygiene, injection and unsafe sinks, unsafe deserialization/crypto/transport, and LLM tool-use trust boundaries. Reports only, never fixes. Use when the user asks for a security review or to check vulnerabilities, secrets, or auth.

    Also in 3 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 10 projects that use this

  • +1 more from TheKREATORS

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not delete, weaken, skip, or rewrite tests merely to obtain a green result.

    line 18
  2. Distinctive:

    Run the repository prerequisite check after dependencies are installed:

    line 37
  3. Distinctive:

    If the project has no run recipe, inspect package scripts and host peer dependencies.

    line 57
  4. Distinctive:

    Follow the changed code outward to the user/program boundary: rendered GUI, public CLI/TUI, listening server/API, exported package API, …

    line 69
  5. Very specific:

    Use an empty disposable directory as cwd and PI_CODING_AGENT_DIR.

    line 98
  6. Distinctive:

    Delete only disposable probe directories.

    line 105
  7. Distinctive:

    When the verdict is FAIL or BLOCKED, fix the smallest repo-owned cause or record the exact environment blocker.

    line 124
  8. Distinctive:

    Stop only at PASS, or report the blocker when it is outside the authorized environment.

    line 126

“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Verify before shipping

The question is whether the changed behavior works for a real caller. Shift tests left by running them locally before the PR, then verify the running product surface. Tests, type checks, and static review are supporting evidence; they do not replace runtime evidence when a real user/programmatic surface exists.

Scope

Identify the full change or named behavior being verified. Read the relevant diff and stated claim. If implementation and claim disagree, record that as a finding.

Shift-left test gate

Run the smallest existing test suite that directly covers the change from the local/project environment before opening a PR. Reuse the repository's existing commands from package scripts, Makefiles, pyproject/tox/nox config, Cargo/Go tooling, or project docs. Expand to the broader suite when it is reasonably cheap or when the changed boundary makes narrow coverage insufficient.

Do not delete, weaken, skip, or rewrite tests merely to obtain a green result. Preserve the raw command, exit status, and relevant output. A relevant test failure is a FAIL until fixed or shown to be an invalid test with concrete evidence.

The test assets stay in the repository. Their execution belongs as early as possible in the local agent workflow; CI duplication can be removed only when the same required coverage is enforced by this pre-PR verification path and any required remote/environment-specific gates are preserved.

Warning and prerequisite gate

Warnings and missing tools are verification inputs. Do not report them as harmless without checking their source and scope.

For every warning, preserve the raw line and classify it:

  • Repo-owned — caused by package scripts, source, lockfile, configuration, or a dependency selected by the repository.
  • Environment-owned — caused by the runner, shell environment, proxy variables, user npm config, or missing host binary.
  • External dependency — emitted by a transitive or direct dependency. Record the package, version, and whether the repository can upgrade or replace it.

For npm warnings, run these checks when npm is used:

npm config list --location=user
npm ci --ignore-scripts --loglevel=warn

Run the repository prerequisite check after dependencies are installed:

npm run verify:prerequisites

This check must report node, npm, pi, trufflehog, and the local tsc binary. Install missing required binaries to a stable PATH location such as /bin/<name>, then rerun the check. Do not downgrade a missing required binary to SKIP.

Capture every Unknown env config, proxy, deprecation, or lifecycle warning. Do not hide warnings with --silent, redirection, or a changed log level.

For a missing optional tool, run an explicit availability check such as:

command -v <tool>
<tool> --version

Then inspect the test output or project configuration to decide whether the tool is required. A missing tool is BLOCKED when it is required for the claimed behavior. It is SKIP only when the test explicitly declares the tool optional and the skipped behavior is outside the claim. A skipped test never becomes a pass by omission.

For a host runtime such as a CLI, TUI, browser, or desktop application, verify both:

command -v <binary>
<binary> --version

If the project has no run recipe, inspect package scripts and host peer dependencies. State why the real surface can or cannot be launched. Do not call a mocked harness a full application run.

A warning is non-blocking only when all of these are true:

  1. The raw warning is captured.
  2. Its owner is classified.
  3. It does not change the claimed behavior.
  4. A repeatable remediation or follow-up is recorded.
  5. The same warning does not hide a test failure.

Surface

Follow the changed code outward to the user/program boundary: rendered GUI, public CLI/TUI, listening server/API, exported package API, real agent invocation, or workflow run. An internal helper is not the final surface when a real caller exists.

For a docs-only change with no executable behavior, return SKIP. For a tests-only change, run the affected tests and report their result; runtime observation may be SKIP when no product behavior changed.

Run and drive

Reuse the most specific project run-* recipe. Otherwise use the run workflow to get a live handle. Exercise the smallest end-to-end path that makes the changed code execute and capture evidence from the running surface: screenshot, pane/stdout, response, public SDK output, or agent/workflow result.

Then probe at least one nearby edge case suggested by the change while staying at the same public surface.

If the host surface cannot start, do not silently downgrade to a mock. Return BLOCKED unless the changed behavior is directly covered by a real exported API or an explicitly declared runtime harness. In that case, name the harness and state that the full host surface remains untested.

Comment hygiene gate

For any code or configuration diff, run /no-comments against the same scope before the final verdict. Use the project skill at .agents/skills/no-comments/SKILL.md, which is based on Cursor's pstack no-comments skill.

Preserve the raw /no-comments report and classify each finding:

  • Accepted and fixed — the smallest in-scope root-cause change is present, and the report was rerun.
  • Kept with proof — the comment is required by an external constraint that the report documents.
  • Open — the finding, required rerun, constraint encoding, or scope decision is unresolved.

An unresolved MUST KILL, an unrerun rejected report, an unjustified keep, or any other open /no-comments work is a FAIL. Do not delete comments only to make this gate green. For docs-only or tests-only changes, state why /no-comments is not applicable and preserve that scope decision in the verification report.

Pi skill discovery verifier

For changes to this project skill or other Pi skill-loading behavior, verify the real Pi resource boundary. Use Node 24 when the local Pi runtime requires it.

  • Confirm pi --version and pi --help.
  • Use an empty disposable directory as cwd and PI_CODING_AGENT_DIR. Invoke:

    pi --mode rpc --offline --no-session --no-context-files --no-extensions --no-prompt-templates --no-themes --no-tools --skill <repo>/.agents/skills/verify/SKILL.md

    Send one JSON line {"id":"verify-discovery","type":"get_commands"} on stdin, then EOF. Require a successful response with exactly one skill:verify resource, source skill, and the intended project skill path. Do not make a model request.

  • For project-path changes, repeat the check in disposable Git fixtures with the skill copied under .pi/skills/verify/ and .agents/skills/verify/. Use --approve only for the known fixture. Require sourceInfo.scope=project and the resolved fixture path.
  • Preserve the candidate commit SHA, command, exit status, filtered RPC result, and snapshot report. Do not claim another machine was synced or model behavior was evaluated from a local loading check.
  • Delete only disposable probe directories. Leave sessions, credentials, and unrelated working changes intact.

A docs-only change has runtime verdict SKIP. A successful RPC resource-discovery check is separate evidence for skill loading. This project-specific verifier incorporates the portable Pi verification rules from liush2yuxjtu/dot-pi/.agents/skills/verify/SKILL.md; dot-pi fleet-only paths are not part of this project.

Evidence and verdict

Preserve raw evidence before interpreting it. Use one verdict:

  • PASS — required local tests passed, warnings and prerequisites were classified, the real surface was exercised when applicable, and the claimed behavior worked.
  • FAIL — a required local test failed, an owned warning is unresolved, the real surface failed/regressed, or the observed behavior materially disagreed with the claim.
  • BLOCKED — the required test, required tool, or required runtime surface could not be reached because the environment/launch path failed.
  • SKIP — no executable behavior exists to observe, or runtime observation is not applicable to a tests-only/docs-only change.

No partial pass.

Report: claim, local test commands/results, warning and prerequisite checks, runtime method, each driven step with observation/evidence, one edge probe when runtime applies, findings, verdict, and cleanup status.

Verification loop

When the verdict is FAIL or BLOCKED, fix the smallest repo-owned cause or record the exact environment blocker. Re-run the same checks after every fix.

Stop only at PASS, or report the blocker when it is outside the authorized environment. Do not turn a missing dependency, skipped security check, or unavailable host runtime into a green result by changing the assertion.

See references/cli.md and references/server-api.md for examples.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.