Scratch
v1.1.5Scratch workspace enforcement - ensures temporary files are placed in .claude/.scratch and gitignored.
Installation
Install han binary (required for hooks to work):
curl -fsSL https://han.guru/install.sh | bashThen install this plugin:
han plugin install jutsu-scratchOverview
Scratch workspace enforcement - ensures temporary files are placed in .claude/.scratch and gitignored.
Purpose
This jutsu provides guidance for working with temporary, draft, or experimental files that should not be committed to version control. It enforces placement in a standardized, gitignored location.
What This Jutsu Provides
Hooks
- UserPromptSubmit: Reminds you to use
.claude/.scratch/for temporary files
Skills
- scratch-workspace: Complete guide for scratch file organization, setup, and cleanup
Installation
han plugin install jutsu-scratch
Or manually add to your Claude Code settings:
{
"enabledPlugins": {
"jutsu-scratch@han": true
}
}
Usage
Once installed, the plugin will remind you when working with temporary files to:
- Place them in
.claude/.scratch/ - Ensure the directory is gitignored
- Organize by purpose (drafts, experiments, notes)
Scratch Directory Structure
.claude/
âââ .scratch/ # Gitignored scratch space
â âââ drafts/ # Work in progress
â âââ experiments/ # Experimental code
â âââ notes/ # Temporary notes
â âââ temp/ # Truly temporary files
âââ settings.json # Claude Code settings (NOT in scratch)
Quick Setup
# Create scratch directory
mkdir -p .claude/.scratch
# Add to gitignore (if not already present)
echo '.claude/.scratch' >> .gitignore
When to Use Scratch Space
- Draft implementations being explored
- Temporary test files
- Experimental code
- Planning documents
- Any file that should not be version controlled
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT License - See LICENSE for details.
Skills
Hooks
UserPromptSubmit
Runs when the user submits a prompt, before Claude processes it. Can inject required context, enforce workflows, or validate user intent before processing begins.