entropy-scan

entropy-scan is a skill for Claude Code, Codex from Insajin/autopus-adk. It costs 22 tokens per session (716 once invoked), scanned A, original, MIT.

A codebase health scan that measures disorder and highlights technical debt, meaning code problems that make future changes slower or riskier. It checks complexity, dependencies, repeated code, file size, and recent change frequency.

In plain words
What is it for?
Use it to find complex functions, circular dependencies, duplicated logic, oversized files, and high-risk hotspots. It is designed around Go projects and uses tools such as gocyclo and go list.
Why use it?
It turns scattered maintenance concerns into ranked areas for improvement. This helps identify files that are both difficult and frequently changed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to find complex functions, circular dependencies, duplicated logic, oversized files, and high-risk hotspots. It is designed around Go projects and uses tools such as gocyclo and go list.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/insajin/autopus-adk/entropy-scan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Insajin/autopus-adk --skill entropy-scan
Clone the repo
git clone --depth 1 https://github.com/Insajin/autopus-adk

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for entropy-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/insajin/autopus-adk/entropy-scan/github.svg)](https://agentmods.dev/skills/insajin/autopus-adk/entropy-scan)
Your own site
<a href="https://agentmods.dev/skills/insajin/autopus-adk/entropy-scan"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/entropy-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for entropy-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/insajin/autopus-adk/entropy-scan"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/entropy-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00716
Opus 5 $0.00011 $0.00358
Sonnet 5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

Measured 10d ago against content hash 5f9da67f1903, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

entropy-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.omp/skills/entropy-scan/SKILL.md · 95 lines

What it actually says

Entropy Scan Skill

코드베이스의 엔트로피(무질서도)를 측정하고 개선이 필요한 영역을 탐지합니다.

엔트로피 지표

순환 복잡도 (Cyclomatic Complexity)

임계값:
- 1-5: 단순, 유지보수 용이
- 6-10: 보통, 주의 필요
- 11-15: 복잡, @AX:WARN 태그 추가
- 16+: 매우 복잡, 즉시 리팩토링 권장

결합도 (Coupling)

# Go 의존성 분석
go list -f '{{.ImportPath}} {{.Imports}}' ./... | sort

# 순환 의존성 탐지
go build ./... 2>&1 | grep "import cycle"

중복 코드 (Code Duplication)

탐지 기준:
- 동일 로직 3회 이상 반복
- 유사 함수 5개 이상
- 같은 상수 여러 파일에 정의

파일 크기 (File Size)

임계값:
- 200줄 이하: 정상
- 200-500줄: 주의
- 500-1000줄: 분리 권장
- 1000줄 이상: 즉시 분리

엔트로피 스캔 절차

1단계: 핫스팟 식별

변경 빈도 × 복잡도로 핫스팟 파악:

# 자주 변경되는 파일 (최근 3개월)
git log --since="3 months ago" --format="%H" | \
  xargs -I{} git diff-tree --name-only -r {} | \
  sort | uniq -c | sort -rn | head -20

2단계: 복잡도 측정

# Go: gocyclo 사용
gocyclo -over 10 ./...

# 함수 길이 분석
awk '/^func /{f=$0} /^}$/{if(NR-s>50) print NR-s, FILENAME, f; s=NR}' \
  $(find . -name "*.go" -not -name "*_test.go")

3단계: 개선 우선순위 결정

우선순위 = 변경 빈도 × 복잡도 × 결합도

P1 (즉시): 점수 > 100, 핵심 비즈니스 로직
P2 (이번 스프린트): 점수 50-100
P3 (백로그): 점수 < 50

출력 형식

## Entropy Scan 결과

### 요약
- 스캔 파일 수: N
- 발견된 이슈: N
- 최우선 개선 파일: [파일명]

### 핫스팟 Top 5
| 파일 | 복잡도 | 변경 횟수 | 엔트로피 점수 |
|------|--------|-----------|-------------|

### 권장 조치
1. [파일명] - [이슈 설명] - [권장 조치]
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 95 lines · 22 tokens per session scan A 5f9da67f1903

Subscribe to this mod's changes

entropy-scan is a skill published in the GitHub repository Insajin/autopus-adk (111 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 716 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.