Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/mr-chen-05/rules-2.1-optimized/implement-taskgit clone --depth 1 https://github.com/Mr-chen-05/rules-2.1-optimizedWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01757 |
| Opus 5 | $0.00000 | $0.00879 |
| Sonnet 5 | $0.00000 | $0.00351 |
| Haiku 4.5 | $0.00000 | $0.00176 |
Grade A, and why
implement-task scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🎯 Task Implementation - 任务实现
系统化的任务实现方法,确保高质量交付。
🚀 Commands - 命令
/implement-task- 开始任务实现/task-plan- 制定实现计划/task-review- 任务审查/task-complete- 完成任务
🧠 前置步骤:Context7 知识预载(修复/新项目前置)
- 触发时机:开始 /implement-task 前,任务涉及 Bug 修复或新功能/新项目实现
- 执行:
- 使用 Context7 在 src、docs、tests、config、README.*、architecture、api 目录检索关键材料(架构、接口、约束、相关代码与历史决策)
- 质量阈值:至少 5 个高相关片段或覆盖 3 类关键材料;评分 ≥ 0.65;超时 60s
- 回退:Context7 → 代码检索(search_codebase/search_by_regex)→ 文件系统读取
- 记录与确认:将“知识预载摘要”写入 project.context.md 的 Pinned,并通过增强反馈机制确认后继续
- 跳过条件:纯文档/注释、打印文案微调、单文件小范围变量改名等轻量变更
📋 Process - 实现流程
1. 📊 任务分析 (Task Analysis)
- 理解任务需求和目标
- 分析技术要求和约束
- 识别依赖和风险
- 转换条件:需求清晰,方案可行
2. 📝 实现规划 (Implementation Planning)
- 制定详细实现计划
- 分解子任务和里程碑
- 分配资源和时间
- 转换条件:计划完整,可执行
3. 🔨 代码实现 (Code Implementation)
- 按计划实现功能
- 遵循代码规范
- 编写测试用例
- 转换条件:功能完成,测试通过
4. ✅ 质量保证 (Quality Assurance)
- 代码审查和重构
- 性能优化
- 文档更新
- 转换条件:质量达标,文档完整
5. 🚀 交付部署 (Delivery & Deployment)
- 集成测试
- 部署到环境
- 用户验收
- 转换条件:验收通过,部署成功
🛠️ Implementation Strategy - 实现策略
分解原则
- 垂直切分 - 按功能模块分解
- 水平切分 - 按技术层次分解
- 优先级排序 - 核心功能优先
- 依赖管理 - 合理安排依赖顺序
开发模式
- TDD - 测试驱动开发
- BDD - 行为驱动开发
- DDD - 领域驱动设计
- 敏捷开发 - 迭代增量
质量控制
- 代码审查 - Peer Review
- 自动化测试 - 单元/集成测试
- 静态分析 - 代码质量检查
- 性能监控 - 运行时监控
📋 Task Template - 任务模板
任务实现计划
## 任务概述
**任务名称**:[任务名称]
**优先级**:高/中/低
**预估工期**:X天
**负责人**:[姓名]
## 需求分析
### 功能需求
- [ ] 需求1:描述
- [ ] 需求2:描述
### 非功能需求
- [ ] 性能要求
- [ ] 安全要求
- [ ] 可用性要求
## 技术方案
### 架构设计
- 系统架构图
- 模块划分
- 接口设计
### 技术选型
- 框架/库选择
- 工具链配置
- 环境要求
## 实现计划
### 里程碑
1. [ ] 里程碑1 (Day 1-2)
2. [ ] 里程碑2 (Day 3-4)
3. [ ] 里程碑3 (Day 5-6)
### 风险识别
- 风险1:描述 + 缓解方案
- 风险2:描述 + 缓解方案
## 验收标准
### 功能验收
- [ ] 功能1测试通过
- [ ] 功能2测试通过
### 质量验收
- [ ] 代码覆盖率 > 80%
- [ ] 性能指标达标
- [ ] 安全扫描通过
✅ Best Practices - 最佳实践
实现原则
- 小步快跑 - 频繁提交和集成
- 持续反馈 - 及时沟通和调整
- 质量优先 - 不妥协代码质量
- 文档同步 - 代码和文档同步更新
协作方式
- 每日站会 - 同步进展和问题
- 代码审查 - 知识分享和质量保证
- 结对编程 - 复杂问题协作解决
- 技术分享 - 经验总结和传播
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 232 lines · 0 tokens per session scan A d3097563cd8f
implement-task is a cursor rule published in the GitHub repository Mr-chen-05/rules-2.1-optimized (172 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,757 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.
specs
This directory contains product and tech specs for Streamlit features.