Agent Skillsopenai/openai-agents-js › test-coverage-improver

test-coverage-improver

GitHub

基于覆盖率报告识别 JS SDK 测试缺口,执行审计或实施针对性测试以修复指标回归,强调 caller-visible 行为覆盖。

.agents/skills/test-coverage-improver/SKILL.md openai/openai-agents-js

Trigger Scenarios

需要评估代码覆盖率 处理覆盖率指标下降 根据覆盖率报告寻找测试缺口

Install

npx skills add openai/openai-agents-js --skill test-coverage-improver -g -y
More Options

Non-standard path

npx skills add https://github.com/openai/openai-agents-js/tree/main/.agents/skills/test-coverage-improver -g -y

Use without installing

npx skills use openai/openai-agents-js@test-coverage-improver

指定 Agent (Claude Code)

npx skills add openai/openai-agents-js --skill test-coverage-improver -a claude-code -g -y

安装 repo 全部 skill

npx skills add openai/openai-agents-js --all -g -y

预览 repo 内 skill

npx skills add openai/openai-agents-js --list

SKILL.md

Frontmatter
{
    "name": "test-coverage-improver",
    "description": "Measure JS SDK coverage or address measured coverage gaps. Use for coverage audits and metric regressions, not routine test additions."
}

Test Coverage Improver

Use current coverage evidence to identify missing caller-visible behavior tests. Select this workflow for coverage measurement, coverage-metric regressions, or finding gaps from coverage artifacts. When the user already specifies the behaviors to test, use the ordinary implementation/review workflow without coverage measurement unless measurement is also requested. Adding tests alone does not trigger this skill or its final pnpm test:coverage step.

Scope and authorization

For assessment or proposal-only requests, report gaps and suggested tests without editing. When the user requests test improvements or has approved a plan, implement the scoped tests and complete review and verification without asking again. Ask only when a new contract decision, expanded scope, or additional authority is needed. Coverage work never authorizes live API calls or broader sandbox access.

Workflow

  1. Inspect current coverage/coverage-summary.json or coverage/coverage-final.json, coverage/lcov.info, and any recorded command/environment evidence. Reuse them only when they represent the relevant source and test state. If missing or stale, run pnpm test:coverage under the repository's verification sandbox and credential policy; this initial measurement precedes implementation review. Respect host-capacity guidance before broad measurement.
  2. Identify uncovered behavior within the requested scope. Prioritize public behavior and meaningful error, cancellation, and lifecycle paths over percentage-only targets. Use the JSON report, coverage/lcov.info, or coverage/lcov-report/index.html to locate gaps. Place tests under the relevant packages/<pkg>/test/ directory.
  3. For an assessment, report evidence and proposed scenarios. For authorized implementation, choose tests with independent expected results at the highest controllable caller boundary. Do not add tests that merely reproduce helper logic or enumerate unsupported permutations.
  4. Implement tests, run affected checks, and complete $implementation-final-review. Keep iterative verification focused; do not repeatedly run full coverage while review is incomplete.
  5. After clean review, run pnpm test:coverage for the final measurement and $code-change-verification for the required SDK gates. These have different purposes; reuse an already valid final measurement rather than repeating it. Report coverage changes, verified behaviors, and material gaps that remain.

Reporting

State the scope and age of coverage evidence, the behavior each new test protects, validation results, and unresolved gaps. Keep comments and code in English. Do not treat coverage percentages alone as proof of correctness.

Version History

  • a3a9215 Current 2026-09-09 13:01

    简化仓库指引并调整审查技能细节

  • 7450f54 2026-08-28 16:31

    移除 Windows 兼容性相关的 CI=1 环境变量设置,以修复 Windows 上的测试脚本问题。

  • 13f68fa 2026-07-25 11:31

Same Skill Collection

.agents/skills/changeset-validation/SKILL.md
.agents/skills/code-change-verification/SKILL.md
.agents/skills/docs-sync/SKILL.md
.agents/skills/examples-auto-run/SKILL.md
.agents/skills/examples-run-analysis/SKILL.md
.agents/skills/final-release-review/SKILL.md
.agents/skills/implementation-final-review/SKILL.md
.agents/skills/implementation-kickoff/SKILL.md
.agents/skills/implementation-strategy/SKILL.md
.agents/skills/integration-tests/SKILL.md
.agents/skills/maintainer-review/SKILL.md
.agents/skills/openai-knowledge/SKILL.md
.agents/skills/pnpm-upgrade/SKILL.md
.agents/skills/pr-draft-summary/SKILL.md
.agents/skills/runtime-behavior-probe/SKILL.md
.agents/skills/sensitive-logging-audit/SKILL.md
examples/docs/sandbox-agents/skills/invoice-total-fixer/SKILL.md
examples/tools/skills/csv-workbench/SKILL.md

Metadata

Files
0
Version
a3a9215
Hash
37c048e7
Indexed
2026-07-25 11:31

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 04:53
浙ICP备14020137号-1