Expert guidance for Taskfile (taskfile.dev) — the YAML task runner. Use when creating, editing, debugging, or optimizing a Taskfile.yml, or when the user asks about tasks, task dependencies, variables, includes, file watching, or migrating from Make.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in Taskfile (taskfile.dev), a modern task runner and build tool. Help users create, modify, and optimize Taskfiles for their projects.
Always use version 3 (current stable):
version: '3'
vars:
# Global variables accessible to all tasks
PROJECT_NAME: myapp
BUILD_DIR: ./build
tasks:
default:
desc: Default task (runs when you type 'task' without arguments)
cmds:
- echo "Hello from Taskfile!"
task-name:
desc: Brief description of what this task does
cmds:
- command1
- command2
tasks:
build:
desc: Build the application
summary: |
Extended description that appears in help.
Can span multiple lines.
cmds:
- go build -o {{.BUILD_DIR}}/app
silent: false # Set to true to suppress command echoing
Variables can be defined at multiple levels with precedence order (highest to lowest):
task VAR=value)version: '3'
vars:
# Static variables
GREETING: Hello, World!
# Dynamic variables (command output)
GIT_COMMIT:
sh: git rev-parse --short HEAD
# Variables with defaults
ENV: {sh: echo ${ENVIRONMENT:-development}}
tasks:
greet:
vars:
# Task-specific variable
NAME: Developer
cmds:
- echo "{{.GREETING}}, {{.NAME}}"
- echo "Commit: {{.GIT_COMMIT}}"
tasks:
# Dependencies run in parallel by default
build:
deps: [install, lint, test]
cmds:
- go build
# Force sequential execution
deploy:
deps:
- task: build
- task: push
cmds:
- kubectl apply -f deployment.yaml
install:
cmds:
- go mod download
lint:
cmds:
- golangci-lint run
test:
cmds:
- go test ./...
Run tasks only when files change:
tasks:
build:
desc: Build only if source files changed
sources:
- src/**/*.go
- go.mod
- go.sum
generates:
- bin/app
cmds:
- go build -o bin/app
# Alternative: use status for custom checks
compile-assets:
status:
- test -f dist/bundle.js
- test dist/bundle.js -nt src/index.js
cmds:
- npm run build
version: '3'
env:
# Global environment variables
GO111MODULE: on
CGO_ENABLED: "0"
dotenv:
- .env # Load from .env file
- .env.local # Override with local settings
tasks:
test:
env:
# Task-specific environment
TEST_DATABASE: postgres://localhost/test_db
cmds:
- go test ./...
tasks:
build:
cmds:
- echo "Building for {{OS}}/{{ARCH}}"
install:
platforms: [linux, darwin] # Only run on Linux/macOS
cmds:
- brew install tool
install-windows:
platforms: [windows]
cmds:
- choco install tool
tasks:
deploy:
preconditions:
- sh: git diff-index --quiet HEAD
msg: "Working directory must be clean"
- test -f .env.production
- sh: kubectl cluster-info
msg: "Cannot connect to cluster"
cmds:
- kubectl apply -f k8s/
version: '3'
includes:
docker: ./docker/Taskfile.yml
k8s:
taskfile: ./kubernetes/Taskfile.yml
dir: ./kubernetes # Run tasks in this directory
tasks:
all:
deps:
- docker:build
- k8s:deploy
tasks:
shell:
interactive: true
cmds:
- docker exec -it mycontainer /bin/bash
tasks:
test-all:
vars:
MODULES:
sh: ls -d */
cmds:
- for: { var: MODULES }
cmd: go test ./{{.ITEM}}
# Or with static list
lint-files:
vars:
FILES: [main.go, utils.go, config.go]
cmds:
- for: { var: FILES }
cmd: golangci-lint run {{.ITEM}}
tasks:
dev:
desc: Watch for changes and rebuild
watch: true
sources:
- "**/*.go"
cmds:
- go build
- ./app
version: '3'
vars:
APP_NAME: myapp
BUILD_DIR: ./dist
tasks:
default:
deps: [build]
clean:
desc: Remove build artifacts
cmds:
- rm -rf {{.BUILD_DIR}}
deps:
desc: Install dependencies
sources:
- go.mod
- go.sum
cmds:
- go mod download
generates:
- go.sum
lint:
desc: Run linters
deps: [deps]
cmds:
- golangci-lint run
test:
desc: Run tests
deps: [deps]
cmds:
- go test -v ./...
build:
desc: Build application
deps: [deps, lint, test]
sources:
- "**/*.go"
- go.mod
- go.sum
generates:
- "{{.BUILD_DIR}}/{{.APP_NAME}}"
cmds:
- mkdir -p {{.BUILD_DIR}}
- go build -o {{.BUILD_DIR}}/{{.APP_NAME}}
version: '3'
vars:
IMAGE_NAME: myapp
TAG:
sh: git rev-parse --short HEAD
tasks:
docker:build:
desc: Build Docker image
cmds:
- docker build -t {{.IMAGE_NAME}}:{{.TAG}} .
- docker tag {{.IMAGE_NAME}}:{{.TAG}} {{.IMAGE_NAME}}:latest
docker:push:
desc: Push image to registry
deps: [docker:build]
cmds:
- docker push {{.IMAGE_NAME}}:{{.TAG}}
- docker push {{.IMAGE_NAME}}:latest
docker:run:
desc: Run container locally
deps: [docker:build]
cmds:
- docker run -p 8080:8080 {{.IMAGE_NAME}}:latest
version: '3'
includes:
frontend:
taskfile: ./apps/frontend/Taskfile.yml
dir: ./apps/frontend
backend:
taskfile: ./apps/backend/Taskfile.yml
dir: ./apps/backend
shared:
taskfile: ./packages/shared/Taskfile.yml
dir: ./packages/shared
tasks:
install:
desc: Install all dependencies
cmds:
- task: frontend:install
- task: backend:install
- task: shared:install
build:
desc: Build all packages
cmds:
- task: shared:build
- task: frontend:build
- task: backend:build
test:
desc: Run all tests
cmds:
- task: shared:test
- task: frontend:test
- task: backend:test
version: '3' at the topdesc: for all tasks to make task --list usefuldocker:build, docker:push)default task for common workflowsummary: for detailed explanationssilent: true for cleaner output when appropriate{{.VAR}} syntax with dotsdeps: arraysources: paths are correct and watch: true is set# List all available tasks
task --list
task -l
# Run a task
task build
# Run multiple tasks
task clean build test
# Pass variables to tasks
task build VERSION=1.0.0
# Run task from specific Taskfile
task --taskfile ./path/to/Taskfile.yml build
# Watch for changes
task --watch dev
# Run task with increased verbosity
task --verbose build
# Show summary of a task
task --summary build
Good Use Cases:
Consider Alternatives When:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/agent-skills:taskfilefrom agent-skills
npx claudepluginhub itsmostafa/agent-skills --plugin agent-skills13 skills in this plugin
/adhdUse when the user asks for ADHD-friendly answers, says they have ADHD, feels overwhelmed, loses focus in long replies, or asks for responses that are shorter, easier to scan, or "just tell me what to do." Shapes replies so the answer comes first, steps are small and numbered, and nothing buries the next action./bruhRestate the last message in plain human language, with no jargon./create-prGroup uncommitted changes into logical conventional commits, push them to a feature branch, and open a GitHub pull request with a release-please friendly description. Use when the user types /create-pr or asks to commit their changes and open a PR./evidence-reviewReview a code change against its spec and the repo's own conventions, and report only findings you have proven: reproduced bugs, unmet requirements, code nothing needs, and broken house rules, ending in a PASS or FIX verdict./explainExplain any topic simply for a newcomer — a concept, a system, a process, or part of a codebase — and save it as an HTML page with compiled architecture, workflow, sequence, data-flow, and lifecycle diagrams. Use when the user types /explain <topic>./minimalistUse before writing, editing, fixing, refactoring, or reviewing ANY code, including small routine changes you could make without help: those are exactly where over-building slips in. Keeps the change minimal: YAGNI, reuse what the codebase already has, stdlib and native platform features before custom code or new dependencies, shortest working diff. Also use when the user asks for the simplest way, invokes YAGNI, or complains about over-engineering or bloat. Not for non-coding requests.