Repository navigation
fix(skills): align review workflows with current CLI #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fd6ed8d
fix: align review skills with CLI 0.7 scopes
nehal-a2z c15cb95
docs: rely on review auto-auth
nehal-a2z 357986c
Merge remote-tracking branch 'origin/main' into nehal/cli-0.7-public-…
nehal-a2z 8ce2299
fix(skills): match current CLI review and configuration contracts
nehal-a2z 79ec61d
test(skills): add offline CLI behavior evaluations
nehal-a2z 5c930ec
test(skills): assert saved PR prompt output format
nehal-a2z 1017f1d
fix(skills): clarify untracked inclusion with default review scope
nehal-a2z File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| results/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # CLI behavior evaluations | ||
|
|
||
| Six offline cases exercise public scope flags, default and uncommitted untracked-file inclusion, local | ||
| versus PR prompt retrieval, EU browser authentication, and incomplete/skipped | ||
| review output. No shell, writes, network tools, or production reviews are granted. | ||
|
|
||
| With Claude Code 2.1.269+ and an authenticated account, run from the plugin root: | ||
|
|
||
| ```sh | ||
| claude plugin eval . --tag cli-parity --runs 1 --ablation with-without --no-publish --max-cost-usd 10 --keep-temp | ||
| ``` | ||
|
|
||
| Pin `--model` for comparisons. Positive skill activation is diagnostic and does | ||
| not contribute to the outcome score. Deterministic graders check specific command | ||
| contracts; advisory LLM graders are with-only and excluded from the ablation | ||
| score. Inspect the actual answers and retained transcripts: regex checks and LLM | ||
| judges do not establish complete semantic correctness. One run per arm is a smoke | ||
| evaluation, not a reliable effect-size estimate. Results stay under ignored | ||
| `evals/results/`; do not commit account metadata or private source provenance. | ||
|
|
||
| See the [official evaluator documentation](https://code.claude.com/docs/en/plugin-evals). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| "schema_version": "1.1", | ||
| "name": "review-default-untracked", | ||
| "description": "Offline default-scope contract; no shell, network, or file mutations.", | ||
| "tags": [ | ||
| "cli-parity", | ||
| "code-review" | ||
| ], | ||
| "execution": { | ||
| "prompt": "Give a CodeRabbit CLI command for the current repo that preserves its default review scope and also includes brand-new untracked files. Use output suitable for a coding agent. Assume a current official CLI and valid login. Do not execute anything; give the command and a short scope explanation.", | ||
| "max_turns": 15, | ||
| "timeout_seconds": 240, | ||
| "allowed_tools": [ | ||
| "Read", | ||
| "Glob", | ||
| "Grep", | ||
| "Skill" | ||
| ] | ||
| }, | ||
| "graders": [ | ||
| { | ||
| "name": "skill-activation", | ||
| "type": "tool_used", | ||
| "tool": "Skill", | ||
| "input_match": "\"skill\"\\s*:\\s*\"(?:[\\w-]+:)?code-review\"" | ||
| }, | ||
| { | ||
| "name": "default-plus-untracked-command", | ||
| "type": "regex", | ||
| "pattern": "^(?=[^\\n]*\\b(?:coderabbit|cr)\\s+review\\b)(?=[^\\n]*--agent\\b)(?=[^\\n]*--include-untracked\\b)(?![^\\n]*--(?:uncommitted|committed|type)\\b)(?![^\\n]*\\s-t\\s)[^\\n]+$", | ||
| "flags": "mi", | ||
| "match": "contains" | ||
| }, | ||
| { | ||
| "name": "no-untracked-selector-requirement", | ||
| "type": "llm", | ||
| "arm": "with-only", | ||
| "criteria": "PASS if the proposed command uses --agent and --include-untracked without selecting committed-only or uncommitted-only, and the explanation preserves committed plus staged/tracked-unstaged changes while adding untracked files. FAIL if it says --include-untracked requires --uncommitted or silently narrows the default scope." | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| { | ||
| "schema_version": "1.1", | ||
| "name": "review-eu-auth", | ||
| "description": "Offline CLI contract evaluation; no shell, network, or file mutations.", | ||
| "tags": [ | ||
| "cli-parity", | ||
| "code-review" | ||
| ], | ||
| "execution": { | ||
| "prompt": "Prepare a CodeRabbit CLI runbook without executing it. We need a new EU SaaS browser login from an agent with a working local browser callback, then review committed changes. We do not use API keys or self-hosting. Give the login command and review command, keeping both suitable for the agent.", | ||
| "max_turns": 15, | ||
| "timeout_seconds": 240, | ||
| "allowed_tools": [ | ||
| "Read", | ||
| "Glob", | ||
| "Grep", | ||
| "Skill" | ||
| ] | ||
| }, | ||
| "graders": [ | ||
| { | ||
| "name": "skill-activation", | ||
| "type": "tool_used", | ||
| "tool": "Skill", | ||
| "input_match": "\"skill\"\\s*:\\s*\"(?:[\\w-]+:)?code-review\"" | ||
| }, | ||
| { | ||
| "name": "eu-agent-login", | ||
| "type": "regex", | ||
| "pattern": "^(?=[^\\n]*\\b(?:coderabbit|cr)\\s+auth\\s+login\\b)(?=[^\\n]*--agent\\b)(?=[^\\n]*--region\\s+eu\\b)[^\\n]+$", | ||
| "match": "contains", | ||
| "flags": "mi" | ||
| }, | ||
| { | ||
| "name": "review-saved-region", | ||
| "type": "regex", | ||
| "pattern": "^(?=[^\\n]*\\b(?:coderabbit|cr)\\s+review\\b)(?=[^\\n]*--committed\\b)(?=[^\\n]*--agent\\b)(?![^\\n]*--region\\b)[^\\n]+$", | ||
| "match": "contains", | ||
| "flags": "mi" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| { | ||
| "schema_version": "1.1", | ||
| "name": "review-saved-prompts", | ||
| "description": "Offline CLI contract evaluation; no shell, network, or file mutations.", | ||
| "tags": [ | ||
| "cli-parity", | ||
| "code-review" | ||
| ], | ||
| "execution": { | ||
| "prompt": "Using CodeRabbit CLI, I need two runbook commands, not a new review: (1) get saved local fix prompts for packages/api, (2) get the consolidated prompt for https://github.com/example/widgets/pull/123 as machine-readable output while outside any checkout. Assume a current official CLI and valid existing CodeRabbit login. Do not execute anything; give one command per operation and the output format.", | ||
| "max_turns": 15, | ||
| "timeout_seconds": 240, | ||
| "allowed_tools": [ | ||
| "Read", | ||
| "Glob", | ||
| "Grep", | ||
| "Skill" | ||
| ] | ||
| }, | ||
| "graders": [ | ||
| { | ||
| "name": "skill-activation", | ||
| "type": "tool_used", | ||
| "tool": "Skill", | ||
| "input_match": "\"skill\"\\s*:\\s*\"(?:[\\w-]+:)?code-review\"" | ||
| }, | ||
| { | ||
| "name": "local-saved-command", | ||
| "type": "regex", | ||
| "pattern": "^(?=[^\\n]*\\b(?:coderabbit|cr)\\s+review\\s)(?=[^\\n]*--show-prompts\\b)(?=[^\\n]*--dir\\s+[\"\\x27]?packages/api\\b)(?![^\\n]*--agent\\b)[^\\n]+$", | ||
| "match": "contains", | ||
| "flags": "mi" | ||
| }, | ||
| { | ||
| "name": "pr-prompt-command", | ||
| "type": "regex", | ||
| "pattern": "^(?=[^\\n]*\\b(?:coderabbit|cr)\\s+pullrequest\\s+[\"\\x27]?https://github.com/example/widgets/pull/123)(?=[^\\n]*--show-prompts\\b)(?=[^\\n]*--agent\\b)[^\\n]+$", | ||
| "match": "contains", | ||
| "flags": "mi" | ||
| }, | ||
| { | ||
| "name": "pr-prompt-output-format", | ||
| "type": "regex", | ||
| "pattern": "(?=[\\s\\S]*\\b(?:NDJSON|newline[- ]delimited JSON)\\b)(?=[\\s\\S]*\\btype[\"\\x27`]*\\s*[:=]\\s*[\"\\x27`]*prompt\\b)", | ||
| "flags": "i", | ||
| "match": "contains" | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.