agentleFS
dmlguq456dmlguq456/hearting/skills/code-test/SKILL.md

code-test

Skill8 starsChanged 2 months agoMITView on GitHub

Use only when autopilot-code dispatches implementation verification and evidence recording. Not for top-level user requests or primary capability routing.

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, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run the qa/test unit. Select one prompt form:

    line 26
  2. Very specific:

    Always include this requirement in the qa/test unit test prompt:

    line 55
  3. Distinctive:

    Run test commands through the active adapter's bounded verification runner when its contract requires one.

    line 63
  4. Very specific:

    When changed outputs include a report spectrogram, add the report-figure semantic level from roles/units/qa/test.md: run …

    line 65
  5. Very specific:

    After the qa/test unit returns, read test_logs/test_report.md.

    line 85
  6. Distinctive:

    Do not modify source or invoke a hotfix worker from this stage.

    line 87
  7. Distinctive:

    Do not commit or merge; ownership remains with the caller or orchestrator.

    line 95
  8. Very specific:

    No plan: use a date-stamped directory under <artifact-root>/tests/.

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

code-test

Stage-session entry (standard+ dispatch, spec/stage-dispatch SD-2): Run in-session or as an isolated dispatch-depth-2 stage worker dispatched by the autopilot-code conductor. Read the verification section in plan.md and marks in checklist.md from disk; never depend on prior-stage conversation. Source is read-only in this stage. The write class is test_logs/ and _internal/test_reviews/. The stage runs as the qa/test unit (the node's unit); it dispatches no units itself.

Plan resolution: Treat arguments-and-decisions.md#plan-resolution as the single authority for resolving $ARG. If no plan matches, interpret the argument as the file or directory test target instead of returning a plan-resolution error.

Language rule: Follow the audience and artifact language contract in arguments-and-decisions.md#language-rule. Preserve commands, paths, test names, identifiers, and raw output.

Run Graduated Tests

Run the qa/test unit. Select one prompt form:

  • Plan path:

    Run graduated tests for plan: {$ARG}
    Read the plan verification sections and checklist.md in the task root to identify targets.
    Execute Level 1 → 2 → 3 → 4 → 5 in order, stopping on the first failure.
  • File or directory path:

    Run graduated tests on: {$ARG}
    Execute Level 1 → 2 → 3 → 4 → 5 in order, stopping on the first failure.
    Skip levels that do not apply, such as Level 4 when no plan exists.
  • Empty argument:

    Run graduated tests on recently changed files.
    Use git diff --name-only HEAD~1 to find targets.
    Execute Level 1 → 2 → 3 → 4 → 5 in order, stopping on the first failure.
    Skip levels that do not apply, such as Level 4 when no plan exists.

Test Log Contract

Always include this requirement in the qa/test unit test prompt:

Write a detailed test log to: {log_dir}/test_logs/test_report.md

The report structure is owned by the qa/test unit persona (roles/units/qa/test.md): exact command, full stdout/stderr (or the last 50 lines when long), and a per-test PASS/FAIL verdict with the error reason. Do not restate a competing format in the prompt.

Run test commands through the active adapter's bounded verification runner when its contract requires one. Preserve the actual exit status in the log.

When changed outputs include a report spectrogram, add the report-figure semantic level from roles/units/qa/test.md: run tools/figure-semantic-verify.py or the adapter-native figure-gen --verify-report wrapper against the manifest and report. Exit 2 is a test failure; unavailable or unreadable required inputs are blockers. Record the manifest path, PNG hash, claim-evidence verdict, and visual-review evidence. PNG existence, dimensions, count, and links alone are not a pass.

Verification Assurance

This is the concrete final verify stage. Derive rigor from plan frontmatter or caller intensity; do not hardcode Thorough or automatically open a parallel QA loop.

RigorConcrete verificationOptional adequacy review
quickRun the narrowest applicable command or check and record skip reasonsNone by default
lightRun focused syntax, import, smoke, or caller-specified checksOne fast review only when risk selects it
standardRun applicable graduated levels and capture command evidenceOne focused adequacy review for a nontrivial change surface
thoroughBroaden target coverage and add behavioral runtime observation for changed user-facing surfacesParallel or dispatch-depth-2 review only when selected by intensity=thorough
adversarialThorough verification plus applicable security, failure-mode, and external-adversary evidenceProve every claimed adversary or security pass ran

After the qa/test unit returns, read test_logs/test_report.md. Run a separate adequacy review only when the selected assurance budget requires it, and append its findings to the report. Otherwise return the concrete verification verdict directly.

Do not modify source or invoke a hotfix worker from this stage. Any repair belongs to the caller's bounded retry/fix path.

Report Results

Return the report path, executed commands, skipped levels and reasons, blockers, and the first actionable failure when present.

  • Success requires every selected level and selected adequacy review to pass.
  • Failure must include enough evidence for the caller to open a bounded retry/fix stage.
  • Do not commit or merge; ownership remains with the caller or orchestrator.
  • Record verdict and blockers for the pipeline decision record.

Log Directory

  • Plan path: use the task root above plan/; for example, $AGENT_ARTIFACT_OUTPUT_DIR/plans/2026-03-18_refactor/plan.md → $AGENT_ARTIFACT_OUTPUT_DIR/plans/2026-03-18_refactor/.
  • No plan: use a date-stamped directory under <artifact-root>/tests/.

Task

Test: $ARG

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.