ai-agent-playbook
v0.4.0
Published
Reusable AI agent skills, project playbook templates, and a small operator-controlled runtime harness.
Maintainers
Readme
Languages
- English (canonical): this file
- Korean (한국어): README.ko.md
What This Is
AI Agent Playbook is a small shelf of reusable agent skills, project templates, project-memory guides, a dependency-light runtime CLI, and a local MCP tool server for read-only analysis.
It helps coding agents stop guessing. The playbook nudges agents to inspect the repository first, respect local rules, keep API boundaries clear, write useful worklogs, and verify changes before calling work done.
The repository is agent-agnostic. Codex, Claude Code, and other coding agents can use the same source material, while adapters/ keeps agent-specific setup notes separate.
It is not a slash-command pack, a Codex plugin, or an auto-running agent. The default model is operator-in-the-loop: a human or agent explicitly runs the CLI, reviews dry-run output, then chooses whether to write files. MCP is an optional local tool surface so an AI app can call read-only diagnostics by name when you ask in natural language.
What You Get
| Piece | What it does | Where it lives |
| ----------------- | --------------------------------------------------------------------------------------------------- | ------------------ |
| Reusable skills | Trigger-focused operating guides for onboarding, docs, quality, Git, meta work, and legacy systems. | skills/ |
| Project templates | Copyable root agent rules, stack profiles, and project-memory files for current facts, vocabulary, maps, decisions, and evidence. | templates/ |
| Runtime harness | A small CLI for bootstrapping .ai-playbook/, health checks, context, runs, contracts, plans, and worklogs. | bin/, src/ |
| MCP tools | Local read-only tools for AI apps: context, operator checks, search, research, contracts, managed state, image diff, AST search, exact function-body clone cues, and TypeScript/JavaScript analysis. | src/ |
| Human docs | Installation, classification, maintenance, publishing, and translation notes. | docs/ |
| Translations | Korean reading copies that mirror English source files. | translations/ko/ |
| Agent adapters | Setup notes for specific agent environments. | adapters/ |
Quick Start
The package is published as ai-agent-playbook. The simplest path is to run it through npm with npx:
npx ai-agent-playbook --help
npx ai-agent-playbook skills install --dry-run
npx ai-agent-playbook skills install
npx ai-agent-playbook bootstrap <target-project> --dry-run
npx ai-agent-playbook bootstrap <target-project>
npx ai-agent-playbook operator check <target-project> --jsonNew to this playbook? Start with First 10 minutes. It explains what npx, global install, skills, and project bootstrap do before you write files.
In examples, names inside angle brackets are placeholders. Replace <target-project> with the project folder you want to inspect, or use . when your terminal is already inside that project. Quote paths that contain spaces, and keep private local paths out of shared issues, docs, and PRs.
If your AI app supports MCP, register a local server command such as npx ai-agent-playbook mcp. Then you can ask the AI to inspect playbook context, run operator search, or do deep local analysis without remembering every CLI command. MCP tools are read-only in this version.
If you want the shorter ai-playbook command from any directory, install the package globally:
npm install -g ai-agent-playbook
ai-playbook --helpThe npm package installs the CLI. It does not automatically copy skills, create .ai-playbook/, enable hooks, or register slash commands. Keep those actions explicit:
skills install,skills update, andskills uninstallmanage reusable user-level skills.bootstrap,guides sync,managed *,contracts *,operator *, andqa *manage or inspect one target project.mcpstarts a local stdio MCP server for AI apps. It does not write files by itself.- Runtime hooks and adapter settings are optional and are never installed by default.
For command-by-command usage, see Command guide. For update, uninstall, local checkout, PowerShell compatibility, ownership markers, and cleanup details, see Install, update, and uninstall.
Everyday Flow
npx or global install
-> skills install or update
-> restart the agent
-> inspect the target project
-> bootstrap .ai-playbook/ only when the project needs local playbook files
-> use operator checks/search and managed cleanup as explicit commandsFor existing projects, start with a dry run and inspect conflicts before writing files:
npx ai-agent-playbook bootstrap <target-project> --local-only --dry-run
npx ai-agent-playbook bootstrap <target-project> --local-only
npx ai-agent-playbook operator check <target-project> --json
npx ai-agent-playbook operator preflight <target-project> --intent "planned change" --json
npx ai-agent-playbook operator research <target-project> --query "project risks" --jsonSee Command guide for search, managed cleanup, adapter setup, plan, and worklog commands.
Repository Map
bin/ ai-playbook CLI entrypoint
src/ CLI runtime implementation
skills/
project/ Bootstrap, onboarding, and project-memory skills
quality/ API boundary, UI quality, cleanup, and review skills
git/ Commit, PR, push, and worklog skills
meta/ Skill-authoring skills
legacy/ Legacy-system maintenance skills
templates/
agents/ Root agent instruction templates and project profiles
codex-home/ Optional personal Codex home AGENTS.md template
project-playbook/ Copyable ai-playbook project-memory template
examples/ Worklog, prompt, and handoff examples
translations/ Human translations; never install these as skills
adapters/ Agent-specific install notes and optional hook PoCs
docs/ Classification, installation, publishing, and maintenance notes
docs/assets/ README and documentation images
scripts/ Validation and local sync helpers
test/ Node CLI and adapter tests
.github/ GitHub Actions validation workflowSkill Catalog
Each SKILL.md is short and trigger-focused. Longer reusable detail belongs in references/.
Project
project-bootstrap: start a new project, inherit a repository, or set up project memory and root agent guidance.repo-onboarding: inspect an unfamiliar repository before planning architecture, tooling, edits, or workflow answers.project-doc-system: create, reorganize, or review project AI docs, maps, runbooks, decisions, plans, and worklogs.
Quality
api-contract-boundary: implement, debug, or review frontend/backend contracts, DTOs, mocks, payloads, and adapters.ui-style-policy: select, document, or enforce a repository UI styling policy.style-quality-review: review or improve UI styling, responsive behavior, layout overflow, and visual regressions.frontend-ui-polish: implement or refine visible frontend UI surfaces while preserving product intent and existing design conventions.cleanup-ai-slop: clean low-trust, overcomplicated, duplicated, or mechanically generated code while preserving behavior.review-work-light: review recent implementation work before handoff without starting a blocking review process.
Git and Meta
commit-worklog-guardrails: stage, commit, push, open PRs, prepare release notes, or record worklogs.agent-skill-authoring: create, review, or reorganize reusable agent skills and references.
Legacy
General legacy work:
legacy-general: maintain or extend legacy code with unclear flow, hidden coupling, weak tests, or mixed documentation.legacy-risk-check: check hidden blast radius before changes that may affect shared state, CSS/JS, selectors, templates, forms, APIs, builds, or deploys.legacy-feature-addition: add behavior, screens, fields, business rules, or integrations without rewriting the host system.
Web, mobile, and compatibility surfaces:
legacy-jquery-web: maintain jQuery, plugins, direct DOM manipulation, global scripts, AJAX callbacks, or script-order coupling.legacy-server-rendered-web: maintain templates, controllers, form posts, server validation, sessions, layouts, and partials.legacy-php-lamp: maintain PHP/LAMP pages with includes, sessions, mixed HTML/PHP, direct SQL, globals, or shared hosting limits.legacy-android-webview-hybrid: maintain Android WebView apps with web assets, JavaScript bridges, permissions, or device APIs.legacy-ie-activex-compat: maintain intranet systems that depend on IE mode, ActiveX, old browser APIs, or compatibility constraints.
Enterprise stacks and data-heavy flows:
legacy-java-spring-mvc: maintain Spring MVC, JSP, Servlet, MyBatis, WAR deployment, XML config, or server-rendered Java apps.legacy-dotnet-webforms: maintain ASP.NET Web Forms, .NET Framework, code-behind, ViewState, Web.config, IIS, or old enterprise .NET apps.legacy-database-heavy-system: maintain stored procedures, triggers, views, direct SQL, scheduled jobs, or database-shaped business rules.legacy-reporting-printing: maintain reports, print preview, PDF/Excel export, labels, barcodes, invoices, or printer-specific flows.legacy-batch-file-transfer: maintain scheduled batches, cron jobs, Windows Task Scheduler, CSV/Excel import/export, SFTP, or file drops.
Documentation
- Repository working rules: maintenance rules for agents editing this repository.
- Repository context: core terms and design intent for the playbook.
- First 10 minutes: beginner-friendly first run, glossary, and safe command order.
- Command guide: what each CLI command does, when to use it, and whether it writes files.
- Install, update, and uninstall: npm/npx usage, global CLI setup, skill lifecycle, project bootstrap, cleanup, and legacy PowerShell paths.
- Runtime harness: runtime principles, JSON contract notes, overwrite policy, and target-project flow.
- Runtime roadmap: staged hardening plan and optional hook-layer boundaries.
- Codex adapter: Codex-specific local sync behavior and Codex App on Windows workflow.
- Claude Code adapter: Claude Code setup notes and optional read-only context hook example.
- Templates: what to copy into project repositories and what to leave as installable skills.
- Classification: why skills, templates, examples, docs, and adapters are separated.
- Superpowers integration: how to use this playbook alongside external process skills.
- Maintenance workflow: what to update together when adding or changing content.
- Translation policy: English source and Korean translation rules.
- Publishing checklist: pre-publish hygiene checks.
For Maintainers
This README is the public entry point for users. If you are editing this source repository, read Repository working rules and Maintenance workflow first. Release hygiene lives in Publishing checklist.
Keep English source files canonical, update Korean translations with English source edits, and do not commit personal paths, credentials, internal URLs, branch names, PR numbers, or installed local skill copies.
License
Licensed under MIT.
