Skip to content
Skill

Odylith code hygiene guard

Keeps your agent from adding duplicate helpers or splitting code into fake modules

Odylith code hygiene guard is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
36
Last commit
License
MIT
Listing updated

Similar skills

About Odylith code hygiene guard

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (227 bytes) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Odylith code hygiene guard 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 Code simplifier, Code review and quality, Code review, Clean code and Code simplification.

Where this comes from

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

More from odylith/odylith

  1. Lets the agent give a scenario-aware demo of what Odylith can do for a repo

    • Open source
    • 36 GitHub stars
    • Developer tools
  2. Lets an agent refresh Atlas diagrams using change-watch metadata in Odylith

    • Open source
    • 36 GitHub stars
    • Developer tools
  3. Lets the agent render Atlas diagrams from the Mermaid catalog in Odylith

    • Open source
    • 36 GitHub stars
    • Developer tools
  4. Lets an agent create grounded backlog workstreams in the Odylith Radar

    • Open source
    • 36 GitHub stars
    • Developer tools
  5. Validate Radar backlog items and their linkage to plans in an Odylith repo

    • Open source
    • 36 GitHub stars
    • Developer tools
  6. Files a grounded Odylith Casebook bug report from concrete failure evidence and repro

    • Open source
    • 36 GitHub stars
    • Developer tools