/technical-standards
技术规范和最佳实践,确保代码质量和一致性
Claude Code
$ npx -y skills add echoVic/boss-skill --skill technical-standards --agent claude-code
Codex
$ npx skills add echoVic/boss-skill --skill technical-standards -a codex -y
Cursor
$ npx skills add echoVic/boss-skill --skill technical-standards -a cursor -y
Gemini CLI
$ npx skills add echoVic/boss-skill --skill technical-standards -a gemini-cli -y
GitHub Copilot
$ npx skills add echoVic/boss-skill --skill technical-standards -a github-copilot -y
OpenCode
$ npx skills add echoVic/boss-skill --skill technical-standards -a opencode -y
Windsurf
$ npx skills add echoVic/boss-skill --skill technical-standards -a windsurf -y
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: - 需要定义技术规范时 - 需要统一代码风格时 metadata: internal: true
技术规范与最佳实践
命名规范
| 类型 | 规范 | 示例 | | ---- | ---------------- | ---------------------------------------- | | 变量 | 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%
- 关键路径必须有测试
- 测试要独立、可重复
Languages / 语言 / 言語 / 언어 / Idiomas / Langues: English · 中文 · 日本語 · 한국어 · Español · Français · Português This project is part of the AtomGit G-Star Incubation Program.
Other skills on boss.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about technical-standards.
- Which coding agents can use technical-standards?
- technical-standards installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

