agentleFS
enmanuelmagenmanuelmag/agent-harness-kit/.agents/skills/ahk-test/SKILL.md

ahk-test

Skill182 starsChanged 3 months agoApache-2.0View on GitHub

Design, write, and run behavior-focused tests for an objective or existing code. Writes test files only and reports evidence. No tasks created, no harness tracking.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Wait For Completion: Wait for the delegated result, then consolidate its findings in the parent thread.

    line 11
  2. Distinctive:

    NO MCP calls — no tasks.*, no actions.*, no tasks.acceptance.update

    line 20
  3. Distinctive:

    NO harness task creation or state changes

    line 21
  4. Distinctive:

    Do not install dependencies or change test configuration without explicit authorization

    line 23
  5. Very specific:

    Run health.sh only when the user requests full harness verification or it is the repository's relevant test entrypoint.

    line 24
  6. Distinctive:

    Do not delete, weaken, skip, or rewrite existing expectations to make the suite pass

    line 25
  7. Very specific:

    Do not add .only, .skip, .todo, or snapshots by default

    line 26
  8. Distinctive:

    Stop and ask the user before any write when the expected behavior is missing, contradictory, or would require a production or dependency …

    line 41
  9. Distinctive:

    If the matrix is unambiguous, invoke Builder in direct test mode:

    line 43
  10. Distinctive:

    Test files created or modified.

    line 59

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

Provider Delegation Guidance

  • Sequential: Delegate only bounded, independent work; retain decisions and the final synthesis in the parent thread.
  • Parallel: Delegate independent work in parallel when useful, then wait for every delegated result before continuing.
  • Context Transfer: Give every delegated task a self-contained objective, scope, relevant context, restrictions, and output contract.
  • Wait For Completion: Wait for the delegated result, then consolidate its findings in the parent thread.
  • Inspect Progress: In the interactive CLI, use /agent to inspect delegated threads when needed.

You are in lightweight test mode. The testing objective: $ARGUMENTS

If $ARGUMENTS is empty, ask the user what behavior they want tested before doing anything else.

Rules

  • NO MCP calls — no tasks., no actions., no tasks.acceptance.update
  • NO harness task creation or state changes
  • Production files are READ-ONLY unless the user explicitly authorizes production changes
  • Do not install dependencies or change test configuration without explicit authorization
  • Run health.sh only when the user requests full harness verification or it is the repository's relevant test entrypoint; never use it instead of the focused test
  • Do not delete, weaken, skip, or rewrite existing expectations to make the suite pass
  • Do not add .only, .skip, .todo, or snapshots by default
  • A test file is not evidence until its command has run

Process

  1. Invoke Explorer as a subagent with this instruction:

    "Read-only test investigation — no MCP harness and no task creation. Testing objective: $ARGUMENTS. Read the complete unit under test, its relevant types and imports, the project's test scripts/configuration, and one or two nearby tests. Identify: observable behaviors, the source of each expected result, project conventions, likely test level, files a test would touch, and genuine ambiguities. Do not write files."

  2. Build a concise test matrix with these columns:
    • Behavior
    • Input or action
    • Expected observable result
    • Test level
    • Source of expectation
  3. Stop and ask the user before any write when the expected behavior is missing, contradictory, or would require a production or dependency change that was not authorized. Do not invent an oracle from the current implementation.
  4. If the matrix is unambiguous, invoke Builder in direct test mode:

"Direct test implementation — no MCP harness and no task creation. Implement only the resolved test matrix. Follow the repository's existing runner, naming, and assertion style. Place every test file and every test-only fixture, builder, factory, mock, stub, snapshot, or helper inside the __tests__/ directory of the area under test. You may create or modify only the paths listed in the resolved scope. Do not edit production, dependencies, configuration, or unrelated tests. Prefer observable behavior over implementation details, real deterministic code over mocks, and one behavior per test. Return files changed and the focused command to run."

  1. Invoke Reviewer in direct verification mode:

    "Direct test verification — no MCP harness, no task state changes, and no file edits. Review the new tests against the objective and matrix. Run the narrowest focused test command first, then the relevant existing suite or static check when proportional. Report every command with exit status, failures, and what the evidence does not prove."

  2. Synthesize the required output. Do not hide a failing test or convert it into a passing claim.

Required output format


Test matrix Behavior, input/action, expected result, level, and source.

Files changed Test files created or modified. State explicitly when no files were written.

Verification Commands run, exit status, and relevant result.

Evidence boundary What these tests prove and what still requires typecheck, build, browser, network, deployment, or manual verification.

Blocked or next step Omit when nothing remains. If production appears wrong, describe the separate change needed without making it.


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.