šŸ”§

Mise

v1.3.0Apache 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 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:

bash
han plugin install jutsu-mise

Or install manually:

bash
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

toml
# āŒ Invalid
[tasks.build]
run = "cargo build"

# āœ… Valid
[tasks.build]
description = "Build the project"
run = "cargo build"

Circular Dependencies

toml
# āŒ 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

toml
# āŒ Invalid
[tasks.deploy]
description = "Deploy"
depends = ["nonexistent-task"]
run = "./deploy.sh"

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.

šŸ›‘

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.

mise tasks validate