Stand up a new HMCTS API-Marketplace service-cp- using the canonical HMCTS template (service-hmcts-crime-springboot-template) as master source. Use when creating a new Spring Boot service for the Common Platform.
Wire up auto-dev and auto-SIT deployment CI for a service-cp- repo after Azure provisioning and cp-vp-aks-deploy registration are complete. Idempotent — safe to invoke again if the jobs already exist. Use when a service-cp- repo is missing the deploy-dev and deploy-sit jobs in its ci-build-publish.yml, or when setting…
Architecture and design agent for CPP. Produces designs for new capabilities — choosing between CQRS/Event Sourcing (context services) and Modern by Default (Spring Boot) patterns, defining bounded contexts, event flows, APIs, and data ownership. Returns design proposals with trade-offs, component diagrams…
Auto-generates README.md and CLAUDE.md files for CPP repositories by reading code structure, POM files, schemas, and event definitions. Fills the documentation gap across 19+ undocumented context services. user: "Generate the README for cpp-context-hearing" assistant: "I'll use the doc-generator agent to read the…
Maps cross-context event flows across CPP services. Traces events from producer through all consumers, detects circular dependencies, and validates subscription configurations. user: "Trace the CaseOpened event through all consumers across CPP" assistant: "I'll use the event-flow-mapper agent to trace the event…
Validates Helm chart configurations across CPP environments. Detects secrets in values, missing environment overrides, configuration drift, and misconfigured resources. user: "Validate the Helm chart config for cpp-hearing across all environments" assistant: "I'll use the helm-config-validator agent to check for…
Reviews Liquibase database migrations across CPP context services. Validates changesets for backwards compatibility, rollback safety, naming conventions, and cross-service schema conflicts. user: "Review the new Liquibase migration for cpp-context-hearing" assistant: "I'll use the migration-reviewer agent to validate…
Audits role-based access control (RBAC) rules across CPP context services. Checks Drools rule consistency, permission gaps, and cross-service access control alignment. user: "Audit the RBAC Drools rules for the resulting service" assistant: "I'll use the rbac-auditor agent to review the rules for completeness…
Deep research agent for CPP — traces events across services, investigates cross-context integrations, and maps dependencies across the platform's 42 context services. Use when asked to trace an event flow, understand how a service integrates with another, find all usages of a library, or investigate a cross-service…
Analyzes test suites across CPP services. Identifies coverage gaps, flaky tests, missing integration tests, and test-to-feature mapping across 50+ test modules and 632+ API test files. user: "Find coverage gaps in the cpp-context-resulting test suite" assistant: "I'll use the test-analyzer agent to map test files to…
Translate approved CPP user stories into a complete test automation suite before any implementation code is written (A-TDD). Use when the user has approved story files and needs the test scaffolding produced first. user: "Write the test suite for the approved custody timer stories" assistant: "I'll use the…
Validate API contracts (RAML/JSON Schema/OpenAPI) against their implementations. Use when checking for API drift, reviewing schema changes, or verifying contract consistency.
Design a new CPP capability or service — choose between CQRS context service and Modern by Default patterns, define bounded contexts, events, APIs, and produce a design proposal with diagrams and trade-offs. Use when the user asks to "design", "architect", "plan the architecture of", or decide "how should we build X"…
Scaffold new modules, commands, queries, events, or viewstore entities within an existing legacy cpp-context- WildFly service. LEGACY ONLY — must not be applied to new Spring Boot work.
Navigate and understand any legacy cpp-context- WildFly/Maven service. LEGACY ONLY — must not be applied to new Spring Boot work. Use when onboarding to a context service, exploring its modules, or understanding its CQRS structure and integrations.
Author or extend automated tests in HMCTS CPP test repos. Use when writing a new Serenity BDD/Cucumber UI scenario in cpp-ui-e2e-serenity, or a new JUnit 5 + REST Assured IT.java in cpp-apitests, or when extending existing features, step definitions, page objects, or integration tests in those repos.
Audit dependency versions across CP repositories. Use when checking for version mismatches, outdated libraries, or parent POM alignment across context services.
Export a self-contained, night-friendly HTML artifact for a CPP pipeline stage — using the right template from the bundled gallery. Use whenever a decision must be made, a plan needs improving, or a design gap is discovered — AND always to export the implementation plan before any code is written. Picks the template…
Debug and understand Azure DevOps pipeline configurations. Use when a pipeline fails, when setting up CI/CD for a new repo, or when tracing variable resolution across templates.
Review a pull request for a CPP or HMCTS Crime Common Platform repository against CPP coding standards. Use when asked to review a PR or code changes specifically in a CP or HMCTS context service.
Validate Terraform modules and configurations across CP infrastructure repos. Use when checking Terraform code, reviewing infrastructure changes, or verifying module consistency.