validator-setup
Scans the project and configures checks and reviews for Agent Validator for requests such as "set up validator", "configure checks and reviews", or…
от Codagent-AI★ 30 звёзд на GitHub
Установить validator-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/validator-setup
Scan the project to discover tooling and configure checks and reviews for agent-validator.
Before starting, read references/check-catalog.md for check category details, YAML schemas, and example configurations.
Step 1: Check config exists
Read .validator/config.yml. If the file does not exist, tell the user to run agent-validate init first and STOP — do not proceed with any further steps.
Step 2: Check existing config
Read the entry_points field from .validator/config.yml.
Before deciding whether this project is already configured, inspect the git state of .validator/:
- If this is a git repo, run
git status --porcelain -- .validator. - If
.validator/or.validator/config.ymlis untracked or newly added, treat this as a fresh install even though the directory exists.agent-validate initcreates the scaffold first;/validator-setupstill needs to configure checks and entry points. - If git is unavailable, the project is not a git repo, or the status is ambiguous, do not claim Agent Validator was previously set up. Ask the user whether this is a new install or an existing configuration they want to modify.
Do not conclude "nothing to do" or "already set up" merely because .validator/ exists. Only treat the project as an existing setup when the committed config already contains meaningful entry points/checks, or the user confirms it is existing.
If entry_points is empty ([]) OR contains only the generated root entry point (path: ".") with no checks: This is a fresh setup. Proceed to Step 3 (detect project structure). Preserve any existing reviews on that generated root entry point unless the user explicitly reconfigures reviews.
If entry_points is populated: Show the user a summary of the current configuration:
List each entry point with its
path,checks, andreviewsThen ask the user which action to take:
- Add checks — Scan for tools not already configured. Proceed to Step 3, but filter out any checks that already appear in
entry_points. - Add custom — User describes what they want to add. Skip to Step 7.
- Reconfigure — Start fresh. Back up existing config first:
- Rename each
.validator/checks/*.ymlfile to.yml.bak(overwrite any previous.bakfiles) — these are legacy file-based checks - Rename each custom
.validator/reviews/*.mdfile to.md.bak(overwrite any previous.bakfiles) - Do NOT rename
.validator/reviews/*.ymlfiles (these are built-in review configs) - Clear
entry_pointsto[]inconfig.yml - Proceed to Step 3
- Rename each
- Add checks — Scan for tools not already configured. Proceed to Step 3, but filter out any checks that already appear in
Step 3: Detect project structure
Scan for signals to classify the project as monorepo, split project, or single project.
Monorepo signals
package.jsonwith aworkspacesfieldpnpm-workspace.yamllerna.json,nx.json,turbo.jsonCargo.tomlwith a[workspace]section- Multiple subdirectories under
packages/,apps/, orservices/each containing their own project manifest (package.json,go.mod,Cargo.toml,pyproject.toml)
Split project signals
frontend/+backend/(orclient/+server/,web/+api/) directories each containing source code and/or their own project manifest- Multiple apps or libraries of the same language under a common parent directory (e.g.,
apps/web/,apps/api/,apps/worker/each with their own source and config) — suggests a wildcard entry point likeapps/*
Single project signals
src/orlib/as sole source directory, or source files at project root- No monorepo or split project signals found
If monorepo or split project: Read references/project-structure.md for detailed multi-project entry point guidance, then follow it for Steps 4 through 8. The rest of this file covers the single-project flow.
If single project: Tell the user what you detected and continue below.
Step 4: Determine entry point path
Infer the source directory:
- If
src/exists and contains source code, suggestsrc - If
lib/exists and contains source code, suggestlib - Otherwise suggest
.(project root — safer default since it captures all changes)
Skip this step if adding checks to an existing entry point that already has a path.
Step 5: Scan for tooling
Scan the project for tooling signals across the 6 check categories listed in references/check-catalog.md.
For the "add checks" path: Filter out checks already configured in entry_points.
If no tools discovered: Offer the custom flow (skip to Step 7). Still include code-quality review.
Step 6: Present findings and confirm
Show a table of discovered checks:
Category | Tool | Command | Confidence
----------------|-----------------|--------------------------------------|-----------
Build | npm | npm run build | High
Lint | ESLint
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Glob - 04
Grep - 05
Write - 06
Edit
Вложенные файлы
- references/check-catalog.md
- references/project-structure.md
FAQ
Что делает скилл validator-setup?
Scans the project and configures checks and reviews for Agent Validator for requests such as "set up validator", "configure checks and reviews", or "initialize validator for this repo".
Как установить скилл validator-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл validator-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…