Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

test-reviewer测试评审员

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

194

周安装

8

GitHub Stars

37

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:test-reviewer(测试评审员)
来源仓库:https://github.com/majesticlabs-dev/majestic-marketplace
仓库路径:skills/test-reviewer
安装命令:
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill test-reviewer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill test-reviewer

简介

用于辅助测试设计、自动化测试、用例整理和回归验证。

  • 适合编写单元测试、端到端测试、测试计划或根据失败日志定位问题。
  • 使用时需确认项目测试框架、运行命令和夹具数据,避免修改真实逻辑。
  • 涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。
  • 安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加。

SKILL.md

Test Reviewer

Audience: Developers reviewing test suites for quality and completeness.

Goal: Analyze automated tests for coverage completeness, assertion quality, and adherence to testing best practices.

Review Steps

1. Identify Test Context

  • Run git status and git diff to identify changed files and their corresponding test files
  • Use Grep and Glob to locate test files related to the changed code
  • Identify the testing framework (RSpec, Minitest, Jest, Playwright)

2. Map Implementation to Tests

  • Read the implementation files being tested
  • Identify all public methods, endpoints, and behaviors that should have test coverage
  • Create a coverage matrix mapping implementation features to test cases

3. Analyze Test Coverage

For each implementation feature, check if tests exist for:

  • Happy Path: Normal successful execution flows
  • Sad Path: Error conditions, validation failures, edge cases
  • Boundary Conditions: Empty values, nil/null, maximum limits
  • State Transitions: Before/after states, side effects
  • Authorization: Permission checks (if applicable)
  • Integration Points: External service calls, database operations

4. Evaluate Test Quality

  • Assertion Quality:

- Are assertions specific and meaningful? - Do tests verify behavior, not implementation? - Are error messages helpful for debugging?

  • Test Isolation:

- Do tests depend on execution order? - Are external services properly mocked? - Is test data properly set up and torn down?

  • AAA Pattern:

- Clear Arrange (setup) section - Single Act (execution) - Focused Assert (verification)

  • Test Names:

- Do names describe expected behavior? - Would someone understand the test without reading code?

5. Check Test Patterns

  • Framework Compliance:

- RSpec: Proper use of describe, context, it, let, before - Minitest: Proper use of setup, test, fixtures - Jest: Proper use of describe, it, beforeEach, mocks

  • Project Conventions:

- Do tests follow existing patterns in the codebase? - Are shared examples/contexts used where appropriate? - Is test data handled consistently (fixtures vs factories)?

6. Identify Missing Scenarios

Look for common gaps:

  • Nil/Empty Handling: What happens with nil, empty strings, empty arrays?
  • Error Cases: Network failures, database errors, validation failures
  • Concurrency: Race conditions, parallel execution
  • Edge Cases: First/last items, exactly at limits, off-by-one
  • Security: Input sanitization, authorization bypasses
  • Performance: Large data sets, timeout scenarios

7. Check for Test Anti-Patterns

  • Skipped/pending tests without justification
  • Tests with sleep or hardcoded delays (flaky test smell)
  • Tests with non-deterministic data (random values without seeds)
  • Over-reliance on allow_any_instance_of or similar broad mocks

Note: This skill performs static analysis only. Test execution is handled separately to avoid redundant test runs.

Red Flags to Watch For:

  • Tests that always pass (no real assertions)
  • Tests that test Rails/framework behavior, not application code
  • Overly complex test setup indicating design issues
  • Mocking too much (testing mocks, not real behavior)
  • No error case coverage
  • Tests tightly coupled to implementation details
  • Missing database state verification
  • Frozen fixture assertions: Exact collection comparisons (assert_equal [a, b], scope or expect(scope).to eq([a, b])) that break when unrelated fixtures are added. Recommend assert_includes/expect(...).to include(...) instead.

Test Quality Review Report

Provide your findings in this structure:

Test Coverage Summary

  • Implementation Files Reviewed: [count]
  • Test Files Reviewed: [count]
  • Coverage Gaps Identified: [count]
  • Quality Issues Found: [count]

Coverage Matrix

Feature/MethodHappy PathSad PathEdge CasesStatus
[method_name]pass/failpass/failpass/fail[Complete/Gaps]

Critical Coverage Gaps

[List features/methods with missing test coverage, prioritized by risk]

  1. [Feature/Method Name] - [file:line]

- Missing: [what scenarios are not tested] - Risk: [why this gap matters] - Recommended: [specific test to add]

Test Quality Issues

High Priority:

  • [Issue description with file:line reference]
  • Recommendation: [how to fix]

Medium Priority:

  • [Issue description]
  • Recommendation: [how to fix]

Low Priority:

  • [Issue description]
  • Recommendation: [how to fix]

Missing Edge Cases

[List specific edge case scenarios that should be tested]

  1. [Scenario]: [why it matters] → [file to add test]

Pattern Violations

[Tests that don't follow project conventions or best practices]

Recommendations

  1. [Prioritized actionable recommendations]
  2. [Include specific test examples where helpful]
  3. [Reference project patterns to follow]

Overall Assessment

  • Test Suite Health: [Excellent/Good/Needs Work/Critical Gaps]
  • Confidence Level: [High/Medium/Low] - Can we ship with current tests?
  • Priority Actions: [Top 3 things to fix before merging]

Note: All file paths should be absolute. Focus on actionable feedback that improves test quality and coverage.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.7%
按下载量换算21

Claude

28.84%
按下载量换算18

Cursor

19.49%
按下载量换算12

Gemini CLI

8.27%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills