.claude/skills/run/SKILL.md
Single entry point for code review labeling tasks. Creates new tasks or resumes existing ones.
npx skillsauth add Pepe39/chameleon-pr .claude/skills/runInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Creates new tasks or resumes existing ones from where they left off.
$ARGUMENTS (positional): Task ID, optionally followed by auto. E.g.: /run 2937204136 or /run 2937204136 autoauto mode (bypass): When the second token is auto, the skill runs the full pipeline non-interactively: do NOT ask the user anything, do NOT wait for confirmations, do NOT pause between steps. This mode is used when the API / extension invokes the skill via claude -p. Manual console runs (no auto) keep the interactive prompts.Task isolation: During task execution, focus only on the task (PR, diff, comment, labeling). Do not modify project docs, guides, commands, or templates. If you notice a pipeline issue, finish the task first, then report it.
Check if task exists: find tasks/ -maxdepth 2 -type d -name "{id}" 2>/dev/null
(use only the task id, not the full $ARGUMENTS, since it may include auto).
IMPORTANT: Do NOT use glob with ls tasks/*/ID/ as quotes around the path
prevent * expansion and cause false negatives. Always use find.
If the task dir was found, IMMEDIATELY check whether the four deliverable files already exist on disk and are non-empty:
DIR=<path returned by find>
ALL=1
for f in quality.md severity.md context_scope.md advanced.md; do
if [ ! -s "$DIR/deliverables/$f" ]; then ALL=0; break; fi
done
[ $ALL -eq 1 ] && echo ALREADY_DONE
ALREADY_DONE is printed -> the task is already labeled. Do NOT touch
any file. Do NOT bootstrap progress.md. Do NOT run any step. Print:
Task {id} already labeled (deliverables present on disk). Skipping. and STOP
immediately. The API reads the deliverables from disk; nothing else is needed.Why: the API can re-invoke /run {id} auto for tasks that were produced in
earlier sessions. Rerunning the pipeline would waste work and may produce
different labels for an already-validated task. Idempotency is mandatory in
auto mode AND in interactive mode.
mkdir -p tasks/{date}/{id}/deliverables
mkdir -p tasks/{date}/{id}/work
tasks/{date}/{id}/inputs.md:# Task Inputs
Paste your task variables below. Fill in each field from the annotation platform.
## Task Variables
- **pull_request_url:** (paste here)
- **nwo:** (paste here)
- **head_sha:** (paste here)
- **comment_id:** (paste here)
- **body:** (paste here)
- **file_path:** (paste here)
- **diff_line:** (paste here)
- **discussion_url:** (paste here)
- **repo_url:** (paste here)
- **coding_language:** (paste here)
tasks/{date}/{id}/progress.md:# Progress: {id}
**Current Step:** 01 - Parse Inputs
**Status:** pending
**Last Updated:** {timestamp ISO 8601}
| # | Step | Status | Started | Completed |
|---|------|--------|---------|-----------|
| 01 | Parse Inputs | pending | | |
| 02 | Analyze PR | pending | | |
| 03 | Analyze Comment | pending | | |
| 04 | Label Quality | pending | | |
| 05 | Label Severity | pending | | |
| 06 | Label Context Scope | pending | | |
| 07 | Label Advanced | pending | | |
| 08 | Generate Output | pending | | |
tasks/{date}/{id}/task_info.md:# Task: {id}
## Status
Created: {timestamp ISO 8601}
## Input Data
(populated after step 01)
## Analysis
(populated after steps 02-03)
## Labels
(populated after steps 04-07)
## Output
(populated after step 08)
inputs.md and confirm when ready." then wait for confirmation.inputs.md is already populated by the API; continue immediately to step 3 without waiting.progress.md with all steps as "pending"Read tasks/{date}/{id}/progress.md. Extract Current Step and Status.
== Task {id} ==
Steps completed: {N}/8
Next step: {N} - {name} ({status})
If status is "in-progress": "NOTE: This step was interrupted. It will be resumed."
Dispatch logic:
If ALL steps are "done": Show "All steps completed. Task ready for submission." and stop.
Step to command mapping:
| Step | Command | |---|---| | 01 | step-01-parse-inputs | | 02 | step-02-analyze-pr | | 03 | step-03-analyze-comment | | 04 | step-04-label-quality | | 05 | step-05-label-severity | | 06 | step-06-label-context-scope | | 07 | step-07-label-advanced | | 08 | step-08-generate-output |
Read .claude/skills/{step-command}.md and follow ALL instructions from that file with id={id}.
/run {id}".done, then proceed to section 7 (Cleanup) and stop.After the pipeline completes (all steps done) or when the user declines to continue, clean up the cloned repository:
REPO_DIR="tasks/{date}/{id}/work/repo"
if [ -d "$REPO_DIR" ]; then
rm -rf "$REPO_DIR"
echo "Cleaned up repo clone at $REPO_DIR"
fi
This cleanup runs regardless of whether all steps completed or the user stopped early.
testing
step-09-recheck
development
# step-08-generate-output ## What it does Compiles all four axis labels into the final JSON output, validates consistency, and generates the deliverable file ready for submission. ## Prerequisites - Steps 04-07 completed (all four axes labeled) ## Context > See `docs/steps/step10.md` for the submission checklist. ## Arguments - `id` (required): Task ID ## Instructions ### 1. Recover context Read `task_info.md` — extract all four labels and their reasoning from the Labels section. Update
testing
# step-07-label-advanced ## What it does Labels Axis 4 — Advanced. Derives the Advanced label from Context Scope using a deterministic mapping. ## Prerequisites - Step 06 completed (Context Scope labeled) ## Context > See `docs/axis-4-advanced.md` for the mapping rule and definitions. > See `DOCUMENTATION.md` section 7 (Axis 4) for the rationale. ## Arguments - `id` (required): Task ID ## Instructions ### 1. Recover context Read `task_info.md` — specifically the Context Scope label from s
documentation
# step-06-label-context-scope ## What it does Labels Axis 3 — Context Scope. Determines what level of context a reviewer would need to confidently make this comment and documents all evidence used. ## Prerequisites - Step 05 completed (Severity labeled) ## Context > See `docs/axis-3-context-scope.md` for definitions, evaluation criteria, and examples. > See `docs/steps/step8.md` for the step-by-step process. > See `DOCUMENTATION.md` sections 8 (FAQ), 9 (Common Mistakes), and 10 (Tips) for edg