z-git
Git操作规范
禁止change base
禁止使用rebase / squash 等操作,只允许merge
优先使用SKILL
在你不确定的时候,优先从已经有的SKILL中检索知识。有SKILL则使用SKILL。
分支不要复用
在没有显式标记当前会话主题结束之前,如果工作区非clean状态,则提示当前工作区不干净。举例来说,用户在开发了需求A后,没有提交,还有需求A的改动,此时要求开发需求B,你应该中断Agent循环,并提示工作区不干净。
工作在 worktree 上
每次在确定当前工作主题后,即将进行write或edit时,主动使用git fetch和git worktree功能基于最新的主分支创建新的worktree。如果显式指定目标分支,则用指定的目标分支,否则用仓库的默认分支(如main/master)
worktree的目录为项目根目录的.worktree文件夹,例如有一个prd/add-new-feature-this-is-name的分支,则对应的检出目录为 .worktree/prd/add-new-feature-this-is-name。
More from deliay/zero-ash-cookbook
zero-ash-cookbook
USE FOR: project management, create project, development, write code, write documents, update documents, API test, E2E test, implement product, debug, fix issue, troubleshooting. DO NOT USE FOR: reading existing code, reading existing documents, understanding project structure.
13z-coding
USE FOR: development, dev, write code, read code, write tech proposal documents, api test, e2e test, implemention, implement product, debug, fix issue, troubleshooting, development workflow. 开发,写代码,读取代码,技术文档,技术方案,写测试,更新测试,实现产品逻辑,写技术方案,开发流程,开发规范
5z-test
USE FOR: run test, api test, e2e test, tdd
5z-document
USE FOR: write document, update document, archive document, 写文档, 更新文档
5z-product
USE FOR: product design, product solution, write product document, update product document, prd template, product document template, delivery product document, 产品设计, 产品方案设计, 产品文档, 编写产品文档, 修改产品文档, 公布产品文档, 产品文档模板.
5z-project
USE FOR: project manage, create project, new project, read project, 项目管理,创建项目,读取项目
5