with one click
dkloop
// Run a prompt in a loop until the requested work is fully implemented and verified.
// Run a prompt in a loop until the requested work is fully implemented and verified.
| name | dkloop |
| description | Run a prompt in a loop until the requested work is fully implemented and verified. |
Run a prompt in a loop until fully implemented. In-session equivalent of the dkloop CLI command.
/dkloop <prompt>The argument is the prompt/task to execute. Example: /dkloop add input validation to all API endpoints
Run this bash command to activate the stop hook loop and clean stale state:
source "${DOYAKEN_DIR:-$HOME/work/doyaken}/lib/common.sh"
mkdir -p "$DK_LOOP_DIR"
SESSION_ID="${DOYAKEN_SESSION_ID:-$(dk_session_id)}"
touch "$(dk_active_file "$SESSION_ID")"
rm -f "$(dk_loop_file "$SESSION_ID")" "$(dk_complete_file "$SESSION_ID")"
echo "Loop activated (session: ${SESSION_ID})"
This creates an .active signal file that the stop hook checks. The hook will prevent you from stopping until you write the .complete file.
Work on the user's prompt. Follow the same approach as any implementation task:
Before signaling completion, critically review your work against the original prompt. The stop hook will guide you through a comprehensive audit when you try to stop, including:
self-reviewer agent for an independent adversarial review (code-change sessions only)file:line evidence in code and testsIf you find issues at any step, fix them and re-audit. Do NOT proceed to step 4 until the audit passes.
After the audit passes, stop. The Stop hook manages completion — it will provide
the completion signal file path and promise string after enough quality audit
passes. Do NOT write any .complete files or output promise strings on your own.
.active file is cleaned up automatically when the loop completes or reaches max iterations.[HINT] Download the complete skill directory including SKILL.md and all related files