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

spec%3atest-plan指定%3 测试计划

Agent Skill

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

总安装

210

周安装

9

GitHub Stars

公开资料未说明

下载量

73
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ikatsuba/skills --skill spec:test-plan

简介

spec%3atest-plan 用于辅助测试设计、自动化测试和用例整理。

  • 适合编写单元测试、端到端测试或根据失败日志定位问题。
  • 使用时需确认项目测试框架、运行命令和夹具数据。
  • 涉及浏览器或外部服务时应区分本地模拟与生产环境。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Generate Test Plan

Role

You are a QA Engineer. Your job is to design tests that find bugs, not confirm success.

  • Derive test cases from requirements, not from the implementation
  • Prioritize edge cases, error states, and boundary conditions alongside happy paths
  • Write steps precise enough that any tester can reproduce without interpretation
  • Never assume the implementation is correct — test what the requirements demand

Creates a manual test plan document based on the specification documents. This skill reads requirements, research, design, and tasks to generate a structured test plan with traceable test cases.

When to use

Use this skill when the user needs to:

  • Create a manual test plan after implementation is complete
  • Generate test scenarios from existing specification documents
  • Establish a structured testing phase for a feature

Specification Files Structure

All specification documents are located in .specs/<spec-name>/ directory:

FileDescription
.specs/<spec-name>/requirements.mdRequirements and acceptance criteria
.specs/<spec-name>/research.mdResearch findings and chosen solutions
.specs/<spec-name>/design.mdTechnical design and architecture
.specs/<spec-name>/tasks.mdImplementation tasks with checkboxes

Read all available files to understand the full context before generating the test plan.

Instructions

Step 0: Check Prerequisites

Read the frontmatter of the prerequisite document. If no frontmatter exists, treat as DRAFT.

PrerequisitePathGate
design.specs/<spec-name>/design.mdHARD
  • HARD gate failed (missing or status is not APPROVED): Display: "Cannot proceed: design.md is missing or not APPROVED (current status: <status>). Run spec:approve <spec-name> design first." Use AskUserQuestion with options: "Run spec:approve now", "Cancel".
  • All gates pass: Proceed silently to Step 1.

Step 1: Locate and Read Specification Documents

  1. If $ARGUMENTS contains a spec name ($0), look in .specs/<spec-name>/
  2. If no spec name provided, list available specs in .specs/ and use the AskUserQuestion tool to let the user choose
  3. Read and parse all specification documents:

- requirements.md - understand what needs to be tested - research.md - understand chosen solutions and edge cases - design.md - understand architecture and integration points - tasks.md - understand what was implemented

Step 2: Analyze for Test Coverage

Before writing the test plan:

  1. Extract all testable requirements from requirements.md (SHALL/WHEN-THEN statements)
  2. Identify user flows and feature areas from the design
  3. Note edge cases, error states, and boundary conditions from research
  4. Review tasks to understand which components were built and how they connect
  5. Group related test cases by feature area or user flow

Step 3: Create the Test Plan Document

Create the document at .specs/<spec-name>/test-plan.md with this structure:

The document MUST begin with YAML frontmatter before the first # heading:

---
status: DRAFT
created: <today's date YYYY-MM-DD>
updated: <today's date YYYY-MM-DD>
---
# Manual Test Plan: [Feature Name]

## Overview
[What is being tested, scope, and goals of this test plan]

## Prerequisites
- [Environment setup needed]
- [Test data or accounts required]
- [Access or permissions needed]
- [Dependencies that must be running]

## Test Scenarios

- [ ] 1. [Scenario Group Name]
  - [ ] 1.1 [Test Case Name]
    - **Preconditions:** [Required state before testing]
    - **Steps:**
      1. [Action to perform]
      2. [Next action]
      3. [Continue as needed]
    - **Expected:** [Observable result that confirms success]
    - _Requirements: X.X_

  - [ ] 1.2 [Test Case Name]
    - **Preconditions:** [Required state]
    - **Steps:**
      1. [Action]
    - **Expected:** [Result]
    - _Requirements: X.X_

- [ ] 2. [Another Scenario Group]
  - [ ] 2.1 [Test Case]
    - **Preconditions:** [State]
    - **Steps:**
      1. [Action]
    - **Expected:** [Result]
    - _Requirements: X.X_

## Summary
- Total: N tests
- Passed: 0
- Failed: 0
- Skipped: 0

Test Plan Guidelines

  1. Trace every requirement - Each testable requirement from requirements.md must be covered by at least one test case via _Requirements: X.X_
  2. Group by feature area - Organize scenario groups by user flow or feature area, not by requirement number
  3. Include edge cases - Add test cases for error states, boundary conditions, empty states, and invalid inputs
  4. Be specific in steps - Each step should be a concrete action the tester can perform without ambiguity
  5. Be specific in expected results - Describe exactly what the tester should observe, not vague outcomes
  6. Include preconditions - State any setup needed before running the test case
  7. Order logically - Start with happy paths, then edge cases, then error scenarios within each group

Checkbox States

  • [] - Pending (not tested)
  • [-] - In progress (currently being tested)
  • [x] - Passed
  • [!] - Failed

Step 4: Confirm with User

After creating the document, show the user:

  1. The location of the created file
  2. A summary of the test plan structure
  3. Total number of test scenarios and test cases
  4. Coverage: which requirements are covered
  5. Use the AskUserQuestion tool to ask if they want to make changes or start testing, with options like "Looks good, start testing", "I want to make changes", "Review test plan first"

Arguments

  • $ARGUMENTS / $0 - The spec name (e.g., "user-auth", "payment-flow")

If not provided, list available specs and ask the user to choose.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

35.17%
按下载量换算26

Claude

31.56%
按下载量换算23

Cursor

17.36%
按下载量换算13

Gemini CLI

9.17%
按下载量换算7

安全审计

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

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills