agentleFS
Mingo07-devMingo07-dev/claude_skills/test-generator/SKILL.md

test-generator

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Generate and run automated tests (unit, integration, API, E2E) adapted to the project stack. Use when the user asks to add tests, improve coverage, or test specific modules or flows. Runs a three-subagent pipeline: stack analysis -> test generation -> execution with report and user confirmation.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use refactor-advisor, log-analyzer and 3 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.
  • aidankaokaoSkill

    refactor-advisor

    分析程式碼的重構機會,給出有優先順序的建議,但不直接改寫程式碼。當使用者說「這段程式碼怎麼改比較好」、「幫我分析重構方向」、「這樣寫有什麼問題」、「refactor」、「技術債」時觸發。

    Also in 3 projects that use this

  • nek1987Skill

    log-analyzer

    Parse and analyze application logs to identify errors, patterns, and insights.

    Also in 3 projects that use this

  • JeffallanSkill

    security-reviewer

    Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before refactoring (safety net)

    line 13
  2. Distinctive:

    After implementing a feature

    line 14
  3. Very specific:

    Use the patterns in references/test-patterns.md.

    line 44
  4. Very specific:

    Run approved suites, capture failures, and write TEST_REPORT.md.

    line 53
  5. Distinctive:

    Use realistic domain data in tests.

    line 57
  6. Distinctive:

    Never run tests without explicit user confirmation.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 15 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 generator (three subagents)

When to use

  • Missing tests or low coverage
  • Before refactoring (safety net)
  • After implementing a feature
  • Explicit requests to add or generate tests

Goal

Generate realistic, stack-aligned tests and run them only after explicit user approval.

Pipeline overview

Parent Agent
  -> Subagent 1: Stack Analyzer (write /tmp/test-context.md)
  -> Subagent 2: Test Generator (write tests, /tmp/test-manifest.md)
  -> Pause for user approval
  -> Subagent 3: Test Runner (write TEST_REPORT.md)

Phase 1: Parent reconnaissance

  1. Identify scope from the prompt (file, module, or test type)
  2. Inspect project config (package.json, pyproject.toml, etc.)
  3. Find existing tests and conventions
  4. Provide scope/context to Subagent 1

Phase 2: Subagent 1 (Stack Analyzer)

Detect language, test frameworks, conventions, and target files. Write /tmp/test-context.md.

Phase 3: Subagent 2 (Test Generator)

Use the patterns in references/test-patterns.md. Write tests and record a manifest in /tmp/test-manifest.md with file paths, test types, coverage, and run commands.

Phase 4: Pause and confirm

Summarize generated tests and ask whether to run all tests, only a category, or none.

Phase 5: Subagent 3 (Test Runner)

Run approved suites, capture failures, and write TEST_REPORT.md. Clean up temp files.

Notes

  • Use realistic domain data in tests.
  • Align with existing test style when present.
  • Never run tests without explicit user confirmation.

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.

Reviews can't be read right now.

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.