-
Notifications
You must be signed in to change notification settings - Fork 2
Cursor Installation
Install ai-coding-ok in a Cursor project. Cursor auto-loads the PDCA rules via
.cursor/rules/ai-coding-ok.mdcwithalwaysApply: true.
- Cursor installed
- Git installed
- Bash (macOS/Linux/Git Bash) or Python 3 (Windows)
git clone https://github.com/Mark7766/ai-coding-ok ~/tools/ai-coding-okcd your-project
# macOS / Linux / Git Bash
bash ~/tools/ai-coding-ok/install.sh --cursor
# Windows (PowerShell)
python $env:USERPROFILE\tools\ai-coding-ok\install.py --cursorThis installs:
- All standard ai-coding-ok files (AGENTS.md, CLAUDE.md,
.github/agent/, etc.) -
.cursor/rules/ai-coding-ok.mdc— Cursor-specific rule file withalwaysApply: true
Open your project in Cursor, then in the Agent panel:
install ai-coding-ok
Cursor will:
- Detect the templates
- Ask what you're building
- Infer your tech stack and fill all placeholders
- Bootstrap the first memory entries
The .cursor/rules/ai-coding-ok.mdc file has alwaysApply: true in its frontmatter:
---
alwaysApply: true
---This means every Cursor session automatically loads the PDCA enforcement rules — no slash command, no manual trigger needed. It's equivalent to Claude Code's CLAUDE.md auto-load mechanism.
Plan (before coding):
1. Read AGENTS.md
2. Read .github/agent/system-prompt.md
3. Read .github/agent/workflows.md
4. Read .github/agent/coding-standards.md
5. Read .github/agent/memory/project-memory.md
6. Read .github/agent/memory/decisions-log.md
7. Read .github/agent/memory/task-history.md
Act (after coding):
1. Update task-history.md (always)
2. Update decisions-log.md (if architecture changed)
3. Update project-memory.md (if facts changed)
bash ~/tools/ai-coding-ok/scripts/verify.sh .See Installation Verification for detailed exit code meanings.
git add AGENTS.md CLAUDE.md .cursor/ .github/
git commit -m "chore: install ai-coding-ok framework"| Feature | Cursor | Claude Code | Copilot |
|---|---|---|---|
| Auto-load mechanism | .cursor/rules/*.mdc |
CLAUDE.md |
.github/copilot-instructions.md |
| alwaysApply | ✅ Yes | ✅ Implicit | ✅ Implicit |
| Manual trigger needed | No | No | No |
| Hooks support | ❌ | ✅ (Layer 4-5) | ❌ |
Cursor doesn't support Claude Code-style hooks, but the first 3 layers of the Five-Layer Defense still apply.
Check that .cursor/rules/ai-coding-ok.mdc exists and has alwaysApply: true in its frontmatter. If the file is missing, re-run the install script.
Install ai-coding-ok once — both tools share the same .github/agent/ memory files. Run install.sh --cursor to add the Cursor rule file on top of the base installation.
🧠 ai-coding-ok — AI 编程的 PDCA 记忆闭环。
GitHub · Issues · MIT License