skill/skills/tech-lead/technical-standards/SKILL.md
技术规范和最佳实践,确保代码质量和一致性
npx skillsauth add echovic/boss-skill tech-lead/technical-standardsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| 类型 | 规范 | 示例 |
|------|------|------|
| 变量 | camelCase | userName, isActive |
| 常量 | UPPER_SNAKE_CASE | MAX_COUNT, API_URL |
| 函数 | camelCase | getUserById, calculateTotal |
| 类 | PascalCase | UserService, OrderController |
| 文件 | kebab-case | user-service.ts, order-controller.ts |
testing
交互规范,定义加载状态、空状态、反馈机制、动效、无障碍等交互细节
content-media
设计变体模式,产出2-3个设计方案及 tradeoff 分析,供用户选择后确定最终方案
content-media
设计系统规范,包含颜色、字体、间距、圆角、阴影、动效等基础设计token
testing
UI组件规范,定义按钮、输入框、卡片等基础组件的变体、尺寸、状态