CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

generate-bat-tests

Workflow required before generating, writing, or updating BAT (Blackbox API Testing) tests for a Mule app. Call use_skill as your FIRST action — before reading or writing any .dwl file — whenever the user asks to create, generate, add, write, refresh, extend, or fix BAT tests, a BAT suite, BDD API tests, black-box API tests, or Anypoint API Functional Monitoring tests for a deployed Mule HTTP API. Do not read the app source, open the existing suite, or author any .dwl yourself and attempt the task in one turn — even a targeted single-test change like 'add a 401 test' or 'fix the orders happy-path test' requires loading this skill first. Covers generating a suite from app source (OpenAPI + Mule XML), extending an existing hand-written BAT baseline, and running the suite against the live endpoint. Not for MUnit (build-time, in-process, XML) — use the Mule developer workflow for that. When you call this skill, it must be the only tool call in that response.

72

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

SKILL.md
Quality
Evals
Security

Quality

Content

85%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A highly actionable, well-gated workflow document: executable commands at every step, real validation checkpoints with error-recovery loops, and clean one-level-deep progressive disclosure into verified bundle files. The main weakness is redundancy — trigger guidance duplicated from the frontmatter, a Quick Reference repeating step commands, and repeated restatements of the same core principles.

Suggestions

Trim or cut the 'Quick Reference' section — it repeats four script commands verbatim from Steps 1, 2, 8, 9, and 10, so the per-step command blocks already serve as the reference.

Replace the 'When to Use This Skill' bullet list with a one-line pointer to the description (or fold the MUnit-vs-BAT distinction into the existing 'Do NOT use' note) — the trigger phrasing already lives in the frontmatter description that is always loaded.

State 'the run is the gate' once (in Workflow-wide discipline) and reference it from Steps 1 and 10 instead of restating the rationale in each place.

DimensionReasoningScore

Conciseness

The body is dense and almost entirely non-obvious domain content, but there is real duplication: 'When to Use This Skill' restates the frontmatter description, the 'Quick Reference' section repeats four script commands verbatim from the steps, and 'the run is the gate' is restated in five places (What-BAT-is, Workflow-wide discipline, Steps 1 and 10). This matches anchor 3 ('mostly efficient but includes some unnecessary explanation or could be tightened') rather than 4, because these are identifiable cuttable sections, not just minor trims.

3 / 5

Actionability

Every step carries copy-paste-ready commands (validate_prerequisites.sh, extract_endpoints.sh, scaffold_suite.sh, validate_bat_suite.sh, ./run-bat.sh), a complete inventory JSON schema with per-field semantics, an exact allowlist format with a five-line example, a script table specifying outputs, and even the verbatim approval prompt — fully executable with concrete coverage of the common cases.

5 / 5

Workflow Clarity

A two-phase, 11-step sequence with explicit [BLOCKER] approval gates, three validation checkpoints (Step 1 prerequisites, Step 9 static validator, Step 10 live run), and a four-branch failure-diagnosis feedback loop (DSL error → fix and re-validate; wrong assertion → correct it; app bug → flag, don't fix; connection/401 → fix config). This is the anchor-5 validate→fix→retry pattern with error recovery.

5 / 5

Progressive Disclosure

Every referenced path exists and is one level deep — references/bat-authoring-rules.md, references/quality-dimensions.md, references/examples/ (4 canonical .dwl files + bat.yaml), and the four scripts/ — each clearly signaled with its purpose and read timing ('Read before writing any .dwl'). The bulk DSL rules and taxonomy are correctly offloaded, leaving the body as overview-plus-workflow, which matches the anchor-5 pattern.

5 / 5

Total

18

/

20

Passed

Description

95%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exceptional description: concrete capabilities, exhaustive natural-language trigger terms including synonyms and file extensions, explicit first-action ordering guidance, and an explicit scope exclusion (MUnit). The only deduction is the second-person voice in the behavioral-instruction portions, which the guidelines penalize on specificity.

DimensionReasoningScore

Specificity

The description lists comprehensive concrete capabilities — 'generating a suite from app source (OpenAPI + Mule XML), extending an existing hand-written BAT baseline, and running the suite against the live endpoint' — matching the anchor-5 coverage of multiple specific actions. However, it uses second-person voice ('Do not read the app source... yourself', 'When you call this skill'), which per the judging guidelines reduces the specificity score by 1 from a clear 5.

4 / 5

Completeness

It explicitly answers both 'what' (the three concrete workflow capabilities) and 'when' ('Call use_skill as your FIRST action... whenever the user asks to create, generate, add, write, refresh, extend, or fix BAT tests') with concrete trigger phrases — a direct match for anchor 5, not anchor 4 where the 'when' is only adequately explicit.

5 / 5

Trigger Term Quality

Trigger terms are comprehensive with natural synonyms and file extensions: 'create, generate, add, write, refresh, extend, or fix BAT tests, a BAT suite, BDD API tests, black-box API tests, or Anypoint API Functional Monitoring tests' plus '.dwl' — these are exactly the phrases a user would naturally say, matching the anchor-5 'PDF files, PDFs, forms, .pdf' pattern.

5 / 5

Distinctiveness Conflict Risk

A clear niche (BAT / MuleSoft Anypoint API Functional Monitoring, '.dwl', 'deployed Mule HTTP API') with an explicit exclusion boundary — 'Not for MUnit (build-time, in-process, XML) — use the Mule developer workflow for that' — leaving minimal risk of triggering for a wrong, closely-related skill.

5 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

referenced_paths_exist

Referenced path issues: 1 deeper-than-1-level

Warning

Total

15

/

16

Passed

Repository

mulesoft/mulesoft-dx

Path

skills/mule-development/generate-bat-tests/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.