Skip to content
Back to skills

Agent Safety

ASecurity

Agent safety for tool-using and coding agents: defending against prompt injection (issues, web pages, tool/MCP output, memory, third-party skills, CI workflows, lead-worker handoffs), containing unsafe actions (sandboxes, secrets, permissions, gates, monitors, test tampering), and predicting before hard-to-undo actions (dry runs, when lookahead pays). Use when granting tools or credentials, installing a skill or MCP server, choosing a guard, or about to run a destructive or outward-facing com...

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
developmentrustshellgit

Works with

  • mcp

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add kookr-ai/kookr --skill agent-safety --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Safety?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kookr-ai-agent-safety/badge)](https://www.skillsdirectory.com/skills/kookr-ai-agent-safety)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-safety
group: agent-automation
keywords: prompt injection, untrusted content, sandbox, permissions, secrets, pre-tool hook, monitor, test tampering, dry run, destructive action
related: claude-code-permissions, hook-driven-workflow-enforcement, shell-subprocess-safety, git-commit-discipline, asking-the-operator
description: >
  Agent safety for tool-using and coding agents: defending against prompt injection (issues, web pages,
  tool/MCP output, memory, third-party skills, CI workflows, lead-worker handoffs), containing unsafe
  actions (sandboxes, secrets, permissions, gates, monitors, test tampering), and predicting before
  hard-to-undo actions (dry runs, when lookahead pays). Use when granting tools or credentials, installing
  a skill or MCP server, choosing a guard, or about to run a destructive or outward-facing command.
---

# Agent Safety

Read only the guide that matches the decision in front of you (several if the task spans them).

| Decision you face | Read |
|---|---|
| An agent reads issues, PRs, web pages, tool/MCP output or memory that may carry injected instructions; you are installing a skill or MCP server, storing lessons, hardening a CI agent workflow, choosing between a guard model and a structural control, or passing untrusted content and credentials between lead and worker agents | [references/untrusted-content-defense.md](references/untrusted-content-defense.md) |
| Giving an agent a shell or credentials with no attacker involved: choosing a harness, sandbox or permission policy, brokering secrets, writing a pre-tool gate, adding a monitor, or stopping test or grader tampering | [references/agent-action-containment.md](references/agent-action-containment.md) |
| About to delete, force-push, kill, send, merge or change shared state; deciding whether a dry run can be trusted; or building lookahead, simulation or tree search into an agent loop | [references/predict-before-acting.md](references/predict-before-acting.md) |

Related skills: `claude-code-permissions` (permission modes and rules), `hook-driven-workflow-enforcement`
(building PreToolUse gates), `shell-subprocess-safety` (spawning commands safely), `git-commit-discipline`
(secret scanning, history safety, checkpoint before live-state operations), `asking-the-operator`.

Files in this skill

  • SKILL.md2.4 KB
  • references/agent-action-containment.md6 KB
  • references/predict-before-acting.md6.9 KB
  • references/untrusted-content-defense.md6.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.