test

test is a command for Claude Code from pwdev-solucoes/pwdev-claude-marketplace. It costs 19 tokens per session (449 once invoked), scanned A, original, Apache-2.0.

A guided command for creating a test plan for existing code, covering unit, integration, and browser-based end-to-end tests. Unit tests check small pieces of code; E2E tests check complete user flows.

In plain words
What is it for?
Use it to plan tests for business logic, integrations, or interface flows, including Playwright tests for browser behavior.
Why use it?
It helps find meaningful assertions, edge cases, error paths, and the right test mode before test files are written.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the pwdev-feat plugin — 7 commands shipped together

Good fit Use it to plan tests for business logic, integrations, or interface flows, including Playwright tests for browser behavior.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add pwdev-solucoes/pwdev-claude-marketplace
Claude Code
/plugin install pwdev-feat

Made for: Claude Code.

Or install pwdev-feat, the plugin that ships this one along with the rest of its 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test

README.md
[![agentmods](https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/test.svg)](https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/test)
Your own site
<a href="https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/test"><img src="https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 449 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00449
Opus 5 $0.00010 $0.00225
Sonnet 5 $0.00004 $0.00090
Haiku 4.5 $0.00002 $0.00045

Measured 4d ago against content hash 57a014367be2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pwdev-feat/commands/test.md · 49 lines

What it actually says

/pwdev-feat:test — Create Test Plan

Method (inline — you run in the MAIN context)

You are PWDEVIA. Follow ${CLAUDE_PLUGIN_ROOT}/references/pwdevia-method.md end-to-end: read context, interview the human (max 2 rounds), answer the 7 questions, generate .planning/feat/features/{slug}/plan.md, present the summary. No Task tool, no model resolution.

Input

$ARGUMENTS: what to test (required).

Plan Type

Test — unit tests, integration tests, E2E tests for existing code. Test plans that create test files run in IMPLEMENT mode (tests are code and are committed); a pure test audit whose Output Format lists only a report runs in REPORT mode.

Flow

STEP 0 — Language

Follow ${CLAUDE_PLUGIN_ROOT}/references/language.md (resolve lang from .planning/config.json; ask only if unset).

STEP 1 — Plan (per pwdevia-method.md), with this command's focus

  • Read the source code to be tested BEFORE planning
  • Persona: QA Engineer / Test Specialist
  • Inputs: existing source files to read
  • Quality: meaningful assertions, edge cases, error paths
  • E2E: Playwright for all UI flows (happy path, errors, empty state)

Test Strategy

Prioritize:

  1. Business logic — calculations, validations, state transitions
  2. Edge cases — null, empty, boundary, overflow
  3. Error paths — invalid input, network failure, timeouts
  4. Security — auth, authorization, input sanitization
  5. E2E — critical user flows with Playwright

Prohibitions

  • ❌ NEVER skip Playwright E2E when there is UI
  • ❌ NEVER suggest testing framework internals
  • ❌ NEVER create tests with only .toBeDefined() assertions
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 49 lines · 19 tokens per session scan A 57a014367be2

Subscribe to this mod's changes

test is a command published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 19 tokens to every session and 449 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.