# Odylith code hygiene guard

> Odylith code hygiene guard is an open-source agent skill for developer tools. Keeps your agent from adding duplicate helpers or splitting code into fake modules. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/odylith/odylith/tree/main/.claude/skills/odylith-code-hygiene-guard
- **Repository:** https://github.com/odylith/odylith
- **GitHub stars:** 36
- **License:** MIT
- **Skill name:** odylith-code-hygiene-guard
- **Collection:** https://github.com/odylith/odylith
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill gives a coding agent an anti-slop contract to apply when code quality starts to slip. It is aimed at three situations: duplicated helper functions, modularization that only moves code around without improving structure, and pressure to deal with files that have grown too large.

The SKILL.md in the Claude skills folder is a thin pointer. It contains only a reference to the main skill file at odylith/skills/odylith-code-hygiene-guard/SKILL.md, so the detailed rules live in that shared file inside the Odylith repository. There are no scripts bundled with it.

It is part of the Odylith project (MIT licensed, Python repository) and is meant to be loaded by the agent when one of these hygiene problems appears during a task.

## When your agent uses it

> Enforce the anti-slop contract when duplicate helpers, fake modularization, or oversized-file pressure show up.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/odylith/odylith/tree/HEAD/.claude/skills/odylith-code-hygiene-guard)
- [License: MIT](https://github.com/odylith/odylith/tree/HEAD/.claude/skills/odylith-code-hygiene-guard)

## Features

- **Duplicate helper checks:** Targets situations where the agent is tempted to add a helper that already exists elsewhere.
- **Fake modularization guard:** Addresses splitting code into new files or modules that add no real structure.
- **Oversized file handling:** Applies when a file grows large and the agent feels pressure to restructure it.
- **Shared skill reference:** Points to the main Odylith skill file so the rules are maintained in one place.

## Good for

- Review a change for helpers that duplicate existing code
- Stop a refactor that only splits a large file into hollow modules
- Decide how to handle a file that has become too large
- Keep agent-written code consistent with a project's hygiene rules

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/odylith-code-hygiene-guard` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/odylith/odylith.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/odylith-code-hygiene-guard &&
cp -R "$tmp/.claude/skills/odylith-code-hygiene-guard" ~/.claude/skills/odylith-code-hygiene-guard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/odylith-code-hygiene-guard` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/odylith-code-hygiene-guard` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/odylith/odylith.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/odylith-code-hygiene-guard &&
cp -R "$tmp/.claude/skills/odylith-code-hygiene-guard" ~/.agents/skills/odylith-code-hygiene-guard &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/odylith-code-hygiene-guard` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/odylith-code-hygiene-guard` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/odylith/odylith.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/odylith-code-hygiene-guard &&
cp -R "$tmp/.claude/skills/odylith-code-hygiene-guard" ~/.cursor/skills/odylith-code-hygiene-guard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/odylith-code-hygiene-guard` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/odylith/odylith.git --path .claude/skills/odylith-code-hygiene-guard
```

Or copy the folder to `~/.gemini/skills/odylith-code-hygiene-guard` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/odylith-code-hygiene-guard`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/odylith/odylith.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/odylith-code-hygiene-guard &&
cp -R "$tmp/.claude/skills/odylith-code-hygiene-guard" ~/.copilot/skills/odylith-code-hygiene-guard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/odylith-code-hygiene-guard` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/odylith/odylith.git
```

Then copy `odylith/.claude/skills/odylith-code-hygiene-guard` into your agent's skills folder as `odylith-code-hygiene-guard`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Odylith code hygiene guard trigger?

When duplicate helpers, fake modularization, or oversized-file pressure show up during a task.

### Does Odylith code hygiene guard run scripts?

No. The skill folder has a single SKILL.md file and no scripts.

### Where are the actual rules?

The file references odylith/skills/odylith-code-hygiene-guard/SKILL.md in the Odylith repository.

### What license is Odylith code hygiene guard under?

The repository is MIT licensed.

### How do I install Odylith code hygiene guard in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/odylith-code-hygiene-guard to use it in all your projects, or to .claude/skills/odylith-code-hygiene-guard in one project.

### Which AI agents can use Odylith code hygiene guard?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Odylith code hygiene guard?

The closest alternatives to Odylith code hygiene guard are Agentsmd optimize, Code simplifier, Odylith security hardening, Code review and quality and Code review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agentsmd optimize](https://ai-powered.com/skills/agentsmd-optimize): Agentsmd optimize is an open-source agent skill for developer tools.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.
- [Odylith security hardening](https://ai-powered.com/skills/odylith-security-hardening-odylith): Odylith security hardening is an open-source agent skill for security.
- [Code review and quality](https://ai-powered.com/skills/code-review-and-quality): Code review and quality is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.
- [Clean code](https://ai-powered.com/skills/clean-code): Clean code is an open-source agent skill for developer tools.
- [Code simplification](https://ai-powered.com/skills/code-simplification): Code simplification is an open-source agent skill for developer tools.
- [K code simplifier](https://ai-powered.com/skills/k-code-simplifier): K code simplifier is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/odylith-code-hygiene-guard-odylith
