Token导航 LogoToken导航

Agent Skill · 研究检索

run-automated-tests(运行自动化测试)

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

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

总安装 461周安装 19GitHub Stars 7下载 150核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nesnilnehc/ai-cortex --skill run-automated-tests

这个 Skill 是做什么的

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

run-automated-tests 用于辅助测试设计、自动化测试、用例整理和回归验证。适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑。

通过 npx skills add 命令从指定 GitHub 仓库安装并使用。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/run-automated-tests

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

run-automated-tests 怎么安装?

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

run-automated-tests 支持哪些 AI 工具?

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

run-automated-tests 需要什么权限?

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

run-automated-tests 是免费的吗?

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

run-automated-tests 用的人多吗?

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

run-automated-tests 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
run-automated-tests

运行自动化测试 · 本页

4617调用外部服务未明确有提醒

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

SKILL.md 原文

Skill: Run Automated Tests

Purpose

Determine how a target repository expects automated tests to be executed (commands, frameworks, prerequisites, and scope), then run the best matching test suite(s) with a safety-first interaction policy.


Core Objective

Primary Goal: Produce test execution results with evidence-based command selection and safety guardrails.

Success Criteria (ALL must be met):

  1. ✅ Test plan discovered: Evidence sources identified (docs, CI configs, or build manifests)
  2. ✅ Commands selected: Appropriate test commands chosen based on mode (fast/ci/full) and constraints
  3. ✅ User confirmation obtained: Approval received before installing dependencies, using network, or starting services
  4. ✅ Tests executed: Commands run with captured output and exit codes
  5. ✅ Results summarized: Test Plan Summary produced with evidence, commands, execution status, and failures (if any)

Acceptance Test: Can a developer reproduce the test execution by following the Test Plan Summary without additional context?


Scope Boundaries

This skill handles:

  • Discovering test commands from repository evidence (docs, CI, build manifests)
  • Selecting appropriate test commands based on mode and constraints
  • Executing tests with safety guardrails and user confirmation
  • Summarizing test results with evidence and failure diagnostics

This skill does NOT handle:

  • Test quality assessment or coverage analysis (use review-testing)
  • Fixing failing tests or debugging test failures (use run-repair-loop)
  • Writing new tests or test infrastructure (use development skills)
  • Reviewing test code for best practices (use review-testing)

Handoff point: When tests complete (pass or fail), hand off to run-repair-loop for fixing failures or review-testing for quality assessment.

Use Cases

  • You cloned a repo and want the correct test command without guessing.
  • A repo has multiple test layers (unit/integration/e2e) and you need a safe default run plan.
  • CI is failing and you want to reproduce locally by running the same commands used in workflows.

Behavior

  1. Establish scope and constraints (ask if ambiguous)

- If the user did not specify, default to a fast, local, non-destructive run: - Unit tests only, no external services, no Docker, no network-dependent setup. - Ask the user to choose a mode if needed: - fast: unit tests only, minimal setup. - ci: mirror CI workflow commands as closely as possible. - full: include integration/e2e tests and service dependencies. - Ask whether Docker is allowed, whether network access is allowed, and whether installing dependencies is allowed.

  1. Discover the test plan (evidence-based)

- Read these sources in order; stop early if a clear, explicit test command is found: - README.md, CONTRIBUTING.md, TESTING.md, docs/testing*, Makefile - CI configs: .github/workflows/*.yml, .gitlab-ci.yml, azure-pipelines.yml, Jenkinsfile - Build manifests: package.json, pyproject.toml, setup.cfg, tox.ini, go.mod, pom.xml, build.gradle*, *.csproj, Cargo.toml - Identify: - Primary test entrypoints (npm test, pnpm test, yarn test, pytest, tox, go test, dotnet test, mvn test, gradle test, cargo test, etc.) - Test layers and markers (unit vs integration vs e2e) - Environment prerequisites (DB, Redis, Docker Compose, required env vars, secrets) - How CI sets up dependencies (services, caches, artifacts) - Prefer explicit instructions found in docs or CI over heuristics.

  1. Select an execution plan

- If ci mode: derive the run sequence from the repo's CI workflow steps (closest match). - If fast mode: pick the most direct unit-test command with the least prerequisites. - If multiple stacks exist (e.g., backend + frontend), propose running each stack separately in a deterministic order. - If the plan requires dependency installation or service startup, request confirmation before proceeding.

  1. Execute with guardrails

- Always print the exact commands you will run before running them. - Use a working directory rooted at the target repo (default .). - Capture and summarize failures: - First failing command and exit code - The most relevant error excerpt - Next actions (missing toolchain, missing env var, service not running, etc.) - Avoid destructive operations: - Do not run rm -rf, git clean -fdx, docker system prune, or database drop/migrate commands without explicit user approval. - If the repo requires secrets, do not ask the user to paste secrets into chat. Prefer .env files, secret managers, or documented local dev flows.

Input & Output

Input

  • Target repository path (default .).
  • Mode: fast (default), ci, or full.
  • Constraints: allow dependency install (yes/no), allow network (yes/no), allow Docker (yes/no).

Output

  • A short "Test Plan Summary" containing:

- Evidence: which files/paths informed the plan - Chosen commands (in order) - Assumptions and prerequisites - What was executed and what was skipped (and why)

  • Command transcript snippets sufficient to debug failures (do not dump extremely long logs unless asked).

Restrictions

Hard Boundaries

  • Do not invent test commands when evidence exists (prefer docs/CI).
  • Do not install dependencies, run Docker, or start external services without confirmation.
  • Do not modify repository files unless the user explicitly requests it (exception: generating a report file if the user asked for artifacts).
  • Do not exfiltrate secrets; do not request sensitive credentials in chat.

Skill Boundaries (Avoid Overlap)

Do NOT do these (other skills handle them):

  • Test quality assessment: Evaluating test coverage, test design, or testing best practices → Use review-testing
  • Fixing test failures: Debugging failing tests, repairing broken test code, or investigating root causes → Use run-repair-loop
  • Writing tests: Creating new test cases, test infrastructure, or test frameworks → Use development/implementation skills
  • Code review: Reviewing test code for quality, maintainability, or best practices → Use review-testing
  • Repository analysis: Comprehensive codebase structure analysis or architecture review → Use review-codebase

When to stop and hand off:

  • Tests fail and user asks "why?" or "how to fix?" → Hand off to run-repair-loop for debugging and repair
  • User asks "are these tests good?" or "what's our coverage?" → Hand off to review-testing for quality assessment
  • User asks "can you write tests for X?" → Hand off to development workflow for test implementation
  • Tests pass and user asks "what should we test next?" → Hand off to review-testing for test strategy recommendations

Self-Check

Core Success Criteria (ALL must be met)

  • Test plan discovered: Evidence sources identified (docs, CI configs, or build manifests)
  • Commands selected: Appropriate test commands chosen based on mode (fast/ci/full) and constraints
  • User confirmation obtained: Approval received before installing dependencies, using network, or starting services
  • Tests executed: Commands run with captured output and exit codes
  • Results summarized: Test Plan Summary produced with evidence, commands, execution status, and failures (if any)

Process Quality Checks

  • Evidence-based selection: Did I identify at least one authoritative test instruction source (doc file, CI workflow, or build manifest)?
  • Safety guardrails applied: Did I ask for confirmation before any action that installs dependencies, uses network, starts Docker/services, or changes state?
  • Commands printed: Did I print the exact commands before running them?
  • Failures diagnosed: If tests failed, did I provide the first failing command, exit code, and likely root cause category?
  • No destructive operations: Did I avoid running destructive commands (rm -rf, git clean, docker system prune, database drops) without explicit approval?
  • No secret exfiltration: Did I avoid requesting sensitive credentials in chat and prefer .env files or documented local dev flows?

Acceptance Test

Can a developer reproduce the test execution by following the Test Plan Summary without additional context?

If NO: Test Plan Summary is incomplete. Add missing evidence, commands, or prerequisites.

If YES: Skill execution is complete. Proceed to handoff if needed.

Examples

Example 1: JavaScript repo with package.json

User: "Run tests for this repo."

Agent:

  1. Inspect package.json scripts and .github/workflows/*.
  2. Decide mode fast and propose:

- npm test (or pnpm test / yarn test if the repo standardizes on it)

  1. Ask: "Install dependencies (npm ci) and allow network?"
  2. Run:

- npm ci - npm test

  1. Summarize results and point to failing test output if any.

Example 2 (Edge case): Monorepo with integration tests requiring Docker

User: "Mirror CI locally."

Agent:

  1. Parse .github/workflows/ci.yml and identify separate jobs:

- backend unit tests - frontend tests - integration tests with docker compose

  1. Ask for confirmation:

- allow Docker - allow network - which jobs to run (all vs only failing job)

  1. Execute in a controlled order:

- install deps per job - run unit tests first - bring up services for integration tests

  1. If integration tests fail, summarize:

- service health / port conflicts - missing env vars - how CI config differs from local


Appendix: Output contract

Each skill execution MUST produce a Test Plan Summary in this exact JSON format:

{
  "test_plan_summary": {
    "mode": "fast | ci | full",
    "evidence": ["path/to/source1", "path/to/source2"],
    "commands": [
      {"command": "npm test", "purpose": "run unit tests", "order": 1}
    ],
    "prerequisites": ["npm ci", "Docker running"],
    "executed": ["npm ci", "npm test"],
    "skipped": ["integration tests - require Docker"],
    "result": {
      "status": "passed | failed | blocked",
      "exit_code": 0,
      "first_failure": {
        "command": "npm test",
        "exit_code": 1,
        "error_excerpt": "FAIL src/utils.test.js"
      }
    }
  }
}
ElementTypeDescription
modestringSelected mode: fast, ci, or full
evidencearraySource files that informed the test plan
commandsarraySelected test commands with purpose and order
prerequisitesarrayRequired setup steps
executedarrayCommands actually run
skippedarrayCommands skipped and reason
result.statusstringpassed, failed, or blocked
result.exit_codenumberExit code of test command
result.first_failureobjectFirst failure details (if any)

This schema enables Agent consumption without prose parsing.

平台分布

Codex

37.32%
按下载量换算56

Claude

29.48%
按下载量换算44

Cursor

19.5%
按下载量换算29

Gemini CLI

10.03%
按下载量换算15

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

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

安装前确认

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

继续浏览同类 Skills