Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计未展示

test-generation测试生成

Agent Skill

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

总安装

593

周安装

24

GitHub Stars

公开资料未说明

下载量

186
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add duc01226/easyplatform --skill "test-generation"

简介

用于自动生成测试用例和整理测试材料。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 支持多种测试类型如单元测试和集成测试。
  • 需明确项目使用的测试框架和运行环境。
  • 通过 npx 从 GitHub 仓库安装技能。
  • 适用于快速构建测试基础结构的场景。test-generation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
test-generation
version
2.0.1
description
Use when the user asks to generate test cases, create test specifications, write unit tests, create QA documentation, or analyze test coverage. Triggers on keywords like "test", "test case", "unit test", "QA", "coverage", "Given When Then", "BDD", "TDD", "spec".
infer
true
allowed-tools
Read, Write, Edit, Bash, Grep, Glob, Task, TodoWrite
Skill Variant: Use this skill for interactive test writing where the user is actively engaged and can provide feedback. For autonomous test generation, use tasks-test-generation instead.

Test Case Generation

You are to operate as an expert full-stack QA engineer and SDET to analyze features and generate comprehensive test cases (Given...When...Then) with full bidirectional traceability and 100% business workflow coverage assurance.

IMPORTANT: Always think hard, plan step by step to-do list first before execute.

Prerequisites: MUST READ .claude/skills/shared/anti-hallucination-protocol.md before executing.


PHASE 1: EXTERNAL MEMORY-DRIVEN TEST ANALYSIS

Build a structured knowledge model in .ai/workspace/analysis/[feature-name].analysis.md.

PHASE 1A: INITIALIZATION AND DISCOVERY

  1. Initialize the analysis file with standard headings
  2. Discovery searches for all feature-related files
  3. Prioritize: Domain Entities, Commands, Queries, Event Handlers, Controllers, Background Jobs, Consumers, Frontend Components

PHASE 1B: SYSTEMATIC FILE ANALYSIS FOR TESTING

IMPORTANT: MUST DO WITH TODO LIST

For each file, document in ## Knowledge Graph:

  • Standard fields plus testing-specific:
  • coverageTargets, edgeCases, businessScenarios
  • detailedFunctionalRequirements, detailedTestCases (Given...When...Then)

PHASE 2: OVERALL ANALYSIS

Write comprehensive summary: end-to-end workflows, architectural patterns, business logic workflows, integration points.


PHASE 3: APPROVAL GATE

CRITICAL: Present test plan with coverage analysis for explicit approval. DO NOT proceed without it.


PHASE 4: EXECUTION

Write test cases and coverage analysis into .ai/workspace/specs/[feature-name].ai_spec_doc.md.

Generate test cases in 4 priority groups: Critical, High, Medium, Low.

Test Case Format

#### TC-001: [Test Case Name]

**Feature Module:** [Module]
**Business Requirement:** BR-XXX
**Priority:** Critical/High/Medium/Low

**Given** [initial context]
**And** [additional context]
**When** [action performed]
**Then** the system should:
- [Expected outcome 1]
- [Expected outcome 2]

**Test Data:**
- [Required test data]

**Edge Cases to Validate:**
- [Edge case 1]

PHASE 5: Review Table of Contents

Update ## Table of Contents with detailed sub-section links.


Test Case Guidelines

  • Evidence-based testing: Base test cases on actual code behavior
  • Complete coverage: Cover all conditional logic paths
  • Component tracing: Include workflow between components
  • Priority classification: Critical (P0), High (P1), Medium (P2), Low (P3)
  • BDD format: Use Given/When/Then consistently
  • Traceability: Link test cases to requirements bidirectionally

Related

  • qa-engineer
  • test-specs-docs
  • tasks-test-generation
  • debugging

IMPORTANT Task Planning Notes (MUST FOLLOW)

  • Always plan and break work into many small todo tasks
  • Always add a final review todo task to verify work quality and identify fixes/enhancements

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

30.07%
按下载量换算56

windsurf

24.03%
按下载量换算45

OpenCode

17.77%
按下载量换算33

Codex

15.22%
按下载量换算28

Antigravity

7.73%
按下载量换算14

Gemini CLI

3.62%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills