Logo van Entropy Review

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.

Overzicht

Uitgeverliqiongyu
Repositorymy-agents
Skillnaamentropy-review
Sterren
29
Forks
3
Meegeleverde bestanden
3
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 3

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door liqiongyu op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Entropy Review in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/liqiongyu/my-agents/tree/main/skills/entropy-review
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Entropy Review in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Entropy Review automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Entropy Review niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Entropy Review gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Entropy Review bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Entropy Review in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/liqiongyu/my-agents/tree/main/skills/entropy-review. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Entropy Review gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Entropy Review gebruiken?

Zoveel als je wilt. Je kunt Entropy Review gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Entropy Review gratis?

Ja. Deze skill is door liqiongyu op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇