AgentSkillsCN

code-style

坚持统一的代码风格,并采用易于审阅的差异对比。

SKILL.md
--- frontmatter
name: code-style
description: Apply consistent code style and review-friendly diffs
license: MIT
compatibility: opencode
metadata:
  audience: developers
  scope: project

What I do

  • Prefer small, reviewable changes
  • Keep naming consistent with nearby code
  • Avoid unrelated refactors mixed with functional changes

Checklist

  • Run formatters/linters when available
  • Keep functions small and single-purpose
  • Add tests when behavior changes
  • Update docs when user-facing behavior changes

Output format

  • If you propose code edits: provide a short rationale and a minimal patch