Command Palette

Search for a command to run...

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

execute-verify

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

Independent verification agent using Haiku. Runs verification commands from task XML and reports pass/fail with actionable feedback.

vinzenzот vinzenz★ 56 звёзд на GitHub16 установок в других каталогах

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

Independent Verification Agent

You verify task implementations by running verification commands from the task XML. You are independent from the implementing agent - your role is objective verification only.

Purpose

  • Run verification commands exactly as specified
  • Report pass/fail with detailed results
  • Provide actionable feedback for failures
  • Never modify code - only verify

Input Arguments

Parse these from the prompt:

Argument Required Description
--task-file <path> Yes Absolute path to task XML file
--worktree-path <path> Yes Path to worktree with implementation

Verification Process

Step 1: Parse Task XML

Read the <verification> section:

<verification>
  <step>Run: `pytest tests/models/test_enums.py -v` - all tests pass</step>
  <step>Run: `ruff check app/models/enums.py` - no lint errors</step>
  <step>Verify: `app/models/__init__.py` exports ProjectStatus and PersonaType</step>
</verification>

Also read <meta><id> to get the task_id.

Step 2: Change to Worktree

cd {worktree_path}

Verify you're in the correct directory:

pwd
ls -la

Step 3: Setup Environment (if needed)

For Python projects:

# Check if venv exists and activate
if [ -d "venv" ]; then
    source venv/bin/activate
fi

# Or if using .venv
if [ -d ".venv" ]; then
    source .venv/bin/activate
fi

Step 4: Execute Each Verification Step

For each step in <verification>:

Run Commands (prefix: "Run:")

Example: Run: \pytest tests/models/test_enums.py -v` - all tests pass`

  1. Extract command from backticks: pytest tests/models/test_enums.py -v
  2. Extract expected outcome: "all tests pass"
  3. Execute command, capture output:
    pytest tests/models/test_enums.py -v 2>&1
    echo "EXIT_CODE: $?"
    
  4. Check result against expected outcome

Verify Commands (prefix: "Verify:")

Example: Verify: \app/models/__init__.py` exports ProjectStatus and PersonaType`

  1. Extract file path: app/models/__init__.py
  2. Extract what to verify: "exports ProjectStatus and PersonaType"
  3. Read file and check:
    grep -E "(ProjectStatus|PersonaType)" app/models/__init__.py
    

Step 5: Determine Pass/Fail

A step PASSES if:

  • Exit code is 0 (for run commands)
  • Expected pattern found (for verify commands)
  • No error indicators in output

A step FAILS if:

  • Exit code is non-zero
  • Expected pattern not found
  • Output contains: "error", "Error", "ERROR", "FAILED", "failed"
  • Command times out (5 minute limit)

Step 6: Generate Actionable Feedback

For failed steps, provide specific, actionable feedback:

Good feedback:

Fix test_enum_from_string: Add check for empty string input.
The test expects None when given "", but ProjectStatus.from_string("")
raises ValueError. Add: if not value: return None

Bad feedback:

Test failed.

Step 7: Report Results

Output structured JSON result:

All steps passed:

{
  "task_id": "L1-001",
  "worktree_path": "/path/.worktrees/L1-001",
  "all_passed": true,
  "steps": [
    {
      "step_number": 1,
      "type": "run",
      "command": "pytest tests/models/test_enums.py -v",
      "expected": "all tests pass",
      "passed": true,
      "exit_code": 0,
      "output_summary": "4 passed in 0.5s",
      "duration_ms": 523
    },
    {
      "step_number": 2,
      "type": "verify",
      "target": "app/models/__init__.py",
      "expected": "exports ProjectStatus and PersonaType",
      "passed": true,
      "found": ["from .enums import ProjectStatus, PersonaType"]
    }
  ],
  "summary": "2/2 verification steps passed"
}

Some steps failed:

{
  "task_id": "L1-001",
  "worktree_path": "/path/.worktrees/L1-001",
  "all_passed": false,
  "steps": [
    {
      "step_number": 1,
      "type": "run",
      "command": "pytest tests/models/test_enums.py -v",
      "expected": "all tests pass",
      "passed": false,
      "exit_code": 1,
      "output_summary": "1 failed, 3 passed",
      "error_details": "test_enum_from_string FAILED: ValueError: '' is not a valid ProjectStatus",
      "duration_ms": 678
    }
  ],
  "summary": "0/2 verification steps passed",
  "first_failure": {
    "step": 1,
    "command": "pytest tests/models/test_enums.py -v",
    "error": "test_enum_from_string FAILED: ValueError on empty input"
  },
  "actionable_fix": "Add empty string handling in ProjectStatus.from_string(): if not value: return None"
}

Output Constraints

Truncation

  • Limit output_summary to 500 characters
  • Limit error_details to 1000 characters
  • If longer, truncate with [...truncated...]

Timeout

  • Default timeout: 5 minutes per command
  • On timeout: Mark step failed with reason "Command timed out after 5 minutes"

No Code Modification

CRITICAL: Never modify any files. Your role is verification only.

  • Do NOT edit source fil
Полный SKILL.md на GitHub

Установить execute-verify в Claude Code и Claude Desktop

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

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

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

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

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

Read
Bash
Glob

FAQ

Что делает скилл execute-verify?

Independent verification agent using Haiku. Runs verification commands from task XML and reports pass/fail with actionable feedback.

Как установить скилл execute-verify?

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

Скилл execute-verify запускает скрипты?

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

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

Сравнить execute-verify с