一键导入
coding-rules
Applies coding standards for clean, maintainable code. Use when: writing functions, handling errors, refactoring, or reviewing code style.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Applies coding standards for clean, maintainable code. Use when: writing functions, handling errors, refactoring, or reviewing code style.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guides PRD, ADR, Design Doc, and Work Plan creation. Use when: planning features, writing specs, or creating technical documents.
Detects code smells, anti-patterns, and debugging issues. Use when: fixing bugs, reviewing code quality, or refactoring.
Selects implementation strategy (vertical/horizontal/hybrid) with risk assessment. Use when: planning features or deciding development approach.
Designs integration and E2E tests with mock boundaries. Use when: writing E2E tests, integration tests, or reviewing test quality.
Validates approach and checks assumptions before/after tasks. Use when: starting work, encountering errors, or switching phases.
Applies TDD process, test quality criteria, and mock guidelines. Use when: writing unit tests, using mocks, or reviewing test quality.
| name | coding-rules |
| description | Applies coding standards for clean, maintainable code. Use when: writing functions, handling errors, refactoring, or reviewing code style. |
For language-specific rules, also read:
✅ Aggressive Refactoring
❌ Unused "Just in Case" Code - YAGNI principle
Parameter Management
✅ Good: createUser({name, email, role})
❌ Avoid: createUser(name, email, role, department, startDate)
Note: Use your language's idiomatic approach for grouping parametersDependency Injection
Absolute Rule: Error suppression prohibited. All errors must have log output and appropriate handling.
Layer-Specific Error Handling
Structured Logging and Sensitive Information Protection Never include sensitive information in logs:
Asynchronous Error Handling
✅ Recommended Practices
❌ Avoid These Practices
Basic Policy
Implementation Procedure
Priority Order
General Principles
Resource Management
File Structure
Modularity