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.
- Setting up the project
- Working in small steps
- Rules the agent cannot break
- Reviewing agent output
- Isolation and credentials
- Agent config supply chain
- Apps built with AI builders
- Context and memory
- Measuring and improving
- Agent skills
- Running agents at scale
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.
- Rules as code
- Build, test and deploy
- Version control and review
- CI and supply chain
- Running in production
- Major upgrades
- Feature flags
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.
- Code review
- Names and functions
- Comments
- Errors and nulls
- Coupling
- SOLID and DRY
- Data shapes
- Structure
- Domain model
- Concurrency
- System architecture
- Technical debt
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.
- Test strategy
- Unit tests
- Integration and contract tests
- End-to-end and browser tests
- Test data and environments
- Flaky and slow tests
- Test quality
- Performance tests
- Security and robustness
- Output comparison
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.
- HTML basics
- Site architecture
- Interface
- Performance
- Redirects and canonicals
- Hosting and network
- Standard addresses
- Privacy
- Errors and outages
- Offline and installed apps
- Measured results
- Measuring it yourself
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.
- Resources and methods
- Requests and responses
- Errors
- Lists
- Changes over time
- Reliability
- API security
- Contracts and docs
- Live connections
- Using other companies' APIs
- GraphQL and gRPC
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.
- Schema design
- Queries and indexes
- Transactions and concurrency
- Migrations
- Backups and recovery
- Personal data
- Operations
- Database security
- Caches and copies
- Multi-tenancy
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.
- Message basics
- Sending domain and authentication
- Deliverability
- Unsubscribe
- Bounces and complaints
- Inbound mail and replies
- Layout and accessibility
- Email privacy
- Email security
- Automation and agents
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.
- Service levels
- Logs
- Metrics and traces
- Alerts and on-call
- Incidents
- Running the service
- Capacity and resilience
- Disaster recovery
- Containers
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.
- Rules of engagement
- Injection
- Access and accounts
- Data and secrets
- Requests and files
- Abuse and limits
- Supply chain and setup
- AI agents and models
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.
- Card security and SCA
- Price display and consumer law
- Amounts and orders
- Payment events and reconciliation
- Subscriptions
- Failed payments and dunning
- Refunds, disputes and fraud
- Tax
- Invoices and records
- Marketplaces and payouts
- Currencies and settlement
- Bank transfers and local methods
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.
- Infrastructure as code
- Environments
- Identity and access
- Configuration and secrets
- Networking and DNS
- Policy as code
- Servers
- Cost and ownership
- Hosting platforms
- Containers and orchestration
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.
- Deciding to use a model
- Prompts as code
- Structured output and tools
- Retrieval
- Evals and quality
- Guardrails and human review
- Latency, cost and fallbacks
- Logs, privacy and feedback
- Agents in products
- Voice and audio
- Image and video generation
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.
- Sign-up
- Sign-in methods
- Second factors and recovery
- Sessions and security activity
- Roles and permissions
- Organisations and teams
- Support and staff access
- Profile and account lifecycle
- Business sign-on and provisioning
- Bank and government ID
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.
- Scope and ownership
- Records and data map
- Processors and transfers
- Breaches and reporting
- Audit logs and access
- Controls and evidence
- AI Act
- Security laws
- Product and data laws
- US privacy and AI laws
- Online platforms
- Regulatory calendar
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.
- Styles and components
- Data views
- Dates and numbers
- Forms
- Client and server state
- Lists and tables
- Feedback and dialogs
- Sessions and permissions
- Resilience
- Tests and budgets
- Generated interfaces
- Live collaboration
- Layout and navigation
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.
- How to choose
- Languages and runtimes
- Web frameworks
- Databases and storage
- Testing and code quality
- Delivery and infrastructure
- Operations tools
- Product services
- AI software
- Mobile and desktop apps
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.
- Measure before you scale
- Stateless app servers
- Caching
- Exports and fair share
- Growing the database
- Load balancing and autoscaling
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.
- Store review and listing
- Signing and release
- Updates and versions
- Data on the device
- Network, links and web views
- Privacy declarations
- Crashes and quality
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.
- Identifying agents
- Delegated access and consent
- MCP servers
- Safe actions
- Quotas and pricing
- Ready for AI agents
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.
- Warehouse and models
- Loading and change data capture
- Data quality tests
- Lineage and changes
- Personal data in the warehouse
- Access and BI tools
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.
- Signing and notarisation
- Update integrity
- Web code inside desktop apps
- Browser extensions
- Installs and local privileges
- Crashes, telemetry and accessibility
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.
- Locales and preferences
- Messages and translation
- Formatting
- Text handling
- Time and time zones
- Layout and scripts
- Multilingual websites
- APIs and data
- Apps and command-line tools
- Email, notifications and AI
- Language laws
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.
- Keyword research
- Words on the page
- Helpful content
- Crawling and indexing
- Site structure
- Search result appearance
- Links from other sites
- Search spam and penalties
- Local search
- Measuring results
- Search incidents
- AI search answers
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.
- Seeing and reading
- Keyboard and focus
- Structure and names
- Forms, changes and time
- Touch, motion and sound
- Native apps
- Media, documents and email
- Law and statements
- Testing and procurement
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.
- Catalog and prices
- Stock and reservations
- Carts and checkout
- Orders and fulfilment
- Shipping and delivery
- Returns and refunds
- Promotions and claims
- Fraud and delivery proof
- Marketplace sellers
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.
- Kinds of docs
- README and docs as code
- Reference and changelogs
- Docs for coding agents
- Examples that run
- Help centres and user guides
- Keeping docs current
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.
- Inbox and tickets
- Callers, staff and tools
- Refunds and credits
- Response times and escalation
- Macros and help articles
- AI support bots
- Personal data requests
- Measuring support
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.
- Uploads
- Storage and backups
- Images
- Video and audio
- Serving files
- Generated documents
- Quotas and cost
- Copyright and takedowns
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.
- Device identity
- Provisioning and onboarding
- Firmware updates
- Device to cloud
- Local network exposure
- Fleet monitoring and control
- Sensor data and privacy
- Support and vulnerability reports
- Conformity
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.
- Licences and copyright
- Contributions
- Maintainers and governance
- Releases
- Vulnerabilities and advisories
- Project supply chain
- Issues and triage
- Funding and the end of a project
- Using open source
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.
- Problem and baseline
- Training data
- Splits and leakage
- Evaluation
- Training runs and the registry
- Serving and release
- Monitoring and retraining
- People affected by the model
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.
- Plans and prices
- Entitlements
- Plan changes, trials and free tiers
- Spend caps and alerts
- Ledger and accounting
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.
- Command-line behaviour
- Configuration and telemetry
- Help, completion and updates
- Libraries and SDKs
- Distribution
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.
- Threat modelling
- Input and injection
- Authentication and sessions
- Access control
- Browser security headers
- Requests, files and caches
- Limits and business logic
- Cryptography and keys
- Secrets and configuration
- Supply chain
- Errors, logs and vulnerabilities
- AI features and agents
- ASVS 5.0 mapping
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.