agentleFS
IamK77IamK77/Skill/skills/engineering/assay/SKILL.md

assay

Skill2 starsChanged 31 days agoApache-2.0View on GitHub

Build regression tests around observable behaviour and demonstrate that they detect the fault. Use for test design, missing coverage, and validating a code change.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before starting, inspect the project and bind TEST_CMD to its real trusted command with --var 'TEST_CMD=<actual command>'.

    line 28
  2. Very specific:

    Test level and any doubles preserve the behaviour under test.

    line 40
  3. Very specific:

    When this stage is fulfilled: checklist advance contract --run "$RUN".

    line 43
  4. Distinctive:

    Write the smallest useful regression.

    line 47
  5. Very specific:

    Run the bound sensor: checklist verify exercise --run "$RUN".

    line 56
  6. Distinctive:

    If the environment is unavailable, keep the test and report it unrun.

    line 75
  7. Very specific:

    If an input or permission is missing, name the blocker and leave the relevant item pending.

    line 77
  8. Very specific:

    After all required work and stage closures is recorded, use checklist done --run "$RUN".

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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
<!-- Copyright 2026 IamK77 — Licensed under the Apache License, Version 2.0. See ./LICENSE and ./NOTICE · https://www.apache.org/licenses/LICENSE-2.0 -->

assay

Build regression tests around observable behaviour and demonstrate that they detect the fault. Use for test design, missing coverage, and validating a code change.

Inputs

Behaviour or defect to protect; observable acceptance examples; target project; its actual test command and supported test environment.

Run record

Use checklist 0.5 or newer for this SOP. Reading or reloading the skill must not reset work. For a new task, run checklist init "${CLAUDE_SKILL_DIR}" --new --path "/absolute/project"; retain its returned ID as RUN. For existing work, use checklist resume "$RUN", then checklist show --run "$RUN". Outside Claude, replace the skill-directory variable with this directory’s actual path.

Commands below record work after it is done. Replace evidence placeholders with concise artifact locations and observations. Manual confirmations are not independent proof; a sensor pass covers only the command and inputs it observed. verify does not close a stage; advance checks that its required readings are fulfilled. Use report --run "$RUN" for the retained history.

Before starting, inspect the project and bind TEST_CMD to its real trusted command with --var 'TEST_CMD=<actual command>'. Do not use an echo/no-op to produce a green result. checklist resume "$RUN" --var 'TEST_CMD=<new command>' changes the binding and invalidates earlier readings; commands and output are stored locally, so do not bind secrets.

Procedure

contract

Translate the requirement into examples and identify the cheapest level that observes the real behaviour. Name external boundaries and decide which may be substituted without replacing the subject of the test.

Record these artifacts after doing the work:

  • Acceptance examples name observable outcomes and relevant edge cases. checklist check contract behaviour --run "$RUN" --evidence "<artifact and observation>"
  • Test level and any doubles preserve the behaviour under test. checklist check contract boundary --run "$RUN" --evidence "<artifact and observation>"

When this stage is fulfilled: checklist advance contract --run "$RUN".

exercise

Write the smallest useful regression. Observe it fail for the intended reason before fixing the implementation, or introduce a controlled fault if the feature already works. Restore the code exactly, then run the selected suite.

Record these artifacts after doing the work:

  • The test failed on the targeted fault, not on setup or unrelated breakage. checklist check exercise red --run "$RUN" --evidence "<artifact and observation>"
  • Controlled faults are removed and the intended implementation is restored. checklist check exercise restored --run "$RUN" --evidence "<artifact and observation>"

Run the bound sensor: checklist verify exercise --run "$RUN". A failed or unavailable command is not a successful review.

When this stage is fulfilled: checklist advance exercise --run "$RUN".

handoff

Review whether assertions survive a legitimate refactor, remove redundant fixtures, and report exactly what ran. Leave new tests in the repository.

Record these artifacts after doing the work:

  • Regression tests are retained with maintainable fixtures. checklist check handoff durable --run "$RUN" --evidence "<artifact and observation>"
  • Result summary distinguishes executed checks, exclusions, and remaining risk. checklist check handoff limits --run "$RUN" --evidence "<artifact and observation>"

When this stage is fulfilled: checklist advance handoff --run "$RUN".

Branches

If the environment is unavailable, keep the test and report it unrun; do not record a passing sensor. For nondeterministic behaviour, control seeds/time or use a justified statistical assertion instead of repeating until green.

If an input or permission is missing, name the blocker and leave the relevant item pending. A changed requirement may need a new run; an accepted checklist edit uses resume "$RUN" --refresh and requires fresh readings. To abandon work, use checklist reset --run "$RUN" --reason "<reason>"; history is retained.

Completion

A retained test that has been seen to fail and then pass, plus suite results and named gaps. Groundwork supplies acceptance examples; this skill does not invent missing requirements.

After all required work and stage closures is recorded, use checklist done --run "$RUN". This archives the result without deleting its history; it does not authorise any external action.

Reference shelf

Open the technique relevant to the current step. These notes provide concrete methods and examples, not additional phases; this entrypoint defines the run's completion conditions.

  • Tests that observe the wrong thing
  • Coverage, fault sensitivity, and gaps
  • Choosing a test around a risk
  • Making failures reproducible
  • An inspectable verification record
  • Fit tests to the repository's language and conventions
  • Independent tests and shared resources
  • Construct a probe for one behavioural claim
  • Properties and generated cases
  • Substitute boundaries without replacing the subject

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.