Complete .trae/ core configuration: Skills, project rules, and Phase 4 workflow - #2
Merged
Merged
Conversation
NameIsHanhan
marked this pull request as ready for review
February 24, 2026 06:47
Copilot
AI
changed the title
[WIP] Update core configuration in .trae directory
Complete .trae/ core configuration: Skills, project rules, and Phase 4 workflow
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.trae/rules/and.trae/skills/were empty; workflows lacked Skill integration and a verification phase.New files
.trae/rules/project-rules.md— Language, output, PRD, and collaboration rules for AI to follow project-wide.trae/skills/requirement-clarifier.md— JTBD + X-Y Problem detection; outputs RDD cards.trae/skills/data-modeler.md— DDD-driven data modeling enforcing enterprise standards: Snowflake ID, soft delete, optimistic lock, audit fields, precise types (DECIMALfor money,DATETIMEoverTIMESTAMP, etc.).trae/skills/edge-case-detector.md— 5-dimension risk scan (interaction / concurrency / consistency / auth / time); outputs prioritized risk reports with solutions.trae/workflows/4-verify-iterate.md— 4-dimension self-check (logic / data / permissions / frontend), AC generation via Given-When-Then, issue backtracking table with diagnosis questions per phaseUpdated files
1-analyze-requirement.md— Step 1 prompt now invokes Requirement-Clarifier; outputs RDD card instead of free-form notes2-design-solution.md— Step 3 prompt enforces Data-Modeler standards; new Step 4 runs Edge-Case-Detector 5-dimension scan; prototype step requires TypeScript interface definitions + mock data3-generate-specs.md— Workflow diagram updated from 3 → 4 phases; added link to Phase 4AGENT.md— Added best-practice sections for PRD authoring, field lists, frontend demos; two concrete lessons-learned entries; project log entry for this milestoneREADME.md— Phase 4 added to quick-start;.trae/folder description now enumerates sub-directoriesRemoved
.trae/rules/.gitkeepand.trae/skills/.gitkeep— replaced by actual content.Original prompt
目标
在现有 PR #1 的分支
copilot/create-pm-ai-ide-workspace上继续追加文件,完善.trae/目录的核心配置内容。当前 PR 已创建了基础目录结构和 30 个文件,但.trae/rules/和.trae/skills/仍为空目录,workflows 也需要升级。需要完成的工作
1. 创建
.trae/rules/project-rules.md— 项目规则创建完整的项目规则文件,包含以下内容:
2. 创建
.trae/skills/requirement-clarifier.md— 需求挖掘专家当 [情境/触发条件] 时,
我想要 [完成的任务/达到的目标],
这样我就能 [获得的价值/避免的痛苦]。
用户活动(Activity)
└── 用户任务(Task)
└── 用户故事(Story)
└── 验收标准(AC)
🚫 反模式(不要这样做)
💡 使用提示
在 AI IDE 中使用此 Skill:
@requirement-clarifier或请用需求挖掘专家的方式分析drafts/目录