Clean Code

Prefer small, explicit, readable C# code and pragmatic refactoring. Use for cleanup, maintainability reviews, naming improvements, duplication removal, and simplifying overly complex implementations.

9 stars 5 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add DIL8654/claude-code-dotnet-template --skill clean-code
Manual install
git clone --depth 1 https://github.com/DIL8654/claude-code-dotnet-template.git /tmp/claude-code-dotnet-template
mkdir -p ~/.claude/skills
cp -r /tmp/claude-code-dotnet-template/.claude/skills/clean-code ~/.claude/skills/clean-code

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Clean Code Skill

Write C# code that is easier to understand, safer to change, and simpler to test.

## When to Use
- Refactoring large or noisy methods
- Renaming unclear classes, methods, or variables
- Reducing duplication
- Simplifying controller, service, or handler logic
- Reviewing maintainability before merging

---

## Quick Reference: Core Principles

| Principle | Meaning | Warning Sign |
|-----------|---------|--------------|
| DRY | One source of truth for repeated knowledge | Copy-pasted validation or branching |
| KISS | Prefer the simplest solution that solves the problem | Overly abstract or generic code |
| YAGNI | Build what is needed now | Extra extension points with no current use |

---

## Naming

### Good Names
- Reveal intent
- Match business language
- Distinguish concepts clearly

```csharp
// BAD
int d;
string s;
List<Order> list;

// GOOD
int elapsedDays;
string customerEmail;
List<Order> overdueOrders;
```

### Boolean Naming

```csharp
// BAD
bool flag;
bool process;

// GOOD
bool isArchived;
bool hasAccess;
bool shouldRetry;
```

---

## Method Design

### Keep Methods Focused
Read the full skill on GitHub

Details

Skill name
clean-code
Path
.claude/skills/clean-code/SKILL.md
License
GPL-3.0
Repo updated
24 March 2026

FAQ

What does the Clean Code skill do?

Prefer small, explicit, readable C# code and pragmatic refactoring. Use for cleanup, maintainability reviews, naming improvements, duplication removal, and simplifying overly complex implementations.

How do I install the Clean Code skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add DIL8654/claude-code-dotnet-template --skill clean-code. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Clean Code popular?

It lives in DIL8654/claude-code-dotnet-template, which has 9 GitHub stars and 5 forks.

Related skills

API Contract Review

9

DIL8654/claude-code-dotnet-template

Review ASP.NET Core Web API contracts for HTTP semantics, versioning, backward compatibility, and response consistency. Use when the user asks to review an API, check endpoints, validate REST behavior, or before releasing contract changes.

Marketing, Sales & Business

Architecture Review

9

DIL8654/claude-code-dotnet-template

Review Clean Architecture boundaries, dependency direction, layering decisions, and abstraction quality in .NET solutions. Use when evaluating project structure, new dependencies, service boundaries, or architectural drift.

Software Development

Azure Integration

9

DIL8654/claude-code-dotnet-template

Add Azure services to .NET applications with Managed Identity, typed options, infrastructure isolation, and production-safe configuration. Use when wiring Key Vault, App Configuration, Storage, Service Bus, or Azure Identity patterns.

DevOps & Cloud

Token Efficiency

9

prangishviliAbe/agent-skills

Make responses and agent work cheaper to read and to run without losing correctness: concise answers, TL;DR, brief status updates and final summaries, just-the-code replies, and lean tool use that avoids rereading files, dumping logs, and repeating checks. Use whenever the user asks to be brief, short, or concise, says "less text", "just the code", "TLDR", or "save tokens", complains about limits or cost, or runs a long session where context is filling up. Puts the answer first, keeps the evidence, failures, and caveats that change decisions, replies in the user's language, and never trades co

Software Development

Web Development

9

prangishviliAbe/agent-skills

Build, fix, review, refactor, and ship web software in the existing stack: React, Next.js, and TypeScript front ends; Node, Python, and PHP back ends; REST and GraphQL APIs; SQL databases and migrations; payments, webhooks, and third-party integrations; forms and sign-in flows; WordPress and WooCommerce; CI and deploys. Use for implementing a feature, diagnosing a bug or flaky test, speeding up a slow page or query, reviewing a diff, upgrading a framework, or vague asks like "make this work" or "why is this broken". Reads the project first, uses the installed versions' real APIs, enforces trus

Software Development

Adobe Express Cors and Backend

9

Sandgrouse/adobe-express-dev-skill

Diagnose and fix CORS errors between Adobe Express add-on UI and backend APIs across local development, private listing, and public listing stages. Use when browser requests fail with preflight, Access-Control-Allow-Origin, Access-Control-Allow-Headers, or OPTIONS issues; when moving from localhost to hosted add-on URL; when deciding where network calls belong (iframe vs sandbox); or when hardening backend origin policy for production.

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.