.claude/skills/step-08-generate-output/SKILL.md
# 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
npx skillsauth add Pepe39/chameleon-pr .claude/skills/step-08-generate-outputInstall 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.
Compiles all four axis labels into the final JSON output, validates consistency, and generates the deliverable file ready for submission.
See
docs/steps/step10.mdfor the submission checklist.
id (required): Task IDRead task_info.md — extract all four labels and their reasoning from the Labels section.
Update progress.md: step 08 status = "in-progress", Started = {timestamp ISO 8601}.
Collect from task_info.md:
Run these checks before generating output. If any check fails, report to the user and STOP.
Field validation:
helpful, unhelpful, wrongnit, moderate, criticaldiff, file, repo, externalRepo-specific conventions, Context outside changed files, Recent language/library updates, Better implementation approach, Falsediff, file, or repo, the context array has at least 1 entryexternal, the context array may be emptyIndependence checks (warnings, not blockers):
wrong AND Severity = nit, flag for review: "Verify: the issue the comment tried to flag is truly nit-level, even though the comment is wrong."helpful AND Advanced = False AND Context Scope = repo, flag for review: "Verify: the comment requires repo-level context but is not considered advanced?"Write tasks/{date}/{id}/deliverables/labels.json:
{
"quality": "{value}",
"severity": "{value}",
"context_scope": "{value}",
"context": [
{
"diff_line": "{value_or_null}",
"file_path": "{value}",
"why": "{value}"
}
],
"advanced": "{category_or_False}"
}
Formatting rules:
advanced must be a string matching one of the platform categories or "False"diff_line must be a string (e.g., "42") or JSON null when empty. Never use "", "null", or a bare numberWrite tasks/{date}/{id}/deliverables/context.json using the table format from table-template.json.
Map the context array entries to the table column IDs:
_dshks = diff_line value (string or empty string if null)ahMYbl = file_path valuedA0ihr = why value{
"rows": [
{
"_dshks": "{diff_line_or_empty}",
"ahMYbl": "{file_path}",
"dA0ihr": "{why}"
}
]
}
Rules:
diff_line is null, use an empty string "" for _dshksWrite one markdown file per axis inside tasks/{date}/{id}/deliverables/.
IMPORTANT: The ## Reasoning section in each file is the justification the user will paste directly into the annotation platform. It must be self-contained, clear, and ready to copy-paste as-is.
quality.md# Quality: {id}
- **Comment:** {first 80 chars of body}...
- **File:** {file_path}:{diff_line}
- **PR:** {pull_request_url}
## Label
**{helpful | unhelpful | wrong}**
## Reasoning
{reasoning from step 04}
severity.md# Severity: {id}
- **Comment:** {first 80 chars of body}...
- **File:** {file_path}:{diff_line}
- **PR:** {pull_request_url}
## Label
**{nit | moderate | critical}**
## Reasoning
{reasoning from step 05}
context_scope.md# Context Scope: {id}
- **Comment:** {first 80 chars of body}...
- **File:** {file_path}:{diff_line}
- **PR:** {pull_request_url}
## Label
**{diff | file | repo | external}**
## Context Evidence
| diff_line | file_path | why |
|---|---|---|
| {line} | {path} | {reason} |
## Reasoning
{reasoning from step 06}
advanced.md# Advanced: {id}
- **Comment:** {first 80 chars of body}...
- **File:** {file_path}:{diff_line}
- **PR:** {pull_request_url}
## Label
**{Repo-specific conventions | Context outside changed files | Recent language/library updates | Better implementation approach | False}**
## Reasoning
{reasoning from step 07}
Add to the Output section:
## Output
- **labels.json:** deliverables/labels.json
- **context.json:** deliverables/context.json
- **quality.md:** deliverables/quality.md
- **severity.md:** deliverables/severity.md
- **context_scope.md:** deliverables/context_scope.md
- **advanced.md:** deliverables/advanced.md
- **Generated:** {timestamp ISO 8601}
- **Validation:** PASSED / PASSED WITH WARNINGS
Update progress.md: step 08 status = "done", Completed = {timestamp ISO 8601}.
Set Current Step to: "ALL COMPLETE"
Display:
== Task {id} COMPLETE ==
All 8 steps completed.
Output files:
- deliverables/labels.json (for submission)
- deliverables/context.json (context table for platform)
- deliverables/quality.md
- deliverables/severity.md
- deliverables/context_scope.md
- deliverables/advanced.md
Labels summary:
Quality: {value}
Severity: {value}
Context Scope: {value}
Advanced: {value}
testing
step-09-recheck
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
testing
# step-05-label-severity ## What it does Labels Axis 2 — Severity. Assesses how severe the issue is that the review comment points out. ## Prerequisites - Step 04 completed (Quality labeled) ## Context > See `docs/axis-2-severity.md` for definitions, evaluation criteria, and examples. > See `docs/steps/step7.md` for the step-by-step process. > See `DOCUMENTATION.md` sections 8 (FAQ), 9 (Common Mistakes), and 10 (Tips) for edge cases and pitfalls. **Critical reminder:** Severity measures the