/plugin-engineering:test-and-evalsfrom Plugin Engineering
Use right after a plugin is created and after every change to a plugin, its skills, agents, hooks, MCP or LSP servers, mods or marketplace, before the work is reported as done, and when the user asks to test, validate, check or review a plugin before publishing or releasing it, or to write, run, fix or read plugin evals (claude plugin eval, eval init, graders, mocks, CI gates). Runs the checks that cost nothing first, strict validation, loading from the folder, mod tests, an install the way users receive it and the directory and policy review, then builds an eval suite only after the user says yes to it and its cost. Not for a plugin that fails to install, load or run, which troubleshoot-and-debug diagnoses.
Ships in Plugin Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the user's plugin test engineer: prove that a plugin parses, loads, installs and does what it claims before it reaches people who install it. The checks that cost nothing run every time; evals spend the user's usage and run only after the user agrees.
These files were checked against Claude Code 2.1.330 and its docs. When claude --version is newer, read the changelog entries after it for each command you rely on, and follow the installed --help for flags.
Load plugin-engineering:cli-commands-guide too if it isn't loaded yet: this skill decides what to test and in what order, and that one gives each command's exact flags, messages, JSON fields and exit codes.
claude plugin validate checks files and schema, never behavior, and skips some files entirely; validate each plugin folder and the marketplace, and check by hand what it never reads.--plugin-dir, and a relative-path plugin from a marketplace added from a local path, both load in place. Only an install from a git-hosted marketplace tests the cached copy users load.PostToolUse hook validates the plugin after each Edit or Write inside it, runs its mod tests when the file is code in a plugin with mod tests, and hands you every error, warning and failed test: fix them before the next edit. Files changed through Bash don't fire it, so validate again after such a change.claude plugin eval run, judge grader, eval init interview and claude -p run is a real model call billed to the user. Never start one without the user's yes to the scope and the estimated cost.--trust-plugin, --scaffold, --allow-real-servers or --mocks off to an eval on your own: the user's go-ahead must name the flag, because each one trusts or runs the plugin's code as the user.CLAUDE.md, memory, other plugins and MCP servers: ship in the plugin everything a case depends on.Copy this checklist into your reply and tick each step with its evidence.
Progress:
- [ ] 1. Facts: claude --version, the surface, the plugin and marketplace folders
- [ ] 2. Validate every plugin folder and the marketplace with --strict
- [ ] 3. Check what validate never reads
- [ ] 4. Load from the folder and check every component
- [ ] 5. Mods: claude plugin test
- [ ] 6. Before a release: install the way users receive it
- [ ] 7. Before publishing: the directory and policy review
- [ ] 8. Evals, when the user agrees
claude --version, note where the session runs (CLAUDE_CODE_REMOTE, the desktop app, a terminal) and find each plugin folder (.claude-plugin/plugin.json) and the marketplace root (.claude-plugin/marketplace.json).claude plugin validate <plugin-dir> --strict for every changed plugin and claude plugin validate <marketplace-root> --strict. Fix every error and warning, then validate again until both print none.claude --plugin-dir <plugin-dir> plugin details <name>, and check each component with its row in the table.tests/*.test.ts or *.test.tsx, run claude plugin test <plugin-dir>, as Install tests, mods and CI says.list --json row.The user never writes cases. You propose and write them, after the user says they want evals.
AskUserQuestion, in one call: whether to build evals for this plugin; whether the user has cases or prompts in mind or you propose them from the plugin; and the score the suite must reach (it becomes --threshold). Stop when the answer is no.claude plugin eval init: run from this session, it prints the interview instructions for you to follow, so ask the user its questions here. Its trial runs are paid: get the yes first. Use claude plugin eval init --bare <name> only to write or fix one case by hand.scaffold_script by hand in an empty folder, and test each regex, tool_used and tool_order grader against a hand-written trace.--runs 1 --ablation none, show the user its output and grades, then run the suite with both arms.## Checks
Each step run, its command and its result; each step not run, with the reason.
## Findings
Each problem: the file and line or the command output, and the fix applied or proposed.
## Evals
The suite, the run (cases × runs × arms, cost), the verdict, Δ and each failing case, or "not run" with the reason.
## Not verified
What these checks can't prove here, and what would prove it.
--plugin-dir, and the check for each component.eval init, targets, tools and the sandbox, flags, cost and the CI command.references/eval-fixtures-and-mocks.md (opens in a new tab)references/eval-results.md (opens in a new tab)references/eval-runs-and-ci.md (opens in a new tab)references/eval-suite.md (opens in a new tab)references/install-and-ci.md (opens in a new tab)references/publish-review.md (opens in a new tab)references/validate-and-load.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nerymurillohnd/the-claude-factory --plugin plugin-engineering4 skills in this plugin
/cli-commands-guideUse for all work that writes, builds, audits, validates, tests, debugs, renames, removes, releases, tags or maintains plugins, their components (skills, subagents, hooks, scripts, MCP and LSP servers, commands, mods), dependencies and marketplaces, across any surface and environment (Claude Code CLI, desktop, web and cloud environments, claude.ai, Cowork, Agent SDK) and any distribution method (public or private GitHub marketplaces, plugins without a marketplace, claude.ai uploads, the Anthropic Directory, local plugins), even when the user only names a plugin command or pastes its output. Teaches Claude to use this skill as the base for all of that work, alone when no other skill fits, and alongside every specialized skill for the task. Gives the exact, current syntax and behavior of every claude plugin and claude plugin marketplace subcommand, /plugin form, /reload-plugins, --plugin-dir and --plugin-url, with flags, JSON fields, exit codes and minimum versions, and the gotchas that break plugin work./public-marketplace-devUse only when a new public plugin marketplace hosted on GitHub must be set up from scratch, once, at its start, whenever the user asks to create, establish, build or scaffold one, or the task needs a marketplace repository that does not exist yet, even when the user only says they want to publish or distribute plugins to other people. Builds the complete operating environment and architecture the marketplace will need, ready for its first plugin, including the repository's folders and subfolders, the marketplace catalog, the plugins folder layout, versioning and releases, validation, user instructions, CI/CD workflows, repository files and the folders for its maintenance. Teaches Claude to build it with cli-commands-guide for the exact commands, and to run test-and-evals on the result before reporting the work as done. Not for writing a plugin or its components, testing or debugging a plugin on its own, or maintaining a marketplace that already exists.Other plugins' skills for the same job