Hooks & Settings for Claude Code

    2

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

    Free

    55 uses5.0 (2 reviews)

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Hooks & Settings for Claude Code

    Example session with this skill installed

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

    • Read your context and instructions
    • Compiled the hooks & settings

    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.

    Connects securely to your tools. The creator never sees your data.

    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.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    • Cannot bypass session-level security overrides.
    • Hooks require a local shell environment to execute.
    • Misconfigured hooks can cause infinite loops if they trigger further file edits.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    5.0
    2 reviews
    5
    2
    4
    0
    3
    0
    2
    0
    1
    0

    This skill has been used 55 times.

    Trust & safety

    Security scan

    Security scan passed 6 months ago

    • Free with an Agensi account

    Software
    prismaNode.jsprettierGit

    Permissions

    Terminal / Shell
    Listed6 months ago

    What's inside

    Frequently Asked Questions

    This skill provides a structured architecture for managing Claude Code's tiered settings (user, project, project-local) and implementing automated hooks to eliminate manual approvals for repetitive tasks.

    The skill is specifically optimized for the Claude Code CLI environment; while the concepts of 'CLAUDE.md' apply broadly, the hook framework and settings hierarchy are unique to Claude Code.

    No, the configuration files generated by this skill are designed to be committed to version control, allowing your entire team to benefit from standardized project settings and hooks.

    The skill produces optimized JSON configuration files and a custom 'CLAUDE.md' structure that incorporates narrow permission patterns and automated event-driven hooks tailored to your OS.

    Yes, this skill is designed to handle OS-specific pathing and shell differences, ensuring your Bash command allow/deny patterns work correctly on macOS, Linux, or Windows.

    Since Claude Code is an evolving tool, this skill is regularly updated to support new configuration keys, hook events, and permission features as Anthropic releases them.

    New in Agents & Orchestration

    Free