OpenParable
Skip to content
← Back to skills

Tech Lead/technical Standards

Development
tech-lead/technical-standards

Tech Lead/technical Standards is an Agent Skill for development published in the hashgraph-online/awesome-codex-plugins repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

技术规范和最佳实践,确保代码质量和一致性

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/hashgraph-online/awesome-codex-plugins/blob/HEAD/plugins/echoVic/boss-skill/skill/skills/tech-lead/technical-standards/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/tech-lead-technical-standards, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

技术规范与最佳实践

命名规范

类型规范示例
变量camelCaseuserName, isActive
常量UPPER_SNAKE_CASEMAX_COUNT, API_URL
函数camelCasegetUserById, calculateTotal
类PascalCaseUserService, OrderController
文件kebab-caseuser-service.ts, order-controller.ts

代码组织

  • 单一职责:每个函数/类只做一件事
  • DRY原则:不要重复代码
  • KISS原则:保持简单
  • YAGNI原则:不要过度设计

错误处理

  • 使用try-catch捕获异常
  • 提供有意义的错误信息
  • 记录错误日志
  • 优雅降级

测试要求

  • 单元测试覆盖率 ≥ 70%
  • 关键路径必须有测试
  • 测试要独立、可重复