Command Palette

Search for a command to run...

Назад к скиллам
скилл № 30839

Audit Suppressions

List lint/type/coverage/security suppression diff/tree: eslint-disable/@ts-expect-error/noqa/type…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Audit Suppressions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Audit suppressions

Pre-computed context

Current branch: !git branch --show-current 2>/dev/null || echo "unknown"

Purpose

A suppression turns a linter or type checker off for one line, one block or one file. Three further classes switch off the evidence a quality bar rests on, and the scanner lists them the same way: coverage exclusions (istanbul, c8 and coverage.py), mutation-testing exclusions (Stryker) and security-scanner suppressions (Bandit, Semgrep and Gitleaks). This skill lists all of them so a reader can see how many there are, which explain themselves, and which switch off a rule the team counts as correctness rather than style. It reports and stops: no pass or fail, and the report carries no severity (a --findings file carries the tier its rule's row sets, below). Whether a suppression should go is the reader's call.

A suppression is justified when it carries a reason and, for a tool whose syntax can name a rule, at least one rule id. TypeScript's @ts-ignore, @ts-expect-error and @ts-nocheck cannot name an error, so a reason alone justifies them. Where a tool has a reason slot of its own, the text there is the reason (ESLint and RuboCop after --, a Justification argument in C# and PowerShell); otherwise a further comment on the same line is (a TypeScript directive's trailing text, a second <!-- --> after a markdownlint directive, a // comment after @SuppressWarnings, a second # comment after a Python or shell pragma). A directive with no reason on its line (a comment directive, a #pragma warning disable, or a [SuppressMessage] or @SuppressWarnings attribute) takes the comment lines directly above it as its reason, as # jq filters are literal text. does for a # shellcheck disable=SC2016 on the next line. A blank line, a code line, another directive, a shebang or another tool's instruction (# shellcheck source=...) between them breaks that link. So does a C# or Java documentation comment (///, or a /** ... */ block): it documents the member, not the suppression, so it is never a reason.

Only real comments, pragmas and attributes count. A marker inside a string literal, a Markdown code span or a fenced code block in a Markdown file is not a suppression.

Run it

"${CLAUDE_SKILL_DIR}/scripts/audit-suppressions.sh"                    # lines the commits since the merge-base add
"${CLAUDE_SKILL_DIR}/scripts/audit-suppressions.sh" --base release/2.0  # the merge-base with another branch
"${CLAUDE_SKILL_DIR}/scripts/audit-suppressions.sh" --all              # every suppression in the tree
"${CLAUDE_SKILL_DIR}/scripts/audit-suppressions.sh" src/ tools/build.sh # explicit paths, whole files
"${CLAUDE_SKILL_DIR}/scripts/audit-suppressions.sh" --json --all        # the document instead of markdown
"${CLAUDE_SKILL_DIR}/scripts/audit-suppressions.sh" --findings          # the report plus a findings file for /review:fanout fix

Append --user-file '${user_config.config_file}' to every script call, exactly as written: it names the file holding your userConfig layer, and an empty or unsubstituted value means none (${CLAUDE_PLUGIN_ROOT}/reference/config.md).

The change scope reads committed lines only: a suppression in an uncommitted edit is not in it until it is committed, so name the file or use --all to see the working tree. scope.exclude and language opt-outs apply as in the other audits.

A target form (--repo <repo> and the others) runs the script once per repository, as ${CLAUDE_PLUGIN_ROOT}/reference/several-repositories.md says, and never passes the form to the script. Each repository's suppressions.correctness_rules marks its own rows, and a --findings run writes one findings file per repository, under that repository's memory root and branch; a --memory-dir given with a target form must be relative, and is read from each root.

Present the markdown report as printed, whole, with your notes after it: the scope, the counts, the correctness list with the layer that set it, then one row per suppression (correctness rules first, then lines without a reason), capped at 200 rows with the kept document named for the rest, then a Not read line naming each text file in scope whose language the scanner has no kind for. The --json document (code-metrics/suppressions/v1) carries scope, counts (suppressions, unjustified, correctness), correctness_rules (rules, layer), suppressions, one object per row with file, line, tool, rules, justified, reason and correctness, and unread, the paths of those files.

Findings for the review relay (--findings)

--findings runs the same scan in the same scope, prints the same report, then writes one findings file in the shape /review:fanout fix (if enabled) reads

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(${CLAUDE_SKILL_DIR}/scripts/audit-suppressions.sh:*)
  2. 02Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/suppression-scan.py:*)
  3. 03Bash(git branch --show-current:*)

Вложенные файлы

  • evals/evals.json
  • scripts/audit-suppressions.sh
  • scripts/audit-suppressions.test.sh
  • scripts/suppression-scan.py

FAQ

Что делает скилл Audit Suppressions?

List lint/type/coverage/security suppression diff/tree: eslint-disable/@ts-expect-error/noqa/type: ignore/pylint/pyright/SuppressMessage/@SuppressWarnings/pragma/shellcheck/nolint/markdownlint/rubocop/istanbul/c8/coverage.py/Stryker/bandit/nosec/nosemgrep/gitleaks; rule/reason/justified/correctness, no gate. Use when 'which noqa have no reason', 'suppressions added in this change'. Not for size: /code-metrics:audit.

Как установить скилл Audit Suppressions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Audit Suppressions запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Audit Suppressions с