Entropy Review logo

Entropy Review

Community
liqiongyu
entropy-review

Review code changes for entropy introduction: naming drift, error-model splits, dependency violations, doc staleness, and pattern duplication. Activate when the user asks for "entropy review", "consistency check", "drift check on this PR", "check if this change introduces new patterns", or wants a review focused on naming, error handling, or structural consistency rather than correctness. Do NOT activate for general code review (use review), full repo audit (use repo-entropy-audit), control-plane audit (use control-plane-auditor), brainstorming, or implementation tasks.

Overview

Publisherliqiongyu
Repositorymy-agents
Skill nameentropy-review
Stars
29
Forks
3
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by liqiongyu on GitHub. Read the source before you install it.

Installation

Install the Entropy Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/liqiongyu/my-agents/tree/main/skills/entropy-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/liqiongyu/my-agents.git /tmp/my-agents
mkdir -p .claude/skills
cp -r /tmp/my-agents/skills/entropy-review .claude/skills/entropy-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Entropy Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Entropy Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Entropy Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Entropy Review

Review code changes for entropy introduction — naming drift, error-model fragmentation, dependency-direction violations, documentation staleness, state-model splits, and pattern duplication. This skill focuses on consistency and drift, not correctness or security.

For general code review (correctness, security, performance), use review. For full-repo entropy scanning, use repo-entropy-audit. For control-plane infrastructure audit, use control-plane-auditor.

When To Use

  • User asks to review a PR, diff, or staged changes for consistency
  • User wants to check if a change introduces naming drift or pattern fragmentation
  • User asks "does this PR introduce new patterns?" or "is this consistent with our conventions?"
  • After a larger coding session, before committing, to catch drift early

When Not To Use

  • General code review (correctness, security, performance) → review
  • Full repository entropy scan → repo-entropy-audit
  • Control plane / instruction file audit → control-plane-auditor
  • Documentation restructuring → project-documentation
  • Brainstorming or implementation → other skills

Prerequisites

This skill's effectiveness depends on constraint information in the target repository's instruction files (AGENTS.md, CLAUDE.md, etc.). Before starting, check for:

  • Glossary — canonical terms and prohibited aliases
  • Dependency rules — allowed/prohibited import directions
  • Error model — standard error envelope and boundary conventions
  • Naming conventions — case rules, verb patterns, file naming

If these are missing or thin, note this in the report under "Constraint Gaps" and suggest running control-plane-auditor to establish them first. Proceed with what is available — even without formal constraints, structural consistency can be assessed against surrounding code patterns.


Phase 1 — Scope

1a. Determine the change set

Detect what to review:

  • Staged changes: git diff --cached --name-only
  • Unstaged changes: git diff --name-only
  • PR or branch diff: git diff <base>...<head> --name-only
  • Specific files: as specified by the user

1b. Load constraint context

For each affected module/directory:

  1. Read the nearest AGENTS.md (walk up from the changed file)
  2. Read the root AGENTS.md
  3. Extract: glossary, dependency rules, error model, naming conventions, doc freshness rules, state model references
  4. If none found, note "no formal constraints available; reviewing against surrounding code patterns"

1c. Read surrounding context

For each changed file, read enough surrounding code to understand the local patterns:

  • What naming style does this module use?
  • What error handling pattern does this module use?
  • What imports exist in neighboring files?

Phase 2 — Analyze

Check the change set against six dimensions. Use the Entropy Checklist for detailed detection guidance.

2a. Naming Consistency

Compare new identifiers against:

  1. Glossary terms (if available) — is the canonical name used?
  2. Surrounding code — does the naming style match?
  3. Prohibited aliases — is a banned name being introduced?

Flag: new variants of existing concepts, mixed casing styles, non-canonical names.

2b. Error Handling Consistency

Compare new error handling against:

  1. Error model (if defined) — correct envelope? correct codes?
  2. Surrounding handlers — same pattern as adjacent code?
  3. Boundary conventions — consistent null/empty/throw behavior?

Flag: new envelope shapes, ad-hoc error codes, silent error swallowing, inconsistent boundary behavior.

2c. Dependency Direction

Compare new imports against:

  1. Dependency rules (if defined) — does this import violate a declared direction?
  2. Module layer — is this an upward or lateral import that breaks layering?
  3. Utility growth — is business logic being added to shared packages?

Flag: layer violations, bypassed adapters, business logic in util/common.

2d. Documentation Sync

Check:

  1. Doc freshness rules (if defined) — does this change trigger an "if X then update Y" rule?
  2. AGENTS.md references — if behavior changed, is the instruction file still accurate?
  3. API/interface changes — is corresponding documentation updated?

Flag: behavioral changes without doc updates, stale instruction file references.

2e. State Model

Check:

  1. New status/state/phase values — are they added to the canonical definition?
  2. New transitions — are they consistent with the documented state machine?
  3. Shadow definitions — is a new enum duplicating an existing state model?

Flag: shadow state definitions, undocumented state values, inconsistent transitions.

2f. Pattern Duplication

Check:

  1. Semantic duplicates — is similar logic already implemented elsewhere?
  2. Retired patterns — is the new code copying a pattern marked for retirement?
  3. Missed abstractions — could an existing shared function/type be reused?

Flag: reimplemented logic, copied deprecated patterns.


Phase 3 — Synthesize

Severity Levels

LevelNameMeaning
E0Pattern ForkIntroduces a new error model, state definition, or return format that directly conflicts with the project standard
E1Naming DriftIntroduces a new name for an existing concept, or uses inconsistent casing/style
E2Structural DeviationViolates dependency direction, penetrates layer boundaries, or adds business logic to shared packages
E3Doc DesyncChanges behavior but does not update corresponding documentation or instruction files
—SuggestionNot a problem, but could improve consistency

Finding Format

For each finding:

**[E1] Naming Drift** — `apps/api/src/auth/handler.ts:42`
New identifier `fetchUserProfile` uses "User" instead of glossary term "Member".
Surrounding code uses `getMember*` pattern.
→ Consider: rename to `fetchMemberProfile`

Verdict

  • ✅ Clean — no entropy findings (or only Suggestions)
  • ⚠️ Drift detected — E1-E3 findings; recommend fixing before merge
  • ❌ Pattern fork — E0 findings; strongly recommend fixing before merge

Constraint Gaps

If prerequisite constraints were missing, list them at the end:

## Constraint Gaps

The following constraint dimensions are not defined in this repository's
instruction files. Adding them would make future entropy reviews more effective:

- [ ] Glossary (no canonical terms defined)
- [ ] Error Model (no standard envelope documented)

→ Run `control-plane-auditor` to get a full gap analysis and improvement plan.

Phase 4 — Recommend

For each E0 or E1 finding:

  • Provide a specific fix suggestion (what to rename, which error model to use, which import path to use)
  • Reference the project standard if one exists (AGENTS.md section, glossary entry, error model doc)

For E2 and E3 findings:

  • Describe what needs to change and why
  • If the fix is straightforward, suggest it; if it requires broader refactoring, note that

Do not offer to apply fixes automatically — this skill is read-only. If the user wants fixes applied, they can use the normal implementation workflow.


Example Prompts

  • "Run an entropy review on my staged changes"
  • "Check this PR for consistency issues"
  • "Does this diff introduce any naming drift?"
  • "Entropy review the last commit"
  • "Check if this change is consistent with our error model"

Caveats

  • This skill is read-only. It reports findings but does not modify files.
  • Effectiveness depends heavily on the quality of constraint information in instruction files. Without a glossary, naming drift detection relies on surrounding code patterns (less reliable).
  • This skill reviews for consistency, not correctness. A perfectly consistent but logically wrong change will pass entropy review. Use review for correctness.
  • False positives are possible, especially for pattern duplication. The reviewer should use judgment about whether structural similarity indicates actual duplication or coincidental resemblance.
  • Generated code and vendored dependencies should be excluded from review scope.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Entropy Review AI skill do?

Review code changes for entropy introduction: naming drift, error-model splits, dependency violations, doc staleness, and pattern duplication. Activate when the user asks for "entropy review", "consistency check", "drift check on this PR", "check if this change introduces new patterns", or wants a review focused on naming, error handling, or structural consistency rather than correctness. Do NOT activate for general code review (use review), full repo audit (use repo-entropy-audit), control-plane audit (use control-plane-auditor), brainstorming, or implementation tasks.

Why use Entropy Review on TypingMind?

Because you install it once and use it with any model. Entropy Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Entropy Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/liqiongyu/my-agents/tree/main/skills/entropy-review. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Entropy Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Entropy Review?

As many as you like. As long as a model supports skills, you can use Entropy Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Entropy Review AI skill free?

Yes. It is published on GitHub by liqiongyu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇