agentleFS
broneqbroneq/bdk/skills/bdk-test-tools/SKILL.md

bdk-test-tools

Skill1 starsChanged 48 days agoMITView on GitHub

Project-configured test commands from .bdk/settings.json. Preloaded into agents that run tests; not user-facing.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test command(s) for this project, one block per tier:

    line 8
  2. Very specific:

    If the line above reads run the project's test suite, .bdk/settings.json is not configured — emit one warning line [bdk] .bdk/settings.json …

    line 12
  3. Very specific:

    If every path you were given is non-executable content (yaml/md/json/plain config not feeding build or codegen), do not run any tier at all …

    line 29
  4. Distinctive:

    Always name the exact command you ran (form and substituted paths) alongside the pass/fail counts.

    line 36

≈ “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

Test command(s) for this project, one block per tier:

!python3 ${CLAUDE_PLUGIN_ROOT}/scripts/get_settings.py test-tools

If the line above reads run the project's test suite, .bdk/settings.json is not configured — emit one warning line [bdk] .bdk/settings.json not configured — run /bdk:setup then detect from project files (package.json scripts, Makefile, pyproject.toml, go.mod, Cargo.toml, etc.) and proceed under the same policy below.

Pick the form, not just the command

Each block names a tier and up to four forms of the same command. {files} is a placeholder: replace it with the space-separated paths you were given, quoted.

FormRun it when
scopedDefault. You were given file paths, or you know which test files matter.
relatedYou were given source paths and need the tests covering them. Use this instead of asking another agent which tests cover a change — the runner computes it in a second.
failedRe-running after a fix, when the previous run in this session already failed.
fullOnly when the caller explicitly asked for a full suite.

If a block has no scoped form, derive one from full by appending the paths the runner accepts (<full> -- {files} for an npm/yarn/pnpm script, a bare path list for most direct runners). Say in your report that you derived it, so the settings can be fixed once instead of re-derived forever.

Tier policy

  • If every path you were given is non-executable content (yaml/md/json/plain config not feeding build or codegen), do not run any tier at all - report nothing to verify for these paths: <list> instead. Build-feeding config (tsconfig, lockfiles, codegen schemas) counts as source.
  • A fast tier is cheap: run it scoped whenever you have paths.
  • An e2e tier is the most expensive thing in the pipeline. Run it only when either the caller passed you e2e spec paths (because the work touched those specs), or the caller explicitly asked for the end-of-run full gate. Never reach for an e2e tier on your own initiative because a change "might" affect a flow.
  • The unscoped full form of any tier runs once per plan, at the end-of-plan gate. Everywhere else — per task, per group, per fix cycle — is scoped, related, or failed. If you cannot scope a tier you were asked to run and the caller did not ask for a full run, report that rather than silently running everything.

Reporting

Always name the exact command you ran (form and substituted paths) alongside the pass/fail counts. A caller deciding whether a later result still stands needs to know what was actually covered, and "tests passed" without a scope is not an answer.

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.