feat: add waza quality command — LLM-as-Judge skill quality scoring#218
Merged
Conversation
…98 Add `waza quality <skill-path>` command that uses an LLM to evaluate skill content quality across five dimensions: - clarity: instruction clarity and structure - completeness: coverage of edge cases and detail level - trigger_precision: USE FOR / DO NOT USE FOR definition quality - scope_coverage: boundary clarity and capability explicitness - anti_patterns: avoidance of vague/conflicting instructions Implementation: - internal/quality/rubric.go: dimension definitions and validation - internal/quality/judge.go: prompt construction, LLM execution, response parsing - internal/quality/report.go: table and JSON output formatting - cmd/waza/cmd_quality.go: CLI command with --model, --format, --rubric flags - 28 tests covering rubric validation, judge execution, response parsing, report formatting, auth errors, and edge cases - Documentation in README.md and site CLI reference Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Apply gofmt formatting to scope_reduction.go (struct alignment, blank line) - Apply gofmt formatting to scope_reduction_test.go (struct alignment) - Fix errcheck: use comma-ok form for all type assertions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Closes #98
Adds
waza quality <skill-path>— an LLM-as-Judge command that evaluates skill content quality across five dimensions, each scored 1–5:New files
internal/quality/rubric.go— Dimension definitions, validationinternal/quality/judge.go— Prompt construction, copilot SDK execution, JSON response parsinginternal/quality/report.go— Table (with visual score bars) and JSON formatterscmd/waza/cmd_quality.go— CLI command registrationcmd/waza/cmd_quality_test.go— 8 command-level testsinternal/quality/*_test.go— 20 unit testsCLI usage
Flags
--model--formattabletableorjson--rubricDesign decisions
{dimensions: [{name, score, feedback}], overall_score, summary}copilot loginmessage (same pattern aswaza models)Tests
go test ./...— all passgo vet ./...— cleancd site && npm run build— ✅Docs updated
README.md— new command sectionsite/src/content/docs/reference/cli.mdx— full CLI reference entry