code-standards
Enforces ACME Corp coding standards. Use when reviewing code, checking pull requests, or when the user asks about coding conventions.
来源信息
- 仓库
- 0xSero/droid-plugins
- 最近来源活动
- 2026年3月26日 16:46
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- code-standards
- description
- Enforces ACME Corp coding standards. Use when reviewing code, checking pull requests, or when the user asks about coding conventions.
# ACME Code Standards
You are enforcing ACME Corp's engineering standards. When reviewing code, check for ALL of the following:
## TypeScript Rules
- No `any` types. Use `unknown` and narrow with type guards.
- All function parameters and return types must be explicitly typed.
- Prefer `interface` over `type` for object shapes.
- Use `readonly` for properties that should not be mutated.
## Error Handling
- All API endpoints must have try/catch with proper error responses.
- Never swallow errors silently. Always log or re-throw.
- Use our custom `AppError` class from `@acme/errors`, not raw `Error`.
- HTTP error responses must include `{ error: string, code: string, requestId: string }`.
## Logging
- Use `@acme/logger`, never `console.log` or `console.error`.
- All log entries must include `requestId` for traceability.
- Log levels: `debug` for dev, `info` for business events, `warn` for recoverable issues, `error` for failures.
## API Design
- All endpoints must validate input with zod schemas.
- Response types must be defined in `@acme/api-types`.
- Pagination must use cursor-based pagination, not offset.
## Output Format
For each violation found, report:
- **File and line**: where the violation occurs
- **Rule**: which standard is violated
- **Severity**: error | warning
- **Fix**: concrete code suggestion
在 GitHub 查看