golden-test-reviewer
This skill should be used when the user asks to "review golden test", "evaluate testcase", "check testdata quality", "review test coverage", "review PR"…

Установить golden-test-reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Golden Test Reviewer
Skill for reviewing and evaluating gqlkit golden test cases using parallel subagent evaluation.
Purpose
Systematically evaluate golden test cases under packages/cli/src/gen-orchestrator/testdata/, identify issues, and provide concrete fix suggestions. Each test case is evaluated by a dedicated subagent in parallel for efficiency.
Workflow
Step 1: Select Review Target
When the review target is not explicitly specified, ask the user (using the runtime's available interaction mechanism) to choose from the following options:
- All: Review all test cases
- Category: Review test cases in a specific category only
- Basic types (
basic-*) - Scalars (
scalar-*,branded-scalar) - Directives (
directive-*,deprecated-*) - Interfaces (
interface-*) - Unions (
union-*) - Input types (
input-*,oneof-*) - Default values (
default-value-*) - Errors (
*-errors,type-error-*)
- Basic types (
- Diff: Review only test cases with changes between current branch and default branch (main)
- PR/Branch Review: Review golden tests affected by a specific PR or branch
- Reviews test cases modified in the PR/branch
- Evaluates test coverage for features changed in the PR/branch
Detecting Review Mode
When triggered by code review requests (e.g., "review PR #123", "review this branch"), automatically use PR/Branch Review mode.
- If PR number is provided: Use
gh pr diff <number>to get the diff - If branch name is provided or current branch differs from main: Use
git diff main...<branch>
Getting Changed Test Cases
# Get test cases with changes (for Diff mode)
git diff main --name-only -- packages/cli/src/gen-orchestrator/testdata/ | \
sed 's|packages/cli/src/gen-orchestrator/testdata/||' | \
cut -d'/' -f1 | sort -u
# Get test cases with changes from PR (for PR/Branch Review mode)
gh pr diff <PR_NUMBER> --name-only | \
grep '^packages/cli/src/gen-orchestrator/testdata/' | \
sed 's|packages/cli/src/gen-orchestrator/testdata/||' | \
cut -d'/' -f1 | sort -u
# Get test cases with changes from branch (for PR/Branch Review mode)
git diff main...<branch> --name-only -- packages/cli/src/gen-orchestrator/testdata/ | \
sed 's|packages/cli/src/gen-orchestrator/testdata/||' | \
cut -d'/' -f1 | sort -u
Step 1.5: PR/Branch Review - Analyze Diff and Identify Affected Features (PR/Branch Review mode only)
When in PR/Branch Review mode, perform additional analysis to identify affected features and evaluate test coverage.
1.5.1: Get Full Diff
# For PR
gh pr diff <PR_NUMBER>
# For branch
git diff main...<branch>
1.5.2: Identify Affected CLI Components
Analyze the diff to identify which CLI components are affected. Map changed files to feature categories:
| Changed Path | Feature Category |
|---|---|
packages/cli/src/type-extractor/ |
Type extraction (interfaces, unions, scalars, etc.) |
packages/cli/src/resolver-extractor/ |
Resolver extraction |
packages/cli/src/schema-generator/ |
Schema generation |
packages/cli/src/shared/ |
Shared utilities (TSDoc, directives, etc.) |
packages/runtime/ |
Runtime utilities (branded scalars, defineField, etc.) |
1.5.3: Map Features to Test Categories
Based on affected components, determine which test categories should have coverage:
| Component Change | Expected Test Categories |
|---|---|
| Interface handling | interface-* |
| Union handling | union-* |
| Scalar handling | scalar-*, branded-scalar |
| Directive handling | directive-*, deprecated-* |
| Input type handling | input-*, oneof-* |
| Default value handling | default-value-* |
| Error handling | *-errors, type-error-* |
| TSDoc parsing | tsdoc-* |
1.5.4: Check Test Coverage
Compare the expected test categories with actually modified/added test cases. Flag gaps where:
- A feature is modified but no corresponding test case is added/modified
- A new feature is added but no test case covers it
This analysis will be included in the final report (Step 3).
Step 2: Launch Subagents for Parallel Evaluation
For each test case to be reviewed, create a separate subtask with an isolated context (subagent/subtask model) using the runtime's available execution mechanism.
IMPORTANT:
- Treat each test case as an independently designed subtask with clear inputs/outputs.
- Execute independent subtasks in parallel when supported by the runtime.
- Pass only minimal required context to each subtask (target test case, relevant diff, and evaluation criteria) to keep context isolated.
- Normalize and aggregate subtask outputs in the final report.
Subagent Prompt
Read the prompt template from references/subagent-prompt.md and use it for each subagent.
For standard review (All, Category, Diff modes):
- Use the first template in
references/subagent-prompt.md - Rep
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/evaluation-criteria.md
- references/subagent-prompt.md
- references/testcase-structure.md
FAQ
Что делает скилл golden-test-reviewer?
This skill should be used when the user asks to "review golden test", "evaluate testcase", "check testdata quality", "review test coverage", "review PR", "review branch", "code review", or wants to validate golden test cases in packages/cli/src/gen-orchestrator/testdata/. When triggered by general code review requests (PR/branch review), this skill handles the golden test portion of the review. Provides systematic evaluation workflow for gqlkit golden test cases.
Как установить скилл golden-test-reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл golden-test-reviewer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
