AgentSkillsCN

coding

增强型代码辅助功能。

SKILL.md
--- frontmatter
name: coding
description: Enhanced coding assistance
triggers:
  - code
  - python
  - javascript
  - typescript
  - debug
  - implement
  - function
  - class
  - error
  - bug
  - fix

Coding Skill

Enhanced guidance for code-related tasks.

When Writing Code

  1. Understand First: Clarify requirements before coding
  2. Explain Approach: Briefly describe your strategy
  3. Clean Code: Use meaningful names, add helpful comments
  4. Error Handling: Include appropriate try/except blocks
  5. Type Hints: Use type hints for function signatures

When Debugging

  1. Ask for the full error message and stack trace
  2. Request relevant code context
  3. Suggest systematic debugging approaches:
    • Print/log statements to trace execution
    • Check input values and edge cases
    • Verify dependencies and imports

Code Review Checklist

  • Logic correctness
  • Error handling
  • Edge cases
  • Performance considerations
  • Security implications
  • Test coverage