task-loop-verify
БесплатноБез исполняемых скриптовНе проверенVerify the current task and output a completion marker. Use this to check if a task is complete and signal the stop hook to allow session exit.
от jsegov★ 22 звезды на GitHubОб этом скилле
Task Loop Verification
Verify the current task in the loop and output a completion marker if successful. This skill wraps task-verifier and outputs the marker that the stop hook looks for.
When to Use
Use this skill when:
- You've finished implementing a task and want to verify it
- The stop hook has triggered another loop iteration
- You want to exit the task loop cleanly
Process
Step 1: Read Loop State
First, check for the pointer file and get the state path:
if -f .shipspec/active-loop.local.json; then
LOOP_TYPE=$(jq -r '.loop_type // empty' .shipspec/active-loop.local.json)
if "$LOOP_TYPE" == "task-loop"; then
jq -r '.state_path // empty' .shipspec/active-loop.local.json
else
echo "WRONG_LOOP_TYPE"
fi
else
echo "NO_POINTER"
fi
If NO_POINTER or WRONG_LOOP_TYPE:
"No active task loop. Run
/implement-task <feature> <task-id>to start a task." Stop here.
If state_path found: Check the state file exists:
test -f [state_path] && echo "EXISTS" || echo "NO_STATE_FILE"
If NO_STATE_FILE: Clean up stale pointer and report:
rm -f .shipspec/active-loop.local.json
"No active task loop (stale pointer cleaned up). Run
/implement-task <feature> <task-id>to start a task." Stop here.
If found: Parse the JSON state file to extract:
jq -r '.feature // empty' [state_path]
jq -r '.task_id // empty' [state_path]
jq -r '.iteration // 0' [state_path]
jq -r '.max_iterations // 5' [state_path]
feature: The feature directory nametask_id: The task being implementediteration: Current attempt numbermax_iterations: Maximum allowed attempts
Store the state_path for cleanup later.
Step 2: Load Task Prompt
The task prompt is stored in TASKS.json, not in the state file.
Read the prompt from TASKS.json:
jq -r --arg id "[task_id]" '.tasks[$id].prompt // empty' .shipspec/planning/[feature]/TASKS.json
Step 3: Run Verification
Delegate to the task-verifier agent with:
- The full task prompt (including acceptance criteria)
- The feature name
- The task ID
Step 4: Handle Result
Based on task-verifier result:
VERIFIED
All acceptance criteria passed.
Clean up state file:
rm -f [state_path] .shipspec/active-loop.local.jsonUpdate TASKS.json: Use task-manager agent with
update_statusoperation to set status tocompletedLog completion to
.claude/shipspec-debug.log:$(date -u +%Y-%m-%dT%H:%M:%SZ) | [task_id] | LOOP_END | VERIFIED after [iteration] attemptsOutput the completion marker:
<task-loop-complete>VERIFIED</task-loop-complete>Tell user: "Task [task_id] verified! All acceptance criteria passed."
INCOMPLETE
Some criteria failed. Manual intervention required.
Clean up state file:
rm -f [state_path] .shipspec/active-loop.local.jsonLog the failure to
.claude/shipspec-debug.log:$(date -u +%Y-%m-%dT%H:%M:%SZ) | [task_id] | LOOP_END | INCOMPLETE | [brief failure reason]Output the incomplete marker:
<task-loop-complete>INCOMPLETE</task-loop-complete>Show the user what failed:
"## Verification Failed
The following criteria are not met:
- [List failed criteria]
Please fix these issues and run
/implement-task [feature]again."
BLOCKED
Cannot verify due to infrastructure issues.
Clean up state file:
rm -f [state_path] .shipspec/active-loop.local.jsonLog to
.claude/shipspec-debug.log:$(date -u +%Y-%m-%dT%H:%M:%SZ) | [task_id] | LOOP_END | BLOCKED | [reason]Output the blocked marker:
<task-loop-complete>BLOCKED</task-loop-complete>Tell user: "Task verification is blocked: [reason]. Manual intervention required."
Important Notes
- Completion markers are critical - the stop hook looks for these to decide whether to allow session exit
- All results output markers - VERIFIED, INCOMPLETE, and BLOCKED all output completion markers to exit the loop
- INCOMPLETE requires manual fix - user must address issues and re-run
/implement-task - BLOCKED needs investigation - tasks that can't be verified need manual attention
- State file cleanup - always remove on any completion (VERIFIED, INCOMPLETE, or BLOCKED) to prevent stale loops
- Prompts in TASKS.json - the task prompt is read from TASKS.json, not stored in the state file
Установить task-loop-verify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBash(rm:*)Bash(jq:*)TaskFAQ
Что делает скилл task-loop-verify?
Verify the current task and output a completion marker. Use this to check if a task is complete and signal the stop hook to allow session exit.
Как установить скилл task-loop-verify?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл task-loop-verify запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic