← ClaudeAtlas

request-claude-reviewlisted

Runs a code review of task planning docs via Claude Code, then resolves any comments left. Use when 'request claude review', 'get claude review', 'claude review task', 'have claude review', or when a second pair of eyes is needed on task docs before execution.
mistakenot/auto-stack · ★ 0 · AI & Automation · score 56
Install: claude install-skill mistakenot/auto-stack
# Request Claude Review Send task planning docs to Claude Code for review, then resolve any comments it leaves. > Part of the task planning workflow. See [references/workflow-overview.md](references/workflow-overview.md) for the full pipeline. ## Input - **Task ID** (numeric, e.g. `042`) - The repository root path (absolute) -- use the current working directory if already at root ## Process ### Step 1: Run Claude Review Invoke Claude Code in print mode to review the task docs: ```bash CWD="<ABSOLUTE_REPO_ROOT>" TASK_ID="<TASK_ID>" TASK_DIR=$(find "$CWD/docs/tasks" -maxdepth 1 -type d -name "${TASK_ID}-*" | head -1) if [ -z "$TASK_DIR" ]; then echo "no task folder found for ID $TASK_ID" exit 1 fi TASK_NAME=$(basename "$TASK_DIR") LAST_MSG_FILE="/tmp/claude-$TASK_ID-review.txt" LOG_FILE="/tmp/claude-$TASK_ID-review.log" claude \ --add-dir "$CWD" \ -p \ --dangerously-skip-permissions \ "/review-task $TASK_NAME" \ 2>&1 | tee "$LOG_FILE" > "$LAST_MSG_FILE" CLAUDE_EXIT=${PIPESTATUS[0]} echo "claude exit code: $CLAUDE_EXIT" ``` ### Step 2: Check for Comments Count review comments Claude left in the task docs: ```bash COMMENT_COUNT=$(rg -n "<!-- (UNRESOLVED|RESOLVED|REJECTED)\(P[123]\):" "$TASK_DIR"/*.md | wc -l) echo "review comment count: $COMMENT_COUNT" ``` ### Step 3: Handle Failure If Claude exited non-zero or left no comments, inspect the log to diagnose: ```bash if [ "$CLAUDE_EXIT" -ne 0 ] || [ "$COMMENT_COUNT" -eq 0 ]; then echo