coding-guidelines

kcenon 的头像作者 kcenon

提供质量、命名约定、错误处理、并发和内存管理的全面编码标准。在编写新代码、审查代码、修复错误或重构现有代码时使用。

📖 中文导读:提供质量、命名约定、错误处理、并发和内存管理的全面编码标准。在编写新代码、审查代码、修复错误或重构现有代码时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: coding-guidelines description: Provides comprehensive coding standards for quality, naming conventions, error handling, concurrency, and memory management. Use when writing new code, reviewing code, fixing bugs, or refactoring existing code.

Coding Guidelines Skill

When to Use

  • Writing new functions or classes
  • Code review requests
  • Bug fixes requiring code changes
  • Refactoring tasks

Reference Documents (Import Syntax)

Core Standards

@reference/general.md @reference/quality.md

Error & Safety

@reference/error-handling.md @reference/memory.md

Performance

@reference/concurrency.md @reference/performance.md

Core Principles

  1. Clear naming: Use names that reveal intent
  2. Single responsibility: One responsibility per function
  3. Comprehensive error handling: Handle all error paths
  4. Test coverage: Tests for critical paths