Agent Wranglers

Every chapter of every playbook

Every chapter of every playbook, on one page. Pick the chapters your project needs by their names, then open them. Each playbook page describes its chapters, each chapter lists its rules, and each rule has its own page with the full steps. Add .md to any address to get Markdown.

AI-assisted development playbook

Rules for building software with AI coding agents. Set up the project, work in small steps, turn rules into checks and review every change before it ships. Read the checklist of all 70 rules or get them as JSON.

Engineering playbook

Rules for building any software. Every rule is checked in code, every change is tested the same way, and every deploy can roll itself back. Read the checklist of all 56 rules or get them as JSON.

Clean code and architecture playbook

Rules for code that people and AI agents can read, change and trust. Clean names, small functions, typed data, SOLID design and a numbered review. Read the checklist of all 88 rules or get them as JSON.

Testing playbook

Rules for tests that catch bugs and never cry wolf. Strategy, unit, integration, browser, load and output tests, test data, flaky tests and quality. Read the checklist of all 61 rules or get them as JSON.

Website playbook

Rules for fast, findable, secure and accessible websites that AI agents can use too. Each has a level, how to do it and how to check it. Read the checklist of all 106 rules or get them as JSON.

API design playbook

Rules for HTTP APIs that people and AI agents can learn fast and trust. Clear resources, honest errors, safe retries and contracts that never surprise. Read the checklist of all 78 rules or get them as JSON.

Data and databases playbook

Rules for data you can trust. Constraints in the database, fast queries, safe transactions and migrations, tested backups and personal data handled with care. Read the checklist of all 60 rules or get them as JSON.

Email playbook

Rules for email that arrives, reads well and stays safe. Authentication, deliverability, unsubscribe, bounces, replies, privacy and security, each with a check. Read the checklist of all 74 rules or get them as JSON.

Operations and observability playbook

Rules for running software people depend on. Service levels, logs, metrics, traces, alerts, incidents, capacity and recovery, each with a check. Read the checklist of all 68 rules or get them as JSON.

Adversarial testing playbook

Instructions for an AI agent that attacks your own software with permission. Safe rules of engagement, then the checks that prove each security control holds. Read the checklist of all 16 rules or get them as JSON.

Payments and billing playbook

Rules for taking money in a web app or SaaS through a payment provider. Checkout, orders, webhooks, subscriptions, refunds, disputes, tax and invoices. Read the checklist of all 74 rules or get them as JSON.

Infrastructure and environments playbook

Rules for the infrastructure a service runs on. Code, environments, access, secrets, networks, servers, containers, cost and hosting, each with a check. Read the checklist of all 86 rules or get them as JSON.

AI features playbook

Rules for product features built on language models. Prompts, structured output, retrieval, evals, guardrails, cost, privacy and agents, each with a check. Read the checklist of all 80 rules or get them as JSON.

Accounts and identity playbook

Rules for user accounts in web apps and SaaS. Sign-up, passkeys, recovery, sessions, roles, teams, staff access, deletion and business sign-on. Read the checklist of all 81 rules or get them as JSON.

Compliance and governance playbook

Rules for meeting and proving a software company's duties under privacy, AI, security, accessibility and platform law, written as data and checks. Read the checklist of all 91 rules or get them as JSON.

Web app interface playbook

Rules for the screens of web apps, such as dashboards and admin tools. States, forms, data, lists, feedback, permissions, errors and tests. Read the checklist of all 79 rules or get them as JSON.

Notifications playbook

Rules for notifications people want. Channel choice, preferences, quiet hours, push, SMS and an in-app inbox, each with a check you can run. Read the checklist of all 44 rules or get them as JSON.

Software choices playbook

Our picks for the languages, frameworks, databases, tools and services a web app runs on. Each is proven, maintained, popular and well known to AI tools. Read the checklist of all 105 rules or get them as JSON.

HTML and CSS playbook

Rules for organising HTML and CSS so styles stay modular, reused and predictable. Every layer, name and selector limit is checked in code. Read the checklist of all 34 rules or get them as JSON.

Scaling playbook

Rules for apps that must handle more users. Stateless servers, caches, background jobs, database growth, load balancing and capacity, each with a check. Read the checklist of all 33 rules or get them as JSON.

Mobile apps playbook

Rules for iOS and Android apps, native or cross-platform. Store review, signing, updates, offline data, privacy labels and crash reports, each with a check. Read the checklist of all 55 rules or get them as JSON.

Agents as users playbook

Rules for products that outside AI agents use. Identify agents, delegate access with consent, build MCP servers, make actions safe and publish agent files. Read the checklist of all 77 rules or get them as JSON.

Codebase takeover playbook

Rules for taking over code someone else wrote. Triage it, pin today's behaviour with tests, choose a rewrite or a refactor and move off an AI builder. Read the checklist of all 21 rules or get them as JSON.

Usage-based billing playbook

Rules for apps that charge by use. Metering, credits as a ledger, margins against model cost, itemised invoices and the protocols agents use to pay. Read the checklist of all 24 rules or get them as JSON.

Trust and safety playbook

Rules for apps where users post, upload or message. Report buttons, moderation queues, fair decisions and appeals, and sign-up fraud, each with a check. Read the checklist of all 27 rules or get them as JSON.

Data engineering playbook

Rules for a data warehouse and its pipelines. Loading, change data capture, quality tests, lineage, personal data and access to BI tools, each with a check. Read the checklist of all 38 rules or get them as JSON.

Desktop apps and extensions playbook

Rules for desktop apps and browser extensions. Signing and notarisation, safe updates, web code inside apps, extension permissions and local privileges. Read the checklist of all 36 rules or get them as JSON.

Localization playbook

Rules for software in many languages and regions. Locales, time zones, messages, formats, layouts, APIs, apps, AI and language laws, each with a check. Read the checklist of all 57 rules or get them as JSON.

SEO playbook

Rules for being found in search. Keyword research, where the words go, helpful content, technical SEO, links, local search and the spam that gets punished. Read the checklist of all 86 rules or get them as JSON.

Accessibility playbook

Rules for products everyone can use. WCAG 2.2 for web, apps, video, PDFs and email, the laws in the EU, Sweden and the US, testing and buying. Read the checklist of all 80 rules or get them as JSON.

E-commerce and fulfilment playbook

Rules for running an online shop. Catalog and stock, carts, orders, shipping, returns, digital goods, tax by destination, consumer law and marketplace sellers. Read the checklist of all 51 rules or get them as JSON.

Documentation playbook

Rules for docs that people and agents can trust. Kinds of docs, the README, docs as code, reference, changelogs, runbooks, help centres and tested examples. Read the checklist of all 48 rules or get them as JSON.

Customer support playbook

Rules for the team that answers customers. One inbox, safe identity checks, refund limits, response targets, honest AI bots and data requests on time. Read the checklist of all 45 rules or get them as JSON.

Files and media playbook

Rules for the files people upload and the files your app makes. Uploads, storage, images, video, serving, PDFs, quotas, backups and takedowns. Read the checklist of all 47 rules or get them as JSON.

Connected devices playbook

Rules for connected devices. Unique device keys, safe onboarding, signed firmware updates, secure protocols, offline behaviour, fleet control and privacy. Read the checklist of all 45 rules or get them as JSON.

Open source maintenance playbook

Rules for publishing and maintaining open source. Licences, contributions, maintainers, signed releases, vulnerability reports, triage, funding and archiving. Read the checklist of all 47 rules or get them as JSON.

Machine learning playbook

Rules for models you train yourself. Training data, leak-free splits, baselines, evaluation, a registry, safe releases, drift and decisions about people. Read the checklist of all 47 rules or get them as JSON.

Integration and events playbook

Rules for events, queues, jobs and webhooks between services. Contracts and schemas, outbox publishing, consumers that run once, replay and alerts. Read the checklist of all 29 rules or get them as JSON.

Product analytics and experiments playbook

Rules for product analytics and A/B tests. A tracking plan in code, consent before tracking, one definition per metric, and experiments you can trust. Read the checklist of all 18 rules or get them as JSON.

Search playbook

Rules for search in apps, sites and AI features. Keyword, vector and hybrid search, indexes kept in step, access filters, language handling and tests. Read the checklist of all 19 rules or get them as JSON.

Pricing, plans and entitlements playbook

Rules for what customers pay and what they get. Price catalogues, plan limits, seats, trials, spend caps, a double-entry ledger and revenue recognition. Read the checklist of all 22 rules or get them as JSON.

Technical due diligence playbook

Rules for checking software before you buy or invest in it. Ownership, licences, secrets, access tests, delivery, incidents, AI dependencies and severity. Read the checklist of all 24 rules or get them as JSON.

UX and deceptive design playbook

Rules for honest, usable interfaces. No dark patterns, equal accept and reject choices, true deadlines, usability tests, clear menus and short onboarding. Read the checklist of all 10 rules or get them as JSON.

Developer tools, SDKs and CLIs playbook

Rules for tools other developers and agents run. CLI exit codes, JSON output, signals, config paths, telemetry opt-out, SDK versions and signed releases. Read the checklist of all 19 rules or get them as JSON.

Application security playbook

Security controls to build into any web app or API. Threat models, injection, sessions, keys, supply chain and AI features, mapped to OWASP ASVS 5.0. Read the checklist of all 108 rules or get them as JSON.

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/outline">Agent Wranglers playbook</a>. In code you write, add a comment next to it with the same link.