Use when setting up or optimizing developer workflows in a monorepo, managing mise tasks, git hooks, CI/CD pipelines, database migrations, or release automation. Invoke for development environment setup, build automation, testing workflows, and release coordination.
Use when setting up or optimizing developer workflows in a monorepo, managing mise tasks, git hooks, CI/CD pipelines, database migrations, or release automation. Invoke for development environment setup, build automation, testing workflows, and release coordination.
Dev Workflow - Monorepo Task Automation Specialist
Scheduling
Goal
Set up, run, optimize, and troubleshoot reproducible development workflows in monorepos using mise, task automation, validation pipelines, CI/CD, migrations, i18n builds, and release coordination.
Intent signature
User asks about dev servers, mise tasks, lint/format/typecheck/test/build, git hooks, CI/CD, migrations, generated clients, i18n builds, or release automation.
User needs workflow execution or developer environment setup rather than product feature implementation.
When to use
Running development servers for monorepo with multiple applications
Executing lint, format, typecheck across multiple apps in parallel
Managing database migrations and schema changes
Generating API clients or code from schemas
Building internationalization (i18n) files
Executing production builds and deployment preparation
Running parallel tasks in monorepo context
Setting up pre-commit validation workflows
Troubleshooting mise task failures or configuration issues
Optimizing CI/CD pipelines with mise
When NOT to use
Database schema design or query tuning -> use DB Agent
Backend API implementation -> use Backend Agent
Frontend UI implementation -> use Frontend Agent
Mobile development -> use Mobile Agent
Expected inputs
Requested workflow operation, affected apps/packages, and current monorepo structure
, task definitions, CI files, migration/i18n/build configs, and failure logs when relevant
mise.toml
Desired validation, setup, or release outcome
Expected outputs
Executed or documented mise task workflow
Updated workflow config, CI/CD pipeline, hooks, env template, or release guidance when requested
Status report with commands, outputs, failures, and next actions
Always set monorepo_root = true (plus [monorepo].config_roots) in the root mise.toml before using //path:task syntax
Technical Guidelines
Prerequisites
# Install mise
curl https://mise.run | sh
# Activate in shellecho'eval "$(~/.local/bin/mise activate)"' >> ~/.zshrc
# Install all runtimes defined in mise.toml
mise install
# Verify installation
mise list
The root mise.toml must enable monorepo task paths, or every //path:task invocation fails with "require a monorepo root configuration":
# Root mise.toml — monorepo_root is a top-level key (before any [table])monorepo_root = true[monorepo]config_roots = ["apps/*", "packages/*"]
Task Syntax
Root-level tasks:
mise run lint # Lint all apps (parallel)
mise run test# Test all apps (parallel)
mise run dev # Start all dev servers
mise run build # Production builds
App-specific tasks:
# Syntax: mise run //{path}:{task}# Requires monorepo_root = true in root mise.toml (see Project Structure)
mise run //apps/api:dev
mise run //apps/api:test
mise run //apps/web:build
TOML quoting rule: task names containing : must be quoted — [tasks."gen:api"], never [tasks.gen:api] (unquoted colons are a TOML parse error).
Common Task Patterns
Task Type
Purpose
Example
dev
Start development server
mise run //apps/api:dev
build
Production build
mise run //apps/web:build
test
Run test suite
mise run //apps/api:test
lint
Run linter
mise run lint
format
Format code
mise run format
typecheck
Type checking
mise run typecheck
migrate
Database migrations
mise run //apps/api:migrate
Reference Guide
Topic
Resource File
When to Load
Validation Pipeline
resources/validation-pipeline.md
Git hooks, CI/CD, change-based testing
Database & Infrastructure
resources/database-patterns.md
Migrations, local Docker infra
API Generation
resources/api-workflows.md
Generating API clients
i18n Patterns
resources/i18n-patterns.md
Internationalization
Release Coordination
resources/release-coordination.md
Versioning, changelog, releases
Troubleshooting
resources/troubleshooting.md
Debugging issues
Task Dependencies
Define dependencies in mise.toml:
[tasks.build]depends = ["lint", "test"]
run = "echo 'Building after lint and test pass'"[tasks.dev]depends = ["//apps/api:dev", "//apps/web:dev"]
Parallel vs Sequential Execution
Parallel (independent tasks):
# Runs all lint tasks simultaneously (via depends)
mise run lint
# mise-native parallel execution of multiple tasks
mise run lint ::: test
Sequential (dependent tasks):
# Runs in order: lint → test → build
mise run lint && mise run test && mise run build
Mixed approach:
# Start dev servers in background
mise run //apps/api:dev &
mise run //apps/web:dev &
wait
Check for interactive prompts, use --yes if available
Port already in use
Find process: lsof -ti:PORT then kill
Permission denied
Check file permissions, try with proper user
Missing dependencies
Run mise run install or app-specific install
How to Execute
Follow the core workflow step by step:
Analyze Task Requirements - Identify which apps are affected and task dependencies
Check mise Configuration - Verify mise.toml structure and available tasks
Determine Execution Strategy - Decide between parallel vs sequential task execution
Run Prerequisites - Install runtimes, dependencies if needed
Execute Tasks - Run mise tasks with proper error handling
Verify Results - Check output, logs, and generated artifacts
Report Status - Summarize success/failure with actionable next steps
Execution Protocol (CLI Mode)
Vendor-specific execution protocols are injected automatically by oma agent:spawn.
Source files live under ../_shared/runtime/execution-protocols/{vendor}.md.