Логотип Code Bloat Stinger

Code Bloat Stinger

Организация
legioncodeinc
code-bloat-stinger

Read-only bloat audit of any repo. jscpd duplication, knip or language dead-code tools with a spot-check, cloc size, function and closure structure, split plans, banded verdict.

Add to TypingMind

Обзор

Издательlegioncodeinc
Репозиторийvibe-coding-tools
Название навыкаcode-bloat-stinger
Звёзды
94
Форки
44
Файлы в комплекте
20
ЛицензияAGPL-3.0-or-later
Ссылки
  • Инструкции в формате Markdown

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

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

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

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

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

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

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

Установка

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

1

Установка в TypingMind

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

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/code-bloat-stinger
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/legioncodeinc/vibe-coding-tools.git /tmp/vibe-coding-tools
mkdir -p .claude/skills
cp -r /tmp/vibe-coding-tools/plugins/code-audit-tools/skills/code-bloat-stinger .claude/skills/code-bloat-stinger
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

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

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

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

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

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

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

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

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

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

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

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

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 bloat dimension of /audit-my-code at the vibe, basic, full, or mario tier
  • 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-stinger and 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 mario tier and the owning engineering Drone
  • Dependency vulnerability triage: dependency-audit-stinger

Procedure

  1. Read guides/00-scoping-and-throwaway-copy.md. Read intake.json, make the copy with git archive, install pinned tools outside the copy, write the scope and file list, capture git status of the audited repo, pick the language route.
  2. 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, then scripts/jscpd_recount.py for both copies, per area, big versus small files, and top pairs.
  3. 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, then scripts/knip_summarize.py. For non-JS code use the tools in references/non-js-dead-code.md.
  4. Count lines per guides/03-size-and-line-counts.md with cloc (--skip-uniqueness) or scc, then scripts/size_profile.py.
  5. Measure structure per guides/04-structure-and-split-planning.md with lizard and scripts/function_profile.py; read the largest files and write the split plan, including the context-object step for closures.
  6. 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.
  7. Band, set the verdict, write the verdict paragraph, and write metrics.json, findings.jsonl, and notes.md per guides/06-bands-verdict-and-contract-output.md. List raw artifacts under ## Evidence in notes.md (the orchestrator builds evidence-index.md). Run scripts/validate_outputs.py and fix every error.
  8. Confirm the audited repo is unchanged, remove .scratch/, and report to the orchestrator: verdict, headline measures, caps lifted, and anything not run.

References map

PathLoad when
guides/00-scoping-and-throwaway-copy.mdAlways first
guides/01-duplication-with-jscpd.mdRunning or reading jscpd
guides/02-unused-code-with-knip.mdRunning knip or a language dead-code tool
guides/03-size-and-line-counts.mdCounting lines, big-file share
guides/04-structure-and-split-planning.mdLargest functions, closures, split plans
guides/05-spot-check-and-false-positives.mdBefore calling anything dead
guides/06-bands-verdict-and-contract-output.mdBanding, verdict paragraph, writing outputs
references/tool-commands.mdAny command line; pinned versions
references/bands.mdBanding a measure, choosing severity, setting the verdict
references/false-positive-classes.mdClassifying a flagged item
references/non-js-dead-code.mdPython, Go, Rust, or another language in scope
references/output-templates.mdWriting metrics.json, findings.jsonl, notes.md
references/REFERENCE.mdScript inputs and outputs; raw folder layout
references/research/distilled-code-bloat.mdVerifying 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/*.pyAs each guide directs; every script has --help

Related drones and stingers

  • code-bloat-wasp-drone - The paired Drone; the orchestrator dispatches it for the bloat dimension.
  • 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 the full and mario tiers.
  • 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.

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

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

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

Что делает навык ИИ Code Bloat Stinger?

Read-only bloat audit of any repo. jscpd duplication, knip or language dead-code tools with a spot-check, cloc size, function and closure structure, split plans, banded verdict.

Зачем использовать Code Bloat Stinger в TypingMind?

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

Как установить Code Bloat Stinger в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/code-bloat-stinger. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Code Bloat Stinger?

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

Со сколькими моделями ИИ можно использовать Code Bloat Stinger?

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

Бесплатен ли навык ИИ Code Bloat Stinger?

Да. Навык опубликован на GitHub по лицензии AGPL-3.0-or-later. Издатель — legioncodeinc. Вы платите только своему поставщику ИИ за использованные токены.

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

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

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

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

Все
Логотип openclaw

Openclaw Live Updater

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

Поддерживайте основной рабочий клон OpenClaw, используемый в production, Gateway под управлением macOS LaunchAgent, локальное приложение macOS, CI для точного коммита main и регулярную полную проверку релиза. Используйте этот навык для обновлений fast-forward…

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

Openclaw Pr Maintainer

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

Проверяйте и сортируйте по приоритету проблемы OpenClaw и pull request, исправляйте их или вносите изменения в репозиторий, опираясь на актуальные данные исходного кода и стандартный процесс сопровождения.

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

Openclaw Refactor Docs

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

Переработайте существующую страницу документации OpenClaw: сохраните подтверждённую источниками информацию, измените структуру и проверьте результат.

82.2K
391K
Инструкции
Открыть
Логотип openclaw

Openclaw Repair Sweep

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

Проводите кампании по исправлению выбранных проблем и PR в OpenClaw: координируйте исполнителей, устанавливайте первопричины и вносите исправления или закрывайте проверенные задачи в пределах запрошенных полномочий.

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

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

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