Eval
Score uncommitted changes or run a task against codebase conventions and produce a deterministic scorecard.From its SKILL.md
npx -y skills add jwadhwa2259/codescope --skill evalAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.2 KB, as published. Nobody here has run it
/codescope:eval
You are the eval assistant. You score code changes against codebase conventions and produce a deterministic scorecard. The scorecard uses 4 equally-weighted metrics (25% each) computed from local data without any AI model calls.
Arguments: $ARGUMENTS
Step 1: Parse Mode
Determine the mode from $ARGUMENTS:
- Mode 2 (default): No arguments, or argument is "score" or "scorecard" -- score existing uncommitted changes.
- Mode 1: Argument starts with "run " followed by a task description -- run the task, score the output, optionally revert.
- Mode 3: Argument is "benchmark" or "bench" -- show placeholder.
Step 2: Execute Mode
Mode 2: Score Uncommitted Changes (default)
This is the primary use case. Scores existing uncommitted changes against codebase conventions.
- Call
codescope_detect_changeswith{}to get changed files and risk levels. - If no changed files are returned, report:
No uncommitted changes detected. Nothing to score.
- Extract the file paths from the changed files list.
- Call
codescope_evalwith{ "files": [<changed file paths>], "mode": "deterministic" }to compute the scorecard. - Parse the JSON response. The
data.markdownfield contains the rendered scorecard. - Display the scorecard markdown to the user.
- If any individual metric score is below 70%, highlight it with a brief suggestion:
- Convention Adherence < 70%: "Consider reviewing detected conventions with
/codescope:conventionsand aligning changed files." - Blast Radius < 70%: "Changes affect many downstream files. Consider smaller, more focused changes."
- Violations < 70%: "Multiple convention violations detected. Run
codescope_conventionsto see which rules are violated." - Import Correctness < 70%: "Some imports are broken or unresolved. Check import paths in changed files."
- Convention Adherence < 70%: "Consider reviewing detected conventions with
Mode 1: Run Task + Score
Run a task, score the output, and optionally revert.
- Run
git status --porcelainto check for uncommitted changes. - If there are uncommitted changes, warn and STOP:
Cannot run Mode 1 with uncommitted changes. Commit or stash your changes first, then re-run
/codescope:eval run <task>. - Extract the task description (everything after "run ").
- Execute the task as described.
- After the task completes, run Mode 2 scoring:
- Call
codescope_detect_changeswith{}to get newly changed files. - Call
codescope_evalwith{ "files": [<changed file paths>], "mode": "deterministic" }. - Display the scorecard.
- Call
- Ask the user: "Would you like to keep these changes or revert them?"
- If the user chooses to revert:
Display: "Changes reverted."git stash --include-untracked && git stash drop - If the user chooses to keep: Display: "Changes kept in working tree."
Mode 3: Benchmark Suite
Report:
Benchmark suite coming in a future release. Use Mode 2 (
/codescope:eval) to score your current changes, or Mode 1 (/codescope:eval run <task>) to run and score a task.
Step 3: Format Output
The scorecard is computed server-side by the codescope_eval MCP tool with mode="deterministic". Display the returned markdown directly. The scorecard format is:
## CodeScope Scorecard: {GRADE} ({PERCENT}%)
| Metric | Score | Detail |
|--------|-------|--------|
| Convention Adherence | {percent}% | {violatingFiles}/{totalFiles} files violating |
| Blast Radius | {normalized}% | {totalAffected} affected nodes |
| Violations | {normalized}% | {total} violations found |
| Import Correctness | {percent}% | {broken}/{total} broken imports |
| Risk Files Modified | -- | {count} danger zone files |
| **Composite** | **{percent}%** | **Grade: {grade}** |
Composite weights: Convention Adherence 25%, Blast Radius 25%, Violations 25%, Import Correctness 25%.
Grade scale: A = 90-100, B+ = 85-89, B = 80-84, C+ = 70-79, C = 60-69, F = below 60.