Mechanize — Development skill for Claude Code
Turn a repeatedly-violated CLAUDE.md rule into a PreToolUse hook that enforces it.
How to install Mechanize
Installs to ~/.claude/skills/eivindkjosbakken-claude-code-setup-pack-mechanize/SKILL.md
mkdir -p ~/.claude/skills/eivindkjosbakken-claude-code-setup-pack-mechanize && curl -fsSL https://raw.githubusercontent.com/EivindKjosbakken/claude-code-setup-pack/HEAD/commands/mechanize.md -o ~/.claude/skills/eivindkjosbakken-claude-code-setup-pack-mechanize/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Mechanize does
description: Turn a repeatedly-violated CLAUDE.md rule into a PreToolUse hook that enforces it argument-hint:
/mechanize
Convert `$ARGUMENTS` from a prose rule into a hook that makes the failure impossible, then delete the prose.
Before writing anything, decide the shape
Not every rule should block. Pick one:
| Shape | Use when | Example |
|---|---|---|
| Auto-fix | The correct rewrite is provable and safe | strip a cd into the directory you are al |
Alternatives in Development
- Hookify — Rule-based hook system for Claude Code 14k ★
- Academic Pptx Skill — A Claude Skill for creating academic presentations (conference talks, seminar slides, thesis defenses, grant b 811 ★
- Arreflect — AgentRecall consolidation & reflection — periodic triage of recurring corrections; proposes rule changes, neve 370 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Code Permissions Hook
A PreToolUse hook for Claude Code for more granular permission controls
Overleaf Sync Now
Stops Claude Code and Codex CLI from silently overwriting your Overleaf web edits with a stale local Dropbox c
Freeze
Freeze files matching a pattern — blocks Edit/Write to matched files via a session-scoped PreToolUse hook. Use
Narthex
Prompt-injection defenses for Claude Code. A PreToolUse Bash hook blocks compositional credential-exfiltration
Agent Approval Gate
PreToolUse hook for Claude Code: blocks agent spending, account creation and fund moves, queues them for human
Verify Gate
Manage the verify-gate skill — install/uninstall the PreToolUse hook, add custom claim rules, or check status.
Related Agents
Engram Artifact Smith
Builds interactive HTML explorables for Engram threshold concepts under the binding Explorable Contract. Use a
Goal Critic
Breaks stalls. Invoke when the same RoT DTD GOAL criteria fail repeatedly or the gate escalated with a stall —
Omd Persona Tester
Adversarial synthetic user that walks through generated UI under a strict persona prompt with hard turn budget