← Back to list

smith-principles
by tianjianjiang
AGENTS.md as dotfiles: Personal coding standards that follow you everywhere, Mr. Anderson.
⭐ 0🍴 0📅 Jan 10, 2026
SKILL.md
name: smith-principles description: Fundamental coding principles (DRY, KISS, YAGNI, SOLID, HHH). Use when starting any development task, evaluating implementation approaches, or reviewing code quality. Always active as foundation for all development decisions.
Fundamental Coding Principles
- Load if: Always active (foundation for all development)
- Prerequisites: None
CRITICAL (Primacy Zone)
- MUST apply DRY before adding features
- MUST apply KISS to choose simplest solution
- MUST apply YAGNI to defer unneeded implementation
- Violating Single Responsibility (one reason to change)
- Creating tight coupling (depend on abstractions instead)
- Duplicating code that could be abstracted
Core Principles
- DRY (Don't Repeat Yourself): Single source of truth
- KISS (Keep It Simple, Stupid): Simplest solution that works
- YAGNI (You Aren't Gonna Need It): Don't implement until needed
- SINE (Simple Is Not Easy): Simplicity requires deliberate effort
- MECE (Mutually Exclusive, Collectively Exhaustive): Complete coverage without overlap
- Occam's Razor: Prefer solutions with fewest assumptions
SOLID Principles
- S (Single Responsibility): One reason to change per class/module
- O (Open/Closed): Open for extension, closed for modification
- L (Liskov Substitution): Subtypes substitutable for base types
- I (Interface Segregation): Many specific interfaces over one general
- D (Dependency Inversion): Depend on abstractions, not concretions
HHH (AI Behavior)
- H (Helpful): Provide useful, actionable assistance
- H (Honest): Be truthful, acknowledge uncertainty
- H (Harmless): Avoid destructive operations without confirmation
- @smith-standards/SKILL.md - Universal coding standards
- @smith-guidance/SKILL.md - AI agent behavior (HHH framework)
ACTION (Recency Zone)
Before implementing:
- Check for existing abstractions (DRY)
- Choose simplest approach (KISS)
- Confirm feature is needed now (YAGNI)
- Verify single responsibility (SOLID-S)
Score
Total Score
45/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