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以降が必要です。実際のコードのリファクタリングや削除を行うのではなく、レポート作成や監査を行うために設計されています。
エージェントができること
- 1コードの重複を定量化する特定のトークンサイズを使用して、リポジトリのどの程度がコピー&ペーストされたコードで構成されているかを特定します。
- 2デッドコードを特定するコードベース内の未使用のファイル、エクスポート、および依存関係を見つけ、真のデッドコードの割合を推定します。
- 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は何を測定しますか?
3種類の肥大化を測定します:コピー&ペーストされたコード(重複)、未使用のコード(デッドコード)、および形状(ファイルや関数のサイズ・構造)です。
このSKILLはリポジトリを変更しますか?
いいえ、このSKILLは読み取り専用です。すべてのツールは一時的なコピー内で実行され、監査終了後に削除されるため、元のソースコードが変更されることはありません。
システム要件は何ですか?
Node 20.19以降、Python 3.9以降、およびcloc用のPerlまたはダウンロード済みのsccバイナリが必要です。