← Back to Skills Marketplace
aiweline

单元测试工程师 单元测试覆盖

by Aiweline · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
55
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install unit-test-coverage
Description
Unit test engineer skill for PHPUnit or Pest coverage, service-level assertions, and focused regression protection.
README (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\r
  • CLAUDE.md\r
  • dev/ai/skills/testing/SKILL.md\r
  • dev/ai/skills/service-development/SKILL.md\r
  • dev/ai/skills/code-generation-standards/SKILL.md\r
  • dev/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

  1. Read the task scope and identify the narrowest reliable unit boundary.\r
  2. Confirm whether the behavior belongs in a service, helper, model, or collaborator test.\r
  3. Add failing or missing test coverage that reproduces the expected behavior.\r
  4. Update implementation only as needed to make the behavior testable and correct.\r
  5. Run focused unit-test commands for the affected module or class.\r
  6. Review for assertion quality, readability, and regression value.\r
  7. 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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install unit-test-coverage
  3. After installation, invoke the skill by name or use /unit-test-coverage
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Publish_WelineFramework_Multica_role_skills
Metadata
Slug unit-test-coverage
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 单元测试工程师 单元测试覆盖?

Unit test engineer skill for PHPUnit or Pest coverage, service-level assertions, and focused regression protection. It is an AI Agent Skill for Claude Code / OpenClaw, with 55 downloads so far.

How do I install 单元测试工程师 单元测试覆盖?

Run "/install unit-test-coverage" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 单元测试工程师 单元测试覆盖 free?

Yes, 单元测试工程师 单元测试覆盖 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 单元测试工程师 单元测试覆盖 support?

单元测试工程师 单元测试覆盖 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 单元测试工程师 单元测试覆盖?

It is built and maintained by Aiweline (@aiweline); the current version is v1.0.0.

💬 Comments