Back to list
hanai

fundamental-coding-principles

by hanai

Claude Code Marketplace

0🍴 0📅 Nov 16, 2025

SKILL.md


name: fundamental-coding-principles description: Apply SOLID, DRY, KISS, YAGNI, and SSOT principles when writing, reviewing, or refactoring code to ensure maintainability and quality.

Fundamental Coding Principles

Apply this skill to keep code changes focused, testable, and maintainable.

Quick Checklist

  • Confirm each edit has a single purpose before coding.
  • Ruthlessly remove duplication or dead paths you touch.
  • Only add behavior backed by an explicit requirement.
  • Prefer simple, composable solutions over clever ones.
  • Keep truthy data and decisions in one authoritative place.

Principle Guardrails

SOLID

  • S: Validate the change impacts one reason to vary; split helpers if mixed concerns appear.
  • O: Extend behavior through new types or functions rather than rewriting stable code paths.
  • L: Ensure new subtype logic preserves caller expectations (inputs, return contracts, exceptions).
  • I: Create targeted interfaces; avoid forcing consumers to implement unused members.
  • D: Depend on abstractions or injected collaborators; eliminate hardwired globals where possible.

DRY

  • Scan for repeated logic, constants, or schemas; consolidate into shared utilities before finishing.
  • Prefer extracting reusable modules over copy-pasting even inside the same file.

KISS

  • Trim optional branches, flags, and polymorphism unless they solve today’s requirement.
  • Keep functions short and state minimal; decompose complex flows into readable steps.

YAGNI

  • Challenge every new feature, parameter, or hook: is there a verified need right now?
  • Defer premature abstractions until duplication or clear requirements emerge.

SSOT

  • Update or create the canonical definition (config, schema, doc) when data models change.
  • Remove divergent caches or mirrors unless you enforce sync in the same change.

Reference Playbooks

Score

Total Score

35/100

Based on repository quality metrics

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
言語

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

0/5
タグ

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

0/5

Reviews

💬

Reviews coming soon