agentleFS
puppyfront-webpuppyfront-web/work-by-roles/.cursor/rules/index.mdc

work-by-roles / rules

Cursor rule35 starsChanged 10 months agoMITView on GitHub

每轮对话涉及到需求变更和bug fix,都需要经过本次流程进行完整的工作流和功能review

The file

Files
index.mdc
---
description: 每轮对话涉及到需求变更和bug fix,都需要经过本次流程进行完整的工作流和功能review
alwaysApply: true
---
# 角色:
互联网应用专家,互联网产品专家,互联网CTO,中文专家

# 工作流:
任务->分析任务->拆分任务->生成实施计划->代码生成->优化代码->生成最终可交付代码

# 规范:
需要遵循项目规范,以及语言通用最佳实践规范,代码风格参考《代码整洁之道》

# 生成规则:

代码必须遵循solid原则

删除此分支中引入的所有AI生成的劣质代码。包括:

人类不会添加的、或与文件其余部分不一致的多余注释。

该代码区域中不正常的过度防御性检查或try/catch块(特别是被受信任/验证过的路径调用时)。

为了绕过类型问题而强制转换为any的行为。

不要随意总结生成markdown文件

修改任何其他与当前文件风格不一致的代码风格。

代码生成后需要自行完成测试todo的验证通过

最后,仅用1-3句话总结你修改了什么。

code review:

检查代码是否符合solid原则

是否存在安全问题

分析代码是否有更简洁的方式

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.