一键导入
design-principles
Code design patterns: pure functions, immutability, composition, and async. Use when designing code or functions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Code design patterns: pure functions, immutability, composition, and async. Use when designing code or functions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | design-principles |
| description | Code design patterns: pure functions, immutability, composition, and async. Use when designing code or functions. |
Patterns for writing clean, maintainable, and testable code.
// Pure function with immutability
function updateUser(user: User, age: number): User {
return { ...user, age }; // new object, no mutation
}
See rules.md for complete guidelines with examples.
JS/TS conventions for syntax, modules, and types. Use when writing or reviewing JavaScript/TypeScript code.
Go conventions for hexagonal architecture, project structure, error handling, testing, and observability. Use when writing Go services.
Code quality practices: error handling, validation, logging, and DRY. Use when writing or reviewing code.
Workflow rules for task execution, respecting user code, and git commits. Use when planning or executing development tasks.
System architecture: modules, project structure, ADRs, and testing. Use when designing or reviewing systems.
CI/CD and operations practices including GitHub Actions, Kubernetes, and operational tooling. Use when working with deployment and infrastructure.