agentleFS
diodemediodeme/Gold-Band/AGENTS.md

Gold-Band

AGENTS.md143 starsChanged 2 months agoAGPL-3.0View on GitHub

当前项目的全量设计方案位于: docs\gold-band\产品设计文档 当前项目的MVP版本开发计划位于: docs\gold-band\开发计划 改变功能、设计或计划的代码修改,必须同步维护以上两类文档 每次实现需求时,都应该先思考,当前的需求,是否已经有现有的开源组件可以满足需求,是否已经有行业内最佳实践,都没有的话,才考虑自己实现。 每次出方案时,必须先告诉用户当前的方案才开始实现,方案设计时对问题的解决思路是:1.这个问题是否来源于根本性的设计缺陷?如果是则需要把设计缺陷一起修复掉,宁愿多付出一些成本 2.这个问题是否是来源于好的设计但是实现不够完善?如果是则基于好设计,继续完善实现。必须杜绝针对特定问题的补丁式修复。 每次实现功能后并验证无误后,必须进行单元测试,从接口层面把正确验收固化下来,这样方便后续改动时进行回归。 优秀的设计思路: 1.分析哪些数据结构 2.不同数据结构分属于哪些不同领域 3.生命周期相关联的数据结构,状态应该统一管理 4.先定数据、再定接口、再补实现 5.杜绝硬编码:业务常量、配置项、路径和文案 key 集中定义,按复用范围放在模块常量、配置或所属领域类型中;只用一次的值不单独抽象 6.错误码等不要使用简单的string,而是用结构体管理,至少包含code、msg等字段,后端只返回错误码,前端根据错误码进行处理,后端不应该包含任何对客文案的处理 7.使用现代开发的最佳实践,积极使用现成的库、框架、工具、组件等,严禁无效地重复造轮子 当前项目所有内置提示词(profile、runtime、repair、AI-DYNAMIC 等)必须统一放在 src/prompts/ 下管理,不允许把长 prompt 文本散落硬编码在实现代码里。 提示词目录必须按语言组织为 src/prompts/zh-CN/、src/prompts/zh-TW/、src/prompts/en/、src/prompts/ja-JP/、src/prompts/ko-KR/、src/prompts/pt-BR/、src/prompts/es/。除 CI/CD 角色正文与 runtime/cicd-goal.md…

The file

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.