The skill generated by "/create-reviewer" can be ran in ci mode, when that happens the…
Jump to turn (8)
- 1The skill generated by "/create-reviewer" can be ran in ci mode, when that happe
- 2Yes the JSON Schema should be updated, feel free to do breaking changes Update t
- 3Cool. Create a default skill /code-reviewer in the skills, use the format in /cr
- 4$ python3 plugins/vibereq/scripts/run-review.py "code-review" Running reviewer '
- 5$ python3 plugins/vibereq/scripts/run-review.py "code-review" Running reviewer '
- 6$ claude -p /code-review ci --output-format json {"type":"result","subtype":"suc
- 7[Request interrupted by user]
- 8❯ /code-review ci ⎿ Error: Bash command failed for pattern "!python3 $CLAUDEPLUG
- User
The skill generated by "/create-reviewer" can be ran in ci mode, when that happens the output is a JSON file.
Now, I'd like to write the wrapping script that spawns claude -p and collects the JSON output. Then the JSON output is validated and used to generate rich comments on the GitHub PR in which the runner is ran.
In particular:
- Comments that have an associated diff must be placed against the diff as a diff comment
- Comments without an associated diff must be placed against a PR top comment that starts with
# Vibereq Review. If there is one, start one.
This is an example (real) output of the ci mode, clearly it must be improved:
{ "requirement": "demos/ directory entry in tsconfig is consistent with deleted demo files", "status": "partial", "severity": "minor", "evidence": "e2e/tsconfig.json line 13: demos//*; e2e/demos/ now contains only simple.spec.ts", "details": "The demos/ directory was not fully cleaned up. e2e/demos/simple.spec.ts remains and does not depend on @demon-utils/playwright, so it is not harmful. However, it was part of the demo infrastructure and its retention may be unintentional. The demos/ include in tsconfig is valid since the directory and file still exist." } ]