← 返回 Skills 市场
55
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install unit-test-coverage
功能描述
Unit test engineer skill for PHPUnit or Pest coverage, service-level assertions, and focused regression protection.
使用说明 (SKILL.md)
\r \r
Role\r
\r This skill creates or updates unit tests for WelineFramework code. It focuses on service-level behavior, model or helper logic, and deterministic regression protection that can run quickly and prove the changed logic directly.\r \r
When To Use\r
\r
- Use for PHPUnit, Pest, service tests, unit-level regression tests, and focused logic verification.\r
- Use for keywords such as unit test, PHPUnit, Pest, service test, helper test, and coverage.\r
- Use when changed logic can and should be proven without a full browser or runtime stack.\r \r
Source Material\r
\r
AI-ENTRY.md\rCLAUDE.md\rdev/ai/skills/testing/SKILL.md\rdev/ai/skills/service-development/SKILL.md\rdev/ai/skills/code-generation-standards/SKILL.md\rdev/ai/skills/community-module/SKILLS-CONSOLIDATED.md\r \r
Responsibilities\r
\r
- Create targeted unit tests around changed logic.\r
- Extract logic into testable seams when direct testing is otherwise impossible.\r
- Keep assertions precise enough to protect against regression.\r
- Provide fast-running evidence that complements, rather than replaces, route or UI checks.\r \r
Workflow\r
\r
- Read the task scope and identify the narrowest reliable unit boundary.\r
- Confirm whether the behavior belongs in a service, helper, model, or collaborator test.\r
- Add failing or missing test coverage that reproduces the expected behavior.\r
- Update implementation only as needed to make the behavior testable and correct.\r
- Run focused unit-test commands for the affected module or class.\r
- Review for assertion quality, readability, and regression value.\r
- Report the executed command and what behavior the test now protects.\r \r
Weline Rules\r
\r
- Prefer small, isolated, testable changes.\r
- Provide unit test evidence where relevant.\r
- Keep business logic in services instead of controllers or templates when testability matters.\r
- Do not hardcode user-facing text.\r \r
Inputs Required\r
\r
- The changed logic and its owning module.\r
- Expected behavior, edge cases, and regression risks.\r
- Existing tests or target test directory.\r
- The preferred focused test command.\r \r
Expected Output\r
\r
- New or updated unit tests that directly cover the changed logic.\r
- A focused test command and pass result.\r
- A note describing the protected regression case.\r \r
Validation\r
\r
- Run
php bin/w phpunit:run --module=...or an equivalently focused test command.\r - Confirm the test fails before the fix or clearly covers the corrected branch after the change.\r
- Confirm assertions are behavior-based rather than superficial snapshots.\r
- Confirm the test scope stays unit-level and deterministic.\r \r
Constraints\r
\r
- Do not substitute E2E-only evidence for unit-testable logic.\r
- Do not write broad brittle tests when one focused regression test is enough.\r
- Do not bury critical assertions in indirect helper chains.\r
- Do not let unit tests depend on unrelated runtime state if isolation is possible.\r \r
安全使用建议
This skill appears safe and narrowly scoped for unit-test coverage work. Before installing, understand that it may edit tests and small parts of implementation code and run focused PHP test commands; review the resulting diffs and command output as you would with any coding assistant.
功能分析
Type: OpenClaw Skill
Name: unit-test-coverage
Version: 1.0.0
The skill bundle is a standard configuration for a unit testing assistant designed to work with the WelineFramework. The instructions in SKILL.md focus on creating PHPUnit or Pest tests, following development best practices, and running legitimate framework commands like 'php bin/w phpunit:run'. No indicators of data exfiltration, malicious execution, or harmful prompt injection were found.
能力评估
Purpose & Capability
The skill is intended to modify project test files and, if needed, implementation code to improve unit-test coverage; this is purpose-aligned but users should expect repository changes.
Instruction Scope
Instructions are scoped to unit/service/helper/model tests, focused regression coverage, deterministic validation, and avoiding broad brittle tests.
Install Mechanism
No install spec or code files are present; the artifact is instruction-only and the static scanner had nothing suspicious to analyze.
Credentials
The skill asks the agent to run focused PHP test commands, which is expected for a unit-test skill, though users should ensure commands are run only in the intended repository.
Persistence & Privilege
No credentials, privileged configuration, background persistence, memory use, or autonomous long-running behavior are requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install unit-test-coverage - 安装完成后,直接呼叫该 Skill 的名称或使用
/unit-test-coverage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Publish_WelineFramework_Multica_role_skills
元数据
常见问题
单元测试工程师 单元测试覆盖 是什么?
Unit test engineer skill for PHPUnit or Pest coverage, service-level assertions, and focused regression protection. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 55 次。
如何安装 单元测试工程师 单元测试覆盖?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install unit-test-coverage」即可一键安装,无需额外配置。
单元测试工程师 单元测试覆盖 是免费的吗?
是的,单元测试工程师 单元测试覆盖 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
单元测试工程师 单元测试覆盖 支持哪些平台?
单元测试工程师 单元测试覆盖 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 单元测试工程师 单元测试覆盖?
由 Aiweline(@aiweline)开发并维护,当前版本 v1.0.0。
推荐 Skills