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.
In this repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-lintSkill
- skill-lintSkill
- add-ruleSkill
- bdk-implementer-return-contractSkill
- bdk-lint-toolsSkill
- bdk-rules-architectureSkill
- bdk-rules-code-qualitySkill
- bdk-rules-design-patternsSkill
- bdk-rules-languagesSkill
- bdk-rules-securitySkill
- commitSkill
- create-adrSkill
- create-planSkill
- crSkill
- debugSkill
- designSkill
- explain-complex-codeSkill
- mermaid-drawerSkill
- pr-reviewSkill
- refine-rulesSkill
- setupSkill
- subagent-execute-planSkill
- test-driven-developmentSkill
- update-docsSkill
- verify-planSkill
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
- Distinctive: line 8
Test command(s) for this project, one block per tier:
- Very specific: line 12
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 …
- Very specific: line 29
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 …
- Distinctive: line 36
Always name the exact command you ran (form and substituted paths) alongside the pass/fail counts.
≈ “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.
Files
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.
| Form | Run it when |
scoped | Default. You were given file paths, or you know which test files matter. |
related | You 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. |
failed | Re-running after a fix, when the previous run in this session already failed. |
full | Only 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
fasttier is cheap: run it scoped whenever you have paths. - An
e2etier 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
fullform 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.
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
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.

