← 返回 Skills 市场
Tests Generator
作者
Mauricio Z.
· GitHub ↗
· v1.0.0
· MIT-0
51
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install axodus-test-generator
功能描述
Generate deterministic unit/integration tests for critical behaviors.
使用说明 (SKILL.md)
SKILL: test-generator
Purpose
Generate deterministic unit/integration tests that protect behavior and enable safe refactors.
When to Use
- A feature needs coverage.
- A bug fix needs a regression test.
- You want characterization tests before refactoring.
Inputs
target(required, string): function/module/endpoint/contract behavior to test.test_type(optional, enum:unit|integration|e2e).framework(optional, string): e.g.,pytest,jest,vitest,foundry,hardhat.constraints(optional, string[]): no network, deterministic time, limited mocks, etc.
Steps
- Identify observable behaviors and edge cases.
- Decide test boundaries:
- unit: pure logic
- integration: DB/service boundary
- Create fixtures:
- deterministic data
- stable clocks/UUIDs (mock only when required)
- Write tests:
- happy path
- failure paths
- security/validation checks (where applicable)
- Run tests and iterate until they are stable.
Validation
- Tests are deterministic (no flaky time/network dependencies).
- Tests fail before the fix (for regressions) and pass after.
- Coverage targets the acceptance criteria, not implementation details.
Output
- Test files added/changed
- How to run tests
- Notes on fixtures/mocks used
Safety Rules
- Do not add tests that require real credentials or real external services by default.
- Avoid snapshot tests for highly variable outputs unless stabilized.
Example
Bug: “User creation accepts invalid email.â€
Output: a failing test asserting 400 on invalid input, then passes after fix.
安全使用建议
This skill appears coherent and low-risk: it's an instruction-only test-generator with no installs or credential requests. Before installing, consider: 1) Trust and provenance — the package lists no homepage and source is unknown; verify you trust the owner. 2) Minor metadata mismatches — _meta.json lists a different ownerId and skill.yml has a stray 'System.Object[]' entry; these look like harmless metadata/serialization artifacts but you may want the publisher to clarify. 3) Runtime behavior depends on the agent invoking it — ensure the agent won't be given access to real credentials/environments when running generated tests (run in an isolated/test environment first). If you need stronger guarantees, ask the publisher for a README or example outputs and run the skill in a safe sandbox before using it on production code.
功能分析
Type: OpenClaw Skill
Name: axodus-test-generator
Version: 1.0.0
The skill bundle is a standard utility designed to generate unit and integration tests. The instructions in SKILL.md and test-generator.md are well-structured, follow software testing best practices, and include explicit safety rules to avoid using real credentials or external services. No malicious code, data exfiltration logic, or harmful prompt injections were identified.
能力评估
Purpose & Capability
Name, description, and the SKILL.md all describe generating deterministic tests. The skill requests no binaries, env vars, or installs — this aligns with an instruction-only test authoring helper.
Instruction Scope
Runtime instructions are limited to identifying behaviors, creating fixtures, writing/tests, and running/iterating them. They do not direct the agent to read unrelated files, collect credentials, contact external endpoints, or exfiltrate data. Safety guidance explicitly discourages using real credentials or external services by default.
Install Mechanism
There is no install spec and no code files. Being instruction-only means nothing is written to disk or downloaded by the skill itself, which is the lowest-risk pattern.
Credentials
The skill declares no required environment variables, credentials, or config paths. The guidance to avoid real credentials is appropriate. There is no disproportionate request for secrets or unrelated credentials.
Persistence & Privilege
The skill is not always: true and does not request persistent presence or modification of other skills/system settings. It is user-invocable and can be run autonomously by the agent (the platform default), which is normal for skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install axodus-test-generator - 安装完成后,直接呼叫该 Skill 的名称或使用
/axodus-test-generator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the test-generator skill.
- Generates deterministic unit and integration tests for key behaviors.
- Supports customizable inputs for test target, type, framework, and constraints.
- Guides users through behavior identification, boundary setting, fixture creation, and test writing.
- Ensures tests are deterministic and focused on acceptance criteria.
- Provides output with generated test files, run instructions, and fixture/mocking notes.
元数据
常见问题
Tests Generator 是什么?
Generate deterministic unit/integration tests for critical behaviors. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。
如何安装 Tests Generator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install axodus-test-generator」即可一键安装,无需额外配置。
Tests Generator 是免费的吗?
是的,Tests Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Tests Generator 支持哪些平台?
Tests Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Tests Generator?
由 Mauricio Z.(@mzfshark)开发并维护,当前版本 v1.0.0。
推荐 Skills