Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

systematic-testing系统测试

Agent Skill

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

总安装

404

周安装

17

GitHub Stars

2

下载量

141
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/xbklairith/kisune --skill systematic-testing

简介

用于辅助测试设计、用例编写和回归验证工作。systematic-testing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合让 Agent 生成单元测试、端到端测试脚本或测试计划。
  • 可帮助根据失败日志定位问题、优化测试覆盖率或设计夹具数据。
  • 使用时应确认项目测试框架、运行命令和环境隔离策略。
  • 涉及浏览器或外部服务时需区分模拟环境与生产环境差异。

SKILL.md

Systematic Testing Skill

Purpose

Guide test-driven development (TDD), generate comprehensive test suites, and provide systematic debugging frameworks. Ensures code is well-tested and bugs are resolved methodically rather than through trial-and-error.

Activation Triggers

Activate this skill when:

  • User implements new functionality (auto-suggest tests)
  • Tests fail (activate debugging framework)
  • User says "write tests for this"
  • User mentions "TDD" or "test-driven"
  • User asks about debugging or troubleshooting
  • User says "this bug..." or "error..."
  • Before marking feature complete (verify test coverage)

Core Capabilities

1. Test-Driven Development (TDD)

For complete TDD workflow, use Skill tool to invoke: dev-workflow:test-driven-development

Use Skill tool: Skill(skill: "dev-workflow:test-driven-development")

The test-driven-development skill provides full RED-GREEN-REFACTOR cycle, strict enforcement, anti-patterns, and verification checklists.

Quick TDD Summary:

  1. RED: Write failing test first
  2. GREEN: Write minimal code to pass
  3. REFACTOR: Clean up while tests stay green

This skill focuses on test generation strategies and systematic debugging. For TDD methodology details, use the dedicated skill.


2. Test Generation

Goal: Generate comprehensive test suites covering all scenarios

Test Categories

Normal Cases (Happy Path)

Test expected, typical usage with valid inputs and standard flows.

Edge Cases (Boundary Conditions)

Test limits and boundaries:

  • Very small/large values
  • Equal values where difference is expected
  • Fractional results requiring rounding
  • Empty collections, zero-length strings

Error Cases (Invalid Inputs)

Test error handling:

  • Negative values, zero values
  • Out-of-range parameters
  • Null/nil/None inputs
  • Invalid types

Integration Cases

Test component interactions: full request-response flows, token validation chains, cross-component data passing.

Test Generation Template

suite "[Component/Function Name]":

    setup:    # Reset state, create test data
    teardown: # Clean up, reset mocks

    group "normal operation":
        test "should [expected behavior for typical input]"

    group "edge cases":
        test "should handle [boundary condition]"

    group "error handling":
        test "should reject [invalid input]":
            assert_raises(ExpectedError, invalid_call())

    group "integration":
        test "should work with [other component]"

3. Systematic Debugging Framework

Goal: Resolve bugs methodically, not through random trial-and-error

Phase 1: Root Cause Investigation

  1. Reproduce Bug Consistently - Document exact steps and reproducibility rate
  2. Identify Symptoms - Visible errors, expected vs actual behavior
  3. Gather Evidence - Error messages, stack traces, log entries, network requests, triggering inputs
  4. Form Initial Hypothesis - State hypothesis, supporting evidence, and next step

Phase 2: Pattern Analysis

Answer these questions:

  1. When does it fail? - Specific inputs, users, timing, action sequences?
  2. When does it work? - Any succeeding inputs, unaffected users, regression timing?
  3. What changed recently? git log --since="2 days ago" --oneline git log -p path/to/file git bisect # Find exact commit that introduced bug
  4. Environmental factors? - Local vs production, platform-specific, load-related?

Document the pattern: list conditions under FAILS and WORKS to identify the discriminator.

Phase 3: Hypothesis Testing

  1. Create minimal test case isolating the bug
  2. Add instrumentation (logging) to trace execution
  3. Test hypothesis - Confirm or reject with evidence
  4. Iterate until root cause is found

Phase 4: Fix and Protect

  1. Write test reproducing the bug - Verify it fails before fix
  2. Fix the root cause - Not just symptoms
  3. Verify test passes after fix
  4. Add regression tests for similar edge cases
  5. Document root cause - What, why, and how it was fixed
  6. Commit with context - Reference issue numbers, explain the why

Test Coverage Analysis

Check Coverage: Run your project's test coverage command (e.g., --coverage flag, coverage plugin, or dedicated tool).

Prioritize coverage gaps by:

  1. Critical business logic (highest priority)
  2. Security-sensitive code
  3. Complex algorithms
  4. Error handling paths
  5. Edge cases

Best Practices

TDD

  1. Always write test first - no exceptions
  2. One test at a time - don't batch before implementing
  3. Smallest possible step - each cycle should be 5-10 minutes
  4. Test behavior, not implementation - don't test private methods
  5. Keep tests simple - tests should be easier to understand than code

Test Quality

  1. Clear test names that read like documentation
  2. Arrange-Act-Assert structure consistently
  3. One assertion per test for clear failures
  4. No logic in tests - simple data only
  5. Independent tests - no test depends on another

Debugging

  1. Reproduce first - can't fix what you can't reproduce
  2. Understand before fixing - don't guess and check
  3. Fix root cause - don't just treat symptoms
  4. Add regression test - prevent bug from returning
  5. Document why - help future debuggers

Integration with Dev-Workflow

  • dev-workflow:test-driven-development - Guided TDD workflow, enhanced RED-GREEN-REFACTOR
  • dev-workflow:systematic-testing - Complex debugging, root cause tracing, advanced instrumentation

Common Anti-Patterns to Avoid

  • Writing tests after implementation
  • Changing tests to match implementation
  • Testing implementation details instead of behavior
  • Skipping refactor phase
  • Making multiple changes before testing
  • Debugging by randomly changing code
  • Committing debug logging code

Notes

  • TDD is slower initially but faster overall (fewer bugs, less debugging)
  • Good tests are documentation that never gets outdated
  • Debugging is detective work, not guessing
  • Always add regression tests after fixing bugs
  • Test coverage is a minimum bar, not a goal

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

26.84%
按下载量换算38

windsurf

24.01%
按下载量换算34

trae

19.09%
按下载量换算27

OpenCode

11.62%
按下载量换算16

Codex

8.43%
按下载量换算12

Antigravity

3.27%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills