access-control

Blocks edits to protected files and dangerous Bash commands based on state-driven rules.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/M2AI-jp/thanks4claudecode-fresh --skill access-control
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: access-control
Source: https://github.com/M2AI-jp/thanks4claudecode-fresh/tree/main/.claude/skills/access-control
Command: npx skills add https://github.com/M2AI-jp/thanks4claudecode-fresh --skill access-control

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) components.

What problem does it solve?

This Skill prevents accidental or unauthorized modifications to critical system files, dangerous Git operations on main branches, and risky Bash commands that could break your project.

Core Features & Use Cases

  • File Protection: Blocks edits to HARD_BLOCK files like CLAUDE.md and protected-files.txt
  • Branch Safety: Prevents direct work on main/master branches to maintain clean Git history
  • Command Validation: Blocks dangerous Bash commands and enforces playbook-based execution rules
  • Use Case: When working on a team project, this Skill ensures no one accidentally pushes to main or deletes critical configuration files, maintaining project integrity automatically.

Quick Start

The access-control skill automatically activates when you try to edit protected files or run risky commands, providing immediate safety warnings and preventing potential damage.

Frequently Asked Questions about access-control

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

FAQPage Schema
How do I prevent accidental edits to critical files in my project?

File protection blocks edits to designated critical files like configuration and documentation. Define protected files in your configuration, and the Skill automatically prevents modifications, maintaining project integrity across your team.

Can I stop direct commits to main or master branches?

Branch safety automatically prevents direct work on main and master branches. This enforces clean Git history by blocking edits and risky operations at the branch level, ensuring all changes go through proper workflow.

How do I block dangerous Bash commands from running?

Command validation intercepts risky Bash operations and enforces playbook-based execution rules. The Skill applies HARD_BLOCK, BLOCK, and WARN levels based on command patterns, preventing commands that could break your project.

What's the best way to enforce safe Git workflows across a team?

Access control combines file protection, branch constraints, and command validation into automated guardrails. State-driven configurations let you define blocking rules once, then apply them consistently to all team members' edits and operations.

Do I need to manually configure protection rules for each file?

Configuration is centralized and state-driven. Define protected files and branch rules once in your config, and the Skill applies them automatically to all Edit, Write, and Bash operations without per-file manual intervention.

Why would my Bash command be blocked or warned?

Commands are evaluated against contract rules and configuration patterns. Dangerous operations—like destructive deletions or risky Git commands—trigger blocking or warnings based on your defined safety levels, protecting against accidental damage.