← 返回 Skills 市场
gitgoodordietrying

Test Patterns

作者 gitgoodordietrying · GitHub ↗ · v1.0.0
linuxdarwinwin32 ⚠ suspicious
3391
总下载
1
收藏
23
当前安装
1
版本数
在 OpenClaw 中安装
/install test-patterns
功能描述
Write and run tests across languages and frameworks. Use when setting up test suites, writing unit/integration/E2E tests, measuring coverage, mocking dependencies, or debugging test failures. Covers Node.js (Jest/Vitest), Python (pytest), Go, Rust, and Bash.
安全使用建议
This skill is an offline guide with examples for writing and running tests — it is internally consistent. Before using: ensure the appropriate runtimes (node, python3, go, cargo, bash) are installed as needed; be aware that running tests in a repository will execute the repository's code (including network calls, DB interactions, or any side effects), so run tests in an isolated/sandboxed environment or with mocks when executing untrusted code. Also review any package installs (npm/pip) that test suites require, since installing dependencies can pull third-party code. The skill itself does not request secrets or perform installs, but the tests you run based on its instructions may interact with external services — audit those test cases accordingly.
功能分析
Type: OpenClaw Skill Name: test-patterns Version: 1.0.0 The skill is classified as suspicious due to the inherent high-risk nature of its core functionality and the inclusion of powerful shell primitives. The `SKILL.md` provides extensive examples of executing shell commands and code in various languages (Node.js, Python, Go, Rust, Bash), which is explicitly declared in the `requires` metadata (`anyBins: ['node', 'python3', 'go', 'cargo', 'bash']`). While this aligns with the stated purpose of 'running tests across languages', it grants broad system access. Specifically, the Bash test runner example includes `eval "$cmd"`, a dangerous primitive that, while presented as a template with benign examples, could lead to arbitrary command execution if the agent were to use it with untrusted input or if the skill were modified to inject malicious commands into `$cmd`.
能力评估
Purpose & Capability
Name and description describe writing/running tests across Node/Python/Go/Rust/Bash; the declared requirement that at least one of node, python3, go, cargo, or bash be present is appropriate and proportional for this purpose. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
SKILL.md contains language-specific test examples (unit, integration, mocking, coverage) and typical commands (npm install -D jest, pip install pytest, npx jest --coverage, creating tmp DBs). The instructions do not ask the agent to read unrelated system files or secret environment variables, nor to exfiltrate data. They do include examples that may perform network calls or create temporary files/databases when run, which is expected for testing guidance.
Install Mechanism
No install spec and no code files are present — instruction-only; nothing will be downloaded or written by the skill itself. This is the lowest-risk install profile.
Credentials
The skill requests no environment variables or credentials. The examples reference typical test-time artifacts (temp files, sqlite), but there is no request for secrets or unrelated credentials.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent presence or modify other skills' configuration. Autonomous invocation is allowed by platform default but is not combined here with broad access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install test-patterns
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /test-patterns 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Testing across Node.js, Python, Go, Rust, Bash - unit tests, mocking, fixtures, coverage, TDD, integration testing
元数据
Slug test-patterns
版本 1.0.0
许可证
累计安装 24
当前安装数 23
历史版本数 1
常见问题

Test Patterns 是什么?

Write and run tests across languages and frameworks. Use when setting up test suites, writing unit/integration/E2E tests, measuring coverage, mocking dependencies, or debugging test failures. Covers Node.js (Jest/Vitest), Python (pytest), Go, Rust, and Bash. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3391 次。

如何安装 Test Patterns?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install test-patterns」即可一键安装,无需额外配置。

Test Patterns 是免费的吗?

是的,Test Patterns 完全免费(开源免费),可自由下载、安装和使用。

Test Patterns 支持哪些平台?

Test Patterns 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Test Patterns?

由 gitgoodordietrying(@gitgoodordietrying)开发并维护,当前版本 v1.0.0。

💬 留言讨论