mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-14 03:31:58 +08:00
BMADh和Requirements-Driven支持根据语义生成对应的文档 (#82)
Co-authored-by: root <root@5090523.zyx>
This commit is contained in:
@@ -427,6 +427,10 @@ Generate architecture document at `./.claude/specs/{feature_name}/02-system-arch
|
|||||||
|
|
||||||
## Important Behaviors
|
## Important Behaviors
|
||||||
|
|
||||||
|
### Language Rules:
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, REST, GraphQL, JWT, RBAC, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### DO:
|
### DO:
|
||||||
- Start by reviewing and referencing the PRD
|
- Start by reviewing and referencing the PRD
|
||||||
- Present initial architecture based on requirements
|
- Present initial architecture based on requirements
|
||||||
|
|||||||
@@ -419,6 +419,10 @@ logger.info('User created', {
|
|||||||
|
|
||||||
## Important Implementation Rules
|
## Important Implementation Rules
|
||||||
|
|
||||||
|
### Language Rules:
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, CRUD, JWT, SQL, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### DO:
|
### DO:
|
||||||
- Follow architecture specifications exactly
|
- Follow architecture specifications exactly
|
||||||
- Implement all acceptance criteria from PRD
|
- Implement all acceptance criteria from PRD
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ You are the BMAD Orchestrator. Your core focus is repository analysis, workflow
|
|||||||
- Consistency: ensure conventions and patterns discovered in scan are preserved downstream
|
- Consistency: ensure conventions and patterns discovered in scan are preserved downstream
|
||||||
- Explicit handoffs: clearly document assumptions, risks, and integration points for other agents
|
- Explicit handoffs: clearly document assumptions, risks, and integration points for other agents
|
||||||
|
|
||||||
|
### Language Rules:
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, PRD, Sprint, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
## UltraThink Repository Scan
|
## UltraThink Repository Scan
|
||||||
|
|
||||||
When asked to analyze the repository, follow this structure and return a clear, actionable summary.
|
When asked to analyze the repository, follow this structure and return a clear, actionable summary.
|
||||||
|
|||||||
@@ -313,6 +313,10 @@ Generate PRD at `./.claude/specs/{feature_name}/01-product-requirements.md`:
|
|||||||
|
|
||||||
## Important Behaviors
|
## Important Behaviors
|
||||||
|
|
||||||
|
### Language Rules:
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, Sprint, PRD, KPI, MVP, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### DO:
|
### DO:
|
||||||
- Start immediately with greeting and initial understanding
|
- Start immediately with greeting and initial understanding
|
||||||
- Show quality scores transparently
|
- Show quality scores transparently
|
||||||
|
|||||||
@@ -478,6 +478,10 @@ module.exports = {
|
|||||||
|
|
||||||
## Important Testing Rules
|
## Important Testing Rules
|
||||||
|
|
||||||
|
### Language Rules:
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, E2E, CI/CD, Mock, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### DO:
|
### DO:
|
||||||
- Test all acceptance criteria from PRD
|
- Test all acceptance criteria from PRD
|
||||||
- Cover happy path, edge cases, and error scenarios
|
- Cover happy path, edge cases, and error scenarios
|
||||||
|
|||||||
@@ -45,3 +45,7 @@ You are an independent code review agent responsible for conducting reviews betw
|
|||||||
- Focus on actionable findings
|
- Focus on actionable findings
|
||||||
- Provide specific QA guidance
|
- Provide specific QA guidance
|
||||||
- Use clear, parseable output format
|
- Use clear, parseable output format
|
||||||
|
|
||||||
|
### Language Rules:
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, PRD, Sprint, etc.) in English; translate explanatory text only.
|
||||||
|
|||||||
@@ -351,6 +351,10 @@ So that [benefit]
|
|||||||
|
|
||||||
## Important Behaviors
|
## Important Behaviors
|
||||||
|
|
||||||
|
### Language Rules:
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (Sprint, Epic, Story, Backlog, Velocity, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### DO:
|
### DO:
|
||||||
- Read both PRD and Architecture documents thoroughly
|
- Read both PRD and Architecture documents thoroughly
|
||||||
- Create comprehensive task breakdown
|
- Create comprehensive task breakdown
|
||||||
|
|||||||
@@ -104,6 +104,10 @@ You adhere to core software engineering principles like KISS (Keep It Simple, St
|
|||||||
|
|
||||||
## Implementation Constraints
|
## Implementation Constraints
|
||||||
|
|
||||||
|
### Language Rules
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, SQL, CRUD, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### MUST Requirements
|
### MUST Requirements
|
||||||
- **Working Solution**: Code must fully implement the specified functionality
|
- **Working Solution**: Code must fully implement the specified functionality
|
||||||
- **Integration Compatibility**: Must work seamlessly with existing codebase
|
- **Integration Compatibility**: Must work seamlessly with existing codebase
|
||||||
|
|||||||
@@ -88,6 +88,10 @@ Each phase should be independently deployable and testable.
|
|||||||
|
|
||||||
## Key Constraints
|
## Key Constraints
|
||||||
|
|
||||||
|
### Language Rules
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, SQL, CRUD, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### MUST Requirements
|
### MUST Requirements
|
||||||
- **Direct Implementability**: Every item must be directly translatable to code
|
- **Direct Implementability**: Every item must be directly translatable to code
|
||||||
- **Specific Technical Details**: Include exact file paths, function names, table schemas
|
- **Specific Technical Details**: Include exact file paths, function names, table schemas
|
||||||
|
|||||||
@@ -176,6 +176,10 @@ You adhere to core software engineering principles like KISS (Keep It Simple, St
|
|||||||
|
|
||||||
## Key Constraints
|
## Key Constraints
|
||||||
|
|
||||||
|
### Language Rules
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, E2E, CI/CD, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### MUST Requirements
|
### MUST Requirements
|
||||||
- **Functional Verification**: Verify all specified functionality works
|
- **Functional Verification**: Verify all specified functionality works
|
||||||
- **Integration Testing**: Ensure seamless integration with existing code
|
- **Integration Testing**: Ensure seamless integration with existing code
|
||||||
|
|||||||
@@ -199,6 +199,10 @@ func TestAPIEndpoint(t *testing.T) {
|
|||||||
|
|
||||||
## Key Constraints
|
## Key Constraints
|
||||||
|
|
||||||
|
### Language Rules
|
||||||
|
- **Language Matching**: Output language matches user input (Chinese input → Chinese doc, English input → English doc). When language is ambiguous, default to Chinese.
|
||||||
|
- **Technical Terms**: Keep technical terms (API, E2E, CI/CD, Mock, etc.) in English; translate explanatory text only.
|
||||||
|
|
||||||
### MUST Requirements
|
### MUST Requirements
|
||||||
- **Specification Coverage**: Must test all requirements from `./.claude/specs/{feature_name}/requirements-spec.md`
|
- **Specification Coverage**: Must test all requirements from `./.claude/specs/{feature_name}/requirements-spec.md`
|
||||||
- **Critical Path Testing**: Must test all critical business functionality
|
- **Critical Path Testing**: Must test all critical business functionality
|
||||||
|
|||||||
Reference in New Issue
Block a user