Ai Agent Testing logo

Ai Agent Testing

Community
joe-qai
ai-agent-testing

Use this skill when you need to generate a concrete test suite for AI agent behavior, planning, tool usage, memory, and safety; triggers include AI Agent 测试, agent测试, agent测试用例, and ai agent testing.

Overview

Publisherjoe-qai
Repositoryqa-skills
Skill nameai-agent-testing
Stars
30
Forks
4
Bundled files
6
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by joe-qai on GitHub. Read the source before you install it.

Installation

Install the Ai Agent Testing AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/joe-qai/qa-skills/tree/main/ai-agent-testing
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/joe-qai/qa-skills.git /tmp/qa-skills
mkdir -p .claude/skills
cp -r /tmp/qa-skills/ai-agent-testing .claude/skills/ai-agent-testing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai Agent Testing in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ai Agent Testing on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ai Agent Testing is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AI Agent 测试

何时使用

  • 用户提供 Agent 的目标、工具集、指令或任务轨迹,需要生成可执行的测试套件。
  • 需要验证 Agent 的规划、记忆、工具使用、恢复能力、安全边界。

输入要求

必填字段说明
✅Agent 描述目标、指令、可用工具列表
✅测试范围任务完成 / 规划 / 工具使用 / 记忆 / 安全(选一或多选)
⬜任务轨迹Agent 已有的执行记录或日志
⬜成功标准通过/失败的判定条件
⬜风险限制不可执行的操作、权限边界

执行流程

1. 输入审计

  • 检查 Agent 描述是否包含:目标、工具、输入/输出格式
  • 检查测试范围是否明确
  • 缺失信息标记为「假设」并给出默认值

2. 能力建模

为被测 Agent 建立能力矩阵:

维度测试内容优先级
任务完成目标达成、输出质量、格式正确P0
规划能力步骤拆解、依赖处理、回退策略P0
工具使用工具选择、参数传递、结果解析P0
记忆一致性上下文保持、跨轮次一致、无幻觉P1
失败恢复错误处理、重试策略、降级方案P1
安全边界权限限制、拒绝越权、数据保护P0

3. 测试用例生成

为每个维度生成具体测试用例,格式:

markdown
## [P0] TC-<维度>-<序号>: <用例标题>
[测试维度] 规划能力
[前置条件] Agent 已加载工具列表:[...]
[输入] <具体的用户指令或任务>
[预期行为] 1. <步骤1的预期> 2. <步骤2的预期>
[预期输出] <最终输出的判定标准>
[通过标准] 所有预期行为发生 + 输出满足判定标准
[失败风险] <可能的失败模式>

4. 用例校验

生成后必须执行以下校验:

  • 每个测试维度至少有 2 条用例(正向 + 反向/异常)
  • 每条用例有明确的前置条件和输入
  • 预期行为可观察、可验证(非主观判断)
  • 通过标准具体(有数值、有判定条件)
  • 覆盖至少一个安全/权限边界用例
  • 无重复用例(相同输入+预期 = 同一条)

5. 输出交付物

文件内容
test-suite.md完整测试用例集(含维度矩阵、用例、通过标准)
run-checklist.md执行清单(按优先级排序的逐条检查项)

核心约束

  • 输出必须是可逐条执行的测试用例,不是笼统的检查清单。
  • 同时评价最终结果和过程轨迹。
  • 将随机性纳入重复试验,不要把单次成功当作可靠性证明。
  • 安全测试只在授权环境使用占位数据。

参考文件

  • prompts/ai-agent-testing.md:详细执行规范。
  • evals/eval.yaml + evals/cases/:评估用例模板。

常见误区

  • 只列检查点不给具体输入和预期 → 必须有输入+行为+输出三要素。
  • 只测正向流程 → 必须包含至少一条异常/边界用例。
  • 用单次运行结果下结论 → 需要重复验证或说明随机性影响。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ai Agent Testing AI skill do?

Use this skill when you need to generate a concrete test suite for AI agent behavior, planning, tool usage, memory, and safety; triggers include AI Agent 测试, agent测试, agent测试用例, and ai agent testing.

Why use Ai Agent Testing on TypingMind?

Because you install it once and use it with any model. Ai Agent Testing is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ai Agent Testing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/joe-qai/qa-skills/tree/main/ai-agent-testing. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ai Agent Testing?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ai Agent Testing?

As many as you like. As long as a model supports skills, you can use Ai Agent Testing with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ai Agent Testing AI skill free?

It is published on GitHub by joe-qai. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇