Skip to content

Mission Templates

Mission templates let you start a fleet run with a single command, no LLM decomposition needed. Each template is a pre-defined set of missions that works on any codebase. FleetSpark ships with 6 built-in templates.

Terminal window
# List all available templates
fleet command --template list
# Start a fleet with a template
fleet command --template test-coverage

Fleet creates missions from the template, assigns them to ships, and runs them exactly like a manually planned fleet.

Improve test coverage across the project. 4 missions run in parallel.

MissionWhat it does
M1Audit existing tests — find untested modules and coverage gaps
M2Write unit tests for core utilities and helper functions
M3Write integration tests for API routes and service boundaries
M4Add edge-case and error-path tests for critical paths
Terminal window
fleet command --template test-coverage

Run a comprehensive security review. 3 missions.

MissionWhat it does
M1OWASP Top 10 review — injection, XSS, auth weaknesses, insecure defaults
M2Dependency audit — flag vulnerable packages, outdated deps, CVE matches
M3Secret scanning — detect hardcoded credentials, API keys, and tokens
Terminal window
fleet command --template security-audit

Generate comprehensive API documentation. 3 missions.

MissionWhat it does
M1Extract OpenAPI/Swagger spec from routes and controllers
M2Write endpoint reference docs with parameters, responses, and errors
M3Add usage examples and code samples for each endpoint
Terminal window
fleet command --template api-docs

Update project dependencies to latest versions. 3 missions.

MissionWhat it does
M1Update dependencies and resolve breaking API changes
M2Fix type errors and compatibility issues introduced by updates
M3Verify CI passes and update lock files
Terminal window
fleet command --template dependency-update

Improve codebase structure and maintainability. 4 missions.

MissionWhat it does
M1Extract shared logic into reusable utilities
M2Simplify complex functions — reduce cyclomatic complexity
M3Remove dead code, unused exports, and stale comments
M4Add or improve TypeScript types for public interfaces
Terminal window
fleet command --template refactor

Governed development workflow: spec, implementation, and peer-review — one mission per phase. Designed for teams using the drsti-dev-flow maturity model but works on any project.

MissionWhat it does
M1 (spec)Read the adapter config and codebase context. Run a pre-proposal coordination check. Write a spec covering scope, contracts, acceptance criteria, and risks. Self-review and commit.
M2 (impl)Read the M1 spec. Implement within declared scope, write or update tests, self-review against the spec.
M3 (review)Peer-review the M2 implementation against the M1 spec — spec compliance, test coverage, scope drift. Record findings and approve only when all blockers are resolved.

Each brief instructs the agent to rename its branch before starting (e.g. feature/my-feature-spec). Run the template once per feature.

Terminal window
fleet command --template drsti-dev-flow

Note: M2 depends on M1, M3 depends on M2 — missions run sequentially, not in parallel. This is intentional: each phase gates the next.


Templates use the agents and settings already defined in .fleet/config.yml. You can adjust the number of ships, agent type, and other settings before running a template:

.fleet/config.yml
ship:
adapter: claude-code # all template missions use this agent
commander:
maxConcurrentMissions: 3

The template system is designed to be extensible. In a future release you will be able to:

  • Load templates from local YAML files (--template-file my-template.yml)
  • Install community templates as npm packages
  • Publish your own templates to share with your team

For now, all templates are built into the fleetspark CLI and work offline.