verification-loop · galaxy-dawn — скилл для Claude Code: что делает и как установить
Запускает проверку проекта по фазам перед созданием PR: сборку, типизацию, линтер, тесты, поиск секретов и ревизию git diff.
npx skills add Galaxy-Dawn/claude-scholar --skill verification-loop -a claude-codeЧто делает verification-loop
Скилл выстраивает пошаговую валидацию проекта перед открытием PR. Сначала запускается сборка через uv или npm, затем статическая типизация pyright или tsc и вызов линтера. Если сборка падает, скилл останавливает проверку до исправления ошибок.
Дальше запускаются тесты с подсчётом покрытия кода в pytest или npm test. Безопасность проверяется через поиск забытых ключей API, префиксов sk- и отладочных вызовов console.log или print. Завершает процесс ревизия изменений через git diff.
Итогом работы становится отчёт со статусами PASS или FAIL и списком проблем для правки. Если репозиторий нестандартный, правила выбора команд берутся из файла references/STACK-DETECTION.md.
Какие задачи решает
- отловить забытые вызовы print и console.log перед коммитом
- проверить сборку и типизацию проекта перед созданием PR
- сформировать сводный отчёт о покрытии тестами
- найти случайно добавленные в репозиторий API-ключи
Примеры запросов агенту
- Проверь код и подготовь отчёт перед открытием PR
- /verify
- Запусти валидацию изменений для текущей ветки
Как установить verification-loop
1Через Skills CLI (Vercel)
npx skills add Galaxy-Dawn/claude-scholar --skill verification-loop -a claude-code2Вручную: положить файлы
~/.claude/skills/verification-loop/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/verification-loop/
1Через Skills CLI (Vercel)
npx skills add Galaxy-Dawn/claude-scholar --skill verification-loop -a codex2Вручную: положить файлы
.agents/skills/verification-loop/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Galaxy-Dawn/claude-scholar --skill verification-loop -a cursor2Вручную: положить файлы
.cursor/skills/verification-loop/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Galaxy-Dawn/claude-scholar verification-loop2Вручную: положить файлы
.github/skills/verification-loop/SKILL.md1Через Skills CLI (Vercel)
npx skills add Galaxy-Dawn/claude-scholar --skill verification-loop -a gemini-cli2Командой платформы
gemini skills install https://github.com/Galaxy-Dawn/claude-scholar --path skills/verification-loopВручную: положить файлы
.devin/skills/verification-loop/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Galaxy-Dawn/claude-scholar --skill verification-loop -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора29
Другие версии verification-loop
Похожие
Рядом в теме «Тесты и QA»
Всё по теме «Тесты и QA» →Вопросы о verification-loop
Как установить verification-loop в Claude Code?
Выполните в терминале команду npx skills add Galaxy-Dawn/claude-scholar --skill verification-loop -a claude-code.
Что делает verification-loop?
Скилл по очереди запускает сборку, проверку типов, линтер, тесты с покрытием, сканирование секретов и git diff, формируя сводный отчёт.
Что произойдёт, если сборка проекта завершится ошибкой?
Процесс проверки немедленно прервётся. Скилл требует устранить ошибки сборки до того, как переходить к тестам или проверке безопасности.
Исходный текст
SKILL.md · MIT
---
name: verification-loop
description: This skill should be used when the user asks to "verify code", "run verification", "check quality", "validate changes", or before creating a PR. Provides comprehensive verification including build, type check, lint, tests, security scan, and diff review.
version: 1.0.0
---
# Verification Loop Skill
A comprehensive verification system for Claude Code sessions.
## When to Use
Invoke this skill:
- After completing a feature or significant code change
- Before creating a PR
- When you want to ensure quality gates pass
- After refactoring
## Verification Phases
Choose the commands adaptively for the current project instead of running every example blindly. Use the stack-appropriate command from `references/STACK-DETECTION.md` when the repo does not match the default examples below.
### Phase 1: Build Verification
```bash
# Python projects (uv)
uv build 2>&1 | tail -20
# OR
python -m build 2>&1 | tail -20
# Node.js projects
npm run build 2>&1 | tail -20
# OR
pnpm build 2>&1 | tail -20
```
If build fails, STOP and fix before continuing.
### Phase 2: Type Check
```bash
# TypeScript projects
npx tsc --noEmit 2>&1 | head -30
# Python projects
pyright . 2>&1 | head -30
```
Report all type errors. Fix critical ones before continuing.
### Phase 3: Lint Check
```bash
# JavaScript/TypeScript
npm run lint 2>&1 | head -30
# Python
ruff check . 2>&1 | head -30
```
### Phase 4: Test Suite
```bash
# Python projects
pytest --cov=src --cov-report=term-missing 2>&1 | tail -50
# Node.js projects
npm run test -- --coverage 2>&1 | tail -50
```
Report:
- Total tests: X
- Passed: X
- Failed: X
- Coverage: X%
### Phase 5: Security Scan
```bash
# Python: Check for secrets
grep -rn "sk-" --include="*.py" . 2>/dev/null | head -10
grep -rn "api_key" --include="*.py" . 2>/dev/null | head -10
pip-audit
# Node.js: Check for secrets
grep -rn "sk-" --include="*.ts" --include="*.js" . 2>/dev/null | head -10
grep -rn "api_key" --include="*.ts" --include="*.js" . 2>/dev/null | head -10
# Check for debug statements
grep -rn "print(" --include="*.py" src/ 2>/dev/null | head -10
grep -rn "console.log" --include="*.ts" --include="*.tsx" src/ 2>/dev/null | head -10
```
### Phase 6: Diff Review
```bash
# Show what changed
git diff --stat
git diff HEAD~1 --name-only
```
Review each changed file for:
- Unintended changes
- Missing error handling
- Potential edge cases
## Output Format
After running all phases, produce a verification report:
```
VERIFICATION REPORT
==================
Build: [PASS/FAIL]
Types: [PASS/FAIL] (X errors)
Lint: [PASS/FAIL] (X warnings)
Tests: [PASS/FAIL] (X/Y passed, Z% coverage)
Security: [PASS/FAIL] (X issues)
Diff: [X files changed]
Overall: [READY/NOT READY] for PR
Issues to Fix:
1. ...
2. ...
```
## Continuous Mode
For long sessions, run verification every 15 minutes or after major changes:
```markdown
Set a mental checkpoint:
- After completing each function
- After finishing a component
- Before moving to next task
Run: /verify
```
## Integration with Hooks
This skill complements PostToolUse hooks but provides deeper verification.
Hooks catch issues immediately; this skill provides comprehensive review.
## Reference Files
Load only what is needed:
- `references/STACK-DETECTION.md` - how to choose the right verification command set for the current repo
- `references/REPORT-TEMPLATE.md` - report structure for final verification output
- `examples/example-verification-report.md` - example final report
© Galaxy-Dawn · MIT · Galaxy-Dawn/claude-scholar