code-quality
Code quality mastery — programming principles (SOLID, DRY, KISS, YAGNI…), refactoring techniques, and design patterns to write clean, maintainable, extensible…
Skill by Satcomx00-x00
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/satcomx00-x00-code-quality
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-quality
What's inside
- Skill name
code-quality- Description
- Code quality mastery — programming principles (SOLID, DRY, KISS, YAGNI…), refactoring techniques, and design patterns to write clean, maintainable, extensible software.
- License
- MIT
- Metadata
- author: Satcomx00-x00 · version: 1.0.0
- Instructions
- 348 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (35)
- SKILL.md
- SKILL.md · abstract-factory/
- SKILL.md · adapter/
- SKILL.md · bridge/
- SKILL.md · builder/
- SKILL.md · chain-of-responsibility/
- SKILL.md · command/
- SKILL.md · composite/
- SKILL.md · decompose-conditional/
- SKILL.md · decorator/
- SKILL.md · extract-class/
- SKILL.md · extract-method/
- SKILL.md · extract-variable/
- SKILL.md · facade/
- SKILL.md · factory-method/
- SKILL.md · flyweight/
- SKILL.md · guard-clauses/
- SKILL.md · inline-method/
- SKILL.md · introduce-parameter-object/
- SKILL.md · iterator/
- SKILL.md · mediator/
- SKILL.md · memento/
- SKILL.md · move-method/
- SKILL.md · observer/
- SKILL.md · prototype/
- SKILL.md · proxy/
- SKILL.md · replace-conditional-polymorphism/
- SKILL.md · replace-magic-number/
- SKILL.md · replace-temp-with-query/
- SKILL.md · separate-query-from-modifier/
- SKILL.md · singleton/
- SKILL.md · state/
- SKILL.md · strategy/
- SKILL.md · template-method/
- SKILL.md · visitor/
SKILL.md (first lines)
# code-quality
Code quality mastery — programming principles (SOLID, DRY, KISS, YAGNI…), refactoring techniques, and design patterns to write clean, maintainable, extensible software.
## Instructions
Apply code quality practices to continuously improve codebases:
### Programming Principles
Core principles every codebase should follow regardless of language or paradigm.
#### SOLID
Five OOP principles that make systems easy to extend and maintain:
| Principle | Full name | Rule |
|-----------|-----------|------|
| **S** | Single Responsibility | A class/module has one reason to change |
| **O** | Open/Closed | Open for extension, closed for modification |
| **L** | Liskov Substitution | Subtypes must be substitutable for their base type |
| **I** | Interface Segregation | Prefer many small interfaces over one fat interface |
| **D** | Dependency Inversion | Depend on abstractions, not concretions |
**S — Single Responsibility**
```ts
// ❌ one class handles both data and formatting
class Report { generate() {} formatAsPdf() {} sendByEmail() {} }
// ✅ each class has one job
class Report { generate(): ReportData {} }
class PdfRenderer { render(data: ReportData): Buffer {} }
class Mailer { send(to: string, body: Buffer) {} }
```
**O — Open/Closed**
```ts
// ❌ must edit existing class to add discount type
class Discount { calc(type: string, price: number) {
if (type === 'vip') return price * 0.8;
if (type === 'seasonal') return price * 0.9;
}}
// ✅ add new behaviour by adding a new class
interface Discount { apply(price: number): number; }
class VipDiscount implements Discount { apply(p) { return p * 0.8; } }
class SeasonalDiscount implements Discount { apply(p) { return p * 0.9; } }
```
**L — Liskov Substitution**
```ts
// ❌ Square overrides setWidth in a way that violates Rectangle's contract
class Rectangle { setWidth(w: number) {} setHeight(h: number) {} area() {} }
class Square extends Rectangle { setWidth(w: number) { super.setWidth(w); super.setHeight(w); } }
// ✅ use a shared Shape interface instead of inheritance
interface Shape { area(): number; }
class Rectangle implements Shape { area() { return this.w * this.h; } }
class Square implements Shape { area() { return this.side ** 2; } }
```
**I — Interface Segregation**
```ts
// ❌ Printer forced to implement fax it doesn't support
interface Machine { print(): void; scan(): void; fax(): void; }
// ✅ split into focused interfaces
interface Printer { print(): void; }
interface Scanner { scan(): void; }
interface Fax { fax(): void; }
class SimplePrinter implements Printer { print() {} }
```
**D — Dependency Inversion**
```ts
// ❌ high-level module depends on low-level concrete class
class OrderService { private db = new MySqlDatabase(); }
// ✅ depend on an abstraction; inject the implementation
interface Database { save(data: object): void; }
class OrderService { constructor(private db: Database) {} }
```
---
#### DRY — Don't Repeat Yourself
> "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." — The Pragmatic Programmer
- **Duplication of logic** → extract into a shared function, class, or module
- **Duplication of data** → derive it from a single source of truth; don't copy-paste constants
- **Duplication of structure** → use generics, templates, or higher-order functions
- **What DRY is NOT**: don't blindly deduplicate code that looks the same but represents different concepts — premature abstraction is worse than duplication
```ts
// ❌ same validation logic copy-pasted in three places
function createUser(email: string) { if (!email.includes('@')) throw new Error('Invalid'); }
function updateUser(email: string) { if (!email.includes('@')) throw new Error('Invalid'); }
// ✅ single source of truth
function assertValidEmail(email: string) { if (!email.includes('@')) throw new Error('Invalid email'); }
function createUser(email: string) { assertValidEmail(email); }
function updateUser(email: string) { assertValidEmail(email); }
```
---
#### KISS — Keep It Simple, Stupid
> "Simplicity is the ultimate sophistication." — Leonardo da Vinci
- Write the simplest solution that solves the problem
- Avoid clever tricks, unnecessary abstractions, and premature generalisation
- Code is read far more often than it is written — optimise for the reader
- If you need a comment to explain *what* code does, the code is probably too complex
```ts
// ❌ over-engineered
const isAdult = (age: number) => !!(age >= 18 ? true : false) === true;From Satcomx00-x00/skills-db, MIT.
More from Satcomx00-x00/skills-db
- 0.470score
frontend-smell
Satcomx00-x00
Deep-audit TypeScript, React, Next.js (App Router) and frontend-design code for smells — patterns that ship but corrode performance, a11y, type safety, bundle…
SkillCFreshness: CClaude Code +9 - 0.409score
cowork-plugin-customizer
Satcomx00-x00
Customize a Claude Code plugin for a specific organization's tools and workflows.
SkillDFreshness: DClaude Code +9 - 0.406score
code-review
Satcomx00-x00
Code review standards and checklist — how to give constructive feedback, what to look for, and how to approve or request changes effectively.
SkillDFreshness: DClaude Code +9 - 0.406score
devops
Satcomx00-x00
CI/CD pipeline design and DevOps practices — GitHub Actions workflows, deployment strategies, infrastructure-as-code patterns, and observability basics.
SkillDFreshness: DClaude Code +9 - 0.406score
docker
Satcomx00-x00
Docker containerization best practices — writing lean Dockerfiles, multi-stage builds, image security, and docker-compose patterns for local development.
SkillDFreshness: DClaude Code +9 - 0.406score
backend
Satcomx00-x00
Backend and API design patterns — RESTful and GraphQL API conventions, error handling, pagination, authentication patterns, and database best practices.
SkillDFreshness: DClaude Code +9 - 0.406score
git
Satcomx00-x00
Git workflow best practices — conventional commits, branching strategy, rebase/merge patterns, and commit hygiene for clean project history.
SkillDFreshness: DClaude Code +9 - 0.406score
frontend
Satcomx00-x00
Frontend development patterns — component design, accessibility, performance optimisation, and state management best practices for modern web UIs.
SkillDFreshness: DClaude Code +9 - 0.406score
betterauth
Satcomx00-x00
BetterAuth integration patterns — setup, session management, OAuth providers, middleware protection, and security best practices for authentication in…
SkillDFreshness: DClaude Code +9 - 0.406score
nextjs
Satcomx00-x00
Next.js 15 / React 19 state-of-the-art — App Router, async request APIs, use cache directive, Turbopack, Server Functions, Partial Prerendering, and…
SkillDFreshness: DClaude Code +9 - 0.406score
saas
Satcomx00-x00
SaaS state-of-the-art — multi-tenancy, usage-based billing, PLG, AI feature integration, modern observability, compliance, and security for production…
SkillDFreshness: DClaude Code +9 - 0.405score
doc-operationnelle
Satcomx00-x00
Skill based on "Documentation opérationnelle : structurer pour retrouver" (blog.stephane-robert.info).
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 20, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- Repository
- github.com/Satcomx00-x00/skills-db
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Satcomx00-x00
- 0.470score
frontend-smell
Satcomx00-x00
Deep-audit TypeScript, React, Next.js (App Router) and frontend-design code for smells — patterns that ship but corrode performance, a11y, type safety, bundle…
SkillCFreshness: CClaude Code +9 - 0.409score
cowork-plugin-customizer
Satcomx00-x00
Customize a Claude Code plugin for a specific organization's tools and workflows.
SkillDFreshness: DClaude Code +9 - 0.406score
backend
Satcomx00-x00
Backend and API design patterns — RESTful and GraphQL API conventions, error handling, pagination, authentication patterns, and database best practices.
SkillDFreshness: DClaude Code +9 - 0.406score
devops
Satcomx00-x00
CI/CD pipeline design and DevOps practices — GitHub Actions workflows, deployment strategies, infrastructure-as-code patterns, and observability basics.
SkillDFreshness: DClaude Code +9 - 0.406score
code-review
Satcomx00-x00
Code review standards and checklist — how to give constructive feedback, what to look for, and how to approve or request changes effectively.
SkillDFreshness: DClaude Code +9 - 0.406score
betterauth
Satcomx00-x00
BetterAuth integration patterns — setup, session management, OAuth providers, middleware protection, and security best practices for authentication in…
SkillDFreshness: DClaude Code +9
Cite this page
code-quality skill. Agent Mart. https://agentmart.dev/skills/satcomx00-x00-code-quality (last updated 2026-10-24)