Skip to main content
GW
HomeWorkAI appsPapersAboutNotesStackLabPilotPlan↗ (opens in a new tab)INVST↗ (opens in a new tab)
Govind Waghmare

Finance systems and AI. Building in public from NYC.

Resume (PDF)Book 20 minEmail
HomeNotesWorkAboutStackPapersLabFor founders
XLinkedInGitHubllms.txt
© 2026 · New York City

Keyboard shortcuts

?
Open this list
g then h
Go to Home
g then w
Go to Work
g then n
Go to Notes
g then a
Go to About
c
Ask the AI guide
Esc
Close this list

My AI agent playbook, a skill my coding agents follow

Nov 30, 2026 · By Govind Waghmare · 4 min read

I build a lot of AI apps, at work and on my own. This playbook is where I keep the practices I follow for every one of them, written as a skill so my coding agents follow them too.

A skill is a folder of instructions and reference files that a coding agent such as Claude Code loads for one kind of work. This one loads whenever I build, review or fix an AI agent or AI app. The agent then follows the playbook instead of its defaults, and I stop re-explaining the same standards every session.

What it covers

The playbook covers the whole life of an agent. The main file holds the ranked rules and picks a mode. 28 reference files hold the detail, one topic each:

  • the agent loop and tool calling, including MCP tools
  • context size and token cost
  • evals and graders
  • guardrails, permissions and secrets
  • prompt injection and abuse, including spend caps
  • answers from documents (RAG) and from databases
  • memory, privacy and transcript retention
  • observability and logs
  • the chat screen, approvals, errors and phone layouts
  • handoff to a person and incident response
  • launch checks and product metrics

The rules, ranked by impact

These are the 13 core rules, in order. Each one names the source it came from.

  1. Grade the outcome. Check the database row, the file or the API state, not the order of tool calls.
  2. Start evals early, with 20 to 50 tasks taken from real failures. Run each task several times.
  3. Keep the doer and the judge apart. Agents grade their own work too kindly, so a separate, skeptical evaluator scores it.
  4. Use the simplest harness that works, and re-test it on every new model. Each extra part works around a model limit that may be gone.
  5. Keep the context lean. Load tools only when needed once there are many of them, and summarize large results in code.
  6. Keep progress outside the context window, in a progress file, a task list and git commits, so a fresh session can pick up the work.
  7. Layer the permissions. Read-only actions run freely, edits go through git, and risky actions pass a check first. Secrets stay out of reach of generated code.
  8. Give tools distinct names and a few realistic input examples.
  9. Do exact work in code. Arithmetic, lookups and writes run in typed code, and the model chooses and explains.
  10. Show the user the plan, ask before anything that can't be undone, and write errors that say what happened, why, and what to do next.
  11. Assume prompt injection will get through and limit what it can do. Authorization lives in code, and no single agent holds untrusted input, sensitive data and outside communication at the same time.
  12. Stack three spend caps (provider, per user, per run) and prove each one blocks.
  13. For answers from documents, try the simple option first, cite sources and check the citations in code, and say "not found" when nothing matches.

When two sources disagree, official docs and standards bodies win over vendor blogs, and each clash is settled in one place in the reference files.

Eight modes

The skill starts by asking what I want, then follows one mode.

  • Plan picks the kind of agent for the app.
  • Build walks through 16 steps, from the loop and the first evals to permissions, cost, the UI and a regression suite in CI.
  • Quick check runs a few live questions against an existing app, records each run, and returns one page of findings with a fix and a re-test for each.
  • Audit is the full review: reviewers score 134 items in 20 sections in parallel, each with evidence, and nothing is guessed.
  • Fix loop applies one fix at a time and re-asks the question that found the problem.
  • Launch check runs before anything ships.
  • Run is the routine for an agent already in use: read transcripts, watch for drift, keep the evals current.
  • Refresh updates the playbook itself.

How it stays current

Every rule cites a dated source. Most come from Anthropic's engineering guides and docs, and the security rules lean on OWASP's guidance for AI agents. A sources file lists each one with its URL, date and a trust label, so an official doc counts for more than a vendor post.

A refresh looks at what was published in the last 30 days, checks it against the existing rules, and merges only what holds up. The skill tells me when a refresh is due. It also lists its known gaps, the topics where no approved source exists yet, so the agent marks anything there as not source-backed instead of making up a rule.

The skill has its own tests as well: saved evals for the quick check and for picking the right mode, plus a set of requests that should and should not load it.

Where I use it

I use it on the AI apps I build, at work and on my own side projects.

The skill is open source. Get it on GitHub: github.com/gwaghmar/ai-agent-playbook

Ask a follow-up about this note
$