code-bloat-stinger skill
scripts다양한 분석 도구를 사용하여 코드 중복, 미사용 코드 및 구조적 비대화를 측정하는 읽기 전용 코드베이스 감사 기능을 수행합니다.
- GitHub 스타
- 95
- 파일
- 22
- 마지막 커밋
- 2026년 10월 18일
- 라이선스
- AGPL-3.0-or-later
- 허용된 도구
- —
code-bloat-stinger skill은 무엇을 하나요?
다양한 분석 도구를 사용하여 코드 중복, 미사용 코드 및 구조적 비대화를 측정하는 읽기 전용 코드베이스 감사 기능을 수행합니다.
skill의 SKILL.md에서 생성된 요약입니다.
code-bloat-stinger skill 정보
이 SKILL은 개발자와 창업자가 코드베이스의 중복, 미사용 코드 및 구조적 비대화를 측정할 수 있도록 지원합니다. 원본 소스를 변경하지 않도록 저장소의 임시 복사본을 생성하여 읽기 전용 감사를 수행합니다. 중복 감지를 위한 jscpd, JavaScript 및 TypeScript 미사용 코드 감지를 위한 knip, 그리고 기타 환경을 위한 vulture 또는 cargo와 같은 언어별 특화 도구를 사용합니다. 또한 라인 수를 세기 위해 cloc 또는 scc를 사용하며, 함수 및 클로저 구조를 분석하기 위해 lizard를 활용합니다.
에이전트가 기술 부채를 수치화하거나 대형 파일의 분해 계획을 세워야 할 때 이 SKILL을 로드해야 합니다. 상세한 메트릭, 분석 결과, 분할 계획 및 등급 판정을 생성합니다. 이 SKILL은 Claude Code, Cursor, Codex, Cowork와 호환되며, Node 20.19 이상 및 Python 3.9 이상이 필요합니다. 실제 리팩터링이나 코드 삭제를 수행하기보다는 보고 및 감사 목적으로 설계되었습니다.
agent가 수행할 수 있는 작업
- 1코드 중복 수치화특정 토큰 크기를 사용하여 저장소에서 복사하여 붙여넣은 코드가 차지하는 비중을 확인합니다.
- 2데드 코드 식별코드베이스 내의 미사용 파일, export 및 의존성을 찾아 실제 데드 코드의 비율을 추정합니다.
- 3파일 분할 계획 수립대형 파일과 복잡한 함수를 분석하여 이를 분해하기 위한 전략을 세웁니다.
- 4정리 작업 진행 상황 검증리팩터링 단계 이후 감사를 다시 실행하여 개선 사항에 대한 수치적 증거를 제공합니다.
skill의 SKILL.md를 기반으로 작성되었습니다. 모든 사용 사례는 해당 문서의 인용구와 대조 확인되었습니다.
code-bloat-stinger skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.플러그인에 code-bloat-stinger skill 설치
/plugin marketplace add legioncodeinc/vibe-coding-tools /plugin install code-audit-tools@wasp-nest
Claude Code에 code-bloat-stinger skill 설치
~/.claude/skills/code-bloat-stinger/SKILL.md
$ npx degit legioncodeinc/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger ~/.claude/skills/code-bloat-stingerClaude Code (project)에 code-bloat-stinger skill 설치
.claude/skills/code-bloat-stinger/SKILL.md
$ npx degit legioncodeinc/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger .claude/skills/code-bloat-stingerCodex에 code-bloat-stinger skill 설치
~/.agents/skills/code-bloat-stinger/SKILL.md
$ npx degit legioncodeinc/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger ~/.agents/skills/code-bloat-stingerGemini CLI에 code-bloat-stinger skill 설치
~/.gemini/skills/code-bloat-stinger/SKILL.md
$ npx degit legioncodeinc/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger ~/.gemini/skills/code-bloat-stingerClaude.ai에 code-bloat-stinger skill 설치
npx degit legioncodeinc/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger code-bloat-stinger && zip -r code-bloat-stinger.zip code-bloat-stinger # claude.ai → Customize → Skills → + → Create skill → Upload a skill → code-bloat-stinger.zip
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 검증되지 않았습니다. 스킬은 점수 80, 심각한 발견 없음, 검사에 충분한 데이터가 필요합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능legioncodeinc/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger is public and reachablegithub.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins ↗통과
- 오픈 소스 라이선스 (OSI)AGPL-3.0-or-later is not OSI-approvedspdx.org/licenses/AGPL-3.0-or-later.html ↗결함 발견
- 최근 1년 내 커밋 또는 릴리스Last commit 2026-10-18github.com/legioncodeinc/vibe-coding-tools/commits ↗통과
- 스크립트에 다운로드 후 실행이나 자격 증명 탈취가 없음5 of 6 scripts read; none of them downloads and runs code, the rest were not read결함 발견
- SKILL.md에 숨겨진 지침 없음No override phrases, safeguard switches, credential requests or hidden charactersgithub.com/legioncodeinc/vibe-coding-tools/blob/HEAD/plugins ↗통과
- 사전 허용 도구가 제한됨No pre-approved tools; the agent asks before using onegithub.com/legioncodeinc/vibe-coding-tools/blob/HEAD/plugins ↗통과
- SKILL.md가 Agent Skills 형식을 따름the description does not say when to use the skillgithub.com/legioncodeinc/vibe-coding-tools/blob/HEAD/plugins ↗결함 발견
SKILL.md
GitHub에서 보기Code Bloat Stinger
Designed and built by Legion Code Inc.
Where this skill's files are
Every path below (guides/, references/, scripts/) is relative to the folder that contains this SKILL.md. In Claude Code that folder is ${CLAUDE_SKILL_DIR}. If that text was not replaced with a real path, find the folder yourself (Glob for **/code-bloat-stinger/SKILL.md) and use it as SKILL_DIR in every command.
Requirements
Node 20.19 or newer, Python 3.9 or newer, and Perl for cloc or a downloaded scc binary (Go or Cargo only for those repos). The commands in references/tool-commands.md are bash (env -i, bash arrays, [ ] tests): on Windows, run them in Git Bash or WSL, not PowerShell or cmd. The throwaway copy (audit-my-code-stinger/scripts/make_scratch_copy.py) and this skill's scripts/*.py are plain Python and run anywhere.
Purpose
Answer "how bloated is this codebase, and why?" with numbers a founder can trust. The skill measures three kinds of bloat separately, because they have different causes and fixes: copy-pasted code (jscpd at two clone sizes, with both the standard and the both-copies figure), unused code (knip for JS and TS, vulture, deadcode, staticcheck or cargo tools elsewhere, always checked by hand before it is called dead), and shape (share of code in files over 1,000 lines, the largest functions, factory closures, and a split plan). It writes the bloat dimension of an Audit My Code run (01-bloat/) under the shared contract, and never changes the audited repository: every tool runs in a throwaway copy that is removed afterwards. The method reproduces a hand-run reference audit (WHIPT, 2026-09-30) on any repository.
When to use
- "Is this codebase bloated?", "is it bloated because it was vibe coded?", "how much is copy-pasted?", "how much dead code is there?"
- The
bloatdimension of/audit-my-codeat thevibe,basic,full, ormariotier - Measuring duplication, unused files, exports and dependencies, file and function size, or planning how to split giant files
- Re-running the same measures after a cleanup to show what changed
When not to use
- Security weaknesses:
security-stingerand the framework security Drones (02-security/) - Whether the code matches its plan, tests, or quality bar:
quality-stinger(03-quality/) - Repo setup, CI, docs, and hygiene: the foundation Drone (
00-foundation/) - Actually deleting code or refactoring: this skill only reports; remediation belongs to the
mariotier and the owning engineering Drone - Dependency vulnerability triage:
dependency-audit-stinger
Procedure
- Read
guides/00-scoping-and-throwaway-copy.md. Readintake.json, make the copy withgit archive, install pinned tools outside the copy, write the scope and file list, capturegit statusof the audited repo, pick the language route. - Run duplication per
guides/01-duplication-with-jscpd.md: 50 and 100 tokens, size and line caps lifted, scan coverage checked against the file list, thenscripts/jscpd_recount.pyfor both copies, per area, big versus small files, and top pairs. - Run unused-code detection per
guides/02-unused-code-with-knip.md: workspace-aware knip from outside the repo, a failing plugin disabled through an external config, a production-mode second view, thenscripts/knip_summarize.py. For non-JS code use the tools inreferences/non-js-dead-code.md. - Count lines per
guides/03-size-and-line-counts.mdwith cloc (--skip-uniqueness) or scc, thenscripts/size_profile.py. - Measure structure per
guides/04-structure-and-split-planning.mdwith lizard andscripts/function_profile.py; read the largest files and write the split plan, including the context-object step for closures. - Spot-check per
guides/05-spot-check-and-false-positives.md: at least 12 flagged items classified Dead, False alarm, or Partial with a reason, then the truly-dead estimate as a share of core code lines. - Band, set the verdict, write the verdict paragraph, and write
metrics.json,findings.jsonl, andnotes.mdperguides/06-bands-verdict-and-contract-output.md. List raw artifacts under## Evidenceinnotes.md(the orchestrator buildsevidence-index.md). Runscripts/validate_outputs.pyand fix every error. - Confirm the audited repo is unchanged, remove
.scratch/, and report to the orchestrator: verdict, headline measures, caps lifted, and anything not run.
References map
| Path | Load when |
|---|---|
guides/00-scoping-and-throwaway-copy.md |
Always first |
guides/01-duplication-with-jscpd.md |
Running or reading jscpd |
guides/02-unused-code-with-knip.md |
Running knip or a language dead-code tool |
guides/03-size-and-line-counts.md |
Counting lines, big-file share |
guides/04-structure-and-split-planning.md |
Largest functions, closures, split plans |
guides/05-spot-check-and-false-positives.md |
Before calling anything dead |
guides/06-bands-verdict-and-contract-output.md |
Banding, verdict paragraph, writing outputs |
references/tool-commands.md |
Any command line; pinned versions |
references/bands.md |
Banding a measure, choosing severity, setting the verdict |
references/false-positive-classes.md |
Classifying a flagged item |
references/non-js-dead-code.md |
Python, Go, Rust, or another language in scope |
references/output-templates.md |
Writing metrics.json, findings.jsonl, notes.md |
references/REFERENCE.md |
Script inputs and outputs; raw folder layout |
references/research/distilled-code-bloat.md |
Verifying a tool behavior or a band, settling a dispute |
| Source research archive (not shipped with the plugin) | Source-repository only; the shipped distillation summarizes it, do not require it |
scripts/*.py |
As each guide directs; every script has --help |
Related drones and stingers
- code-bloat-wasp-drone - The paired Drone; the orchestrator dispatches it for the
bloatdimension. - audit-my-code-stinger - The run contract and orchestration for
/audit-my-code. security-stinger- Security dimension; overlaps only where dead code hides a vulnerable path.quality-stinger- Quality dimension, run after security in thefullandmariotiers.dependency-audit-stinger- Vulnerable or outdated dependencies, as opposed to unused ones.
Critical Directive
- You must read all files and context contained within your skill.
- In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.
- Additional related skills can be found here:
- audit-my-code-stinger - Run contract, tiers, workspace layout, and the brief renderer for Audit My Code.
- webapp-capture-stinger - Code-level UI inconsistency audit, when bloat findings point at duplicated components.
Designed and built by Legion Code Inc. Licensed under AGPL-3.0-or-later.
이 스킬의 파일
22code-bloat-stinger skill 질문
Claude Code에 code-bloat-stinger skill을 어떻게 설치하나요?
npx degit legioncodeinc/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger ~/.claude/skills/code-bloat-stinger를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
code-bloat-stinger skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
이 SKILL은 무엇을 측정하나요?
복사하여 붙여넣은 코드(중복), 미사용 코드(데드 코드), 그리고 형태(파일 및 함수 크기/구조) 등 세 가지 유형의 비대화를 측정합니다.
이 SKILL이 저장소를 수정하나요?
아니요, 이 SKILL은 읽기 전용이며 모든 도구는 감사 후 삭제되는 임시 복사본 내에서 실행됩니다.
시스템 요구 사항은 무엇인가요?
Node 20.19 이상, Python 3.9 이상이 필요하며, cloc을 위한 Perl 또는 다운로드된 scc binary가 필요합니다.