skymanbp

CodeEraser — AI skill for Claude Code

AI community

An eraser against LLM-induced code & document entropy — clone/duplication/deadcode/structure judgment (Haskell core, Rust frontend) with Claude Code guard hooks, MCP, CI gates and a Tauri GUI.

How to install CodeEraser

This entry records only its repository, not the path inside it, so there is no exact command to give. Open skymanbp/CodeEraser and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What CodeEraser does

An eraser against LLM-induced code & document entropy — clone/duplication/deadcode/structure judgment (Haskell core, Rust frontend) with Claude Code guard hooks, MCP, CI gates and a Tauri GUI.

Alternatives in AI

  • Agency Agents — A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject 148k ★
  • Artifacts Builder — Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech 97.5k ★
  • Desktop Cc Gui — Multi-engine AI coding desktop client (Tauri) 4.4k ★

README

CodeEraser

[![ci](https://github.com/skymanbp/CodeEraser/actions/workflows/ci.yml/badge.svg)](https://github.com/skymanbp/CodeEraser/actions/workflows/ci.yml) [![crates.io](https://img.shields.io/crates/v/codeeraser)](https://crates.io/crates/codeeraser) [![npm](https://img.shields.io/npm/v/codeeraser)](https://www.npmjs.com/package/codeeraser) [![license](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) [![site](https://img.shields.io/badge/site-codeeraser.dev-e4574a)](https://codeeraser.dev)

English | **[中文](README.zh.md)**

An eraser against LLM-induced code & document entropy.

The GUI's structure treemap and score, judging this repository

LLMs drift toward stacking and patching over long-lived work: the same function implemented twice, the same fact written in three places, updates that arrive as appends, files that only ever grow. CodeEraser fights that drift at the moment of writing — a Rust CLI + Tauri GUI in front of a Haskell judgment core, shipped as a Claude Code plugin with PreToolUse/Stop interception, a read-only MCP report surface, pre-commit, and CI exit codes.

What CodeEraser does

  1. It refuses a duplicate before it exists. A write that would introduce an exact T1/T2 clone — duplication the content being replaced did not already carry — is denied at PreToolUse; the interception happens at writing time, not in a report you read afterwards, and a denied move is told the ordering that passes.
  2. It refuses a file past its hard line. A write that leaves a file over 750 lines — or over the line that file's [[rules.class]] declares — is denied the same way.
  3. It finds documentation written twice. Repeated paragraphs, comments and docstrings anywhere in the tree, with --check turning the finding into a CI exit code.
  4. It finds the clones that editing disguised. Near-miss blocks are matched by tree edit distance over syntax, so a renamed and re-o