autonomy
---
What this skill does
---
name: autonomy
description: Configure Claude Code's autonomous operating mode — profile selection (conservative, balanced, aggressive, unattended-review), permission blocks, and the three gate agents (planner, verifier, reviewer). Use this skill whenever enabling autonomous mode, switching profiles, tightening permissions for production branches, or setting up unattended execution. Triggers on: "autonomy", "unattended mode", "auto-approve", "permission mode", "autonomy profile", "gates", "/cc-autonomy", "planner verifier reviewer", "let claude run on its own".
---
# Autonomy
Autonomous mode lets Claude Code execute tasks end-to-end with minimal human-in-the-loop. Safety comes from two things:
1. **Profile-scoped permissions** — the allow/deny/ask lists match the profile's risk tolerance.
2. **Gate agents** — planner writes an explicit plan before code, verifier runs checks after implementation, reviewer blocks merge on 10 criteria.
## Four profiles
Fetch full profile via `cc_kb_autonomy_profile(profile)`. Summary:
| Profile | Risk | Permissions shape | Gates |
|---|---|---|---|
| `conservative` | Minimal | Read-only default; ask on any write | planner + verifier + reviewer (all enabled, 10 block criteria) |
| `balanced` | Default | Free writes in project; ask on network/publish/push | planner + verifier; reviewer optional |
| `aggressive` | High trust | Most tools allowed; deny only destructive | planner only |
| `unattended-review` | Hybrid | Same as aggressive at runtime; reviewer gates commit/push | planner + reviewer |
## Three gate agents
All three are installed as regular agents — autonomous mode just wires them into the flow.
### 1. `autonomy-planner` (Opus)
**When**: runs first, before any implementation.
**Writes**: `.claude/active-task.md` — explicit plan with:
- Constraints and invariants
- Phase breakdown with exit criteria per phase
- Risk assessment and rollback plan
- Verification checks the verifier will run
**Hard rule**: no code touches disk until `.claude/active-task.md` exists.
### 2. `autonomy-verifier` (Sonnet)
**When**: runs after each implementation phase.
**Reads**: `.claude/active-task.md` verification block.
**Runs**: 5 built-in checks (configurable via profile):
- `tsc --noEmit` (TypeScript projects)
- `eslint` (JS/TS projects)
- `pytest` / `jest` / project test runner
- `git diff --stat` sanity check
- Secret scanner (`trufflehog`, `gitleaks`)
**Output**: `{ pass: boolean, failures: [...] }`. If `pass: false`, halt and surface to caller.
### 3. `autonomy-reviewer` (Opus)
**When**: runs before commit/push in conservative and unattended-review profiles.
**Checks 10 block criteria**:
1. Any hardcoded secret
2. Any `.env` or credential file added
3. SQL injection vector (string-concat queries)
4. XSS / unescaped output in web code
5. Deleted test without replacement
6. Commented-out code larger than 20 lines
7. Dependency added with no justification in commit message
8. Breaking API change without `BREAKING CHANGE:` footer
9. `TODO` or `FIXME` on a security-relevant line
10. `console.log` / `print` of sensitive variables
**Output**: `{ approve: boolean, blocks: [...] }`. Any block = stop.
## Session init command
Each profile provides a `session_init_command`. Example for balanced:
```
claude --permission-mode acceptEdits --dangerously-skip-permissions=false
```
For unattended-review:
```
claude --permission-mode acceptEdits --enable-reviewer-gate
```
## Permission block generation
`/cc-autonomy enable <profile>` generates a settings.json block:
```json
{
"permissions": {
"allow": [ /* from profile */ ],
"deny": [ /* from profile */ ],
"ask": [ /* from profile */ ]
}
}
```
Merges into existing settings.json without overwriting unrelated sections.
## Memory rules
Each profile includes memory discipline. Conservative requires saving every decision (including rejected options). Balanced is lighter. Aggressive is the standard engram protocol.
## MCP delegation
| Need | Tool |
|---|---|
| Fetch profile details | `cc_kb_autonomy_profile(profile)` |
| Plan for an unattended task | `cc_docs_autonomy_plan(task, repo_signals)` |
| Model for gate agents | `cc_docs_model_recommend(task, budget)` |
## Anti-patterns
- Running aggressive profile on an unfamiliar codebase → first session should always be conservative.
- Disabling the verifier to "move faster" → regressions ship silently.
- Letting planner skip the risk section → rollback becomes guesswork.
- Custom profile without any gates → not autonomous, just unsupervised.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.