build-tools-tests
Installation
SKILL.md
Build Tests
Generate integration tests for MCP tool collections created by /build-tools. This skill reads .discover.json and the existing tool files, then builds test infrastructure and test files one collection at a time.
IMPORTANT: This skill ONLY creates files inside __tests__/ directories — test files, setup, builders, and helpers. Do NOT create or modify ANY other files. This means: no tool files, no collection indexes, no registrations, no API client files (src/umbraco-api/api/), no generated code (src/umbraco-api/api/generated/), no mock handlers (src/mocks/). If existing code doesn't support what you need, work within the constraints — do not modify it.
Prerequisites
Before running, ensure:
- You have run
/build-tools(tool collections exist insrc/umbraco-api/tools/) - The project compiles:
npm run compile - The Umbraco instance is running
- An API user exists — remind the user: "You need to create an API user via the Umbraco backoffice UI: Settings > Users, with Client ID
umbraco-back-office-mcpand Client Secret1234567890"
Arguments
- No arguments: build tests for all collections from
.discover.json - Single collection name: build tests only for that collection (e.g.
/build-tools-tests form)