Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prompting:scan

БесплатноЗапускает вложенные скриптыНе проверен

Report prompt defects a lexical scan finds in documents a model executes. Use to audit a repository's skills, CLAUDE.md, agent definitions, or a product's…

bendruckerот bendrucker★ 18 звёзд на GitHub

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

Scan

Run the scanner over the paths in $ARGUMENTS, defaulting to the current directory:

bun ${CLAUDE_SKILL_DIR}/scripts/scan.ts [<path>...] [--all] [--quiet] [--score]

It reports each alert as file:line:col: level: check: message on stdout and a per-check count table on stderr, and exits non-zero on an error-level alert. A check is an error once the precision eval confirms it and a warning until then. --quiet drops the table. --score replaces it with one row per scanned file, clean files included, giving its alerts, its prose words outside frontmatter and code, and alerts per 1,000 words, plus a total. Run it before and after an edit round over the same paths to compare them.

Without --all it reads the paths that hold documents a model executes: SKILL.md, CLAUDE.md, AGENTS.md, .claude/agents, .claude/commands, .claude/rules, a skill's references/, and a prompt/ or prompts/ directory holding .md or .txt files. Use --all for a prompt that lives somewhere else, such as one extracted from a string in a product repo. It reads .md and .txt under either setting, so --all widens which documents count without pulling in source files. Either way it also scans the files a scanned CLAUDE.md or AGENTS.md imports with @path, up to four hops deep, and lists on stderr each import outside the scanned paths or missing. It skips node_modules, .git, fixtures, __snapshots__, and evals.

Checks

Rewrites

Sharpen the sentence the alert names.

  • Prompting.WeakModality: the instruction is a suggestion the model can decline, so whether it fires is left to the run.
  • Prompting.VagueCriterion: the done-state is one the model cannot check. The model decides for itself when to stop.

Deletions

Delete the span the alert names.

  • Prompting.NoOp: the instruction restates a default the model already follows, spending context and changing nothing.
  • Prompting.StaleMeasurement: the document reports a tally a past run counted. The run prints the number again, so the document caches its own output and drifts as the work behind it moves.
  • Prompting.TicketRef: a bare issue number points at a tracker the model cannot read, and the prose around it goes stale when the issue closes.

Acting on an Alert

An alert is a candidate. The scanner matches words rather than intent, so read the sentence and confirm it is an instruction before acting on it. A descriptive sentence that happens to contain the phrase is a false hit.

Load the prompting skill for the fix. Each check maps to a section: Sentence Form for weak modality, Completion Criteria for a vague criterion, and Pruning for the rest, under No-ops for a no-op, Cache for a stale measurement, and Relevance for a ticket reference, project status, or a maintainer aside.

Gotchas

  • Fenced blocks, inline code, quoted phrases, and blockquotes are exempt. A document that teaches a rule by showing the wording it rejects reports nothing.
  • A linked issue keeps its context, so TicketRef reads only a bare number. A number that ends a range or follows a comparator is a threshold, so StaleMeasurement passes 20-29 of 40 and >= 36 of 40.
  • Frontmatter is data, so a description field never raises an alert.
  • An explicit path that is not agent-facing scans nothing and exits 0, which reads the same as a clean pass. Pass --all when naming a file outside the recognized paths.
  • The checks cover what a lexical match can find with precision. Sprawl, duplication, and pointer wording need a reading pass, which prompting:audit runs.
Полный SKILL.md на GitHub

Установить prompting:scan в Claude Code и Claude Desktop

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

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

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

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

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

Bash(bun ${CLAUDE_SKILL_DIR}/scripts/scan.ts:*)
Read
Edit

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

scripts/imports.test.tsscripts/imports.tsscripts/scan.test.tsscripts/scan.tsscripts/score.test.tsscripts/score.tsscripts/vale.test.tsscripts/vale.ts

FAQ

Что делает скилл prompting:scan?

Report prompt defects a lexical scan finds in documents a model executes. Use to audit a repository's skills, CLAUDE.md, agent definitions, or a product's prompt files, or to gate them in CI or a pre-commit hook. For a reading pass that proposes cuts, use prompting:audit.

Как установить скилл prompting:scan?

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

Скилл prompting:scan запускает скрипты?

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

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

Сравнить prompting:scan с