Command Palette

Search for a command to run...

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

Setup

Check (read-only) or apply repo testing config (docs/conventions/testing.yaml): can't-fail rules, test-lint audit, and hook skips. Re-runnable.

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

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

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

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

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

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

Setup

Purpose

/testing:audit and the opt-in test-weaken hook find tests by the shipped adapters' filename globs
and judge them by the shipped rule levels. This skill shows what a repository changed about that
through the testing config, and writes it. check changes nothing; apply runs check,
asks, writes, and runs check again. No argument means check.

It never edits CLAUDE.md or AGENTS.md. The instruction line is printed for you to paste.

The config

The testing config resolves across the config-cascade layers, in order: the team layer and
<root>/<home>/testing.local.yaml, where <root> is the scanned file's git toplevel, else
${CLAUDE_PROJECT_DIR}, and <home> is the convention home (docs/conventions by default). The
team layer is <root>/<home>/testing.yaml. Without it, the team layer is the yaml config block
in <root>/<home>/testing.md, a legacy layer: when both exist, testing.yaml wins and the
resolver prints a warning naming both. Lists concatenate across layers; a later layer's
scalar overrides. The format is the adapters' YAML subset in every file; a glob that starts with
* must be single-quoted. <home>/testing.yaml also holds /testing:run-e2e's e2e_driver,
reuse_running_instance, browser_driver, map_unit, map_entry_points, map_report_order,
file_findings and file_findings_floor, and /testing:write's tdd_refactor_step and
first_test, which the scan ignores.

Config locations across all plugins: config locations.

The keys:

adapters:
  disable: [py-unittest]         # wins over enable; a non-empty enable list is an allowlist
paths:
  exclude: ['legacy/**']         # relative to the repo root; ** crosses /, * does not
  include: ['build/**/*.test.ts'] # reaches pruned folders; an adapter must still claim the file
adapter_dirs: [tools/test-adapters]  # consumer adapters, same schema as the shipped ones
extend:
  js-vitest:
    files: ['*.it.ts']           # appended to that adapter's list field
rules:
  rule-weak-oracle: off          # off drops, warn reports without gating, error gates --check
  test-weaken-block: error       # test-weaken hook: deny an added skip or a removed test

The opt-in test-weaken hook runs before a Write or Edit to a test file and names what it removes:
test blocks, assertions, a changed expected value, or an added skip. By default it only tells the
agent. With test-weaken-block: error, an added skip or a removed test block is
denied until the edit carries a test-change: <reason> comment; removed assertions and changed
expected values are never denied. The agent can write that marker itself: it makes the reason
visible to reviewers, it does not prove the reason.

Removals (adapters.disable, paths.exclude, rules ... off) apply inside the scanner, so the
audit goes quiet with no plugin change; an excluded path or a disabled adapter silences
test-weaken too. Additions reach the audit at once; test-weaken covers only the shipped globs.

The test judge

The judge that asks where each changed test's expected value came from runs on demand, as
/testing:audit --judge, and in /source-control:pull-request (if enabled) prep. It has no plugin option and
no hook.

check (read-only)

Run the script and show its output as it prints:

bash "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/setup.sh" check

It exits 0 with no finding, 1 when a test-lint rule is missing, 2 when a layer does not resolve
(the file and line are on stderr). Its four sections:

  1. config: the resolved records, or the note that no layer exists.
  2. lint: one row per rule for each language the repository's tracked test files use. The script
    reads the lint config as text: a rule named there, or its plugin referenced beside a recommended
    config, reads as present. Treat a PRESENT row from the recommended-config path as likely rather
    than proven, and say so. A FINDING is a gap to report, not a neutral absence. The rules:
Полный SKILL.md на GitHub

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

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

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

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

  • scripts/setup.sh
  • scripts/setup.test.sh

FAQ

Что делает скилл Setup?

Check (read-only) or apply repo testing config (docs/conventions/testing.yaml): can't-fail rules, test-lint audit, and hook skips. Re-runnable.

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

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

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

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

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

Сравнить Setup с