Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

helpmetest-self-heal帮助测试自我修复

Agent Skill

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

总安装

720

周安装

30

GitHub Stars

公开资料未说明

下载量

240
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/help-me-test/skills --skill helpmetest-self-heal

简介

helpmetest-self-heal 用于辅助测试设计、自动化测试用例整理和回归验证。

  • 适用于需要编写测试计划或根据失败日志定位问题的开发场景。
  • 使用时需确认项目测试框架、运行命令和夹具数据,避免为通过测试而修改核心逻辑。
  • 涉及外部服务时应区分本地模拟与生产环境,防止误操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Who you are: If .helpmetest/SOUL.md exists in this project, read it before starting — it defines your character and shapes how you work.
No MCP? The CLI has full feature parity — use helpmetest <command> instead of MCP tools. See the CLI reference.

Self-Healing Agent

Monitors test failures and fixes them autonomously.

Mode: On startup, fix all existing failures. Then monitor for new failures and fix them as they occur.

Prerequisites

MANDATORY: Before healing, call:

how_to({ type: "context_discovery" })
how_to({ type: "debugging_self_healing" })
how_to({ type: "interactive_debugging" })

Use context_discovery to find the existing SelfHealing artifact (if any) and resume from it rather than creating a duplicate. Also identifies which Feature artifacts have known bugs so you don't try to heal tests that are failing due to real application bugs.

Startup: Fix Existing Failures

Before scanning all tests blindly, check what recently changed in the codebase. This lets you prioritize the most likely failures first and skip unrelated ones.

git diff --stat HEAD
git log --oneline -5

Map changed file paths to feature domains (e.g., components/Checkoutfeature:checkout, auth/session.jsfeature:auth). Then when you fetch failing tests, sort them: tests tagged with a matching feature:X get investigated first. Tests in unrelated features are deprioritized — they may be failing for a different reason entirely.

If no git repository exists or no recent changes, proceed with the standard full scan below.

On startup, check all tests for failures:

  1. Get list of all failing tests using helpmetest_status
  2. For each failing test:

- Get recent test history to understand failure pattern - Classify failure type (selector change, timing issue, etc.) - Determine if fixable or not

  1. For fixable failures (test issues):

- Investigate interactively using helpmetest_run_interactive_command - Find the fix (new selector, longer timeout, etc.) - Apply fix using helpmetest_upsert_test - Verify fix works using helpmetest_run_test - Document the fix in SelfHealing artifact

  1. For non-fixable failures (likely bugs):

- Document why not fixable in SelfHealing artifact - Include issue type, error message, recommendation

  1. After processing all existing failures, enter monitoring mode

Monitoring: Respond to New Failures

After startup, monitor for test failures using listen_to_events:

When a test fails:

  1. Get error details
  2. Classify failure pattern
  3. If fixable: investigate, fix, verify, document
  4. If not fixable: document as potential bug
  5. Continue monitoring

Healing Workflow

Use this workflow for both startup failures and new failures during monitoring:

  1. Fetch test history:

- Get last 10 runs using helpmetest_status - Look for patterns (alternating PASS/FAIL? changing error values?)

  1. Classify failure pattern:

- Check error type (selector? timeout? assertion?) - Determine root cause using debugging_self_healing.md categories - Decide: test issue (fixable) vs app bug (not fixable)

  1. If fixable (test issue):

- Investigate interactively using helpmetest_run_interactive_command - Find the fix (new selector, longer timeout, etc.) - Validate fix works interactively first - Apply fix using helpmetest_upsert_test - Verify fix by running test multiple times (especially for isolation issues) - Document in SelfHealing artifact: - test_id, pattern_detected, fix_applied, verification_result, timestamp - Tags: feature:self-healing, test:, pattern:

  1. If not fixable (app bug):

- Document in SelfHealing artifact: - issue_type, error_message, why_not_fixable, recommendation

  1. Continue monitoring for new failures

Fixable vs Not Fixable

Fixable (test issues):

  • Selector changed (element still exists, different selector needed)
  • Timing issue (element appears later, need longer wait)
  • Form field added/removed (form structure changed)
  • Button moved (still exists, different location)
  • Test isolation (shared state between tests, make idempotent)

Not fixable (likely bugs):

  • Authentication broken
  • Server errors (500, 404)
  • Missing pages/features
  • Data corruption
  • API endpoints removed

SelfHealing Artifact

Track all healing activity in a SelfHealing artifact. This gives the user a clear record of what was fixed automatically vs what needs human attention.

{
  "type": "SelfHealing",
  "id": "self-healing-log",
  "name": "SelfHealing: Test Maintenance Log",
  "content": {
    "fixed": [
      {
        "test_id": "test-login",
        "pattern_detected": "selector_change",
        "error": "Element not found: button.submit",
        "fix_applied": "Updated selector to [data-testid='submit-btn']",
        "verification_result": "Test passed on re-run",
        "timestamp": "2024-01-15T10:30:00Z",
        "tags": ["feature:authentication", "pattern:selector_change"]
      }
    ],
    "not_fixed": [
      {
        "test_id": "test-checkout",
        "issue_type": "server_error",
        "error_message": "500 Internal Server Error on POST /api/checkout",
        "why_not_fixable": "Backend endpoint returning 500 - application bug, not a test issue",
        "recommendation": "Investigate checkout API endpoint",
        "timestamp": "2024-01-15T10:35:00Z"
      }
    ],
    "summary": {
      "total_processed": 5,
      "fixed": 3,
      "not_fixable": 2,
      "last_run": "2024-01-15T10:35:00Z"
    }
  }
}

Monitoring Loop

The monitor must run in the background — otherwise the agent is blocked while healing a test and can't receive new events at the same time.

Preferred: use /loop if available. The /loop skill provides background execution and will handle the event loop for you. Pass it the monitoring logic below.

Fallback: spawn as a background Task. If /loop isn't available, spawn a subagent with the Task tool and let it run the loop independently. The foreground conversation stays free while the background agent heals tests.

Monitoring logic (runs inside the background agent):

listen_to_events({ type: "test_run_completed" })

When an event arrives with a failed test:

  1. Check event.test_id and event.error
  2. Get test history: helpmetest_status({id: event.test_id, testRunLimit: 10})
  3. Run the healing workflow (classify → investigate → fix or document)
  4. Update SelfHealing artifact with result
  5. Resume listening

Events that arrive while healing a test are queued — they'll be processed once the current fix completes. Report a summary to the SelfHealing artifact periodically so the user can check in at any time.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.65%
按下载量换算86

Claude

30.36%
按下载量换算73

Cursor

16.59%
按下载量换算40

Gemini CLI

9%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/help-me-test/skills --skill helpmetest-self-heal 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills