Логотип Repo Entropy Audit

Repo Entropy Audit

Сообщество
liqiongyu
repo-entropy-audit

Full-repository entropy scan across six axes: structure (dependency graph, layering, SCC), semantics (naming diversity, state model fragmentation), behavior (error model variants, boundary handling), context (doc freshness, instruction-file coverage), protocol (instruction-file consistency), and control (rule enforcement gaps). Produces a module-level heatmap, trend comparison, and prioritized cleanup targets. Activate when the user asks for "entropy audit", "repo health scan", "heatmap", "tech debt scan", or "full entropy report". Do NOT use for PR-level review (use entropy-review) or control-plane audit (use control-plane-auditor).

Add to TypingMind

Обзор

Издательliqiongyu
Репозиторийmy-agents
Название навыкаrepo-entropy-audit
Звёзды
29
Форки
3
Файлы в комплекте
5
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 5

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — liqiongyu. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Repo Entropy Audit в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/liqiongyu/my-agents/tree/main/skills/repo-entropy-audit
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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/repo-entropy-audit .claude/skills/repo-entropy-audit
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Repo Entropy Audit в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Repo Entropy Audit, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Repo Entropy Audit не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Repo Entropy Audit

Scan an entire repository for entropy across six axes and produce a module-level heatmap, trend comparison against a stored baseline, and prioritized cleanup targets.

This skill examines the code itself for entropy patterns. For auditing the control system (instruction files, rules, guards), use control-plane-auditor. For PR-level consistency checks, use entropy-review.

When To Use

  • Periodic health check (monthly, quarterly, or before major releases)
  • User asks for a full entropy scan, heatmap, or tech debt overview
  • User wants to compare current state against a previous baseline
  • User asks "where should we focus cleanup effort?"

When Not To Use

  • Reviewing a specific PR or diff → entropy-review
  • Auditing instruction files and control infrastructure → control-plane-auditor
  • Reviewing code for correctness → review
  • Auditing dependencies → dependency-audit

Phase 1 — Scope

1a. Determine scan scope

  • Full repo (default): scan all source directories
  • Specific modules: user can specify a subset of modules/directories
  • Exclude: node_modules/, dist/, .git/, vendored code, generated output

1b. Identify module structure

Detect the project's module/package layout:

bash
# Monorepo packages
ls apps/ packages/ libs/ services/ 2>/dev/null

# Or single-app with directory-based modules
ls src/

Build a module list. Each module becomes a row in the heatmap.

1c. Check for existing baseline

bash
ls .entropy-baseline/latest.json 2>/dev/null

If a baseline exists, load it for trend comparison in Phase 3.

1d. Load constraint context

Read available instruction files and extract any defined constraints (glossary, dependency rules, error model, naming conventions). These improve scan accuracy but are not required.


Phase 2 — Scan

For each module, scan across six axes. Use Scan Dimensions for detailed methods.

Adapt commands to the project's tech stack. The reference methods target TypeScript/JavaScript but the principles apply to any language.

2a. Structure

For each module:

  • Dependency direction: identify imports, check for layer violations
  • Circular dependencies: check for SCCs in the import graph
  • Utility coupling: measure util/common/helpers directory size and who depends on them
  • File size distribution: find oversized files (> 500 lines)

Score: 🟢 low / 🟡 medium / 🔴 high per Heatmap Format.

2b. Semantics

For each module:

  • Naming diversity: for core domain concepts, count identifier variants
  • State definition scatter: count files defining status/state enums per entity
  • Glossary compliance: if glossary exists, check canonical vs alias usage

Score per heatmap guidelines.

2c. Behavior

For each module:

  • Error handling patterns: classify (try-catch, promise catch, Result type, null return, silent default)
  • Error envelope variants: count distinct error response shapes (API modules)
  • Boundary behavior: sample null/empty handling for consistency

Score per heatmap guidelines.

2d. Context

For each module:

  • Instruction file presence: does the module have a substantive AGENTS.md/CLAUDE.md?
  • Doc freshness: compare doc last-modified vs code last-modified
  • Dead references: check for broken links in instruction files

Score per heatmap guidelines.

2e. Protocol

For each module:

  • Template compliance: does the instruction file follow the project's standard template?
  • Verification consistency: are verification commands present and consistent with peers?
  • CI gate alignment: does CI enforce the same gates for this module as for others?

Score per heatmap guidelines.

2f. Control

For each module:

  • Rule enforcement ratio: documented rules vs automated enforcement
  • Cleanup markers: count TODO/FIXME/HACK/deprecated markers
  • Health check coverage: is this module included in doctor/health scripts?

Score per heatmap guidelines.


Phase 3 — Synthesize

3a. Module-Level Heatmap

Produce the heatmap table using the format in Heatmap Format.

Each module gets a row with scores on all six axes plus a derived priority column.

3b. Trend Comparison

If a previous baseline exists:

  • Compare module scores: which improved, which worsened, which are new
  • Compare aggregate metrics: total high-entropy modules, instruction file count, etc.
  • Highlight the most significant changes

Format per Baseline Format § Trend Comparison.

3c. High-Spread Patterns

Identify the patterns with highest replication risk:

  • Which problematic patterns appear in multiple modules?
  • Which patterns are still being actively copied (evidence from recent commits)?
  • How many files/modules are affected?

Rank by: (occurrence count) × (recency of replication).

3d. Cleanup Priorities

Rank cleanup targets by (impact × inverse effort):

  1. High-spread, low-effort items first (e.g., naming unification with search-replace)
  2. High-spread, medium-effort items next (e.g., error model unification)
  3. High-spread, high-effort items last (e.g., structural decomposition of SCC)

For each target, suggest which tool or skill can help:

  • Naming unification → refactoring task
  • Error model → review + architecture decision
  • Structural issues → implementation-planning for phased refactor
  • Doc gaps → project-documentation or control-plane-auditor

Phase 4 — Baseline

4a. Generate snapshot

Write a baseline snapshot to .entropy-baseline/latest.json using the format in Baseline Format.

If a previous latest.json exists, rename it to .entropy-baseline/<date>.json before writing the new one.

4b. Confirm with user

Before writing the baseline file, show the user:

  • Summary of what will be stored
  • File location
  • Whether a previous baseline will be archived

Proceed only with user confirmation.


Methodology References

Example Prompts

  • "Run an entropy audit on this repo"
  • "Generate an entropy heatmap"
  • "Where should we focus cleanup effort?"
  • "Compare entropy against last month's baseline"
  • "Scan packages/api for entropy"

Caveats

  • Full-repo scans on large monorepos may consume significant tokens. Consider scanning modules individually for very large codebases.
  • Scores are trend signals, not absolute measurements. A 🟡 in one project may represent a different absolute level than 🟡 in another. Do not compare across projects.
  • The heatmap identifies where entropy is concentrated, not why. Understanding root causes requires reading the code. Use findings as starting points for investigation, not as definitive judgments.
  • Detection methods use heuristic shell commands and pattern matching. They will miss some issues and may flag false positives. Judgment is still required.
  • Baseline files contain project metadata. Consider whether they should be gitignored or committed, depending on your project's preferences.
  • This skill writes only to .entropy-baseline/. It does not modify source code, tests, or documentation.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Repo Entropy Audit?

Full-repository entropy scan across six axes: structure (dependency graph, layering, SCC), semantics (naming diversity, state model fragmentation), behavior (error model variants, boundary handling), context (doc freshness, instruction-file coverage), protocol (instruction-file consistency), and control (rule enforcement gaps). Produces a module-level heatmap, trend comparison, and prioritized cleanup targets. Activate when the user asks for "entropy audit", "repo health scan", "heatmap", "tech debt scan", or "full entropy report". Do NOT use for PR-level review (use entropy-review) or cont...

Зачем использовать Repo Entropy Audit в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Repo Entropy Audit — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Repo Entropy Audit в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/liqiongyu/my-agents/tree/main/skills/repo-entropy-audit. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Repo Entropy Audit?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Repo Entropy Audit?

С любым количеством. В TypingMind вы можете использовать Repo Entropy Audit с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Repo Entropy Audit?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — liqiongyu. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Auto Qa

openclaw
ОрганизацияПопулярный

Проводите масштабные автономные кампании QA и проверки в реальном времени и под нагрузкой во всех подсистемах OpenClaw, подтверждайте исправления и формируйте отчёт с доказательствами, который можно продолжить.

82.2K
391K
Файлы: 5
Открыть
Логотип openclaw

Autoreview

openclaw
ОрганизацияПопулярный

Проводите структурированный анализ кода по прямому запросу; в первую очередь используйте OpenAI/Codex, а затем Claude.

82.2K
391K
Файлы: 12
Открыть
Логотип openclaw

Claw Score

openclaw
ОрганизацияПопулярный

Проверяйте или обновляйте документацию с оценочной картой зрелости OpenClaw на основе корневой таксономии, оценок зрелости и артефактов QA, не используя данные maintainer discrawl или закоммиченные отчёты об инвентаризации.

82.2K
391K
Файлы: 51
Открыть
Логотип openclaw

Clawsweeper

openclaw
ОрганизацияПопулярный

Для любых задач ClawSweeper: отчёты о проверке issue/PR в OpenClaw, задания на исправление, PR с облачными исправлениями, команды упоминания сопровождающих @clawsweeper, доверенные автоисправления и автомерж после проверки ClawSweeper, мониторинг GitHub Actions…

82.2K
391K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇