mise-tasks
Orchestrate multi-step project workflows using mise task definitions with dependency management and argument handling. Use whenever the user wants to create, edit, or debug mise tasks, wire up task dependencies with depends/depends_post, or run workflows via 'mise run'. Also use when setting up task runners or automating build pipelines through mise. Do NOT use for mise environment variable configuration (use mise-configuration instead) or for general shell scripting unrelated to mise.
What this skill does
# mise Tasks Orchestration
<!-- ADR: 2025-12-08-mise-tasks-skill -->
Orchestrate multi-step project workflows using mise `[tasks]` section with dependency management, argument handling, and file tracking.
## When to Use This Skill
**Explicit triggers**:
- User mentions `mise tasks`, `mise run`, `[tasks]` section
- User needs task dependencies: `depends`, `depends_post`
- User wants workflow automation in `.mise.toml` or `mise.toml`
- User mentions task arguments or `usage` spec
**AI Discovery trigger** (prescriptive):
> When `mise-configuration` skill detects multi-step workflows (test suites, build pipelines, migrations), **prescriptively invoke this skill** to generate appropriate `[tasks]` definitions.
## Quick Reference
### Task Definition
```toml
[tasks.build]
description = "Build the project"
run = "cargo build --release"
```
### Running Tasks
```bash
mise run build # Run single task
mise run test build # Run multiple tasks
mise run test ::: build # Run in parallel
mise r build # Short form
```
### Dependency Types
| Type | Syntax | When |
| -------------- | ---------------------------- | ----------------------- |
| `depends` | `depends = ["lint", "test"]` | Run BEFORE task |
| `depends_post` | `depends_post = ["notify"]` | Run AFTER task succeeds |
| `wait_for` | `wait_for = ["db"]` | Wait only if running |
### Key Task Properties
| Property | Purpose | Example |
| ------------- | ------------------------------------------- | -------------------------------------------------------- |
| `description` | AI-agent discoverability (CRITICAL) | `"Run pytest with coverage. Exits non-zero on failure."` |
| `alias` | Short name | `alias = "t"` |
| `dir` | Working directory | `dir = "packages/frontend"` |
| `env` | Task-specific env vars (NOT passed to deps) | `env = { LOG_LEVEL = "debug" }` |
| `hide` | Hidden from `mise tasks` output | `hide = true` |
| `sources` | File tracking for caching | `sources = ["src/**/*.rs"]` |
| `outputs` | Skip if newer than sources | `outputs = ["target/release/myapp"]` |
| `confirm` | Prompt before execution | `confirm = "Delete all data?"` |
| `quiet` | Suppress mise output | `quiet = true` |
| `silent` | Suppress ALL output | `silent = true` |
| `raw` | Direct stdin/stdout (disables parallelism) | `raw = true` |
| `tools` | Task-specific tool versions | `tools = { python = "3.9" }` |
| `shell` | Custom shell | `shell = "pwsh -c"` |
| `usage` | Argument spec (preferred over Tera) | See [Task Arguments](./references/arguments.md) |
### Namespacing
```bash
mise run 'test:*' # All tasks starting with test:
mise run 'db:**' # Nested: db:migrate:up, db:seed:test
mise tasks --hidden # View hidden tasks (prefixed with _)
```
For detailed examples and patterns for all levels, see [Task Levels Reference](./references/task-levels.md).
---
## Level 10: Monorepo (Experimental)
**Requires**: `MISE_EXPERIMENTAL=1` and `experimental_monorepo_root = true`
```bash
mise run //projects/frontend:build # Absolute from root
mise run :build # Current config_root
mise run //...:test # All projects
mise run '//projects/...:build' # Build all under projects/
```
Tasks in subdirectories are auto-discovered with path prefix (`packages/api/.mise.toml` tasks become `packages/api:taskname`).
For complete monorepo documentation, see: [advanced.md](./references/advanced.md)
---
## Level 11: Polyglot Monorepo with Pants + mise
For Python-heavy polyglot monorepos (10-50 packages), combine **mise** for runtime management with **Pants** for build orchestration and native affected detection.
| Tool | Responsibility |
| --------- | ---------------------------------------------------------------------- |
| **mise** | Runtime versions (Python, Node, Rust) + environment variables |
| **Pants** | Build orchestration + native affected detection + dependency inference |
```bash
# Native affected detection (no manual git scripts)
pants --changed-since=origin/main test
pants --changed-since=origin/main lint
pants --changed-since=origin/main package
```
| Scale | Recommendation |
| --------------------------------- | ------------------------------------------ |
| < 10 packages | mise + custom affected (Level 10 patterns) |
| **10-50 packages (Python-heavy)** | **Pants + mise** (this section) |
| 50+ packages | Consider Bazel |
See [polyglot-affected.md](./references/polyglot-affected.md) for complete Pants + mise integration guide and tool comparison.
---
## Integration with [env]
Tasks automatically inherit `[env]` values. Use `_.file` for external env files and `redact = true` for secrets.
```toml
[env]
DATABASE_URL = "postgresql://localhost/mydb"
_.file = { path = ".env.secrets", redact = true }
[tasks._check-env]
hide = true
run = '[ -n "$API_KEY" ] || { echo "Missing API_KEY"; exit 1; }'
[tasks.deploy]
depends = ["_check-env"]
run = "deploy.sh" # $DATABASE_URL and $API_KEY available
```
For full env integration patterns, see [Environment Integration](./references/env-integration.md).
---
## Anti-Patterns
| Anti-Pattern | Why Bad | Instead |
| ------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------ |
| Replace /itp:go with mise tasks | No TodoWrite, no ADR tracking, no checkpoints | Use mise tasks for project workflows, /itp:go for ADR-driven development |
| Hardcode secrets in tasks | Security risk | Use `_.file = ".env.secrets"` with `redact = true` |
| Giant monolithic tasks | Hard to debug, no reuse | Break into small tasks with dependencies |
| Skip or minimal `description` | AI agents cannot infer task purpose from name alone | Write rich descriptions: what it does, requires, produces, when to run |
| Publish without build `depends` | Runtime failure instead of DAG prevention | Add `depends = ["build"]` to publish tasks |
| Orchestrator without all phases | "Run X next" messages get ignored | Include all phases in `release:full` depends array |
For release-specific anti-patterns and patterns, see [Release Workflow Patterns](./references/release-workflow-patterns.md).
---
## Cross-Reference: mise-configuration
**Prerequisites**: Before defining tasks, ensure `[env]` section is configured.
> **PRESCRIPTIVE**: After defining tasks, invoke **[`mise-configuration` skill](../mise-configuration/SKILL.md)** to ensure [env] SSoT patterns are applied.
The `mise-configuration` skill covers:
- Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.