tech-leadtechnical-standards
Solid技术规范和最佳实践,确保代码质量和一致性
AI & Automation 546 stars
46 forks Updated 1 weeks ago MIT
Install
Quality Score: 89/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 技术规范与最佳实践
## 命名规范
| 类型 | 规范 | 示例 |
|------|------|------|
| 变量 | 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%
- 关键路径必须有测试
- 测试要独立、可重复
Details
- Author
- echoVic
- Repository
- echoVic/boss-skill
- Created
- 5 months ago
- Last Updated
- 1 weeks ago
- Language
- TypeScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
coding-standards
Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.
148,923 Updated 2 months ago
affaan-m Code & Development Solid
tech-leadcode-review
代码审查方法,包含审查清单、常见问题、最佳实践
546 Updated 1 weeks ago
echoVic AI & Automation Solid
test-driven-development
在实现任何功能或修复 bug 时使用,在编写实现代码之前
5,232 Updated 1 weeks ago
jnMetaCode