Skip to content

screenleon/agent-playbook-template

Repository files navigation

Agent Playbook Template

30-Second TL;DR

This repository gives your team a reusable AI delivery workflow: clear agent roles, stable operating rules, reusable skills, and decision logging.

Start here in order:

  1. AGENTS.md (entrypoint)
  2. docs/operating-rules.md (safety, scope, validation)
  3. docs/agent-playbook.md (role routing and workflow)

Best for teams looking for: AI coding agent playbook, multi-agent software workflow, and documentation-driven engineering.

Reusable repository assets for AI-assisted software delivery:

  • repo-wide agent rules
  • project-level subagents
  • reusable prompt templates
  • reusable skills
  • external-practice notes

This template is intentionally project-agnostic. Copy, adapt, and version it in any repository where you want stable agent behavior across planning, implementation, integration, review, and documentation.

Quick Start (3 steps)

  1. Copy this template into your repository (or create a repo from this template).
  2. Edit the three source-of-truth files first: AGENTS.md, docs/operating-rules.md, and docs/agent-playbook.md.
  3. Run your first task with the required workflow: discover -> triage -> plan (if needed) -> implement -> validate -> record decisions.

If you only do one thing on day one: keep DECISIONS.md updated so future agent runs can perform contradiction checks.

Example: Complete Use Case

Use case: add a new repository rule that all API handlers must enforce request ID logging.

  1. Update rule source: add the non-negotiable rule in docs/operating-rules.md under Project-specific constraints.
  2. Align routing and role guidance: update docs/agent-playbook.md if any role ownership changes.
  3. Sync tool instructions: update .github/copilot-instructions.md to keep tool-specific guidance consistent.
  4. Record the decision: append a dated entry to DECISIONS.md with context, decision, alternatives, and constraints.
  5. Validate consistency: ensure no contradiction between AGENTS.md, docs/operating-rules.md, and docs/agent-playbook.md.

Outcome: every future implementation task follows the same logging requirement with traceable reasoning.

Copy and Paste Snippets

1) Task kickoff prompt

Goal: [what to change]
Scope: [files/modules allowed]
Constraints: follow AGENTS.md and docs/operating-rules.md
Deliverable: proposal + implementation + validation results

2) Mandatory first-response compliance block

Read set: [list of files read]
Scale: [SMALL|MEDIUM|LARGE] + reason
Workflow path: [small simplification | medium/large full path]
Checkpoint map: [plan approval, destructive actions, scope expansion]

3) Decision log entry template

## YYYY-MM-DD: [Decision title]
- **Context**: Why this decision was needed
- **Decision**: What was decided
- **Alternatives considered**: What was rejected and why
- **Constraints introduced**: What future work must respect

Architecture Diagram

flowchart LR
    A[User Task Request] --> B[AGENTS.md]
    B --> C[docs/operating-rules.md]
    B --> D[docs/agent-playbook.md]
    D --> E[Role Selection]
    E --> F[skills/*/SKILL.md]
    F --> G[Implementation + Validation Loop]
    G --> H[DECISIONS.md Update]
    H --> I[Future Contradiction Checks]
Loading

End-to-End Flow

  1. Discover context: read relevant code/docs and existing decisions.
  2. Triage task scale: classify as Small, Medium, or Large using evidence.
  3. Plan path: Small uses simplified path, Medium/Large uses full planning path.
  4. Implement safely: keep scope tight and follow repository patterns.
  5. Validate: run targeted checks/tests, fix, and repeat until stable.
  6. Record durable state: update DECISIONS.md when behavior or architecture choices are made.

This flow is what makes the template useful in real teams: predictable output quality, lower drift, and faster onboarding.

Search Keywords and Discoverability

This template is designed for teams searching for:

  • AI coding agent playbook template
  • GitHub Copilot repository instructions template
  • multi-agent software workflow for planning and implementation
  • documentation-driven engineering workflow
  • decision log and contradiction-check workflow

If you maintain a fork, keep these phrases in your repository description and README summary so more users can discover and adopt your workflow.

What this repository gives you

  • a root AGENTS.md entrypoint
  • reusable operating rules and routing rules
  • project-level subagents for Claude-compatible tooling
  • reusable prompt templates for any chat-based coding tool
  • reusable skills you can adapt into your own agent ecosystem
  • repo-wide Copilot instructions

Current asset inventory

  • Claude subagents: 8 (.claude/agents/*.md)
  • Reusable skills: 11 (skills/*/SKILL.md)
  • Source-of-truth docs: AGENTS.md, docs/operating-rules.md, docs/agent-playbook.md

Required vs optional files

Required

  • AGENTS.md
  • docs/operating-rules.md
  • docs/agent-playbook.md

Strongly recommended

  • DECISIONS.md
  • ARCHITECTURE.md
  • .github/copilot-instructions.md
  • .claude/agents/
  • skills/
  • docs/agent-templates.md

Optional

  • prompt-budget.yml — declare token budget and enabled/disabled roles per project
  • docs/example-task-walkthrough.md — reference for expected output formats
  • docs/external-practices-notes.md
  • docs/adoption-guide.md

Adoption path

  1. Create a new repository from this template or copy the files into an existing repository.
  2. Edit AGENTS.md to point at your repository-specific docs.
  3. Edit docs/operating-rules.md with your real safety, testing, and review expectations.
  4. Edit docs/agent-playbook.md so the role routing matches your stack.
  5. Fill in ARCHITECTURE.md with your module map and data flow.
  6. Keep, rename, or remove subagents in .claude/agents/ based on the tools your team actually uses.
  7. Keep, rename, or remove skills in skills/ based on the workflows you repeat often.
  8. Update .github/copilot-instructions.md so it reflects the same role model.
  9. Keep DECISIONS.md active from day one so agents can run contradiction checks before planning/implementation.
  10. Apply memory lifecycle rules from skills/memory-and-state/SKILL.md (archive stale decisions when thresholds are hit and use selective reads for active vs. archived decisions).
  11. Optionally create prompt-budget.yml to declare which roles and skills are enabled for your project.

Customization checklist

  • Replace generic module labels with your actual modules.
  • Add repository-specific safety rails, test commands, and release rules.
  • Add or remove role definitions to match your delivery workflow.
  • If your team does not use Claude-style subagents, keep the role names but remove .claude/agents/.
  • If your team does not use Copilot instructions, remove .github/copilot-instructions.md.
  • See docs/adoption-guide.md → Tool adapter reference for Cursor, Windsurf, and OpenAI API setup.

Portability note

The role names in this template are conceptual first:

  • feature-planner
  • backend-architect
  • application-implementer
  • ui-image-implementer
  • integration-engineer
  • documentation-architect
  • risk-reviewer

Some tools can map these directly to project subagents. Others cannot. In tools without native subagents, use the same role names through prompt templates, reusable skills, or repository instructions instead.

Packages

 
 
 

Contributors