Command Palette

Search for a command to run...

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

dx-audit

БесплатноБез исполняемых скриптовНе проверен

Audits libraries, CLIs, and SDKs using 38 rules for public contracts, package exports, piped output, errors, and configuration. Use when asked to "audit my…

mblodeот mblode★ 230 звёзд на GitHub

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

DX Audit

Audit or improve what developers import, run, configure, or read when something fails.

  • IS: a bounded review of public APIs, developer-facing errors, CLI commands, exported types, install and first-run behavior, and config, with fixes only when asked.
  • IS NOT: a repo-wide quality sweep (tidy), end-user UI (ui-design Audit mode), agent trust review (ax-audit), public site or docs agent scores (agent-ready-site), docs prose or a README (ghostwriter), repository architecture (codebase-architecture), or building a new CLI (scaffold-cli).

Modes

Pick the narrowest mode the request supports, and write a one-line scope receipt before reading code:

Mode When Output
Targeted (default) a named or changed public surface findings report, read-only
Fix the user says fix, improve, simplify, or implement localized edits inside the receipt, then verification
Exhaustive the user explicitly asks for the whole package or every public surface every material finding, partitioned by surface
Scope: <mode>; surfaces: <commands/exports/config>; prefixes: <err-, cli->; excludes: <UI, docs, architecture, private internals>

"DX", "gold standard", and "review holistically" do not by themselves widen a targeted audit into exhaustive. When several skills are invoked together, this one owns only the surfaces above.

Audit progress

DX audit progress:
- [ ] 1. Lock the public surface and write the scope receipt
- [ ] 2. Gather local evidence and run the safe probes
- [ ] 3. Select prefixes, then open candidate rules
- [ ] 4. Rank root causes
- [ ] 5. Report, or fix when asked
- [ ] 6. Verify on the same scope

1. Lock the public surface

Start from git diff against the normal base and keep only changed files reachable from a public entry point: package.json exports or bin, a command registry, an exported type, a documented config loader, or an observed error path. With no useful diff, use the command, export, error, or config the user named. A private helper enters scope only through a public caller.

2. Gather evidence, then stop

  1. Local instructions, the manifest, and the diff or named entry point.
  2. Direct public dependencies and the nearest tests that pin behavior.
  3. Safe probes against the local build:
    • CLI: --help, --version, one success path, one invalid-input path, and the same command with stdout piped (| cat) to see non-TTY behavior. Never trigger a real mutation to test DX; use --dry-run where it exists.
    • Package: pnpm dlx publint and pnpm dlx @arethetypeswrong/cli --pack . after a build. These inspect packaging, but packing may invoke lifecycle scripts. Inspect those scripts first or use a disposable checkout before calling --pack.
  4. The prior release contract, only when the diff changes a public export, signature, or return shape.

Stop when the behavior is proven, disproven, private, or out of scope. External research is for an explicit comparison request or a named uncertainty local evidence cannot resolve; references/standards-map.md carries the standards this skill already leans on.

3. Dispatch rules candidate-first

Read rules/_sections.md, then select prefixes by surface:

Priority Prefix Category Default impact Rules
1 api- Public API and SDK CRITICAL 7
2 err- Developer-facing errors CRITICAL 5
3 cli- CLI UX for humans and agents HIGH 13
4 types- Exported type ergonomics HIGH 5
5 onboard- Install and first run HIGH 5
6 config- Config ergonomics MEDIUM 3
Surface Prefixes
Public API entry point api-, types-, reached err- paths
CLI command cli-, reached err- paths
Exported declarations types-, plus api- when behavior changed
Install, package.json, first run onboard-
Config loader config-, reached err- paths

Applicability outranks priority: a CLI-only audit never loads api- because API rules rank higher.

Targeted mode: list the filenames for the selected prefixes (the names are the checklist), look for concrete evidence, then open only the rule files a finding needs. Exhaustive mode: read every rule in the selected prefixes.

Capability gates, applied inside a selected prefix:

  • Structured JSON input, schema introspection, and compact polling snapshots apply when automation or agent use is promised, requested, or already supported.
  • Dry-run and confirmation apply to destructive, expensive, or hard-to-reverse mutations.
  • Progress and resume apply to operations that can block, outlive one command, or be retried after ambiguous output.
  • stdin applies when the command semantically accepts file or stream data.
  • Stable-contract comparison applies only when a public contract changed.

4. Rank root causes, no

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

Установить dx-audit в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

evals/evals.jsonevals/evaluation-scenarios.mdreferences/standards-map.mdrules/_sections.mdrules/_template.mdrules/api-argument-order.mdrules/api-async-consistency.mdrules/api-naming-consistency.mdrules/api-no-hidden-side-effects.mdrules/api-predictable-return-shape.mdrules/api-sensible-defaults.mdrules/api-stable-contract.mdrules/cli-agent-input-hardening.mdrules/cli-delta-polling.mdrules/cli-exit-codes.mdrules/cli-flag-naming.mdrules/cli-help-and-version.mdrules/cli-idempotent-resume.mdrules/cli-order-independent-flags.mdrules/cli-pipes-tty-and-json.mdrules/cli-responsive-and-progress.mdrules/cli-safe-mutations.mdrules/cli-schema-introspection.mdrules/cli-structured-io.mdrules/cli-suggest-corrections.mdrules/config-optional-with-defaults.mdrules/config-validate-and-discover.mdrules/config-xdg-and-precedence.mdrules/err-fail-fast-validation.mdrules/err-name-cause-and-value.mdrules/err-no-raw-stack-as-message.mdrules/err-stable-error-codes.mdrules/err-suggest-the-fix.mdrules/onboard-exports-resolve-typed.mdrules/onboard-minimal-install.mdrules/onboard-no-required-env.mdrules/onboard-tree-shakeable.mdrules/onboard-zero-config-quickstart.mdrules/types-discriminated-unions.mdrules/types-helpful-generics.md

FAQ

Что делает скилл dx-audit?

Audits libraries, CLIs, and SDKs using 38 rules for public contracts, package exports, piped output, errors, and configuration. Use when asked to "audit my CLI", "review my SDK", or diagnose package type resolution.

Как установить скилл dx-audit?

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

Скилл dx-audit запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить dx-audit с