🎯

Mise

v1.2.0

Validation 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 | bash

Then install this plugin:

han plugin install jutsu-mise

Overview

Validation and quality enforcement for Mise projects.

What This Jutsu Provides

Validation Hooks

  • Task Validation: Runs mise tasks validate to 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

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.