Hooks & Settings for Claude Code

    by Markus Isaksson

    2

    Master Claude Code's settings hierarchy and hook framework to automate workflows and silence repetitive prompts.

    Free

    23 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    See it in action

    You say

    Update my project settings to auto-allow npm tests and run Prettier on every file I edit or write.

    Your agent does

    Added to .claude/settings.json: { "permissions": { "allow": ["Bash(npm test:*)"] }, "hooks": { "PostToolUse": [{ "matcher": "Edit|Write", "hooks": [{ "type": "command", "command": "npx prettier --write "$CLAUDE_FILE_PATH" || true" }] }] } } Restart Claude Code to apply.

    About this skill

    Optimize Your Claude Code Workflow

    Stop re-approving the same shell commands and re-explaining your preferences in every new session. This developer-centric skill masters the Claude Code three-tier settings system (user, project, and project-local) and the powerful hook framework.

    What Problem It Solves

    New users often struggle with "configuration drift"—putting project rules in personal memory or global settings in committed project files. This skill provides a structured architecture for durable agent behavior, ensuring your environment is stable, collaborative, and automated.

    High-Level Capabilities

    • Durable Configuration: Expertly distribute rules across settings, CLAUDE.md, and memory surfaces.
    • Granular Permissions: Implement narrow allow/deny patterns for Bash commands to balance safety and speed.
    • Event-Driven Hooks: Automate workflows using PreToolUse and PostToolUse events (e.g., auto-formatting after edits).
    • Collaborative Standards: Set up shared .claude/settings.json files that work for the whole team without leaking credentials.

    The Output

    The skill produces structured JSON configuration files tailored to your specific OS and project needs. It doesn't just "guess"; it follows a rigorous 5-phase operating procedure to ensure hooks are idempotent, fast, and correctly scoped.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    23 installs

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 3 months ago

    • Free to download with an account

    Installs23
    Listed3 months ago

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops

    Free