# Agent action safety

> Agent action safety is an open-source agent skill for security. Defines and tests the boundaries on what an AI agent's tool calls can do. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/rpraharaj/forward-deployed-engineer/tree/main/fde-ai/skills/agent-action-safety
- **Repository:** https://github.com/rpraharaj/forward-deployed-engineer
- **GitHub stars:** 19
- **License:** MIT
- **Skill name:** agent-action-safety
- **Collection:** https://github.com/rpraharaj/forward-deployed-engineer
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through mapping every tool it can call, noting read and write capability, resource scope, credential location and possible irreversible effects. It then helps set an enforceable action policy that is checked at the tool or executor layer rather than in prompts, including how approvals are bound to the exact action, target and parameters so stale approvals are not reused.

The workflow also covers execution limits such as time, steps, retries and spend, plus stop signals, kill-switch behavior, human escalation and rules for ambiguous or duplicate writes. Adversarial sandbox cases are described, including instructions hidden in retrieved content, cross-tenant access, changed approval parameters and timeouts after partial writes. Results are recorded in a markdown report with enforcement evidence and remaining gates.

The skill expects an isolated test environment or faithful fakes where effects can be inspected, and access to the permissions and execution path of the agent. It does not run scripts; it is a procedure document with one file.

## When your agent uses it

> Define and verify boundaries on an AI agent's tool actions, including allowed resources, authorization, approvals, untrusted content, retries, execution budgets, and human escalation. Use before an agent can write data, send messages, spend money, or invoke privileged tools, or when testing action-boundary bypasses. General data handling is security-compliance-check; measuring overall AI task quality is ai-evaluation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-ai/skills/agent-action-safety)
- [License: MIT](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-ai/skills/agent-action-safety)

## Features

- **Capability and trust mapping:** Inventories each tool's read and write power, scope, credentials and external destinations, separating trusted instructions from untrusted content.
- **Enforceable action policy:** Defines allowed actions, validation, and approval conditions enforced at the executor boundary rather than in prompts.
- **Approval binding rules:** Ties approvals to principal, action, target and parameters so changed payloads require fresh authorization.
- **Bounded execution and recovery:** Sets limits on time, steps, retries and spend, with stop, cancel and escalation paths.
- **Duplicate write handling:** Guides handling of ambiguous or retried writes and reconciliation of partial outcomes.
- **Isolated adversarial testing:** Exercises boundaries in a synthetic sandbox with suppressed external effects and records observed calls.
- **Enforcement evidence report:** Produces a templated report mapping each rule to its enforcement location, test result and open gates.

## Good for

- Check whether an agent can be tricked into sending emails through instructions in a retrieved document
- Define approval rules before an agent is allowed to issue refunds or make payments
- Test that an agent cannot access another tenant's records through a tool call
- Verify that a timed-out database write is not retried blindly and creates no duplicate
- Document which agent tool actions are irreversible and who must approve them

## Install

### Claude Code

This skill ships in the `fde-ai` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-ai@fde-skills
```

Or copy only this skill to `~/.claude/skills/agent-action-safety`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-action-safety &&
cp -R "$tmp/fde-ai/skills/agent-action-safety" ~/.claude/skills/agent-action-safety &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/agent-action-safety` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/agent-action-safety` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-action-safety &&
cp -R "$tmp/fde-ai/skills/agent-action-safety" ~/.agents/skills/agent-action-safety &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/agent-action-safety` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/agent-action-safety` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-action-safety &&
cp -R "$tmp/fde-ai/skills/agent-action-safety" ~/.cursor/skills/agent-action-safety &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/agent-action-safety` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/rpraharaj/forward-deployed-engineer.git --path fde-ai/skills/agent-action-safety
```

Or copy the folder to `~/.gemini/skills/agent-action-safety` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agent-action-safety`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-action-safety &&
cp -R "$tmp/fde-ai/skills/agent-action-safety" ~/.copilot/skills/agent-action-safety &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/agent-action-safety` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git
```

Then copy `forward-deployed-engineer/fde-ai/skills/agent-action-safety` into your agent's skills folder as `agent-action-safety`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Agent action safety be used?

Before an agent can write data, send messages, spend money or invoke privileged tools, or when testing whether retrieved instructions, stale approvals or retries can cross an action boundary.

### Does Agent action safety run any scripts or change production systems?

No scripts are included. The procedure says not to perform production actions as a safety test without separate authorization, and to use isolated environments or fakes.

### What does Agent action safety expect from the user?

A list of intended tasks, principals, available tools and their permissions, the applicable policy and approvers, and an isolated test environment where effects can be inspected.

### How does Agent action safety relate to other skills?

It points to security-compliance-check for broader data handling and to ai-evaluation for overall task-quality measurement.

### How do I install Agent action safety in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agent-action-safety to use it in all your projects, or to .claude/skills/agent-action-safety in one project. Or install the fde-ai plugin, which includes it: /plugin marketplace add rpraharaj/forward-deployed-engineer, then /plugin install fde-ai@fde-skills.

### Does Agent action safety run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Agent action safety?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Agent action safety?

The closest alternatives to Agent action safety are Agent security hardening, Verify agent action, Agent governance, Agent owasp compliance and Security.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [Verify agent action](https://ai-powered.com/skills/verify-agent-action): Verify agent action is an open-source agent skill for security.
- [Agent governance](https://ai-powered.com/skills/agent-governance): Agent governance is an open-source agent skill for ai models and llm tooling.
- [Agent owasp compliance](https://ai-powered.com/skills/agent-owasp-compliance): Agent owasp compliance is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-jasgujral): Security is an open-source agent skill for security.
- [Speclock guardrails](https://ai-powered.com/skills/speclock-guardrails-sgroy10): Speclock guardrails is an open-source agent skill for security.
- [Skill scanner](https://ai-powered.com/skills/skill-scanner): Skill scanner is an open-source agent skill for security.
- [Security reasoning](https://ai-powered.com/skills/security-reasoning): Security reasoning is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/agent-action-safety
