safe-autonomous-mode

safe-autonomous-mode is a skill for Claude Code from bhaumikmaan/claude-code-master-skills. It costs 52 tokens per session (1,453 once invoked), scanned A, original, MIT.

A set of rules for running coding-agent tasks with explicit permissions, risk levels and safety checks. It blocks actions that are unclear or cannot be confidently classified.

In plain words
What is it for?
Use it when configuring hands-off agent work or deciding which actions may run automatically. It helps compose allow and deny rules, classify risks, control pacing and keep the agent focused.
Why use it?
It reduces the risk of an autonomous agent taking an unsafe or unintended action. Each action is checked separately, and approval must be clearly given when required.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it when configuring hands-off agent work or deciding which actions may run automatically. It helps compose allow and deny rules, classify risks, control pacing and keep the agent focused.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bhaumikmaan/claude-code-master-skills/safe-autonomous-mode
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bhaumikmaan/claude-code-master-skills --skill safe-autonomous-mode
Clone the repo
git clone --depth 1 https://github.com/bhaumikmaan/claude-code-master-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for safe-autonomous-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/safe-autonomous-mode/github.svg)](https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/safe-autonomous-mode)
Your own site
<a href="https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/safe-autonomous-mode"><img src="https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/safe-autonomous-mode/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for safe-autonomous-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/safe-autonomous-mode"><img src="https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/safe-autonomous-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,453 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01453
Opus 5 $0.00026 $0.00727
Sonnet 5 $0.00010 $0.00291
Haiku 4.5 $0.00005 $0.00145

Measured 10d ago against content hash a45a98a82c2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

safe-autonomous-mode scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/safe-autonomous-mode/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Safe Autonomous Mode

CRITICAL: When in doubt, block. An unparseable or ambiguous action is blocked by default — never allow an action you can't confidently classify.

Risk Classification

Every action must be classified before execution. The classification produces a structured verdict:

{
  "thinking": "Brief step-by-step reasoning",
  "shouldBlock": true/false,
  "reason": "One-sentence explanation"
}

Classification Rules

  • Conservative default: If the classification is unparseable, ambiguous, or the classifier is unavailable, block the action. Safety over convenience.
  • Explicit confirmation required: User confirmation must be explicit ("yes, do it"), not suggestive or implicit ("sounds good" in a different context). Don't infer approval.
  • Per-action evaluation: Each action is classified independently. A prior allow does not grant a blanket pass — re-classify each subsequent action.

Allow/Deny Rule Composition

Rules are structured in three sections that compose into a policy:

Allow Rules

Actions that can proceed without user confirmation:

  • Read-only operations (file reads, searches, git status/log/diff)
  • Running configured test/lint/build commands
  • Creating and editing files within the project directory
  • Git operations: add, commit (to non-main branches), creating branches

Deny Rules (Soft Block — Require Confirmation)

Actions that need explicit user approval:

  • Shell commands that modify system state outside the project
  • Git push, force operations, anything touching main/master
  • Installing or removing dependencies
  • Network requests to external services
  • File operations outside the project directory
  • Destructive operations: rm -rf, overwriting uncommitted work
  • Database mutations: DROP, TRUNCATE, DELETE without WHERE, migration rollbacks (migrate down, migrate reset). These are irreversible in production and easy to misfire locally.
  • Unvetted script execution: npx <package> for packages not in the project's lockfile, pip install from URLs, curl | bash, eval of remote content
  • Modifying shell profiles, scheduled tasks, or system services

Read the full file on GitHub · 142 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 142 lines · 52 tokens per session scan E a45a98a82c2c

Subscribe to this mod's changes

safe-autonomous-mode is a skill published in the GitHub repository bhaumikmaan/claude-code-master-skills (3 stars, last pushed 5mo ago), licensed MIT. It adds 52 tokens to every session and 1,453 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

happiness-skill

A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.

kangarooking/cangjie-skill · 136 tokens

setup-matt-pocock-skills

A setup skill that configures engineering skills for a repository, including its issue tracker, labels, and documentation layout. A repository is the project folder managed by version control.

devcxl/mattpocock-skills-zh · 43 tokens

frontend-design

A design guide for building polished web interfaces such as pages, dashboards, forms, navigation, and reusable UI components. It covers HTML, CSS, JavaScript, and common frontend frameworks.

AnastasiyaW/codex-claude-code-config · 264 tokens

alterlab-cobrapy

Build and analyze genome-scale constraint-based metabolic models with COBRApy — flux balance analysis (FBA), flux variability analysis (FVA), gene and reaction knockouts, flux sampling, and SBML model I/O. Use when simulating metabolic networks, predicting growth or knockout phenotypes, or running systems-biology and…

AlterLab-IEU/AlterLab-Academic-Skills · 91 tokens

alterlab-depmap

Query the Cancer Dependency Map (DepMap) for cancer cell line gene dependency scores (CRISPR Chronos), drug sensitivity data, and gene effect profiles. Use when identifying cancer-specific genetic vulnerabilities, finding synthetic lethal interactions, checking whether a gene is essential in given cell lines, or…

AlterLab-IEU/AlterLab-Academic-Skills · 77 tokens

alterlab-syllabus-ai-policy

Drafts course-level generative-AI use policies and syllabus statements: assigns each graded task a permitted/restricted/prohibited tier (modeled on Cornell's prohibit/allow-with-attribution/encourage framework), writes the disclosure clause with a verbatim APA (OpenAI, 2023) or MLA Works Cited citation template for…

AlterLab-IEU/AlterLab-Academic-Skills · 222 tokens