agent-infra: Skill for Claude Code

.agents/skills/test-integration/SKILL.md

test-integration is a skill for Claude Code, Codex from fitlab-ai/agent-infra. It costs 25 tokens per session (476 once invoked), scanned A, original, MIT.

A workflow for running integration and end-to-end tests after building a TypeScript project. These tests check whether multiple parts work together and whether complete user flows work.

In plain words
What is it for?
Use it to run the project’s integration and end-to-end test suites before delivery or when checking cross-module changes.
Why use it?
It verifies behaviour across modules and external services, which unit tests alone may not cover. It reports failures and environment problems without attempting automatic fixes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is fitlab-ai/agent-infra's own configuration. It tells Claude Code and Codex how to work on agent-infra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-infra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fitlab-ai/agent-infra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fitlab-ai/agent-infra/main/.agents/skills/test-integration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fitlab-ai/agent-infra

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/test-integration/github.svg)](https://agentmods.dev/skills/fitlab-ai/agent-infra/test-integration)
Your own site
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/test-integration"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/test-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/test-integration"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/test-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 476 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00476
Opus 5.5 $0.00010 $0.00190
Sonnet 5.5 $0.00005 $0.00095
Haiku 4.5 $0.00003 $0.00048

Measured 24d ago against content hash d79e231c8992, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/test-integration/SKILL.md · 57 lines

What it actually says

运行集成测试

执行项目的集成测试流程,进行端到端验证。

1. 验证构建产物

项目使用 TypeScript。npm run test:integration 会先运行 npm run build,再执行集成与端到端测试,因此无需单独重复构建。

2. 运行集成测试

npm run test:integration

该脚本先构建项目,再运行 tests/integration/**/*.test.ts 和 tests/e2e/**/*.test.ts,并启用 Node.js TypeScript strip-types 支持。

3. 输出结果

报告结果:

  • 运行/通过/失败的测试数
  • 环境问题(如有)
  • 失败详情(如有)

失败处理

如果测试失败:

  • 输出失败详情
  • 检查环境问题(端口占用、服务未运行等)
  • 在任务范围内且可诊断时,先检查证据并修复本次引入的问题,再运行相同测试验证;涉及范围外设计、用户数据冲突或必要授权时记录阻塞并继续独立工作。

后续步骤

测试通过后,建议提交变更:

渲染下一步前先读取 .agents/rules/next-step-output.md,仅为已选场景调用统一 helper,并将 stdout 填入 {next-step-commands}。

使用 agent-infra-internal agent-client next-steps --skill commit 生成本场景的 {next-step-commands}。

下一步 - 提交代码:
{next-step-commands}

注意事项

  1. 前置条件:Node.js >= 22.9.0;脚本会自动构建
  2. 环境:集成测试可能需要外部服务(数据库、API 等)
  3. 超时:集成测试通常耗时较长;请耐心等待
  4. 清理:确保测试完成后清理测试环境
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed d79e231c8992
  2. 1mo ago Changed · +1 lines 1d650cbc0a85
  3. 1mo ago First seen · 56 lines · 25 tokens per session scan A 8558a3c472b3

Subscribe to this mod's changes

test-integration is a skill published in the GitHub repository fitlab-ai/agent-infra (86 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 476 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

e2e-testing

Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic inspection. Use this skill whenever you need to verify CLI behavior with real model calls, reproduce user-reported bugs end-to-end, test MCP tool integrations, or inspect raw API request/response…

QwenLM/qwen-code · 94 tokens

terminal-capture

Automates terminal UI screenshot testing for CLI commands. Applies when reviewing PRs that affect CLI output, testing slash commands (/about, /context, /auth, /export), generating visual documentation, or when 'terminal screenshot', 'CLI test', 'visual test', or 'terminal-capture' is mentioned.

QwenLM/qwen-code · 66 tokens

tmux-real-user-testing

A real-user test workflow for Qwen Code's terminal interface, using tmux to drive the program and capture readable screen snapshots. tmux is a tool for running and observing terminal sessions.

QwenLM/qwen-code · 98 tokens

agent-reproduce-align

Use after a Codex or Claude Code feature has been implemented in Qwen Code to run the selected reference agent and Qwen Code under the same scenario, capture HTTP and terminal traces, compare request bodies, tool/function schemas, outputs, and iterate until the reproduced behavior is close enough.

QwenLM/qwen-code · 62 tokens

verify

Exercise the real app/API/CLI and collect observable evidence; tests alone do not count as end-to-end verification.

Hmbown/CodeWhale · 25 tokens

webapp-testing

Start/reuse a local app, wait for readiness, inspect rendered state/console/network, act from observed selectors, and verify with evidence.

Hmbown/CodeWhale · 32 tokens