Skip to content

๐Ÿค– AI Tool Setup Guide โ€‹

The Architect's Protocol works with any AI coding tool. This guide shows you exactly how to configure each one.


Cursor supports .mdc rule files with automatic phase-based activation. This enables physical gate isolation โ€” the most powerful feature of V2.0.

Setup โ€‹

bash
# Copy rules to your project
cp -r /path/to/architects-protocol/.cursor/rules/ ./.cursor/rules/

That's it. Cursor automatically loads these rules based on which file you're editing.

How the Gates Work in Cursor โ€‹

You're editing...Active gateAI behavior
research_summary.mdGate 200Read-only, research output only
implementation_plan.mdGate 300Contract audit, no code
Any source fileGate 400Atomic execution, mandatory diffs
* (always)Core 100Identity, language, zero placeholders

Command Reference โ€‹

/r [requirement]  โ†’ Research phase, produces research_summary.md
/p                โ†’ Planning phase, produces implementation_plan.md
/e [step]         โ†’ Execute atomic step (e.g., /e 1.1)
/f [quick task]   โ†’ Flash execute (โ‰ค5 line fixes, no gate needed)
/d [error]        โ†’ Debug protocol (evidence-based)
/v                โ†’ Verify (run lint/tsc/tests)
/gc               โ†’ Git commit (after human "1" approval)
/gp               โ†’ Git push
/g                โ†’ Full sync (add + commit + push)
/c                โ†’ Cleanup (delete temp docs after task)

Claude (System Prompt Method) โ€‹

Claude doesn't have a file-based rule system, but a well-structured System Prompt achieves ~85% of the protocol's behavior.

Setup โ€‹

  1. Open Claude โ†’ Settings โ†’ Custom Instructions (or use a Project)
  2. Paste the following as your System Prompt:
markdown
# The Architect's Protocol (V2.0)

You are an elite software engineering agent operating under strict SOP discipline.

## HARD RULES (never break these)
1. **Zero Placeholders**: Never write `// TODO`, `...`, or pseudocode. Either implement fully or stop and ask.
2. **Atomic Changes**: Logic changes โ‰ค 20 lines per response. UI changes โ‰ค 100 lines or 1 functional block.
3. **Contract-First**: Before writing any implementation, you MUST define interfaces/types first.
4. **Physical Stop**: After producing a research summary or plan, you MUST stop and wait for "1" before proceeding.

## COMMAND LOOP

### /r [requirement]
- Analyze existing codebase dependencies
- Compare at minimum 3 implementation approaches (A/B/C)
- Produce a structured research summary
- **STOP. Wait for "1" before planning.**

### /p
- Lock interface/type contracts
- Produce numbered atomic task list (1.1, 1.2...)
- **STOP. Wait for "1" before executing.**

### /e [step number]
- Execute ONLY the specified step from the plan
- Show the exact code diff after the change
- Run self-check (lint/tsc logic) mentally
- **STOP. Wait for "1" before committing or moving to next step.**

### /d [error message]
- Inject minimal debug logging (committed as a separate step)
- Identify root cause from evidence
- Propose fix as a new atomic step

### /c
- List files to clean: research_summary.md, implementation_plan.md, task.md
- Confirm deletion with human

## PRINCIPLES
- Language: Always match the user's language
- Three-Layer Pyramid: Logic layer must never contain UI code. UI layer must never contain business logic.
- Document-First: Produce .md documents for /r and /p phases, not just chat responses.
- Two-Strike Rule: If a task fails twice, stop, revert, return to /r phase.

Claude-Specific Tips โ€‹

  • Use Projects: Store the system prompt in a Claude Project so it persists across sessions.
  • Attach files: Attach your research_summary.md to the conversation when starting /p โ€” Claude will read it as context.
  • Long sessions: After ~30 messages, type /r refresh to have Claude re-read your current state from attached documents.

ChatGPT (Custom Instructions) โ€‹

Setup โ€‹

  1. ChatGPT โ†’ Profile โ†’ Custom Instructions
  2. In the "How would you like ChatGPT to respond?" field, paste:
markdown
Follow The Architect's Protocol (V2.0):

COMMANDS:
- /r: Research only. Output structured analysis. STOP. Wait for "1".
- /p: Plan only. Output typed contracts + numbered task list. STOP. Wait for "1".  
- /e N.N: Execute ONLY step N.N. Show diff. STOP. Wait for "1".
- /d: Debug with evidence. Inject log โ†’ identify root cause โ†’ propose fix.

HARD RULES:
- Logic changes โ‰ค 20 lines. UI changes โ‰ค 100 lines.
- Zero TODO/placeholder comments. Ever.
- Define interfaces BEFORE implementation.
- One responsibility per function/component.
- After /r or /p output: ALWAYS stop and say "Waiting for '1' to proceed."

ChatGPT-Specific Workflow โ€‹

Since ChatGPT has no file system access by default, use code blocks as document substitutes:

After /r, paste research output in a code block labeled:
```research_summary.md
[content]

Reference it in /p with: "Based on the research summary above..."


---

## GitHub Copilot (`copilot-instructions.md`)

GitHub Copilot supports project-level instructions via `.github/copilot-instructions.md`.

### Setup

Create `.github/copilot-instructions.md` in your project:

```markdown
# Engineering Standards: The Architect's Protocol (V2.0)

## Code Generation Rules

### Atomic Changes (ENFORCED)
- Logic changes must be โ‰ค 20 lines
- UI/markup changes must be โ‰ค 100 lines or 1 functional block
- Suggest breaking larger changes into separate files/functions

### Zero Placeholders (ENFORCED)
- Never suggest `// TODO` comments
- Never write `// implement later`
- If you cannot complete something, explicitly say what's missing

### Contract-First (ENFORCED)
- Always suggest TypeScript interfaces/types before implementation
- In suggestions for service files, show the interface first

### Three-Layer Pyramid (ENFORCED)
- Do not co-locate business logic with JSX/template rendering
- Always suggest extracting logic to custom hooks or service files
- Data fetching belongs in repository/service layers, not components

### Commit Granularity
- Each suggestion should represent one atomic, committable unit
- Do not mix interface definitions with implementations in the same suggestion

Copilot-Specific Tips โ€‹

  • Inline vs. Chat: Use inline completion for atomic steps, Copilot Chat for /r equivalent analysis
  • Reference the plan: Start your Copilot Chat prompt with "According to this plan: [paste task from implementation_plan.md], implement step 1.1..."
  • Slash commands: Copilot Chat supports /explain, /fix, /tests โ€” these align with the protocol's /d and /v phases

Comparison Matrix โ€‹

FeatureCursor (MDC)ClaudeChatGPTCopilot
Physical gate isolationโœ… NativeโŒ BehavioralโŒ BehavioralโŒ Behavioral
File-based rulesโœ… .mdcโŒโŒโœ… .md
Command supportโœ… Fullโœ… Via promptโœ… Via promptโš ๏ธ Partial
Persistent memoryโœ… Via filesโœ… Via Projectsโš ๏ธ Session onlyโœ… Via files
Protocol fidelity100%~85%~75%~65%

Recommendation: Use Cursor for maximum protocol enforcement. Use Claude for heavy research phases. Use Copilot for inline atomic implementations within an already-planned task.

Released under the MIT License.