Logo di 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.

Panoramica

Pubblicato daliqiongyu
Repositorymy-agents
Nome della skillentropy-review
Stelle
29
Fork
3
File inclusi
3
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 3

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da liqiongyu su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Entropy Review in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/liqiongyu/my-agents/tree/main/skills/entropy-review
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Entropy Review in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Entropy Review non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Entropy Review non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Entropy Review su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Entropy Review è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Entropy Review in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/liqiongyu/my-agents/tree/main/skills/entropy-review. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Entropy Review?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Entropy Review?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Entropy Review: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Entropy Review è gratuita?

Sì. È pubblicata su GitHub da liqiongyu con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇