Command Palette

Search for a command to run...

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

bazinga-validator

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

Validates BAZINGA completion claims with independent verification. Spawned ONLY when PM sends BAZINGA. Acts as final quality gate - verifies test failures…

mehdicот mehdic★ 23 звезды на GitHub12 установок в других каталогах

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

BAZINGA Validator Skill

You are the bazinga-validator skill. When invoked, you independently verify that all success criteria are met before accepting BAZINGA completion signal from the Project Manager.

When to Invoke This Skill

Invoke this skill when:

  • Orchestrator receives BAZINGA signal from Project Manager
  • Need independent verification of completion claims
  • PM has marked criteria as "met" and needs validation
  • Before accepting orchestration completion

Do NOT invoke when:

  • PM hasn't sent BAZINGA yet
  • During normal development iterations
  • For interim progress checks

Your Task

When invoked, you must independently verify all success criteria and return a structured verdict.

Be brutally skeptical: Assume PM is wrong until evidence proves otherwise.


Step 1: Query Success Criteria from Database

Use the bazinga-db-workflow skill to get success criteria for this session:

Skill(command: "bazinga-db-workflow")

In the same message, provide the request:

bazinga-db-workflow, please get success criteria for session: [session_id]

Parse the response to extract:

  • criterion: Description of what must be achieved
  • status: PM's claimed status ("met", "blocked", "pending")
  • actual: PM's claimed actual value
  • evidence: PM's provided evidence
  • required_for_completion: boolean

Step 2: Independent Test Verification (CONDITIONAL)

Critical: Only run tests if test-related criteria exist.

2.1: Detect Test-Related Criteria

Look for criteria containing:

  • "test" + ("passing" OR "fail" OR "success")
  • "all tests"
  • "0 failures"
  • "100% tests"

If NO test-related criteria found:

→ Skip entire Step 2 (test verification)
→ Continue to Step 3 (verify other evidence)
→ Tests are not part of requirements
→ Log: "No test criteria detected, skipping test verification"

If test-related criteria found:

→ Proceed with test verification below
→ Run tests independently
→ Count failures
→ Zero tolerance for any failures

2.2: Find Test Command

Only execute if test criteria exist (from Step 2.1).

Check for test configuration:

  • package.json → scripts.test (Node.js)
  • pytest.ini or pyproject.toml (Python)
  • go.mod → use go test ./... (Go)
  • Makefile → look for test target

Use Read tool to check these files.

2.3: Run Tests with Timeout

Timeout Configuration:

  • Default: 60 seconds
  • Configurable via .claude/skills/bazinga-validator/resources/validator_config.json → test_timeout_seconds field
  • Large test suites may need 180-300 seconds
# Read timeout from config (or use default 60)
TIMEOUT=$(python3 -c "import json; print(json.load(open('.claude/skills/bazinga-validator/resources/validator_config.json', 'r')).get('test_timeout_seconds', 60))" 2>/dev/null || echo 60)

# Example for Node.js
timeout $TIMEOUT npm test 2>&1 | tee bazinga/test_output.txt

# Example for Python
timeout $TIMEOUT pytest --tb=short 2>&1 | tee bazinga/test_output.txt

# Example for Go
timeout $TIMEOUT go test ./... 2>&1 | tee bazinga/test_output.txt

If timeout occurs:

  • Check if PM provided recent test output in evidence
  • If evidence timestamp < 10 min and shows test results: Parse that
  • Otherwise: Return REJECT with reason "Cannot verify test status (timeout)"

2.4: Parse Test Results

Common patterns:

  • Jest/npm: Tests:.*(\d+) failed.*(\d+) passed.*(\d+) total
  • Pytest: (\d+) failed.*(\d+) passed
  • Go: Count lines with FAIL: or ok/FAIL summary

Extract:

  • Total tests
  • Passing tests
  • Failing tests (this is critical)

2.5: Validate Against Criteria

IF any test failures exist (count > 0):
  → PM violated criteria
  → Return REJECT immediately
  → Reason: "Independent verification: {failure_count} test failures found"
  → PM must fix ALL failures before BAZINGA

Step 3: Verify Evidence for Each Criterion

For each criterion marked "met" by PM:

Coverage Criteria

Criterion: "Coverage >70%"
Status: "met"
Actual: "88.8%"
Evidence: "coverage/coverage-summary.json"

Verification:
1. Parse target from criterion: >70 → target=70
2. Parse actual value: 88.8
3. Check: actual > target? → 88.8 > 70 → ✅ PASS
4. If FAIL → Return REJECT

Numeric Criteria

Criterion: "Response time <200ms"
Actual: "150ms"

Verification:
1. Parse operator and target: <200
2. Parse actual: 150
3. Check: 150 < 200 → ✅ PASS

Boolean Criteria

Criterion: "Build succeeds"
Evidence: "Build completed successfully"

Verification:
1. Look for success keywords: "success", "completed", "passed"
2. Look for failure keywords: "fail", "error"
3. If ambiguous → Return REJECT (ask for clearer evidence)

Step 4: Check for Vague Criteria

Reject unmeasurable criteria:

for criterion in criteria:
    is_vague = (
        "improve" in criterion and no numbers
        or "better" without baseline
        or "make progress" without metrics
        or criterion
Полный SKILL.md на GitHub

Установить bazinga-validator в Claude Code и Claude Desktop

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

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

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

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

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

Bash
Read
Grep
Skill

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

resources/validator_config.json

FAQ

Что делает скилл bazinga-validator?

Validates BAZINGA completion claims with independent verification. Spawned ONLY when PM sends BAZINGA. Acts as final quality gate - verifies test failures, coverage, evidence, and criteria independently. Returns ACCEPT or REJECT verdict.

Как установить скилл bazinga-validator?

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

Скилл bazinga-validator запускает скрипты?

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

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

Сравнить bazinga-validator с