athola/claude-night-market/code-quality-principles
- community
Checking that the SKILL.md file is still in the repository.
Applies KISS, YAGNI, and SOLID principles for clean code with reduced complexity. Use when refactoring or reviewing code for over-engineering.
Install
npx vskill@latest install athola/claude-night-market/code-quality-principlesSKILL.md
Code Quality Principles
Guidance on KISS, YAGNI, and SOLID principles with language-specific examples.
When To Use
- Improving code readability and maintainability
- Applying SOLID, KISS, YAGNI principles during refactoring
When NOT To Use
- Throwaway scripts or one-time data migrations
- Performance-critical code where readability trades are justified
KISS (Keep It Simple, Stupid)
Principle: Avoid unnecessary complexity. Prefer obvious solutions over clever ones.
Guidelines
| Prefer | Avoid | |
|---|---|---|
| Simple conditionals | Complex regex for simple checks | |
| Explicit code | Magic numbers/strings | |
| Standard patterns | Clever shortcuts | |
| Direct solutions | Over-abstracted layers |
Python Example
Rust Example
YAGNI (You Aren't Gonna Need It)
Principle: Don't implement features until they are actually needed.
Guidelines
| Do | Don't | |
|---|---|---|
| Solve current problem | Build for hypothetical futures | |
| Add when 3rd use case appears | Create abstractions for 1 use case | |
| Delete dead code | Keep "just in case" code | |
| Minimal viable solution | Premature optimization |
Python Example
TypeScript Example
SOLID Principles
Single Responsibility Principle
Each module/class should have one reason to change.
Open/Closed Principle
Open for extension, closed for modification.
Liskov Substitution Principle
Subtypes must be substitutable for their base types.
Interface Segregation Principle
Clients shouldn't depend on interfaces they don't use.
Dependency Inversion Principle
Depend on abstractions, not concretions.
Quick Reference
| Principle | Question to Ask | Red Flag | |
|---|---|---|---|
| KISS | "Is there a simpler way?" | Complex solution for simple problem | |
| YAGNI | "Do I need this right now?" | Building for hypothetical use cases | |
| SRP | "What's the one reason to change?" | Class doing multiple jobs | |
| OCP | "Can I extend without modifying?" | Switch statements for types | |
| LSP | "Can subtypes replace base types?" | Overridden methods with side effects | |
| ISP | "Does client need all methods?" | Empty method implementations | |
| DIP | "Am I depending on abstractions?" | new keyword in business logic |
When Principles Conflict
- KISS vs SOLID: For small projects, KISS wins. Add SOLID patterns as complexity grows.
- YAGNI vs DIP: Don't add abstractions until you have 2+ implementations.
- Readability vs DRY: Prefer slight duplication over wrong abstraction.
Integration with Code Review
When reviewing code, check:
- [ ] No unnecessary complexity (KISS)
- [ ] No speculative features (YAGNI)
- [ ] Each class has single responsibility (SRP)
- [ ] No god classes (> 500 lines)
- [ ] Dependencies are injected, not created (DIP)
Verification: Run wc -l <file> to check line counts and rg -c "class " <file> (or grep -c "class " <file>) to count classes per file.
Related Skills
imbue:karpathy-principles- The "Simplicity First" principle wraps KISS, YAGNI, and SOLID into a four-principle synthesis derived from Karpathy's observations on LLM coding pitfalls- See
docs/quality-gates.md#skill-level-quality-gate-compositionfor the full gate-skill federation graph
Exit Criteria
- [ ] Every proposed code change checked against the integration
review checklist: no unnecessary complexity (KISS), no speculative features (YAGNI), single responsibility per class (SRP), no god classes over 500 lines, dependencies injected not created (DIP)
- [ ] When KISS and SOLID conflict, the resolution is documented:
KISS wins for small projects, SOLID patterns applied as complexity grows. The choice is explicit, not silent
- [ ]
wc -l <file>run on any modified file and result noted if
the file exceeds 500 lines (god-class threshold)
- [ ] No new abstraction introduced with only one implementor unless
it serves as a mock boundary for testing
Security
- Security scanPassedPattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/conserve/skills/code-quality-principles/SKILL.md
Popularity
- Repository stars
- 310
- Repository forks
- 27
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/athola/claude-night-market/code-quality-principles)