Three protection levels for AI coding sessions: cautious mode warns before running dangerous commands like rm -rf or git push --force, lockdown mode restricts file edits to a single directory tree, and clear mode turns everything off. The PreToolUse hooks intercept Bash, Edit, and Write operations before they execute. I like the session-scoped lockdown for focused refactoring when you want Claude touching one module and nothing else. The pattern matching is solid, covering the usual footguns plus a few I hadn't thought about like piped curl to shell. This isn't a substitute for version control, but it's a reasonable guardrail when working in unfamiliar codebases or letting AI make sweeping changes.

skills.sh installs
164
GitHub stars
2.9K
last updated
Jun 8, 2026

Install

$ npx -y skills add rohitg00/pro-workflow --skill safe-mode --agent claude-code

Installs into .claude/skills of the current project.

Files

Safe Mode

Three levels of protection against destructive operations during AI coding sessions.

Note: These hooks are skill-scoped — they only activate when you invoke /safe-mode. The global permission-request.js hook in hooks.json provides always-on alerting for dangerous commands. Safe-mode adds opt-in blocking and directory restrictions on top of that.

Modes

Cautious Mode

/safe-mode cautious

Intercepts Bash commands before execution. Warns on dangerous patterns but does not block — the user decides.

Flagged patterns:

PatternRisk
rm -rf / rm -rRecursive deletion
DROP TABLE / DROP DATABASESQL data loss
TRUNCATESQL data destruction
git push --force / git push -fRemote history rewrite
git reset --hardLocal history loss
git clean -fUntracked file deletion
git checkout . / git restore .Discard all changes
chmod 777World-writable permissions
curl or wget piped to a shellPiped remote execution
> /dev/sda / dd if=Disk-level operations
:(){ :|:& };:Fork bombs
sudo rmElevated deletion

Sponsors

Details

Repository
github.com/rohitg00/pro-workflow
Category
Automation & Workflows
First seen
Jun 11, 2026

More from rohitg00/pro-workflow

All 35
1rohitg00 avatarplan-interrogaterohitg00/pro-workflowStress-test a plan by walking its decision tree one question at a time. Use when the user wants to pressure-test a design before implementation.163skills.sh installs
2rohitg00 avatarpermission-tunerrohitg00/pro-workflowAnalyze permission denial patterns and generate optimized alwaysAllow and alwaysDeny rules. Use when permission prompts are slowing you down or after sessions w161skills.sh installs
3rohitg00 avatarllm-gaterohitg00/pro-workflowLLM-powered quality verification using prompt hooks. Validates commit messages, code patterns, and conventions using AI before allowing operations. Use to set u158skills.sh installs
4rohitg00 avatarwiki-queryrohitg00/pro-workflowQuery pro-workflow wikis via SQLite FTS5 BM25 retrieval. Returns top-K passages with citations. Use when answering a question that any of the user's wikis alrea157skills.sh installs
5rohitg00 avatarwiki-builderrohitg00/pro-workflowStart, structure, and grow a persistent research wiki indexed in pro-workflow's SQLite knowledge base. Each wiki is a folder of markdown pages with provenance, 156skills.sh installs
6rohitg00 avatarwiki-research-looprohitg00/pro-workflowAuto-grow a pro-workflow wiki by running a budget-capped BFS research loop over pluggable source fetchers (web, arXiv, GitHub). Each iteration pops a seed from 154skills.sh installs