Skip to content
Skill

Agent action safety

Defines and tests the boundaries on what an AI agent's tool calls can do

Agent action safety is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
19
Last commit
License
MIT
Listing updated

Similar skills

About Agent action safety

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (7 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Agent action safety 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.

More from rpraharaj/forward-deployed-engineer

  1. Gives agents a procedure to test AI workflows against cases, thresholds and regression

    • Open source
    • 19 GitHub stars
    • Developer tools
  2. Turns access requests into a tracked, parallel critical path with workarounds

    • Open source
    • 19 GitHub stars
    • Productivity
  3. Plans how end users move to a new workflow, with barriers, pilot, support and measures

    • Open source
    • 19 GitHub stars
    • Productivity
  4. Maps what a proposed code change could break before you make it

    • Open source
    • 19 GitHub stars
    • Developer tools
  5. Maps an organization's change approval process so releases can be planned backwards from

    • Open source
    • 19 GitHub stars
    • Productivity
  6. Lets an agent pin current behavior of untested legacy code before changing it

    • Open source
    • 19 GitHub stars
    • Developer tools