Token导航 LogoToken导航TokenDH.com
研究检索需要联网githubverified来源可访问clear审计未展示

test-coverage-improver测试覆盖率改进器

Agent Skill

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

总安装

533

周安装

22

GitHub Stars

公开资料未说明

下载量

174
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:test-coverage-improver(测试覆盖率改进器)
来源仓库:https://github.com/openai/openai-agents-js
仓库路径:skills/test-coverage-improver
安装命令:
npx skills add openai/openai-agents-js --skill "test-coverage-improver"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

AgentSkills.tonpx skills
npx skills add openai/openai-agents-js --skill "test-coverage-improver"

简介

test-coverage-improver 用于辅助测试设计、用例编写和回归验证。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中提升代码测试覆盖率。
  • 通过 npx skills add openai/openai-agents-js --skill "test-coverage-improver" 命令安装。
  • 安装前需确认项目测试框架、夹具数据和运行命令。
  • 建议结合来源仓库和 README 核验支持的测试类型和覆盖率指标。

SKILL.md

name
test-coverage-improver
description
Improve test coverage in the OpenAI Agents JS monorepo: run pnpm test:coverage, inspect coverage artifacts, identify low-coverage files and branches, propose high-impact tests, and confirm with the user before writing tests.

Test Coverage Improver

Overview

Use this skill whenever coverage needs assessment or improvement (coverage regressions, failing thresholds, or user requests for stronger tests). It runs the coverage suite, analyzes results, highlights the biggest gaps, and prepares test additions while confirming with the user before changing code.

Quick Start

  1. From the repo root run pnpm test:coverage (set CI=1 if needed) to regenerate coverage/.
  2. Collect artifacts: coverage/coverage-summary.json (preferred) or coverage/coverage-final.json, plus coverage/lcov.info and coverage/lcov-report/index.html for drill-downs.
  3. Summarize coverage: total percentages, lowest files, branches under 80%, and uncovered lines/paths.
  4. Draft test ideas per file: scenario, behavior under test, expected outcome, and likely coverage gain.
  5. Ask the user for approval to implement the proposed tests; pause until they agree.
  6. After approval, write the tests in the relevant package, rerun pnpm test:coverage, and then run $code-change-verification before marking work complete.

Workflow Details

  • Run coverage: Execute CI=1 pnpm test:coverage at repo root. Avoid watch flags and keep prior coverage artifacts only if comparing trends.
  • Parse summaries efficiently:

- Prefer coverage/coverage-summary.json for file-level totals; fallback to coverage/coverage-final.json if the summary file is absent. - Use coverage/lcov.info or coverage/lcov-report/index.html to spot branch- and line-level holes.

  • Prioritize targets:

- Public APIs or shared utilities in packages/*/src before examples or docs. - Files with statements/branches below 80% or newly added code at 0%. - Recent bug fixes or risky code paths (error handling, retries, timeouts, concurrency).

  • Design impactful tests:

- Hit uncovered branches: error cases, boundary inputs, optional flags, and cancellation/timeouts. - Cover combinational logic rather than trivial happy paths. - Place unit tests near the package (packages/<pkg>/test/*.test.ts) and avoid flaky async timing.

  • Coordinate with the user: Present a numbered, concise list of proposed test additions and expected coverage gains. Ask explicitly before editing code or fixtures.
  • After implementation: Rerun coverage, report the updated summary, and note any remaining low-coverage areas.

Notes

  • Keep any added comments or code in English.
  • Do not create scripts/, references/, or assets/ unless needed later.
  • If coverage artifacts are missing or stale, rerun pnpm test:coverage instead of guessing.

适合场景

01

研究助手

02

事实核查

03

知识库问答

04

带来源的搜索总结

能力概览

能力 1

组合搜索和大模型调用

能力 2

支持多来源检索和总结

能力 3

强调引用来源和事实核查

能力 4

适合研究型 Agent 流程

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

平台分布

Claude Code

29.41%
按下载量换算51

OpenCode

21.67%
按下载量换算38

windsurf

15.79%
按下载量换算27

Codex

10.49%
按下载量换算18

Antigravity

7.65%
按下载量换算13

Gemini CLI

3.11%
按下载量换算5

安全审计

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

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills