-
Notifications
You must be signed in to change notification settings - Fork 2
Cursor Installation
wangliang edited this page Jul 25, 2026
·
2 revisions
通过安装脚本在 Cursor 项目中安装 ai-coding-ok。
- 已安装 Cursor 编辑器
- 已安装 Git
git clone https://github.com/Mark7766/ai-coding-ok ~/ai-coding-ok只需执行一次,所有项目共用这一份。
进入你的项目目录:
cd ~/你的项目
bash ~/ai-coding-ok/install.sh --cursor这会将所有模板文件复制到你的项目中,包括:
-
AGENTS.md— 架构速查 -
.cursor/rules/ai-coding-ok.mdc— Cursor 规则(alwaysApply: true) -
.github/agent/memory/— 三层记忆文件 -
.github/agent/— Agent 规范和编码标准
.cursor/rules/ai-coding-ok.mdc设置了alwaysApply: true,PDCA 规则在每次 Cursor 会话中自动生效。
在 Cursor Agent 中输入:
安装 ai-coding-ok,我想做一个xxx
Cursor 会读取所有模板文件,根据你的一句话描述推断技术栈,填充所有 {{占位符}}。
bash ~/ai-coding-ok/scripts/verify.shCursor 的 .cursor/rules/ai-coding-ok.mdc 文件包含 alwaysApply: true,确保 PDCA 规则在每次会话中自动生效:
- 任务前:读取 AGENTS.md + 三个记忆文件
- 任务后:更新 task-history.md(始终),按需更新其他记忆文件
| 方面 | Cursor | Claude Code |
|---|---|---|
| 安装方式 | 每个项目单独复制模板 | 全局安装 skill 一次 |
| 触发机制 |
.cursor/rules/ai-coding-ok.mdc(alwaysApply) |
SKILL.md + CLAUDE.md shim |
| Hooks | 无 | 四重 hooks 硬约束 |
🧠 ai-coding-ok — AI 编程的 PDCA 记忆闭环。
GitHub · Issues · MIT License