Workflow examples¶
The skills compose around a task. You describe the desired Mule outcome; the agent selects the smallest useful workflow and adds another skill only when the task crosses a real ownership boundary. For captured results from pinned sample projects, including a blocked MUnit gate, see Mule Skills in action. This page focuses on reusable workflow shapes.
Design and implement an API change¶
Design a GET /orders/{orderId} operation for the existing Orders System API. Reuse the repository's
RAML conventions, record unresolved consumer decisions, validate the contract, and stop before
implementing it.
Expected path:
flowchart LR
Evidence[Existing RAML/OAS and project context] --> Design[mule-api-design]
Design --> Contract[Validated contract + decision ledger]
Contract -->|after approval| Development[mule-development]
Development --> Tests[mule-testing]
Tests --> Gate[mule-build + mule-lint]
The design skill does not claim that APIKit implementation or Design Center publication happened. Those are later, separately evidenced steps.
Implement and test Mule behavior¶
Implement the approved order lookup behavior. Preserve the current error contract, add focused MUnit
coverage, refresh only documentation made stale, and review the resulting change.
The agent should:
- read repository instructions and current Mule/runtime/connector versions;
- implement production XML or DataWeave through
mule-development; - author behavior-faithful tests through
mule-testing; - run focused and required full validation through
mule-buildandmule-lint; - refresh affected documentation and return a read-only review.
An implementation request authorizes source changes inside that scope. It does not authorize a commit, push, version bump, runtime change, or deployment.
Validate and package¶
Validate and package this Mule application. Run the established security, lint, and MUnit gates and
report the exact artifact. Do not skip tests or perform release actions.
mule-build uses repository commands first and the pinned mule-build@3.0.0 tool when configured.
The normal sequence is read-only readiness, static/security checks, MUnit, package, then artifact
verification. A package result should make these visible. This is a handoff template, not captured
output from a bundled sample:
Mode: package
Validation: <passed, failed, or blocked with the exact gate>
MUnit: <run, failed, errors, and skipped totals>
Artifact: <exact path, or none when packaging failed>
Changed by workflow: target/ only
Release actions: none
Prepare, publish, and deploy a release¶
This is deliberately two ownership zones:
flowchart LR
Local[mule-build<br/>check, test, package] --> Review[mule-review<br/>release readiness]
Review --> Version[mule-build<br/>version, commit, tag]
Version --> Boundary{Separate approval}
Boundary --> Publish[anypoint-connect<br/>Exchange publish]
Boundary --> Deploy[mule-ops + anypoint-connect<br/>runtime deployment]
A request to “prepare a release” stops with a versioned/tagged local candidate unless the user also explicitly requests and approves the Anypoint action. A successful artifact is never treated as deployment approval.
Diagnose an incident¶
Find the cause of the order API timeout increase between 09:00 and 10:00 UTC. Use authorized runtime
evidence if available; otherwise tell me which exports you need. Diagnose only—do not change source,
configuration, or runtime state.
mule-troubleshooting traces the symptom through code, configuration, dependencies, logs, metrics,
and change windows. mule-ops gathers authorized runtime evidence. If access is missing, the result
labels the coverage gap and offers setup, supplied exports, or repository-only analysis.
Refresh project documentation¶
Refresh onboarding, architecture, and operations documentation for this Mule project. Use source and
committed configuration as evidence, label inferred business purpose, and never expose secret values
or private endpoints.
mule-docs inventories the current repository and creates only evidenced pages. It can show flow and
dependency relationships with Mermaid, while keeping missing ownership or operational facts visible
instead of inventing them.
Review before asking for fixes¶
Review the current branch for Mule correctness, contract drift, MUnit gaps, configuration safety,
and release readiness. Report prioritized findings and fix options; do not modify files or PR state.
Review is read-only. After you accept a finding, ask mule-development, mule-testing, or
mule-build to implement the specific fix and rerun the affected gate.