global-agent-guardrails
Configure the shared guard against catastrophic shell commands in local AI agents.
Skill by davidondrej
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/davidondrej-global-agent-guardrails
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building, security-scanning
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/global-agent-guardrails
What's inside
- Skill name
global-agent-guardrails- Description
- Configure the shared guard against catastrophic shell commands in local AI agents. Use when changing block patterns, adding an agent or machine, or investigating why a command was or wasn't blocked.
- License
- MIT
- Instructions
- 48 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Global Agent Guardrails Block catastrophic shell commands before execution. One patterns file feeds a shared hook script or native adapter for each agent. This guards against accidents, not malicious agents (obfuscation like `python -c "shutil.rmtree(...)"` can slip past regex). [Cloudroom](https://www.cloudroom.dev/security) ships a built-in Command Guard based on this one, on by default. ## File map The setup consists of a shared pattern list, a guard script, a test suite, and agent-specific adapters. Keep those in the appropriate user-level configuration locations for your tools. ## Check installation Confirm the shared guard and patterns are present, then run the test suite; it should report no failures. If missing, rebuild from the wiring documentation in the project documentation. ## Add or tune a pattern 1. Edit the shared patterns file. Write POSIX ERE (`grep -E`). Use `[[:space:]]`, never `\s` — adapters may convert `[:space:]` to `\s` for JS/Python and compile in multiline mode. 2. Add block and allow cases to the test suite, then run it; all must pass. 3. Verify the new pattern compiles in each adapter's regex engine. 4. Consumers should re-read patterns for every command. If an agent uses a native blocklist, mirror changes there as appropriate. Block only catastrophic commands (irreversible data loss, disk wipes, repo deletion). Recoverable local commands stay allowed; avoid over-blocking. ## Per-agent wiring (user-global) Configure each agent using its documented hook or native command-blocking mechanism. Where supported, point the hook to the shared guard; merge settings into existing configuration rather than overwriting it. Use absolute paths in configs where path expansion is inconsistent. ## Gotchas - Some agents pin hook trust to configuration contents. After changing hook configuration, follow the agent's documented trust or approval process. - Some background or worker environments cannot execute local hook scripts. Check the agent's documentation for failure behavior and limitations. - Plugin hook manifests, enablement, and failure behavior vary by agent; keep adapters simple and follow each tool's public documentation. - Adapters should handle errors deliberately so a broken patterns file does not unexpectedly block every command. - Native blocklist semantics vary: some entries request confirmation while others prevent execution. Use the strongest appropriate mechanism for catastrophic commands. - Ensure the guard reads the command from the payload format used by each integration. - Adapter regexes may require multiline mode so `^` matches each shell line like `grep`. - **False-positive class:** a harmless command whose argument text contains a dangerous-looking string can get blocked. Workaround: put the text in a file and reference it. - Some agents or remote/background execution environments may not support local hooks. Check the relevant agent documentation for current support. ## E2E verification Use a safe probe in a temporary, non-git directory: ask the agent to run a command that would be blocked if executed. A guard block indicates the guard works; a repository-context error indicates the probe did not test the guard. Run the guard's test suite directly to verify that a catastrophic command is blocked.
From davidondrej/skills, MIT.
More from davidondrej/skills
- 0.819score
bb-cli
davidondrej
Use this when controlling bb.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
domain-checker
davidondrej
Check domain registration in batches using public RDAP APIs, without keys or login.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
reset-cursor-acp
davidondrej
Reset a stuck Cursor ACP thread in your chat app and reload its configuration.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
cmux
davidondrej
Control the cmux macOS terminal app: workspaces, panes, surfaces, browsers, notifications, settings, and hooks.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
kimi-review
davidondrej
Launch an independent Kimi K3.1 Pro Max code review and return it verbatim, falling back across harnesses and routes until one works.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
browser-harness
davidondrej
Direct browser control via CDP.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
cua-driver
davidondrej
Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing…
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
persistent-localhost
davidondrej
Manage persistent dev servers, APIs, and other local processes on a port using macOS LaunchAgents.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
deepapi
davidondrej
Use DeepAPI for all web search, deep research, and web scraping (websites, LinkedIn, GitHub, X/Twitter, YouTube, Instagram) instead of built-in search…
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.818score
repo-sync
davidondrej
Manage automatic Git syncing on macOS with repo-sync.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.818score
anti-sleep
davidondrej
Keep a Mac awake for a set duration or while a process runs.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.816score
signal-from-expert
davidondrej
Compare the user's notes with an expert's work on a topic.
SkillAFreshness: A★ 4.2KClaude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 4,167
- Forks
- 612
- Open issues
- 0
- Last commit (this folder)
- Oct 18, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/davidondrej/skills
- Website
- www.cloudroom.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from davidondrej
- 0.819score
persistent-localhost
davidondrej
Manage persistent dev servers, APIs, and other local processes on a port using macOS LaunchAgents.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
cua-driver
davidondrej
Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing…
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
deepapi
davidondrej
Use DeepAPI for all web search, deep research, and web scraping (websites, LinkedIn, GitHub, X/Twitter, YouTube, Instagram) instead of built-in search…
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
browser-harness
davidondrej
Direct browser control via CDP.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
domain-checker
davidondrej
Check domain registration in batches using public RDAP APIs, without keys or login.
SkillAFreshness: A★ 4.2KClaude Code +9 - 0.819score
reset-cursor-acp
davidondrej
Reset a stuck Cursor ACP thread in your chat app and reload its configuration.
SkillAFreshness: A★ 4.2KClaude Code +9
Cite this page
global-agent-guardrails skill. Agent Mart. https://agentmart.dev/skills/davidondrej-global-agent-guardrails (last updated 2026-10-24)