AGENT SKILL

test-review

Test and CI review — detect theater tests vs real tests, e2e suite quality, GitHub Actions and Prow config correctness. Triggered by "review these tests", "is this a real test", "review the workflow", "review this e2e", or /test-review

License 许可
MIT
最近更新
2026-10-13
Stars
★ 4
Forks
1

01 前言 Front Matter

name
test-review
tools
[ "Read", "Grep", "Glob", "Bash" ]
description
Test and CI review — detect theater tests vs real tests, e2e suite quality, GitHub Actions and Prow config correctness. Triggered by "review these tests", "is this a real test", "review the workflow", "review this e2e", or /test-review
user-invocable
true
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Test Review

Systematic review of test, e2e, and CI changes. Flags theater tests, flaky e2e patterns, and CI misconfiguration — not style.

Process

  1. Scope the diff to test and CI files:
git diff --name-only HEAD~1 | grep -Ei '_test\.|(^|/)e2e|\.github/workflows/|prow|OWNERS|\.ya?ml$'
  1. Run available CI linters (and flag their absence if the repo ships CI without them):
if command -v actionlint >/dev/null; then actionlint; else echo "actionlint not installed"; fi
  1. Walk the checklist (references/test-review-checklist.md):

    • Theater-test detection, e2e/integration quality, GitHub Actions, Prow
  2. Apply the deletion test to every test touched: would it fail if the code under test were deleted? If not, it is theater.

  3. Report findings:

    • file:line for each issue
    • Category: theater-test / flakiness / ci-config / coverage-gap
    • Severity: must-fix / should-fix / consider
    • Reason: which checklist item flagged it

Dispatched mode (pr-review integration)

When invoked by the pr-review dispatcher, read references/test-review-checklist.md, review ONLY the changed lines in the PR diff, and return a findings list. Each finding has:

  • file — repo-relative path
  • line — NEW-file (RIGHT-side) line number
  • description — 1–2 sentences
  • category — theater-test / flakiness / ci-config / coverage-gap
  • severity — must-fix / should-fix / consider
  • reason — which checklist item flagged it

Take NO external actions of any kind in dispatched mode — findings are returned as data, never posted.

Scope

Changed files only unless explicitly asked for a full-suite review.

Gotchas

  • Don't demand 100% coverage — flag gaps only in behavior the PR claims to add.
  • Don't flag what actionlint or checkconfig already catches — but DO note when the repo ships CI yet lacks those linters.
  • Don't rewrite the test strategy — flag issues within the existing approach.
  • A green run proves nothing about a test's value; judge by the deletion test, not the pass.

04 同仓库更多 Skills

ArangoGutierrez
ArangoGutierrez/claude-toolkit

update-cursor-settings

Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

update-cli-config

View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

statusline

Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

split-to-prs

Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

shell

Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

sdk

Guide users building apps, scripts, CI pipelines, or automations on top of the Cursor SDK - TypeScript (`@cursor/sdk`) or Python (`cursor-sdk` / `cursor_sdk`). Use when the user mentions integrating, installing, or writing code against the Cursor SDK; says `Agent.create`, `Agent.prompt`, `Agent.resume`, `agent.send`, `run.stream`, `run.messages`, `CursorAgentError`, `@cursor/sdk`, `cursor-sdk`, or `cursor_sdk`; asks to run Cursor agents programmatically from a script, CI/CD pipeline, GitHub Action, backend service, or other code outside the Cursor IDE; wants to pick between local and cloud runtime, configure MCP servers for an SDK agent, or handle streaming, cancellation, or errors; or is wiring Cursor into an automation, bot, or REST `/v1/agents` migration. Use eagerly rather than answering from memory; the SDK surface evolves and this skill is the source of truth for the external packages.

★ 4