The Builder Protocol.
One builder with AI leverage
outperforms a team of six.
The Leverage Thesis
Naval Ravikant identified four types of leverage: labour, capital, media, and code. Code and media are permissionless — you don’t need anyone’s approval to use them. AI is the fifth form. It compounds all four.
The Builder Protocol is built on this insight. When AI assists across every phase of delivery — not just code generation — a single Product Builder with the right tools, skills, and discipline can deliver what previously required a full team.
What This Replaces
The industry is moving fast. Microsoft, AWS, PwC, and GitHub are all publishing AI-driven SDLC frameworks. GitHub’s Spec Driven Development follows the same pattern: Specify, Plan, Tasks, Implement. AWS replaced “sprints” with “bolts” — work cycles measured in hours, not weeks.
The Builder Protocol was built independently from real delivery — not from theory. It converges with these frameworks because the underlying reality is the same: AI changes what one person can do.
Traditional SDLC
- 6+ specialized roles with handoff friction
- Knowledge lives in people’s heads and meetings
- Documentation is a bureaucratic afterthought
- Testing is appended at the end
- New team members need weeks of verbal briefings
- Sprints measured in weeks
The Builder Protocol
- 3 personas with AI filling execution gaps
- Knowledge persists in GitHub markdown
- Documentation is a runtime asset, not an artifact
- Test design is a first-class deliverable
- Anyone can onboard from the repo alone
- Work cycles measured in hours
The Three Personas
Where a traditional team has 6+ roles, the Builder Protocol operates with three. AI is the fourth member — silent, tireless, and leveraged.
Product Builder
Plans, configures, codes, tests, and documents. The primary operator of this framework. Uses CLI + skills.
System Architect
Stack decisions, security posture, infrastructure, deployment. Escalation point for core changes.
Account Manager
Client communication, scope management, timeline ownership, sign-off authority.
If you are reading this to set up your AI, you are the Product Builder. This entire framework is built for you.
Terminology
Builder ProtocolThis methodology — 3 personas + AI partner, 8-phase lifecycle, GitHub memoryProduct BuilderThe primary delivery operator — plans, builds, tests, documentsPhase BuildImplementing in platform order, not random ticket orderConfig-vs-CodeThe critical decision: platform config or custom code?Memory LayerGitHub-stored MD files that persist knowledge across sessions and operatorsHeartbeatDaily handoff log — what changed, what’s pending, what’s blockedDomain SkillAI agent definition carrying product/domain contextFlow SkillAI agent definition for process execution (testing, spec writing, coding)Platform OrderThe logical build sequence for your product stackSafety HooksPre-configured guardrails preventing AI from destructive mistakesPluginBundled skills + MCP + slash commands + sub-agents. One install, one shared toolkit across the team (S5–S6)Plugin GuardianThe person who maintains a shared plugin or skill — raises PRs, reviews changes, keeps it aliveReuse FirstThe first question before you build anything — did someone already solve this?The 8-Phase Lifecycle
Phase 7 loops back: Bug fixes return to Phase 5. Structural issues return to Phase 4. The loop continues until the PRD is functionally satisfied.
Phases 0–3 Thinking & Shaping
Understand what is actually needed before touching anything. What stage is the project in? What already exists? What is the client expecting versus what is technically feasible?
- Confirm scope and starting point
- Separate examples from actual requirements
- Identify what already exists (repo, site, data, docs)
ToolUI (Claude UI / ChatGPT) — prompt quality matters more than brandOutputConfirmed scope and starting pointDefine the delivery shape before touching configuration or code.
- Timeline or Gantt chart
- Phase plan with expected outputs per phase
- Capability map — what the platform already does vs what needs building
ToolUIOutputTimeline document, phase planCapture the full product requirement — not loose notes. PRD preferred over BRD because it captures product behavior, not just business rules.
- Personas, workflows, edge cases, approval chains
- Reporting and dashboard requirements
- Reference existing implementations for patterns
ToolUI — best for long-form iterative clarificationSkillbusiness-analyst — converts raw inputs into structured BRD/PRDOutputPRD.md stored in the repo rootBreak the PRD into execution units. Task list with clear ownership, user stories per module, module-level execution buckets.
- Flag what is likely config vs code (refine in Phase 4)
- Group tasks into logical modules
ToolCLI with read access to repos + domain referencesSkillfeature-spec — thorough task and user story creationOutputTask list (GitHub Issues, spreadsheet, or markdown — pick one, stay consistent)Phase 4 Development Planning — The Critical Phase
This is the most important judgment phase in the entire lifecycle. Decide what is configuration, what is setup, what is code, and what waits. Getting this wrong causes 80% of iteration waste.
Config-vs-Code Decision Flow: Can the platform do it natively? → Config. Needs a property change? → Setup script. Needs a new field? → Fixture in client app. Needs custom logic? → Code in client app. Needs core product change? → STOP — escalate to the System Architect.
Display-only rename (sidebar label, field label, option text users see) → Translation record (language=en). Changes what users see without touching stored values.
Field property change (required flag, hidden, depends_on) → Property Setter via idempotent setup script.
New field on existing form → Custom Field fixture in client app.
Conditional UI behavior → Client Script in client app.
Server-side business logic → Server Script or API in client app.
New entity type → DocType JSON fixture in client app.
Core product behavior change → STOP. Escalate to System Architect.
ToolCLI with write access to repo + GitHub CLISkilltechnical-pm + platform coding hygiene skillOutputModule hierarchy, config/setup/code classification, test checkpointsPhase 5 Phase Build — Platform Order
Implement in platform order — not as a random ticket queue. Each layer must be stable before the next depends on it.
ToolCLI + domain skills + coding skillsSkillPlatform engineer skill + setup skill + relevant domain skillOutputWorking code on feature branch, PRs raised per phasePhases 6–8 Test, Iterate, Ship
Test design is a deliverable, not a side effect.
Extract the test plan from PRD + roles + user flows
Validate the test plan against actual field names and API schema (never guess)
Execute testing persona by persona using Playwright
Capture screenshots and defects
ToolCLI + Playwright MCPSkillqa-tester + playwright-qa-engineerOutputTest plan, test results with screenshots, defect listBug fixes loop to Phase 5. Structural issues (wrong config-vs-code decision, missing fields, bad workflow) loop to Phase 4. Track defects in GitHub Issues or a structured spreadsheet.
ToolDefect tracker + Playwright MCP + CLISkillticketing — structured defect loggingCreate training material from validated flows, not from memory. Playwright screenshots as input source. Role-based journey documentation. Release readiness checklist.
ToolCLI + Playwright (screenshots) + documentation toolingSkillproduct-docs + release-notesThe Memory Layer
Every project repo must have these 4 files at the root. They make handoff possible without spoken context. If the project can’t be handed over through GitHub markdown alone, the delivery model is incomplete.
CLAUDE.md
The project brain. Persona, stack, repo structure, what’s deployed, hard rules, mistakes made, session log. Your AI reads this at the start of every session.
SECURITY.md
Safety guardrails. Parameterised queries only. No elevated permissions. Error suppression. Pentest findings. Not aspirational — prescriptive.
HEARTBEAT.md
Daily shift handoff. What was built, what’s pending, what’s blocked, what to test next, what NOT to break. Update at end of every session.
PRD.md
Full requirements. Personas, user journeys, workflow states, edge cases, business rules, reporting needs. The single source of truth.
The Layer Stack
This architecture governs what you can and cannot touch. All your work happens in Layer 4 — the client app. If something needs a change in Layers 1–3, escalate.
The golden rule of display renames: Never rename Select option values via Property Setter. Core code hardcodes option values. Use Translation records for display-only renames — they change what users see without touching what code references.
Tool Setup
Required
AI CLI — Claude Code, Gemini CLI, Cursor, or Codex. Pick one.
GitHub CLI (gh) — PR creation, issue tracking, repo operations.
Playwright MCP — E2E testing, screenshot capture, functional validation.
Git — version control, branching, PRs.
Recommended
Cloud UI (Claude UI / ChatGPT) for Phases 0–2: thinking, planning, PRD drafting.
Two separate AI contexts — one for thinking (UI), one for executing (CLI).
Defect tracker — GitHub Issues or a spreadsheet for structured iteration.
The split is deliberate: UI is for thinking well. CLI is for doing well. GitHub is the memory layer between them.
Skills — What to Load and When
Skills are specialized AI agent definitions carrying domain knowledge or process discipline. Load domain skills at project start. Load flow skills only when entering the relevant phase. This prevents context bloat — your AI has limited attention, and loading everything at once dilutes what matters.
Domain Skills (Load at Project Start)
Flow Skills (Load Per Phase)
How to Load Skills
Claude CodePlace .md skill files in ~/.claude/agents/. Invoke via Agent tool with subagent_type.Gemini CLIReference in GEMINI.md or tool configs.CursorAdd as context rules or system prompts per workspace.CodexLoad via AGENTS.md or equivalent context configuration.Hard-Won Rules 10 lessons from real delivery failures
Every rule below comes from a real failure that cost real time. These are not best practices — they are scars. The rule exists because someone learned it the expensive way.
Safety Hooks
Safety hooks are automated guardrails that run before AI tool calls. They catch destructive commands, credential leaks, and scope violations before they execute. Essential when the operator is non-technical.
System: No sudo, no rm -rf outside project, no modifying system files
Git: No force push, no push to main, no deleting remote branches
Database: No DROP commands, no production migrations
Core: No modifications to framework or core product for client work
Credentials: No tokens or keys in output or memory files
Files: No deleting files outside project directory
Allowed without asking: Read/search any file. Edit within project. Git add/commit/push to feature branches. Dev/test commands. Create files in project. Non-destructive shell commands.
Working Rules
Do not jump to code until config-vs-code has been explicitly decided for each requirement.
Do not test without a written test plan tied to personas and flows from the PRD.
Do not document from memory when screenshots from validated flows are available.
Do not treat PR creation as mechanical — it is a release-control decision.
Do not keep project memory in chat only — persist to GitHub.
Do not start development as a random ticket queue — follow platform order.
Do not modify core product apps for client-specific work.
Do not rename Select option values via Property Setter — use Translation.
After every PR, update the code journal — never merge without it.
Update HEARTBEAT.md at end of every session — the next operator depends on it.
Master Prompt — Project Kickoff
Feed this to your CLI when starting a new project. Replace the placeholders with your project details. This is the single prompt that boots your AI into the Builder Protocol.
Session Handoff Checklist
Before ending any working session, update these files. This is not optional.
CLAUDE.md — if project behavior or approach changed
HEARTBEAT.md — what’s done, pending, blocked, next steps
PRD.md — if requirements or decisions shifted
Code journal — if any code was written or PRs raised
Test artifacts — if test results were generated
Defect tracker — if iteration findings were created
Adapting for Other Products
The Builder Protocol is not product-specific at its core. The lifecycle, skill-loading strategy, memory layer, and UI/CLI split work for any structured delivery.
What You Change
Replace domain skills with your product’s domain context
Replace the platform order with your product’s logical build sequence
Replace the hard-won rules with your project’s learned constraints
What Stays the Same
The 8-phase lifecycle
Config-vs-code decision discipline
UI for thinking, CLI for executing, GitHub for memory
Test plan before testing, handoff checklist, skill loading strategy
Quick Reference
The Philosophy
The Builder Protocol is not about replacing people with AI. It is about giving one capable person the leverage to do what previously required a committee. The AI is the execution partner. GitHub is the memory. The protocol is the discipline that holds it all together.
The organisations that rebuild their delivery model around this reality will ship faster, onboard faster, and compound knowledge faster than those still running the six-role playbook. This is not a prediction. It is already happening.