资讯动态

Technology Stack Versions

发布时间:2026/9/19 0:35:45 来源:尧图企业网站定制
Technology Stack Versions【免费下载链接】BMAD-METHODBreakthrough Method for Agile Ai Driven Development项目地址: https://gitcode.com/gh_mirrors/bm/BMAD-METHODNode.js 20.x, TypeScript 5.3, React 18.2State: Zustand (not Redux)Testing: Vitest, Playwright, MSWStyling: Tailwind CSS with custom design tokens### 关键实现规则Critical Implementation Rules 记录代理仅凭阅读代码片段很难推导出来的模式与约定 markdown ## Critical Implementation Rules **TypeScript Configuration:** - Strict mode enabled — no any types without explicit approval - Use interface for public APIs, type for unions/intersections **Code Organization:** - Components in /src/components/ with co-located .test.tsx - Utilities in /src/lib/ for reusable pure functions - API calls use the apiClient singleton — never fetch directly **Testing Patterns:** - Unit tests focus on business logic, not implementation details - Integration tests use MSW to mock API responses - E2E tests cover critical user journeys only **Framework-Specific:** - All async operations use the handleError wrapper for consistent error handling - Feature flags accessed via featureFlag() from /lib/flags - New routes follow the file-based routing pattern in /src/app/写作原则聚焦非显而易见non-obvious的内容——即代理无法从代码片段中推断出来的事项。不要记录放之四海皆准的通用实践如使用有意义的变量名那是代理的默认行为。三种创建方式详解BMAD Method 提供三条创建路径分别适配不同的项目阶段核心步骤见 docs/cs/how-to/project-context.md。方式 A手动创建Manual当你能精确说出要文档化的规则时手动创建最合适。在项目根目录执行mkdir -p _bmad-output touch _bmad-output/project-context.md然后填入技术栈与实现规则完整的骨架文件如下含 frontmatter 元数据--- project_name: MyProject user_name: YourName date: 2026-02-15 sections_completed: [technology_stack, critical_rules] --- # Project Context for AI Agents ## Technology Stack Versions - Node.js 20.x, TypeScript 5.3, React 18.2 - State: Zustand - Testing: Vitest, Playwright - Styling: Tailwind CSS ## Critical Implementation Rules **TypeScript:** - Strict mode enabled, no any types - Use interface for public APIs, type for unions **Code Organization:** - Components in /src/components/ with co-located tests - API calls use apiClient singleton — never fetch directly **Testing:** - Unit tests focus on business logic - Integration tests use MSW for API mocking其中 frontmatter 中的sections_completed字段用于声明已完成写入的板块便于后续 workflow 识别文件状态。方式 B架构后生成Generate After Architecture架构设计完成后在新开的对话中运行bmad-generate-project-context该 workflow 会扫描你的架构文档与项目文件自动生成上下文文件把 solutioning 阶段做出的决策完整捕获下来。适合在架构完成后无痛沉淀决策。方式 C存量项目生成Generate for Existing Projects对于已有代码库同样运行bmad-generate-project-context【免费下载链接】BMAD-METHODBreakthrough Method for Agile Ai Driven Development项目地址: https://gitcode.com/gh_mirrors/bm/BMAD-METHOD创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价