add-test
Installation
SKILL.md
Add Test
Add an integration test for a specific tool in an existing collection. This skill creates a single test file following the collection's established test patterns.
Use this skill when:
- You added a new tool with
/add-tooland want to test it separately - You manually created or modified a tool and need a test
- You deleted a test and need to recreate it
/build-tools-testsskipped the collection because tests already exist
Prerequisites
Before running, ensure:
- The collection exists (
src/umbraco-api/tools/{collection}/index.ts) - The test infrastructure exists (
src/umbraco-api/tools/{collection}/__tests__/setup.ts) — if not, tell the user to run/build-tools-tests {collection}first - 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"