optimus:permissions

Configure Claude Code permissions with allow/deny rules and path-restriction hooks.

70|13|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/oprogramadorreal/optimus-claude --skill optimus-permissions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimus:permissions
Source: https://github.com/oprogramadorreal/optimus-claude/tree/main/skills/permissions
Command: npx skills add https://github.com/oprogramadorreal/optimus-claude --skill optimus-permissions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents Claude Code agents from performing dangerous actions, like deleting files outside your project or pushing directly to protected branches, while still allowing them to work efficiently on tasks within your project.

Core Features & Use Cases

  • Granular Control: Define exactly which tools Claude Code can use and under what conditions.
  • Safety Guardrails: Automatically block destructive commands (e.g., rm -rf /, git push --force) and prevent writes outside the project directory.
  • Streamlined Workflow: Eliminate routine permission prompts for safe, common operations, speeding up AI-assisted development.
  • Use Case: When an AI agent needs to modify project files, this skill ensures it only edits files within the project scope and prompts for confirmation if it attempts to write to an external location. It also prevents accidental deletion of critical project files.

Quick Start

Run the optimus permissions skill to configure your project's security settings.

Frequently Asked Questions about optimus:permissions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent a Claude Code agent from deleting files outside my project directory?

To prevent a Claude Code agent from deleting files outside your project directory, configure path-restriction hooks with allow and deny rules. This enforces safe agent autonomy by blocking destructive operations like arbitrary file deletion while permitting reads and edits within the project scope.

Can I restrict Git push operations to specific branches for an AI agent?

Yes, you can restrict Git push operations to specific branches for an AI agent by applying branch-aware Git operation restrictions. This security configuration blocks destructive commands like git push --force to protected branches, mitigating risks associated with AI-driven development.

How do I configure Claude Code permissions to stop routine approval prompts?

Configure Claude Code permissions with granular allow and deny rules to stop routine approval prompts. This streamlines your workflow by eliminating manual confirmation for safe, common operations while maintaining strict guardrails against dangerous commands.

What are the limitations of using allow and deny rules for AI agent code execution?

Limitations of using allow and deny rules for AI agent code execution include the strict confinement to a specified project directory. Operations requiring writes or modifications to external locations are blocked automatically and require explicit confirmation to proceed.

Does Claude Code work with tiered security configurations for precious file protection?

Yes, Claude Code works with tiered security configurations for precious file protection. This approach enforces multiple layers of guardrails, automatically blocking accidental deletion of critical project files and preventing unauthorized writes to external paths.