Mise
v1.2.0Validation and quality enforcement for Mise projects with task validation and configuration checking.
Installation
Install han binary (required for hooks to work):
curl -fsSL https://han.guru/install.sh | bashThen install this plugin:
han plugin install jutsu-miseOverview
Validation and quality enforcement for Mise projects.
What This Jutsu Provides
Validation Hooks
- Task Validation: Runs
mise tasks validateto ensure task configuration is correct - Configuration Checking: Validates mise.toml syntax and structure
- Automatic Execution: Validates when you finish conversations in Claude Code
Skills
This jutsu provides the following skills:
- task-configuration: Defining and managing tasks for builds, tests, and development workflows
- tool-management: Managing development tool versions across projects
- environment-management: Managing environment variables and project settings
Installation
Install via the Han marketplace:
han plugin install jutsu-mise
Or install manually:
claude plugin marketplace add thebushidocollective/han
claude plugin install jutsu-mise@han
Usage
Once installed, this jutsu automatically validates your Mise configuration:
- When you finish a conversation with Claude Code
- Before commits (when combined with git hooks)
- Validates task definitions, dependencies, and configuration
What Gets Validated
Task Configuration
- Task definition syntax in mise.toml
- Task dependencies and circular dependency detection
- Required task fields (description, run command)
- File task metadata and structure
Configuration Files
- mise.toml syntax and structure
- Tool version specifications
- Environment variable definitions
- Settings configuration
Requirements
- Mise 2024.1.0+
- Projects using mise.toml for configuration
Example Project Structure
my-project/
âââ mise.toml # Main configuration
âââ .mise.toml # Alternative location
âââ mise/
â âââ tasks/ # File-based tasks
â âââ build
â âââ test
â âââ deploy
âââ mise.local.toml # Local overrides (gitignored)
âââ src/
Common Validation Errors
Missing Task Description
# â Invalid
[tasks.build]
run = "cargo build"
# â
Valid
[tasks.build]
description = "Build the project"
run = "cargo build"
Circular Dependencies
# â Invalid
[tasks.a]
description = "Task A"
depends = ["b"]
run = "echo a"
[tasks.b]
description = "Task B"
depends = ["a"] # Creates circular dependency
run = "echo b"
Invalid Dependency Reference
# â Invalid
[tasks.deploy]
description = "Deploy"
depends = ["nonexistent-task"]
run = "./deploy.sh"
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT License - See LICENSE for details.
Skills
mise-environment-management
Use when managing environment variables and project settings with Mise. Covers env configuration, direnv replacement, and per-directory settings.
mise-task-configuration
Use when defining and configuring Mise tasks in mise.toml. Covers task definitions, dependencies, file tasks, and parallel execution.
mise-tool-management
Use when managing development tool versions with Mise. Covers installing tools, version pinning, and replacing language-specific version managers.
Hooks
Token Usage Notice
Hooks run automatically during Claude Code sessions and their output is sent to the model for processing. This may increase token usage and associated costs. Consider disabling hooks you don't need via han-config.yml.
SessionStart
Runs when Claude Code starts a new session or resumes an existing session. Can inject project context, set up environment, or provide important reminders at the start of work.
Stop
Runs when the main Claude Code agent has finished responding. Can verify task completion, check quality gates, or ensure documentation requirements are met before the session ends.
SubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding. Can validate subagent outputs, enforce quality standards, or trigger additional workflows after delegated tasks complete.