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

create-handover-test创建切换测试

Agent Skill

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

总安装

485

周安装

20

GitHub Stars

8

下载量

158
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/agentmantis/test-skills --skill create-handover-test

简介

用于辅助测试设计、自动化测试、用例整理和回归验证,适合编写单元测试或端到端测试。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境,支持基于失败日志的问题定位。
  • 通过命令行安装,需确认项目测试框架与运行命令,避免为通过测试而破坏真实逻辑。
  • 涉及浏览器或外部服务时,应区分本地模拟、测试环境与生产环境,防止数据污染。
  • create-handover-test 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Create Handover Test

Generate a ticket-driven handover test that validates specific acceptance criteria.


Workflow

  1. Parse the ticket key and description from the user's request (e.g., PROJ-456 bulk export)
  2. Check if a POM exists for the page under test in e2e/poms/

- If yes, read it and add any new methods needed for this ticket's acceptance criteria - If no, create one first using the create-pom skill

  1. Check if test data exists — create or update as needed
  2. Create the spec file in e2e/tests/handover/
  3. Run the test to verify it passes: npx playwright test --project="chromium:handover" {TICKET}-{description}.spec.ts

Naming Convention

Filename

{TICKET}-{short-description}.spec.ts
  • {TICKET} — The ticket key exactly as it appears in the tracker (e.g., PROJ-456, MANT-123)
  • {short-description} — Brief kebab-case summary (NOT the full ticket title)

Examples:

  • PROJ-456-bulk-export.spec.ts
  • MANT-123-vault-bulk-delete.spec.ts
  • FEAT-789-user-avatar-upload.spec.ts

test.describe Block

The outer test.describe must include the ticket key for traceability:

test.describe('PROJ-456: Bulk Export', () => {

Spec Structure

import { test } from '../../fixtures/base';
import { getAuthFilePath } from '../../helpers/env-config';
import { FeaturePage } from '../../poms/feature.page';

const authFile = getAuthFilePath();

test.describe('PROJ-456: Bulk Export', () => {
    test.beforeAll(async ({ browser }) => {
        const context = await browser.newContext({
            storageState: authFile,
        });
        const page = await context.newPage();
        const pom = new FeaturePage(page);
        await pom.setUp();
        await page.close();
        await context.close();
    });

    test('should export selected items as CSV', async ({ page, testData }) => {
        const pom = new FeaturePage(page);
        const items = testData.feature.items;

        await pom.navigateToPage();
        // ... validate acceptance criteria from ticket
    });

    test('should show error when no items selected', async ({ page }) => {
        const pom = new FeaturePage(page);

        await pom.navigateToPage();
        // ... validate error handling criteria
    });
});

See references/handover-spec-template.md for the full template.


POM Rules

Handover tests follow all the same POM rules as regression/smoke tests:

  • Use the existing POM for the page under test
  • If the ticket requires new interactions, add methods to the existing POM — do NOT create a second POM for the same page
  • Only create a new POM if the ticket introduces an entirely new page
  • All new POM methods must have full JSDoc with Steps and @param tags

All Standard Rules Apply

  • Import test from custom fixtures, not from @playwright/test
  • No raw page calls in specs — all interaction through POMs
  • Every test is independent — creates its own data, navigates independently
  • No hardcoded test data — use external JSON via the testData fixture
  • beforeAll uses manual browser context with storageState for cleanup

Promotion Lifecycle

Handover tests are temporary by design. After the ticket is Done:

ActionWhen
Promote to regressionFeature is permanent, should run on every build
Promote to smokeFeature is on the critical path
DeleteAlready covered by existing tests, or feature was reverted

Use the promote-handover-test skill when ready to promote.

Staleness Policy

  • Review tests/handover/ after every sprint/release
  • Any spec whose ticket is Done/Closed should be promoted or deleted
  • Never leave handover tests running indefinitely

File Checklist

  • e2e/poms/{feature}.page.ts — POM updated with new methods (or new POM created)
  • e2e/test-data/{feature}.json — Test data (created or updated)
  • e2e/tests/handover/{TICKET}-{description}.spec.ts — Spec file
  • Filename includes ticket key prefix
  • test.describe includes ticket key
  • All POM methods have JSDoc
  • Tests pass: npx playwright test --project="chromium:handover" {TICKET}-{description}.spec.ts

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.41%
按下载量换算53

Claude

28.86%
按下载量换算46

Cursor

17.43%
按下载量换算28

Gemini CLI

10.42%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills