Skip to content
mise-tasks logo

mise Tasks Orchestration

mise-tasks

Orchestrate multi-step project workflows using mise task definitions with dependency management and argument handling. Use whenever the user.

terrylica/cc-skills0installs75stars

SKILL.md

Full skill instructions

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.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

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
  • 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

[tasks.build]
description = "Build the project"
run = "cargo build --release"

Running Tasks

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

TypeSyntaxWhen
dependsdepends = ["lint", "test"]Run BEFORE task
depends_postdepends_post = ["notify"]Run AFTER task succeeds
wait_forwait_for = ["db"]Wait only if running

Key Task Properties

PropertyPurposeExample
descriptionAI-agent discoverability (CRITICAL)"Run pytest with coverage. Exits non-zero on failure."
aliasShort namealias = "t"
dirWorking directorydir = "packages/​frontend"
envTask-specific env vars (NOT passed to deps)env = { LOG_LEVEL = "debug" }
hideHidden from mise tasks outputhide = true
sourcesFile tracking for cachingsources = ["src/​**/​*.rs"]
outputsSkip if newer than sourcesoutputs = ["target/​release/​myapp"]
confirmPrompt before executionconfirm = "Delete all data?"
quietSuppress mise outputquiet = true
silentSuppress ALL outputsilent = true
rawDirect stdin/​stdout (disables parallelism)raw = true
toolsTask-specific tool versionstools = { python = "3.9" }
shellCustom shellshell = "pwsh -c"
usageArgument spec (preferred over Tera)See Task Arguments

Namespacing

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.


Level 10: Monorepo (Experimental)

Requires: MISE_EXPERIMENTAL=1 and experimental_monorepo_root = true

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


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.

ToolResponsibility
miseRuntime versions (Python, Node, Rust) + environment variables
PantsBuild orchestration + native affected detection + dependency inference
# 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
ScaleRecommendation
< 10 packagesmise + custom affected (Level 10 patterns)
10-50 packages (Python-heavy)Pants + mise (this section)
50+ packagesConsider Bazel

See 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.

[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.


Anti-Patterns

Anti-PatternWhy BadInstead
Replace /​itp:go with mise tasksNo TodoWrite, no ADR tracking, no checkpointsUse mise tasks for project workflows, /​itp:go for ADR-driven development
Hardcode secrets in tasksSecurity riskUse _.file = ".env.secrets" with redact = true
Giant monolithic tasksHard to debug, no reuseBreak into small tasks with dependencies
Skip or minimal descriptionAI agents cannot infer task purpose from name aloneWrite rich descriptions: what it does, requires, produces, when to run
Publish without build dependsRuntime failure instead of DAG preventionAdd depends = ["build"] to publish tasks
Orchestrator without all phases"Run X next" messages get ignoredInclude all phases in release:full depends array

For release-specific anti-patterns and patterns, see Release Workflow Patterns.


Cross-Reference: mise-configuration

Prerequisites: Before defining tasks, ensure [env] section is configured.

PRESCRIPTIVE: After defining tasks, invoke mise-configuration skill to ensure [env] SSoT patterns are applied.

The mise-configuration skill covers:

  • [env] - Environment variables with defaults
  • [settings] - mise behavior configuration
  • [tools] - Version pinning
  • Special directives: _.file, _.path, _.python.venv

Additional Resources


Troubleshooting

IssueCauseSolution
Task not foundTypo or wrong mise.tomlRun mise tasks to list available tasks
Dependencies not runCircular dependencyCheck task depends arrays for cycles
Sources not workingWrong glob patternUse relative paths from mise.toml location
Watch not triggeringFile outside sources listAdd file pattern to sources array
Env vars not availableTask in wrong directoryEnsure mise.toml is in cwd or parent
Run fails with errorScript path issueUse absolute path or relative to mise.toml

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

More skills from terrylica

code-hardcode-audit logo
terrylica/cc-skills

code-hardcode-audit

Detect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.

75 152
View
doppler-workflows logo
terrylica/cc-skills

doppler-workflows

Manage credentials and secrets through Doppler for publishing and deployment workflows. Use whenever the user needs to publish Python packages.

75 0
View
sred-commit logo
terrylica/cc-skills

sred-commit

Create a git commit with SR&ED (CRA tax credit) trailers. TRIGGERS - sred commit, sred, cra commit, tax credit commit, scientific research commit.

75 0
View
log-reader logo
terrylica/cc-skills

log-reader

Read MetaTrader 5 log files. TRIGGERS - MT5 logs, Experts pane, indicator errors, compilation errors.

75 0
View
fork-intelligence logo
terrylica/cc-skills

fork-intelligence

Discover valuable GitHub fork divergence beyond stars. TRIGGERS - fork analysis, fork intelligence, find forks

75 0
View
bootstrap-monorepo logo
terrylica/cc-skills

bootstrap-monorepo

Autonomous polyglot monorepo bootstrap meta-prompt on the moon + proto + Bun stack (Nx-convergent). TRIGGERS - new monorepo, new repository, polyglot setup, scaffold repo, moon proto bootstrap, monorepo from scratch.

75 0
View
asciinema-recorder logo
terrylica/cc-skills

asciinema-recorder

Record Claude Code sessions with asciinema. TRIGGERS - record session, asciinema record, capture terminal, demo recording.

75 0
View
glossary-management logo
terrylica/cc-skills

glossary-management

Manage terminology glossary with Vale. TRIGGERS - sync terms, glossary validation, add terms, Vale vocabulary.

75 0
View
dead-code-detector logo
terrylica/cc-skills

dead-code-detector

Detect unused/unreachable code in polyglot codebases (Python, TypeScript, Rust). TRIGGERS - dead code, unused functions, unused imports

75 0
View
pre-ship-review logo
terrylica/cc-skills

pre-ship-review

Run a structured quality review before shipping code at any checkpoint such as PRs, releases, or milestones. Use whenever the user says.

75 0
View
diagnose logo
terrylica/cc-skills

diagnose

Diagnose Kokoro TTS issues. TRIGGERS - kokoro not working, tts diagnose, kokoro error, tts troubleshoot.

75 0
View
doppler-secret-validation logo
terrylica/cc-skills

doppler-secret-validation

Validate and test Doppler secrets. TRIGGERS - add to Doppler, store secret, validate token, test credentials.

75 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View