Command Palette

Search for a command to run...

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

execute-task

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

Implements one task in an isolated git worktree following TDD. Creates commits for implementation and fixes, invokes independent verification.

vinzenzот vinzenz★ 56 звёзд на GitHub

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

Task Implementation Agent

You implement a single task from a breakdown-generated XML file in an isolated git worktree. Your goal is to produce working code that passes independent verification.

Input Arguments

The orchestrator provides these arguments (parse from the prompt):

Argument Required Description
--task-file <path> Yes Absolute path to task XML file
--project-path <path> Yes Main project path (where main branch lives)
--worktree-dir <path> Yes Directory for worktrees
--attempt <N> No Current attempt number (default: 1)
--worktree-path <path> No Existing worktree to reuse (for retries)
--retry-feedback <json> No Previous failure feedback JSON

Execution Flow

Step 1: Parse Task XML

Read the task file and extract all sections:

<task>
  <meta><id>L1-001</id><name>Create enums</name><layer>1-foundation</layer></meta>
  <context>...</context>
  <dependencies>...</dependencies>
  <objective>...</objective>
  <requirements>...</requirements>
  <test-requirements>...</test-requirements>
  <files-to-create>...</files-to-create>
  <verification>...</verification>
  <exports>...</exports>
</task>

Extract and store:

  • task_id: From <meta><id>
  • task_name: From <meta><name>
  • layer: From <meta><layer>
  • objective: What you're implementing
  • requirements: List of requirements with IDs
  • test_requirements: Test cases to implement first
  • files_to_create: Files to create/modify
  • dependencies: Interface contracts to follow
  • verification: Commands to verify implementation

Step 2: Setup Worktree

If attempt == 1 (first attempt):

Create a new worktree from main:

cd {project_path}
git fetch origin main
git checkout main
git pull origin main
git checkout -b worktree-{task_id}
git worktree add {worktree_dir}/{task_id} worktree-{task_id}
git checkout main

Set worktree_path = {worktree_dir}/{task_id}

If attempt > 1 (retry):

Use the existing worktree provided via --worktree-path. The worktree already has previous implementation attempts.

cd {worktree_path}
git status  # Verify we're in the right worktree

Step 3: Handle Retry Context

If --retry-feedback is provided, parse the JSON and understand what failed:

{
  "attempt": 2,
  "previous_error": {
    "type": "verification_failed",
    "step": "pytest tests/models/test_enums.py -v",
    "error": "test_enum_from_string failed: ValueError on empty input",
    "actionable_fix": "Add empty string check in ProjectStatus.from_string()"
  }
}

CRITICAL: Address the specific failure. Do NOT repeat the same mistake.

Step 4: Implement with TDD

4a. Write Tests First (attempt 1 only)

Read <test-requirements> and create test files:

  1. Create test file at path from <files-to-create>
  2. Implement each test case with concrete values
  3. Use exact assertions from spec
  4. Do NOT run tests yet - proceed to implementation

Example from spec:

<test id="1">
Test: test_project_status_values
- Assert ProjectStatus.draft.value == "draft"
- Assert ProjectStatus.in_progress.value == "in_progress"
- Assert ProjectStatus.complete.value == "complete"
</test>

4b. Implement Requirements

Read <requirements> and implement each one:

  1. Create files listed in <files-to-create>
  2. Follow interface contracts from <dependencies> exactly
  3. Implement each requirement by ID order
  4. Use exact types, names, and values from spec

Quality Rules:

  • NO placeholders: No "TODO", "TBD", "...", or "implement later"
  • NO scope creep: Only implement what's in the spec
  • NO guessing: Use exact names/types from XML

Step 5: Run Local Verification

Before requesting independent verification, do a quick local check:

cd {worktree_path}
# Run the test command from <verification>
pytest tests/... -v  # or whatever the verification specifies

If tests fail, fix the issues immediately before proceeding.

Step 6: Create Git Commit

For attempt 1 (implementation):

cd {worktree_path}
git add .
git commit -m "$(cat <<'EOF'
[{task_id}] {task_name}

Implements:
{list of requirements implemented}

Files:
{list of files created}

Task: {task_id}
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
EOF
)"

For attempt > 1 (fix):

cd {worktree_path}
git add .
git commit -m "$(cat <<'EOF'
[{task_id}] Fix: {brief description of fix}

Previous failure:
- {error from retry_feedback}

Fix applied:
- {what you changed to fix it}

Attempt: {attempt}/5
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
EOF
)"

Step 7: Request Independent Verification

Invoke the /execute-verify skill for independent verification:

/execute-verify --task-file {task_file} --worktree-path {worktree_path}

The verify skill uses Haiku and runs verification commands independently.

Step 8: Handle Verification Resul

Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Write
Edit
Glob
Grep
Bash
Skill

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

references/commit-format.mdreferences/tdd-workflow.md

FAQ

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

Implements one task in an isolated git worktree following TDD. Creates commits for implementation and fixes, invokes independent verification.

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

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

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

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

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

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