skills/applying-code-principles/SKILL.md
Fundamental software principles - SOLID, DRY, Occam's Razor, Miller's Law, YAGNI, Readable Code. Use when: 原則, シンプル, 複雑, リファクタリング, 保守性, clean code, best practice.
npx skillsauth add thkt/dotclaude applying-code-principlesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Priority, thresholds, conflict resolution: see rules/PRINCIPLES.md and
rules/development/CODE_THRESHOLDS.md.
| Question | Principle | | --------------------- | ----------------------- | | Simpler way? | Occam's Razor | | <1 min to understand? | Miller's Law | | Duplicating? | DRY | | Needed now? | YAGNI | | CSS can do it? | Progressive Enhancement |
| Principle | Rule | | ----------------------- | ---------------------------------------------- | | DRY | Abstract on 3rd duplication (Rule of Three) | | SOLID | Interface only when 2nd implementation appears | | YAGNI | Build only if problem exists now | | Readable | New team member understands in < 1 minute | | Progressive Enhancement | HTML → CSS → JS (prefer earlier layer) |
tools
Delegate implementation to codex (coder) via the herdr-agentchat plugin and drive a two-pane conversation to completion.
development
Extract recurring patterns from past closed PRs/issues and the research findings in workspace/research/, verify them against the latest code, and propose them to docs/wiki/ via PR.
development
Create Decision Records (DR) in MADR v4 format with auto-numbering.
development
Detect flaky tests by shaking them — repeated runs under varied order, parallelism, and seed — plus a static smell scan that flags latent flakiness in tests that currently pass. Classify each target as confirmed-flaky, latent-flaky, or stable and fix the root cause without weakening the test. Do NOT use to fix a confirmed single bug (use /fix) or for static-only code review (use /audit).