スキル一覧に戻る
shredbx

dev-code-quality

by shredbx

3D model demo example with Three.js

0🍴 0📅 2025年11月11日
GitHubで見るManusで実行

SKILL.md


name: dev-code-quality description: Code Quality Standards. Use it everytime you plan or implement any code.

Universal Code Quality Standards

Naming Conventions (adapt to language case style)

  • Classes/Types: nouns that represent concepts
  • Functions/Methods: verbs that describe actions
  • Booleans: questions (is/has/can/should)
  • Constants: descriptive, not abbreviated
  • Avoid: abbreviations, single letters (except i,j for loops), mental mapping

Function Design

  • Single responsibility
  • Maximum 3-4 parameters
  • One level of abstraction
  • No side effects unless name indicates
  • Early returns for guard clauses
  • Pure functions when possible

Code Organization

  • Group related code together
  • Order: public before private
  • Most important/high-level code first
  • Dependencies at top

Comments

  • Why, not what (code explains what)
  • Explain non-obvious business rules
  • Document gotchas and workarounds
  • Keep comments updated with code
  • Prefer self-documenting code over comments

Error Handling

  • Fail fast, fail clearly
  • Specific error types
  • Include context in error messages
  • Don't swallow exceptions
  • Log appropriately

Magic Numbers

  • Extract to named constants
  • Explain the meaning, not just the value

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です