跳到正文
cccskills
免费在 GitHub 公开

agent-tester

Test agent: dry-run, unit, integration, compatibility

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Agent Tester

Tests a built agent: dry-run, unit tests, integration, compatibility with other agents.

When to use

  • After Agent Builder has finished
  • "test agent X"
  • "check agent compatibility"

Input

  • Agent from $AGENTS_PATH/[name]/
  • Spec from $AGENTS_PATH/specs/[name].spec.md

How to execute

Step 1: Static analysis

Check the agent code:

  • File exists and runs without syntax errors
  • All imports resolve
  • Config file is valid
  • Paths in config exist
  • Credentials are accessible
  • Dry-run mode is implemented

Step 2: Dry-run test

Run the agent with --dry-run:

python3 $AGENTS_PATH/[name]/[name]_agent.py --dry-run

Check:

  • Agent starts without errors
  • Logs are clear
  • Shows what it WOULD do (without real side effects)
  • Execution time is reasonable

Step 3: Unit tests

Run tests:

python3 -m pytest $AGENTS_PATH/[name]/test_[name].py -v

Minimum tests:

  • Input parsing works
  • Business logic is correct on test data
  • Error handling works (bad input, missing files, API timeout)
  • Output format is correct

Step 4: Integration test (one run on real data)

WARNING: only with human approval!

  1. Back up data that the agent modifies:
cp [target.csv] [target.csv.backup]
  1. Run the agent once on real data

  2. Check output:

    • Data was written correctly
    • Format matches schema.yaml
    • Nothing broke
    • Git commit was created (if needed)
  3. If something is wrong -- rollback:

cp [target.csv.backup] [target.csv]

Step 5: Compatibility test

Check that the new agent does not conflict with existing ones:

## Compatibility Matrix

| Agent | Shared Files | Potential Conflict | Status |
|-------|-------------|-------------------|--------|
| Email Pipeline | activities.csv | Write conflict | ? |
| [other agents] | ... | ... | ? |

Specific checks:

  • File locks: can two agents write to the same CSV simultaneously
  • Data consistency: does the agent overwrite another agent's data
  • ID generation: do IDs conflict (person_id, activity_id, etc.)
  • Schedule overlap: do agents run at the same time
  • Git conflicts: does auto-commit create merge conflicts

Step 6: Report

Create a test report file:

$AGENTS_PATH/specs/[name].test-report.md

Report structure:

# Test Report: [Agent Name]

## Date: YYYY-MM-DD
## Tester: Process Analyst Agent

## Results

| Test | Status | Notes |
|------|--------|-------|
| Static analysis | PASS/FAIL | |
| Dry-run | PASS/FAIL | |
| Unit tests | PASS/FAIL | X/Y passed |
| Integration | PASS/FAIL | |
| Compatibility | PASS/FAIL | |

## Issues Found
1. [Issue description + severity]

## Recommendation
- [ ] READY for production
- [ ] NEEDS FIXES (list what)
- [ ] BLOCKED (list why)

Output

  • Test report in $AGENTS_PATH/specs/[name].test-report.md
  • PASS/FAIL verdict
  • List of issues if any

Related skills

  • process-analyst — creates the spec
  • agent-builder — builds the agent
  • change-review — validates CRM/PM changes

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

Expert sales execution covering pipeline management, discovery, demos, negotiation, and deal closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

Support accounting understanding from basic bookkeeping to professional practice and research.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

Automate ActiveCampaign tasks via Rube MCP (Composio): manage contacts, tags, list subscriptions, automation enrollment, and tasks. Always search tools first for current schemas.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

add-lead

免费

Add company/person/relationship to CRM

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

查看 aAAaqwq 的全部技能

报告此技能的问题