Bullet-proof repository

Bullet-proof repository

// Bullet-proof repository · 01

What makes a repository agent-ready?

Ten areas to prepare your repositories for agents, with clear guidance, useful feedback and reliable delivery workflows.

// Ten areas, four stages

  1. Set up and find

    • 01

      Local setup

      • Prerequisites
      • Configuration
      • A .env.example with every variable
      • Startup commands
    • 02

      Finding the right files

      • AGENTS.md as a router
      • Indexed docs
      • Code maps
      • Code knowledge graphs: Graphify, GitNexus
  2. Understand the work

    • 03

      Architecture and conventions

      • Decision records (ADRs)
      • Coding standards
      • Module boundaries and import rules
      • A reference implementation
    • 04

      Domain knowledge

      • A domain glossary
      • Business rules
      • Process flows and state changes
      • Worked examples and edge cases
  3. Check the change

    • 05

      Code quality checks

      • Lint, format and type checks
      • SonarQube quality gate
      • Code and dependency security scans
    • 06

      Tests

      • Unit tests
      • Contract tests
      • End-to-end tests
      • Mutation tests
  4. Deliver and operate

    • 07

      Pull request workflow

      • Branch and commit rules
      • A PR template
      • Evidence in the PR: tests, screenshots and diagrams
      • Release workflows
    • 08

      Observability

      • Logs
      • Metrics
      • Traces
      • Read-only access through MCP

Foundations: support every stage

  • 09

    Agent skills

    • Spec and design workflows
    • Subagents for focused tasks
    • Development and debugging workflows
    • Review and pull request workflows
  • 10

    Guardrails

    • Deny and ask rules
    • Pre-tool hooks
    • Protected branches, files and secrets
    • Auto mode

Use this as a starting point. Adapt it to your team and application.