# Agent Playbook

> Set up Claude Code, Codex and Cursor in any repository: AI-setup audit, risk-based task routes, and independent code review in a fresh session.

Agent Playbook is a paid AI agent skill pack (several skills in one listing) on Agensi by Kostiantyn Polishko, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1.99 (one-time purchase)
- Creator: [Kostiantyn Polishko](https://www.agensi.io/creators/kostiantyn-polishko)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.2
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-playbook
- Tags: ai-agents, prompt-engineering, code-review, documentation, workflow-automation

## About this skill

Software projects go wrong when AI agents work without clear boundaries or follow a different process every session. Agent Playbook is a vendor-neutral, language- and framework-neutral workflow that sets up Claude Code, Codex and Cursor in any repository, covering discovery, planning, implementation, testing, handoffs and independent code review. The shared process stays in the playbook; only repository-specific facts are written into your project.

### What it does
- **Audits your existing AI setup first**: duplicate or diverged skills, competing skill triggers, contradictory instruction files, blocking hooks, MCP drift and literal secrets, plus your user-level setup if you allow it.
- **Initializes agent context** by generating and reconciling `AGENTS.md`, `CLAUDE.md` (which imports `AGENTS.md`) and `docs/agent/` workflow, project and capability maps. Manual additions are preserved and re-runs are idempotent.
- **Asks what the code can't tell it**: risk zones (payments, authorization, sensitive data, difficult rollback), staging, who reviews and which models to use, one decision at a time. Nothing is installed without your explicit yes.
- **Starts new projects too**: in an empty repository it interviews you, proposes 2–3 stack options with trade-offs, and records a product brief, a stack ADR and a scaffolding task.
- **Routes tasks by risk** (Direct, Fast, Standard, Full) so planning and verification depth match the change. Small diffs are not automatically low risk.
- **Separates implementation from review**: a fresh session checks the change against the original requirements and acceptance criteria, not the implementer's summary, and flags deleted, skipped or weakened tests.
- **Installs three project-local skills** (`initialize-agent-workflow`, `execute-task-workflow`, `review-task`) in `.agents/skills/` for Codex and Cursor and `.claude/skills/` for Claude Code.

### How it works
1. **Initialize**: ask your agent to read `bootstrap.md`. It inspects the repository, audits the AI setup, asks the onboarding questions, then writes the entry points, `docs/agent/` maps and local skills.
2. **Compose workstreams from evidence**: contract compatibility, data/state, security, delivery, published-artifact compatibility and infrastructure are activated by what the repository actually contains, including monorepos.
3. **Implement**: the agent selects a route, records acceptance criteria before coding, follows the project map and reports the commands it actually ran.
4. **Review independently**: a fresh session maps every acceptance criterion to implementation and test evidence and reports findings before suggestions, without modifying code.

### Frameworks & tools
Built for Claude Code, Codex and Cursor. Name only the agents you use and it creates entry points for those alone. Works with any language, framework or architecture. It can coexist with Superpowers, GitHub Spec Kit, OpenSpec and similar tools as optional adapters, which are never installed automatically. Includes read-only Bash scripts for the setup audit, target-repository checks and weakened-test detection.

### Why this beats prompting it yourself
Generic prompts often lead to agents hallucinating project structure or skipping critical safety checks. This skill enforces a consistent evidence-based workflow that separates implementation from review, preventing the "hallucination loop" where an agent confirms its own incorrect work.

### Use cases
- Taking a new, empty repository from an interview to a stack decision and a first scaffolding task.
- Adding a consistent agent workflow to an existing service, application, library, infrastructure project or monorepo without losing current instructions.
- Gating high-risk changes (payments, authorization, data migrations) behind explicit plan approval.
- Reviewing PRs in a fresh session to catch weakened tests and unmet acceptance criteria.
- Keeping one source of truth for agent instructions across a team using different AI coding tools.

### Known limitations
- It supplies instructions, templates and skills; it does not launch other coding tools. You open the fresh review session yourself.
- MCP servers, plugins and user-global skills are only recommended; each needs your explicit approval.
- The helper scripts need a Bash shell (macOS, Linux or WSL on Windows).

## Requires

- Git
- Claude Code or Codex CLI or Cursor
- Python
- Codex MCP
- Duplicate MCP
- Literal Secret MCP
- Optional: Bash shell (macOS, Linux or WSL) for validation scripts

## 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 Agent Playbook skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Agent Playbook differ from just using a custom system prompt in my IDE?

This skill replaces inconsistent prompting with a structured framework of initialization files (like AGENTS.md) and risk-based workflows that force agents to follow specific planning and verification steps. It solves the 'hallucination loop' by requiring independent review sessions and evidence-based reporting for every code change.

### Which AI agents and IDEs are compatible with this skill?

The framework is vendor-neutral and currently optimized for Claude Code, Cursor, and Codex. It works by installing project-local rules that these agents can interpret, ensuring your workflow remains consistent even if your team uses different AI coding tools.

### What exactly is included in the package when I purchase it?

Markdown procedures for bootstrap, greenfield interviews, the AI-setup audit, onboarding and the task workflow; implementer, reviewer and acceptance-tester role contracts; technology-neutral capability workstreams; 16 templates (entry points, maps, product brief, ADR, specification, task, acceptance, handoff, review report, PR body and more); three project-local skills; and read-only Bash scripts for the setup audit, target checks and weakened-test detection.

### How difficult is the initial setup for an existing repository?

Ask your agent to read bootstrap.md in the repository. It audits your existing AI setup, asks a few onboarding questions one at a time (risk zones, staging, review, models), then writes AGENTS.md, CLAUDE.md, the docs/agent/ maps and the local skills while preserving existing instructions and manual additions. Re-running it is safe: the update mode merges new playbook rules without overwriting your local ones.

### Can I customize the risk-based routes and safety checks for my specific project needs?

Yes, the framework is designed to be highly adaptable; you can modify the capability workstreams and risk profiles in the local configuration files to match your team’s specific security standards or tech stack. Any updates to the core Playbook logic can be merged into your local directory without overwriting your project-specific rules.

---

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.
