Skip to content
Agentmart
Submit a tool

plan-test

Generate comprehensive tests for code.

Skill by whichguy

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying plan-test?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/whichguy-plan-test

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate comprehensive tests for code. Uses an inline strategy or an available independent test specialist for complex components. AUTOMATICALLY INVOKE when: - "write tests", "test this", "generate tests", "add test coverage" - "test plan", "what should I test" - After feature implementation is complete NOT for: Only running an existing suite without designing or changing coverage.

Use cases: testing, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/plan-test

What's inside

Skill name
plan-test
Description
Generate comprehensive tests for code. Uses an inline strategy or an available independent test specialist for complex components. AUTOMATICALLY INVOKE when: - "write tests", "test this", "generate tests", "add test coverage" - "test plan", "what should I test" - After feature implementation is complete NOT for: Only running an existing suite without designing or changing coverage.
License
MIT
Instructions
78 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

> **skill-craft port** of a claude-craft suite skill. Host-neutral: use repo-root search instead of Claude plugin paths. SoT: whichguy/skill-craft `skills/plan-test/`.


# /plan-test — Test Generation

Generate tests for specified code. Detects the project's test framework automatically
and matches existing test patterns.

## Step 0 — Parse Arguments

From the invocation args, extract:
- **target**: File path, function name, or component to test
- **--framework**: Override test framework detection (mocha, jest, vitest, pytest)
- **--unit-only**: Skip integration test generation

If no target specified, use recently modified files:
```bash
git diff --name-only HEAD~1
```

## Step 1 — Detect Test Infrastructure

Scan the project for existing test setup:
1. Check package.json for test scripts and dependencies (mocha, jest, vitest, chai)
2. Find existing test files matching `**/*.test.*` and `**/*.spec.*`
3. Read 1-2 existing test files to match style (imports, describe/it patterns, assertion style)
4. Identify test directory convention (test/, __tests__/, co-located)

## Step 2 — Triage

**Fast path** (inline generation):
- Single function or small file (< 100 lines)
- Clear inputs/outputs, no complex dependencies
- Proceed to Step 3a

**Agent path** (dispatch):
- Complex component with multiple methods
- Requires mocking strategy decisions
- Integration tests needed across modules
- Proceed to Step 3b

## Step 3a — Inline Test Generation

1. Read the target file completely
2. Identify testable units: exported functions, public methods, API endpoints
3. Generate tests matching the project's existing style:
   - Happy path for each function
   - Edge cases: empty input, null, boundary values
   - Error cases: invalid input, missing dependencies
4. Write the test file to the conventional location

## Step 3b — Capability-Assisted Test Design

If the host exposes an **available independent test specialist** and the component's
interaction/mocking risk warrants a separate analysis, give it this bounded task:

```text
Create a comprehensive test plan and generate tests for: [target].
Existing test framework: [detected framework].
Existing test patterns: [patterns found in Step 1].
Match the project's test style and identify untestable assumptions.
```

Otherwise develop the same test strategy inline. Do not require a named agent or a
specific host tool.

## Step 4 — Verify

After tests are written:
1. Detect the target repository's actual test command before running anything:
   read its contributor/testing documentation first, then inspect relevant package scripts,
   Makefiles, Python/Java test configuration, and nearby tests. Prefer the narrowest command
   that covers the changed test; do not default to a JavaScript package command.
2. Run the new tests to verify they pass
3. Report coverage if possible
4. List any functions/paths not covered with rationale

From whichguy/skill-craft, MIT.

More from whichguy/skill-craft

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 26, 2026 (1 month ago)
Last release
Aug 15, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from whichguy

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get plan-test running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying plan-test?

CallGet help
Cite this page

plan-test skill. Agent Mart. https://agentmart.dev/skills/whichguy-plan-test (last updated 2026-10-24)