agentleFS
mystilleefmystilleef/spae-framework/skills/test/SKILL.md

test

Skill1 starsChanged 4 months agoMITView on GitHub

Write comprehensive and exhaustive tests that address gaps in code coverage.

98 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use develop, perf and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bamechoSkill

    develop

    开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移

    Also in 6 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.

    Also in 6 projects that use this

  • BugRogerSkill

    project

    Project lifecycle management. Dispatches to Ada.

    Also in 6 projects that use this

  • vltingSkill

    scope

    Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.

    Also in 5 projects that use this

  • bitwize-music-studioSkill

    tutorial

    Provides interactive guided album creation for new users. Use when the user is new to the plugin or asks for a walkthrough of the album creation process.

    Also in 3 projects that use this

  • kt057Skill

    check

    lint, typecheck, test を一括実行して結果をサマリーする

    Also in 8 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 14 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write comprehensive and exhaustive tests that address gaps in code coverage.

    line 18
  2. Distinctive:

    Run targeted tests; run broader suite or coverage tool.

    line 74
  3. Distinctive:

    Use coverage tooling when available.

    line 93
  4. Distinctive:

    Keep tests focused, deterministic, and close to the behavior under test.

    line 94
  5. Distinctive:

    Don't limit yourself to just unit tests.

    line 96
  6. Distinctive:

    Don't change production behavior.

    line 101
  7. Distinctive:

    Don't write tests solely to raise a number.

    line 102
  8. Distinctive:

    Don't test outside the behavioral surface.

    line 103
  9. Distinctive:

    No hacks, workarounds, or shortcuts.

    line 104
  10. Very specific:

    No violation of DRY and SOLID software principles.

    line 105
  11. Very specific:

    Never edit build or tool configuration files.

    line 107
  12. Very specific:

    Never suppress or disable compiler or linter diagnostics.

    line 110
  13. Very specific:

    Never weaken type contracts to silence errors.

    line 112
  14. Distinctive:

    Full autonomy: Never perform or request human execution, an attended or interactive terminal, or human presence to confirm coverage.

    line 114
  15. Distinctive:

    All four categories audited per target on the behavioral surface.

    line 122
  16. Distinctive:

    If coverage tool present: no meaningful uncovered lines or branches remain.

    line 123
  17. Very specific:

    All new tests pass CI Parity audit in references/testing-guide.md.

    line 127
  18. Very specific:

    No self-introduced cleanup violation remains per references/cleanup-guide.md.

    line 128
  19. Distinctive:

    Keep prose terse while ensuring clarity.

    line 134
  20. Distinctive:

    Use lists and sub-lists over paragraphs and long sentences.

    line 137

“Common” is measured: kept by at least 6 in 10 of the 80 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Test

When to use

  • Files, or changed code, have gaps in coverage

Goal

  • Write comprehensive and exhaustive tests that address gaps in code coverage.

Input

Determine scope from the first available source:

  • Files or folders provided by the user.
  • Current changes in the repository.

Abort if no scope exists.

Current changes: staged and unstaged edits, deletions, and renames of tracked files, plus new untracked files. Requires a versioned project. Abort with a clear message if none detected.

Testing

See references/testing-guide.md for test structure, isolation, mocking, assertion, and performance standards.

Shell commands

See references/shell-command-guide.md for command safety, timeouts, redirects, and non-interactive environment directives.

Cleanup

See references/cleanup-guide.md for the self-introduced-artifact checklist and diff-only audit scope.

Behavioral surface

Target only methods and functions with business logic, state transitions, or error handling. Exclude: trivial getters/setters, POJOs, generated code, framework boilerplate, and any method where every path delegates trivially, accesses a field, or returns a computed value with no state change, resource interaction, or error-propagation decision.

Workflow

  1. GATE—Confirm scope: user-provided files or current repository changes. Abort immediately if none.
  2. ORIENT—Goal: cover all behavioral gaps in scope. Production code unchanged.
  3. PLAN—Read references/testing-guide.md, references/shell-command-guide.md, and references/cleanup-guide.md. Inspect production code, adjacent tests, and coverage commands. List every gap across all four categories per behavioral-surface target.
    • Short-circuit: zero gaps found → emit Result: No Gaps and halt.
  4. ACT—Write tests for every enumerated gap. Cover all four categories per target before declaring it complete.
  5. VERIFY—Loop over every criterion declared in PLAN:
    • Run targeted tests; run broader suite or coverage tool.
    • Audit every new test file against CI Parity rules in references/testing-guide.md; fix any violation before proceeding.
    • Audit the task's own git diff/git status against the Self-cleanup checklist in references/cleanup-guide.md; remove every self-introduced artifact before proceeding.
    • For each unmet criterion: return to ACT, execute, then re-enter VERIFY.
    • Exit only when all pass and no regressions remain.
    • Halt only for out-of-scope blockers.
  6. PERSIST—Confirm all test files written; no partial writes.
  7. REPORT—Emit the result following the result directives and using the result template.

Directives

  • Optimize all operations for agent, token, and context efficiency.
  • Cover all four categories per target before declaring coverage complete.
  • Use coverage tooling when available; when absent, use static analysis.
  • Keep tests focused, deterministic, and close to the behavior under test.
  • Don't limit yourself to just unit tests; write any category of tests necessary to prove, verify, and confirm your solution.

Constraints

  • Don't change production behavior.
  • Don't write tests solely to raise a number.
  • Don't test outside the behavioral surface.
  • No hacks, workarounds, or shortcuts.
  • No violation of DRY and SOLID software principles.
  • Forbid laziness; fix issues properly, correctly, and idiomatically.
  • Never edit build or tool configuration files; for example, tsconfig.json, .eslintrc.*, webpack.config.*, vite.config.*, jest.config.*, Makefile, pyproject.toml, Cargo.toml.
  • Never suppress or disable compiler or linter diagnostics; for example, @ts-ignore, eslint-disable, @SuppressWarnings, # type: ignore.
  • Never weaken type contracts to silence errors; for example, as any, ! non-null assertions, or broadening union types.
  • Full autonomy: Never perform or request human execution, an attended or interactive terminal, or human presence to confirm coverage; use direct, agent-executed inspection instead.

Verification

  • Production code unchanged;
  • Entire test suite passes with no failures.
  • All four categories audited per target on the behavioral surface.
  • If coverage tool present: no meaningful uncovered lines or branches remain; if absent: all five categories confirmed through direct, agent-executed inspection, no critical gaps.
  • Tests cover real behavioral risk, not vanity coverage.
  • All new tests pass CI Parity audit in references/testing-guide.md.
  • No self-introduced cleanup violation remains per references/cleanup-guide.md.

Result directives

  • Minimum words. Maximum signal.
  • Keep prose terse while ensuring clarity.
  • Optimize prose for agent, token, and context efficiency.
  • Split actions, findings, and summaries into terse bullet points.
  • Use lists and sub-lists over paragraphs and long sentences.
  • Emit the result template as live markdown—never in a code fence.
  • Output nothing outside the template.

Result template

<!-- prettier-ignore-start -->
### Execution Summary

- **Actions**:
  - [Terse list of actions taken]
- **Files**:
  - [Terse list of modified or created files]
- **Findings**:
  - [Terse list of key gaps, risks, or notable observations]
- **Summary**:
  - [Terse list of summary of changes]

> **Coverage Status** • `[scope]`
> **Result**: [Improved | No Gaps | Failed]
> **Impact**: [Terse impact statement]
<!-- prettier-ignore-end -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.