feat: 添加项目规则、环境配置示例及开发文档

This commit is contained in:
锦麟 王
2026-02-04 18:49:38 +08:00
commit df76882178
88 changed files with 13150 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
name: analyze-project
description: 分析当前项目
model: opus
---
请分析当前项目的架构、功能、技术栈和代码结构

View File

@@ -0,0 +1,6 @@
---
name: backend-unit-testing
description: 对后端模块执行单元测试
model: sonnet
---
在所有定义的模块上执行单元测试。验证每个模块通过所有测试且逻辑符合预期行为。

View File

@@ -0,0 +1,6 @@
---
name: compare-requirements
description: 需求比对分析
model: opus
---
对比分析当前项目与需求的差异,识别需要修改的地方

View File

@@ -0,0 +1,6 @@
---
name: develop-step-1
description: 开发当前步骤
model: sonnet
---
根据要求开发当前步骤。专注于实现本步骤描述的核心功能。

View File

@@ -0,0 +1,6 @@
---
name: error-no-docs
description: 处理缺少步骤文档的情况
model: sonnet
---
错误:未找到步骤文档。此工作流需要步骤文档才能继续。请创建一个包含开发步骤的 step_documentation.md 文件。

View File

@@ -0,0 +1,6 @@
---
name: extract-steps-1
description: 从文档中提取开发步骤
model: sonnet
---
从步骤文档中提取并列出所有开发步骤。对于每个步骤,识别任务描述、要求和验收标准。以编号列表格式输出步骤。

View File

@@ -0,0 +1,6 @@
---
name: fix-bugs-1
description: 修复错误或完成开发
model: sonnet
---
修复验证过程中发现的任何错误或问题。继续在此步骤上工作,直到验证通过为止。

View File

@@ -0,0 +1,6 @@
---
name: fix-issues
description: 修复编译和语法问题
model: sonnet
---
修复所有已识别的编译和语法问题。修复后返回检查问题是否已解决。

View File

@@ -0,0 +1,6 @@
---
name: foreach-loop-start
description: 初始化foreach循环处理步骤
model: sonnet
---
初始化foreach循环以按顺序处理每个开发步骤。跟踪当前步骤索引和总步骤数。

View File

@@ -0,0 +1,6 @@
---
name: loop-back
description: 返回开发阶段
model: sonnet
---
返回开发阶段以继续修复当前步骤。循环返回直到验证通过。

View File

@@ -0,0 +1,6 @@
---
name: modify-direct
description: 直接修改
model: opus
---
直接进行修改并验证结果

View File

@@ -0,0 +1,6 @@
---
name: module-division
description: 将代码划分为测试模块
model: sonnet
---
分析代码库并将其划分为单元测试的逻辑模块。定义清晰的模块边界和职责。

View File

@@ -0,0 +1,6 @@
---
name: plan-steps
description: 步骤规划
model: opus
---
规划可验证的修改步骤,确保每个步骤都可验证,并形成步骤文档

View File

@@ -0,0 +1,6 @@
---
name: step-complete
description: 移动到下一步
model: sonnet
---
当前步骤成功完成。移动到序列中的下一步。如果这是最后一步,则标记工作流为完成。

View File

@@ -0,0 +1,6 @@
---
name: syntax-check
description: 检查编译和语法问题
model: sonnet
---
分析代码库中的编译错误和语法问题。识别所有需要在测试前修复的问题。

View File

@@ -0,0 +1,6 @@
---
name: unit-test-planning
description: 为前端规划单元测试
model: sonnet
---
为前端模块规划全面的单元测试。定义测试用例和预期行为。

View File

@@ -0,0 +1,6 @@
---
name: verify-step-1
description: 验证完成的步骤
model: sonnet
---
验证当前步骤是否已成功完成。检查是否满足所有要求,功能是否按预期工作。