# autocritic

> Enforce a self-critical, collaborative workflow that stops agents from making unapproved changes or outputting low-quality code.

autocritic is a free AI agent skill on Agensi by Peterson Alves, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Peterson Alves](https://www.agensi.io/creators/peterson-alves)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-14
- Security: scan passed (2026-10-14); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/autocritic
- Tags: ai-agents, prompt-engineering, code-review, automation, workflow-automation

## About this skill

Agents often produce code too quickly, ignore architectural trade-offs, or clutter the terminal with verbose commentary. This skill enforces a partner-like collaboration model where the agent investigates first, checks in before any modification, and performs an invisible self-review to ensure high-quality output without the "theater" of fake tests.

### What it does
- **Ambiguity classification** categorizes requests to decide whether to stop and ask for clarity or proceed with best-practice assumptions.
- **Pre-modification check-ins** ensure the agent never edits files or creates scaffolding without first sharing a plan for user approval.
- **Invisible self-review** runs an internal senior-engineer perspective shift to catch edge cases, security flaws, and logic gaps before delivery.
- **State persistence** maintains a `.project/` directory to track session goals, architectural decisions, and deferred uncertainties.
- **Refinement reporting** provides a concise note only when substantive corrections were made during the internal review process.

### How it works
1. **Analyze** the request for ambiguity and either ask up to three targeted questions or proceed to investigation.
2. **Investigate** the codebase or environment freely without needing permission to read files or run diagnostics.
3. **Check in** by presenting a concrete action plan and waiting for user confirmation before modifying any project state.
4. **Execute and review** the task internally, applying domain-specific lenses (Code, Content, or Architecture) to prune errors.

### Frameworks & tools
This is a model-agnostic behavioral layer designed for terminal-based AI environments like Claude Code, Gemini CLI, Aider, and Cursor. It works across any programming language or stack by governing the agent's interaction logic rather than specific syntax.

### Why this beats prompting it yourself
Prompting an agent to "be careful" or "check in" is often ignored during long sessions. This skill provides a rigid execution framework with specific ambiguity routing and a mandated internal checklist that forces a perspective shift, preventing the agent from agreeing with its own initial mistakes.

### Use cases
- Preventing agents from refactoring the wrong files in large, complex repositories.
- Ensuring architectural decisions are approved before a multi-file migration begins.
- Stripping out "AI fluff" and fake test blocks from CLI-based coding sessions.
- Maintaining a durable log of technical debt and deferred questions in the `.project/` folder.

### Known limitations
The skill requires the agent to have file-system access to maintain project state. Performance may degrade if the model lacks an extended reasoning trace for the internal review step.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the autocritic skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific developer pain points does the Autocritic skill address?

It solves the problem of agents rushing into edits without permission, preventing unapproved refactors and low-quality code by mandating a "plan-first" approval step and an internal senior-engineer review.

### Which AI agents or coding environments are compatible with this skill?

This is a model-agnostic behavioral layer that integrates with terminal-based environments like Claude Code, Cursor, Aider, and Gemini CLI, regardless of the underlying programming language.

### Are there any specific technical requirements or permissions needed for the skill to function?

Autocritic requires an environment where the agent has file-system access, as it uses a dedicated `.project/` directory to track architectural decisions and session goals across restarts.

### How does this skill differ from simply prompting an agent to "be careful" or "check in" before coding?

Unlike standard prompts that agents often ignore over time, Autocritic provides a rigid execution framework with specific ambiguity routing that forces a perspective shift to catch its own logic gaps.

### What assets are included in the purchase of the Autocritic skill?

You will receive the core behavioral logic files and a configuration guide for implementing the workflow in your preferred AI terminal environment.

### Will this skill add more verbose output or 'AI chatter' to my terminal sessions?

The skill includes a 'Refinement Reporting' feature that ensures you only see a concise summary when substantive corrections were made, keeping your terminal clean of unnecessary 'AI fluff.'

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
