clean-code SKILL.md skillA

clean-code from flurdy/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add flurdy/agent-skills/clean-code@v1.1.0

Pins v1.1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
flurdy/agent-skills
Path
skills/clean-code/SKILL.md
Versions recorded
5
Latest version
v1.1.0, committed Jul 18, 2026
First version recorded
Jul 13, 2026
Size
1,422 bytes
Repository stars
9
License
MIT

Format, lint, and fix all warnings across the entire codebase — including test files and pre-existing issues.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Clean Code

Format, lint, and fix all warnings across the entire codebase — including test files and pre-existing issues.

## Usage

```
/clean-code
```

## Instructions

### 1. Run the project's clean-code target

Each project defines a `make clean-code` Makefile target with the appropriate tooling for its language/stack.

```bash
make clean-code
```

### 2. Fix remaining issues

If `make clean-code` fails or reports warnings/errors that couldn't be auto-fixed, investigate and fix them manually. Do NOT leave any warnings unresolved.

### 3. Verify clean state

Re-run the target to confirm it passes cleanly:

```bash
make clean-code
```

It must exit with zero warnings and zero errors.

## Rules

- Do not skip or suppress warnings (e.g. `eslint-disable`, `#[allow(...)]`, `@SuppressWarnings`) unless there is a genuine false positive with a clear justification
- Do not change the project's formatter or linter configuration
- If a fix changes behavior (not just style), flag it to the user before applying
- Test files are in scope — do not skip them
- Pre-existing issues must be fixed, not just new code

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add flurdy/agent-skills/clean-code@sha256:24fbb5ccacd00896

The line at the top of this page pins the label v1.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_aql5csmrtyf7aqcf.svg)](https://markdownregistry.com/a/art_aql5csmrtyf7aqcf)

6 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Jul 13, 2026 and Jul 18, 2026, about one every day.

versioncommittedcommitsizeaudit
v1.1.0 latest2026-07-18 38882a2 1,422 BA view · diff
v1.1.02026-07-16 475376a 1,498 BA view · diff
v1.0.02026-07-14 78fb28e 1,499 BA view · diff
v1.0.02026-07-13 8fc31d6 1,492 BA view · diff
v1.0.02026-07-13 aa6a897 1,479 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (1422 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

flurdy/agent-skills · 9 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_aql5csmrtyf7aqcf
GET https://markdownregistry.com/api/v1/resolve?ref=flurdy/agent-skills/clean-code
GET https://markdownregistry.com/api/v1/blob/24fbb5ccacd008969050adee33881b1525bfbe0bcc1f52345089e5a59e38b40d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from flurdy/agent-skills

AGENTS.md AGENTS.md file
flurdy/agent-skills · AGENTS.md
git:20260630.7b39634 · audit B · 9 stars
CLAUDE.md CLAUDE.md file
flurdy/agent-skills · CLAUDE.md
git:20261030.c3f0705 · audit A · 9 stars
architect SKILL.md skill
flurdy/agent-skills · skills/architect/SKILL.md · Architecture and implementation planning gate for complex or high-blast-radius work. Produces evidence-backed…
v2.1.0 · audit A · 9 stars
artifact-hygiene SKILL.md skill
flurdy/agent-skills · skills/artifact-hygiene/SKILL.md · Run a local-only, read-only advisory audit of publishable working-tree files and unpublished branch history with…
v0.7.0 · audit A · 9 stars
backlog-groom SKILL.md skill
flurdy/agent-skills · skills/backlog-groom/SKILL.md · Auto-detects workspace unfinished backlogs across unique stores; otherwise local open beads. Flags thin prose, missing…
v0.2.3 · audit A · 9 stars
beads-check-dolt-migration SKILL.md skill
flurdy/agent-skills · skills/beads-check-dolt-migration/SKILL.md · Detect whether a beads repository needs classic-to-Dolt migration or an in-place Dolt schema upgrade.
v1.1.1 · audit A · 9 stars
beads-migrate-to-dolt SKILL.md skill
flurdy/agent-skills · skills/beads-migrate-to-dolt/SKILL.md · Safely migrate classic Beads data or upgrade a Dolt schema, preserving backups and remote history. Repository aftercare…
v2.2.0 · audit A · 9 stars
beads-setup SKILL.md skill
flurdy/agent-skills · skills/beads-setup/SKILL.md · Preview and separately confirm a fresh repository Beads store with a dedicated private GitHub Dolt remote. Refuses…
v0.2.1 · audit A · 9 stars
beads SKILL.md skill
flurdy/agent-skills · skills/beads/SKILL.md · Shared Beads workflow baseline. Use whenever an agent uses `bd`, manages durable tasks, blockers, or handoffs, resolves…
v0.11.1 · audit A · 9 stars
breakdown SKILL.md skill
flurdy/agent-skills · skills/breakdown/SKILL.md · Read-only overview for one Jira ticket, grounded in relevant code: Problem, Solution, Steps, and Open questions. Use…
v1.0.1 · audit A · 9 stars
browser-screenshot SKILL.md skill
flurdy/agent-skills · skills/browser-screenshot/SKILL.md · Take a screenshot of the running web application for visual verification of UI/CSS changes. Use when iterating on…
v1.2.0 · audit A · 9 stars
circleci-status SKILL.md skill
flurdy/agent-skills · skills/circleci-status/SKILL.md · Check CircleCI build status and failed job logs for the current GitHub repository. Use when asked whether CircleCI is…
v1.0.2 · audit A · 9 stars

Every file in flurdy/agent-skills

Other files named clean-code

clean-code SKILL.md skill
ciembor/agent-rules-books · clean-code/SKILL.md · Apply Robert C. Martin-inspired clean code rules when improving readability, naming, function design, responsibilities…
git:20260909.802595f · audit A · 3,214 stars
clean-code SKILL.md skill
wondelai/skills · plugins/code-craftsmanship/skills/clean-code/SKILL.md · Write readable, maintainable code through disciplined naming, small functions, and clean error handling. Use when the…
v1.4.0 · audit A · 2,640 stars
clean-code SKILL.md skill
wondelai/skills · clean-code/SKILL.md · Write readable, maintainable code through disciplined naming, small functions, and clean error handling. Use when the…
v1.4.0 · audit A · 2,640 stars
clean-code SKILL.md skill
wondelai/skills · plugins/wondelai-skills/skills/clean-code/SKILL.md · Write readable, maintainable code through disciplined naming, small functions, and clean error handling. Use when the…
v1.4.0 · audit A · 2,640 stars
clean-code SKILL.md skill
decebals/claude-code-java · skills/clean-code/SKILL.md · Clean Code principles (DRY, KISS, YAGNI), naming, function design and readability. Use when code is hard to read, with…
git:20260828.d70ab4f · audit A · 768 stars
clean-code SKILL.md skill
asymmetric-al/core · .agents/skills/clean-code/SKILL.md · Applies principles from Robert C. Martin's 'Clean Code'. Use this skill when writing, reviewing, or refactoring code to…
git:20261001.4ae104e · audit A · 370 stars
clean-code SKILL.md skill
mindrally/skills · clean-code/SKILL.md · Clean, maintainable, human-readable code principles combined with anti-over-engineering discipline: naming, single…
git:20261008.7682ca7 · audit A · 301 stars
clean-code SKILL.md skill
techygarg/lattice · skills/clean-code/SKILL.md · Apply clean code principles when generating or modifying implementation code. Enforces function focus, naming clarity…
git:20260903.6d09876 · audit A · 211 stars

Browse by kind, by grade A, or by owner.