/technical-standards
技术规范和最佳实践,确保代码质量和一致性
$ npx -y skills add echoVic/boss-skill --skill technical-standards --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/technical-standards
Context preview
The summary Claude sees to decide when to auto-load this skill.
技术规范和最佳实践,确保代码质量和一致性
SKILL.md
technical-standards.SKILL.mdname: tech-lead/technical-standards description: 技术规范和最佳实践,确保代码质量和一致性 version: 1.0.0 agent: tech-lead type: guideline user-invocable: false agent-invocable: true dependencies: - shared/tech-stack-detection triggers: - 需要定义技术规范时 - 需要统一代码风格时
技术规范与最佳实践
命名规范
| 类型 | 规范 | 示例 | |------|------|------| | 变量 | camelCase | `userName`, `isActive` | | 常量 | UPPER_SNAKE_CASE | `MAX_COUNT`, `API_URL` | | 函数 | camelCase | `getUserById`, `calculateTotal` | | 类 | PascalCase | `UserService`, `OrderController` | | 文件 | kebab-case | `user-service.ts`, `order-controller.ts` |
代码组织
- **单一职责**:每个函数/类只做一件事
- **DRY原则**:不要重复代码
- **KISS原则**:保持简单
- **YAGNI原则**:不要过度设计
错误处理
- 使用try-catch捕获异常
- 提供有意义的错误信息
- 记录错误日志
- 优雅降级
测试要求
- 单元测试覆盖率 ≥ 70%
- 关键路径必须有测试
- 测试要独立、可重复
Boss is an auditable agent-team workflow for coding agents. It turns one coding agent into a structured engineering team: PM, Architect, UI Designer, Tech Lead, Scrum Master, Frontend, Backend, QA, and DevOps.
Repo: echoVic/boss-skill
Other skills on boss.
- /architecture-design
系统架构设计方法论,包含架构模式选择、系统分层、目录结构设计
Open skill - /data-api-design
数据模型和API设计方法论,包含ERD设计、数据字典、RESTful API规范
Open skill - /tech-research
技术调研方法论,通过系统性调研和对比分析,为技术选型提供数据支持
Open skill - /api-development
后端API开发方法论,包括RESTful/GraphQL设计、请求验证、错误处理和安全实现
Open skill - /testing-guide
后端测试编写指南,包括单元测试、集成测试和E2E测试的编写方法和最佳实践
Open skill - /brainstorming
需求澄清 Skill。当用户只给了模糊描述时自动触发,通过业务提问把一句话翻译成完整需求,交给 Boss 流水线执行。 Triggers: '我想做一个', '帮我做', '有个想法', 'brainstorm', '帮我规划一下', '做个XX', 'I want to build' Does NOT trigger: - 需求已经完整(包含做什么 + 给谁用 + 核心场景) - 纯技术问题或 bug 修复 Output: .boss/<feature>/design-brief.md 需求设计简报
Open skill

