Skip to content

๐Ÿš€ Quick Start โ€‹

Goal: Get the protocol running in your project in under 3 minutes.


Does this sound familiar? โ€‹

You opened a chat with your AI assistant to fix a bug. An hour later, it rewrote half your codebase. You're not sure if it's better or worse. You merge it anyway.

That's the problem this protocol solves.

Protocol before & after demo

Step 1 โ€” Install (30 seconds) โ€‹

Run this in your project root. No setup, no config files to create manually:

bash
npx github:wangjiajiajohn/The-Architect-Protocol

You'll see:

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
  ๐Ÿ›  The Architect's Protocol  v2.0
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  โ†“ .cursor/rules/100-core-instructions.mdc        โœ“
  โ†“ .cursor/rules/200-research-gate.mdc            โœ“
  โ†“ .cursor/rules/300-planning-gate.mdc            โœ“
  โ†“ .cursor/rules/400-execution-iron-lock.mdc      โœ“
  โ†“ .cursor/rules/500-verification-gate.mdc        โœ“
  โ†“ templates/research_summary_template.md         โœ“
  โ†“ PROMPTS.md                                     โœ“

  14 files installed ยท All OK โœ…

TIP

Manually copy .mdc files? That works too โ€” copy everything in .cursor/rules/ to your project.


Step 2 โ€” Your First Task (2 minutes) โ€‹

Open Cursor. Pick any feature you were about to start. Instead of typing your request directly, type:

/r I need to add user login with JWT tokens

Watch what happens:

  • The AI asks clarifying questions instead of immediately generating code
  • It produces a research_summary.md โ€” a scoped analysis of your existing codebase
  • It identifies risks before writing a single line

When it finishes, you'll see output like:

## Research Summary โ€” JWT Login

### Existing auth patterns found:
- middleware/auth.js (line 23): session-based, needs replacement
- models/User.js (line 45): no password hash field yet

### Risks flagged:
1. Token expiry not handled in frontend interceptor
2. Refresh token storage: localStorage vs httpOnly cookie (decision needed)

### Recommended approach: [...]

Awaiting your review. Reply `1` to proceed to planning.

This is the key moment. You just saw a research-first AI โ€” not a code-first one.


Step 3 โ€” The Audit Loop (45 seconds to understand) โ€‹

After you reply 1, type /p to plan, then /e to execute. The pattern is:

/r โ†’ read & confirm โ†’ 1
/p โ†’ review plan  โ†’ 1
/e โ†’ review diff  โ†’ 1
/v โ†’ verify build โ†’ done

Each 1 is a physical gate. The AI cannot proceed without it.

IMPORTANT

The first time you reply 1 and the AI executes exactly what was planned โ€” no more, no less โ€” is when it clicks. Most users describe it as: "I finally feel like I'm in control."


What you now have โ€‹

your-project/
โ”œโ”€โ”€ .cursor/
โ”‚   โ””โ”€โ”€ rules/
โ”‚       โ”œโ”€โ”€ 100-core-instructions.mdc    โ† AI identity & rules
โ”‚       โ”œโ”€โ”€ 200-research-gate.mdc        โ† /r gate (research lock)
โ”‚       โ”œโ”€โ”€ 300-planning-gate.mdc        โ† /p gate (plan lock)
โ”‚       โ”œโ”€โ”€ 400-execution-iron-lock.mdc  โ† /e gate (atomic execution)
โ”‚       โ””โ”€โ”€ 500-verification-gate.mdc    โ† /v gate (quality check)
โ”œโ”€โ”€ templates/
โ”‚   โ”œโ”€โ”€ research_summary_template.md
โ”‚   โ”œโ”€โ”€ implementation_plan_template.md
โ”‚   โ””โ”€โ”€ adr_template.md
โ””โ”€โ”€ PROMPTS.md                           โ† For Claude / ChatGPT / Copilot

Not using Cursor? โ€‹

If you use Claude, ChatGPT, or GitHub Copilot, open PROMPTS.md โ€” it has the complete system prompt for each tool. Paste it as your system instructions and you get the same gate behavior.


[!SUCCESS] That's it. You've transformed your AI from an impulsive code generator into a precision engineering tool. Next: read the Full SOP to understand why each gate exists, or jump into Real-World Cases to see it in action.

Released under the MIT License.