Token导航 LogoToken导航

Agent Skill · 研究检索

finalrun-generate-test(Finalrun 生成测试)

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

finalrun-generate-test 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 62,244。

总安装 339周安装 14GitHub Stars 公开资料未说明下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/final-run/agent-skills --skill finalrun-generate-test

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助测试设计、自动化测试、用例整理和回归验证。finalrun-generate-test 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合编写单元测试、端到端测试或根据失败日志定位问题。使用时需确认项目测试框架、运行命令和夹具数据,避免误改逻辑。涉及浏览器或外部服务时,应区分本地模拟与生产环境。

安装前建议核对来源仓库和权限范围,确保安全合规使用。

来源仓库内路径:skills/finalrun-generate-test

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/final-run/agent-skills --skill finalrun-genera…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

finalrun-generate-test 怎么安装?

在终端执行 npx skills add https://github.com/final-run/agent-skills --skill finalrun-generate-test。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

finalrun-generate-test 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

finalrun-generate-test 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

finalrun-generate-test 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

finalrun-generate-test 用的人多吗?

公开数据是累计安装 339 次,近一周安装 14 次,下载 111 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

finalrun-generate-test 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
finalrun-generate-test

Finalrun 生成测试 · 本页

339—调用外部服务未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

FinalRun Test Generation

Generate user-focused test specifications for native mobile apps and mobile web apps, and upload them to the FinalRun cloud via MCP tools.

MCP Preflight

Before generating tests:

  1. Run ping.
  2. If ping fails, the FinalRun MCP server may not be installed or configured. Ask the user to verify their MCP setup.
  3. Continue test generation only after MCP is healthy.

Core Principles

Test user-facing functionality only:

  • ✅ User interactions, gestures, and navigation (tap, swipe, scroll, back navigation)
  • ✅ End-to-end screen and feature functionality
  • ✅ Form input, validation, search, filters, and interactive UI elements
  • ✅ Mobile-specific behaviors (keyboard input, screen transitions, orientation changes)
  • ✅ If sign-in is required for a flow, include app login as a prerequisite test and verify the in-app outcome after authentication
  • ✅ App relaunch is allowed only when the scenario explicitly requires it; prompts must explain why relaunch is needed and what must be re-validated after relaunch
  • ❌ APIs, backend endpoints, or server-side logic
  • ❌ Validating third-party authentication provider internals (OAuth, Google, Facebook, GitHub)
  • ❌ App internals, logs, background services, or implementation details
  • ❌ Non-existent screens or functionality not accessible to users

Quality over quantity:

  • Maximum 5 tests per feature (adjust to actual complexity)
  • Understand the user flow thoroughly before generating tests
  • Check for duplicate coverage before creating new tests (use list_tests)
  • Focus on critical workflows users actually need

User Input & Credentials

Test prompts often reference user-specific data such as login credentials, form values, or environment-specific details. Follow these rules:

  1. Never guess or fabricate credentials, emails, passwords, or account-specific values when writing prompts.
  2. Ask the user if any required test input is unknown — this includes but is not limited to:

- Login credentials (username, email, password) - Form field values (addresses, phone numbers, payment details) - Environment-specific URLs or endpoints - Account-specific data (user IDs, org names, project names)

  1. Ask during Step 2 (Plan the Tests) — identify all required user inputs while planning and resolve them before writing prompts.
  2. Use the exact values provided by the user in test prompts — do not substitute or anonymize them.
Not asking the user for unknown inputs is a blocker — do not skip this step or use placeholder values like user@test.com / password123 unless the user explicitly provides them.

Workflow Steps

Step 1 — Analyze the Feature

Read relevant source files to understand the user-facing functionality:

  • Identify all pages/screens involved
  • Map out user flows and interactions
  • Note form fields, buttons, navigation paths, and conditional states
  • Refer the Test user-facing functionality only checklist in Core Principles.
  • If any part of the user flow is ambiguous, ask clarifying questions before continuing.

Step 2 — Auth and Preconditions Intake (Required)

Before planning tests, explicitly collect setup requirements from the user:

  • Determine whether authentication is required for any target flow.
  • If authentication is required, ask for the approved login method and test credentials (or confirm how credentials will be supplied during execution).
  • Ask for required account state, seed data, permissions, feature flags, and environment assumptions needed for the flows.
  • Ask for MFA/OTP handling instructions if applicable.

Hard rules:

  • Never invent credentials, OTP codes, user identities, or test data.
  • Never guess login paths or random account details.
  • If any required credential or precondition is missing, stop and ask the user before continuing.

Step 3 — Plan the Tests

For each user flow identified, plan a test with:

  • Name: A clear, user-action description (e.g. "User filters products by price range")
  • Prompt: Natural-language instructions for the AI agent executing on a real device

Step 4 — Review and Confirm the Test Plan

Present the planned tests to the user for review and confirmation:

  • Display all planned feature tests with their Name and Prompt
  • Display prerequisite tests and their mapped dependency types (auth, navigation, data state, permissions)
  • Display exact planned suite execution order (prerequisites first, then feature tests)
  • Confirm credential and precondition readiness status
  • Allow the user to confirm, edit, add, or remove tests
  • Incorporate the user’s feedback and finalize the test plan before execution
  • Do not execute or upload tests until the user confirms the full plan (tests + prerequisites + order + readiness)
Writing Good Prompts

The prompt drives the entire test execution. Guidelines:

  • Be specific: "Tap the 'Add to Cart' button on the product detail screen" not "Add item"
  • Include verification: "Verify the cart badge shows '1' after adding"
  • Describe the full flow: Navigate → Interact → Assert
  • Reference actual UI elements: Use text labels, button names, and screen titles from the source code
  • Keep it sequential: Write steps in execution order
  • Include expected outcomes inline: "After tapping Submit, a success toast should appear"
  • Do not Add "open or launch the app" in the prompt: The FinalRun runner automatically launches the app before executing tests. Never start prompts with "Open the app", "Launch the app", or similar. Begin directly with navigation or interaction steps.
Example Prompt

Name: User filters products by price range

Prompt:

Navigate to the Products page.
Tap on the filter icon in the top-right corner.
Select the price range $50-$100 using the slider.
Choose "Electronics" from the category dropdown.
Tap "Apply Filters".
Verify the product list updates to show only electronics priced between $50 and $100.
Verify the active filter chips appear at the top of the list.
Verify the result count updates correctly.

Step 5 — Check for Existing Tests

Before creating tests, check what already exists:

Use MCP tool: list_tests
Arguments: { "search": "<feature keyword>" }

Also search for related test suites:

Use MCP tool: list_test_suites
Arguments: { "search": "<feature keyword>" }

Skip any test that duplicates existing coverage.

Step 6 — Set Up the Folder

Before creating tests, ensure a folder exists to organize them. First, check if a suitable folder already exists:

Use MCP tool: browse_folder
Arguments: {}  # browses root level

A folder counts as a match only when its name equals <Feature Name> (case-insensitive).

  • If exactly one matching folder exists — note its folderId and proceed to Step 7.
  • If multiple matching folders exist — ask the user which folder to use.
  • If no matching folder exists — create one:
Use MCP tool: create_folder
Arguments:
  name: "<Feature Name>"
  description: "Tests for <feature description>"
  # parentFolderId: "<id>"  # optional, for nesting under an existing folder

Note the returned folderId for use in the next step.

Step 7 — Create Tests, Then Move Them Into the Folder

For each planned test, create it first:

Use MCP tool: create_test
Arguments:
  name: "<test name from spec>"
  prompt: "<full prompt from spec>"

The tool will return the test ID upon success. Keep track of all created test IDs.

After creating all tests for the feature, move them into the folder from Step 6:

Use MCP tool: bulk_move
Arguments:
  testIds: ["<test-id-1>", "<test-id-2>", ...]
  targetFolderId: "<folder-id-from-step-6>"

Step 8 — Group into a Test Suite

A test suite is an ordered sequence of tests that run end-to-end on a device. To test a feature, the suite must include any prerequisite tests (e.g., login, navigation) that set up the required state, followed by the feature tests themselves — all in execution order.

8a. Resolve app mapping prerequisite

create_test_suite requires an app mapping up front.

Collect app mapping before suite creation:

Use MCP tool: available_apps
Arguments: { "search": "<app name>", "platform": "Android" }  # or "IOS"

Build:

appMapping: { "<appId>": "<appUploadId>" }
8a.1 Missing upload handling (Required)

If no suitable app upload exists for the target platform:

  • Pause suite creation and ask the user to upload/provide an app version before continuing.
  • Ask for required details: target platform, app name, and either:

- app binary path for upload, or - existing appId + appUploadId.

  • Continue with test/folder preparation if needed, but do not run create_test_suite until app mapping is confirmed.

Hard rules:

  • Never invent or guess appId/appUploadId.
  • Never proceed to Step 8d without a confirmed appMapping.
8b. Identify prerequisite tests (Required)

For every feature test, classify preconditions using this checklist:

  • auth: user must be signed in / signed out / in a specific account state
  • navigation: user must already be on a specific screen/context
  • data state: required entities, fixtures, or records must already exist
  • permissions: camera/location/notification permissions must be granted or denied

Each required precondition must map to a prerequisite test in the suite.

Determine what tests must run before the feature tests. For example, to test a Product Details page you need:

  1. Login — authenticate into the app
  2. Navigate to product — search for a product and open the details page
  3. Product details tests — the actual feature tests created in Step 7
8c. Check if prerequisite tests exist

Search for each prerequisite test:

Use MCP tool: list_tests
Arguments: { "search": "<prerequisite keyword>" }
  • If the test exists — note its test ID.
  • If the test does not exist — create it using create_test, note the returned test ID, then move it into the feature folder with bulk_move.
8d. Create the test suite in order (Required)

Assemble all test IDs — prerequisites first, then feature tests — in execution order:

Use MCP tool: create_test_suite
Arguments:
  name: "<Feature Name>"
  description: "<Brief description of what the suite covers>"
  autoSelectPlatform: "Android"  # or "IOS"
  testIds: ["<prerequisite-test-id-1>", "<prerequisite-test-id-2>", ..., "<feature-test-id-1>", "<feature-test-id-2>", ...]
  appMapping: { "<appId>": "<appUploadId>" }

Do not create the suite until all required preconditions are mapped to concrete prerequisite test IDs.

8e. Stop conditions (Required)

Pause and ask the user instead of proceeding if any of the following is true:

  • Missing or unconfirmed credentials for required login flows
  • Unclear authentication path or unclear MFA/OTP handling
  • Missing account state/data prerequisites needed for a flow
  • Ambiguous prerequisite order between setup tests and feature tests
  • Missing suitable app upload for the target platform or missing confirmed appMapping

Test Prioritization

  1. Critical user flows — onboarding, login, checkout, submissions
  2. Interactive features and gestures — tap, swipe, scroll, search, filters
  3. Form input and validation — errors, required fields, keyboard interaction
  4. Navigation flows — screen transitions, back navigation, tab switching
  5. Conditional UI states — loading, empty, error, success states
  6. Mobile-specific behaviors — orientation changes, keyboard, dynamic UI

Quick Checklist

  • Feature analyzed, all user flows mapped
  • Credentials and setup preconditions gathered for auth/data/permissions as needed
  • Existing tests checked via list_tests — no duplicates
  • Folder set up via browse_folder / create_folder
  • Each test name describes a user action (not implementation detail)
  • Prompts are specific, sequential, and include verification steps
  • Tests created via create_test, then moved into folder via bulk_move
  • Suite created via create_test_suite with appMapping
  • Suitable app upload confirmed for target platform (or user prompted to provide/upload one)
  • Every prerequisite dependency is mapped to a concrete prerequisite test ID
  • Suite order confirmed: prerequisites first, then feature tests
  • No invented credentials, OTPs, or random login attempts

Anti-Patterns

❌ Vague prompts: "Test the login" → No verification, no specifics ✅ Good prompts: "Tap Login, enter the provided test credentials, tap Submit, verify home screen loads with welcome message"

❌ Testing implementation: "Verify store updates" → Backend/state concern ✅ Testing user outcome: "Verify the item count in the cart badge updates to 2"

❌ One mega-test: A single test covering 15 different features ✅ Focused tests: Each test covers one user workflow (3-8 steps)

❌ Invented authentication data: "Try a few emails and passwords until login works" ✅ Controlled authentication: Use only user-provided credentials and documented login handling

❌ Unjustified relaunch: "Relaunch app and continue" without reason or post-relaunch checks ✅ Intentional relaunch: Relaunch only when required and verify the expected restored state after relaunch

❌ Assumed app mapping: "Use any app mapping and create the suite" ✅ Confirmed app mapping: If upload is missing, ask the user to provide/upload app version and wait for appMapping

平台分布

Codex

35.38%
按下载量换算39

Claude

33.26%
按下载量换算37

Cursor

17.4%
按下载量换算19

Gemini CLI

10.05%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills