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 (417 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.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.svg" alt="Measured on agentmods" 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 417 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.00417
Opus 5 $0.00013 $0.00209
Sonnet 5 $0.00005 $0.00083
Haiku 4.5 $0.00003 $0.00042

Measured 8d ago against content hash 8558a3c472b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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 · 56 lines

What it actually says

运行集成测试

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

1. 构建并运行集成测试

项目使用 TypeScript,并将集成测试和端到端测试作为同一套跨模块验证入口:

npm run test:integration

该脚本先执行 npm run build,再运行 tests/integration/**/*.test.tstests/e2e/**/*.test.ts,并启用 Node.js TypeScript strip-types 支持。

2. 输出结果

报告结果:

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

失败处理

如果测试失败:

  • 输出失败详情
  • 检查环境问题(端口占用、服务未运行等)
  • 不要自动修复 —— 等待用户决定

后续步骤

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

渲染下一步前先读取 .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. 8d 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 (83 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 417 once invoked, about $0.0001 per session on Opus 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

Generate and run Playwright E2E tests traced to spec.md acceptance criteria, with an optional accessibility audit. Use when saying "e2e tests" or "a11y audit".

anton-abyzov/specweave · 38 tokens

qamap-pr-qa

Local zero-LLM PR QA workflow. Use when an agent is preparing, updating, finalizing, or reviewing a pull request, asks what the PR should test, or needs commit-backed change intent, affected behavior, QA scenarios, evidence, validation commands, optional automation drafts, and manifest repair guidance.

IvoryCanvas/QAMap · 67 tokens

tauri-pilot

Inspect, interact with, and test a running Tauri v2 app via CLI. Communicates over Unix socket using JSON-RPC 2.0. Use when testing UI, automating interactions, or debugging a Tauri app.

mpiton/tauri-pilot · 52 tokens

responsive-audit

Responsive audit: test pages at 375/768/1024px breakpoints via Playwright. Checks overflow, tap targets, sidebar collapse, text reflow, WCAG 1.4.4 zoom.

marcoguillermaz/Tierward · 0 tokens

journey-simulation

Use when caller wants to observe how a stranger encounters a flow, artifact, or sandbox — triggers like "simulate a user journey", "test our onboarding / checkout / signup", "will my ICP convert", "how does a cold reader experience this README", "first-time user test", "cognitive walkthrough", or any request to…

RockyHong/super-bootstrap · 79 tokens

testing-strategy

Test selection and scope guidance: tiers, marks, batching, cross-module regressions. Loaded by the testing rule module. Triggers: 'which tests should I run', 'test scope', 'test tiers'. NOT for: writing tests (use test-driven-development) or fixing broken tests (use fixing-tests).

axiomantic/spellbook · 66 tokens