agentleFS
nerymurillohndnerymurillohnd/claude-essentials/.claude/skills/run-marketplace/SKILL.md

run-marketplace

Skill0 starsChanged 59 days agoMITView on GitHub

Runs and drives a claude-essentials plugin the way a user would - starts a headless Claude Code session with only that plugin loaded (from the working tree, or installed from HEAD in a throwaway configuration) and checks what the plugin does. Use when asked to run, try, smoke-test or demo a plugin, to check that a plugin change works for users before a pull request, or to test the released copy of a plugin.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every run is a real model call billed to the maintainer's plan (about \$0.01 with the default haiku).

    line 11
  2. Very specific:

    Test the copy a user receives (HEAD cloned bare, installed through a git-subdir marketplace in a throwaway config).

    line 23
  3. Very specific:

    -p waits 3 seconds for stdin and warns: when nothing is piped; the driver passes an empty stdin.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Run the marketplace

The marketplace has no app to launch: its "running app" is a plugin inside a user's Claude Code session. Drive it with scripts/drive_plugin.py, which sends a prompt to a real headless session with only that plugin loaded and checks the reply. Paths are relative to the repository root.

Every run is a real model call billed to the maintainer's plan (about $0.01 with the default haiku); the driver prints the cost, and --budget caps it at $0.50 by default.

Run (agent path)

Smoke-test a plugin from the working tree (uncommitted changes included). The default prompt is the plugin's first skill as a slash command:

scripts/drive_plugin.py <plugin> --expect '<what the first skill says>'

Exit 0 means the plugin loaded alone, the session ended without error, every --expect regex matched the reply and the real configuration is unchanged. The output shows the source, prompt, loaded plugins, reply and cost; each problem is a ✘ line and exit 1.

Test the copy a user receives (HEAD cloned bare, installed through a git-subdir marketplace in a throwaway config); commit first:

scripts/drive_plugin.py <plugin> --source head --prompt "/<plugin>:<skill> <input>" --expect '<what the reply must contain>'
OptionUse
--prompt TEXTAny request a user would type; required for a plugin without skills
--expect REGEXRepeatable, case-insensitive; one per behaviour the change must show
--source headBefore tagging a release, to drive the exact files users install
--model, --budgetDefault haiku and 0.50; use --model sonnet when the skill needs more reasoning
--tools LISTBuilt-in tools; --restricted drops Bash and WebFetch unless named here
--permission-modedefault, acceptEdits, plan or dontAsk; in -p a call that would prompt is denied

For a change, write expectations for what the change adds, not only that the plugin answers.

Install only (no model call)

Installing, listing and loading every plugin in place, from a cache copy and per session, without driving any:

scripts/check.py test-install

Test

scripts/check.py

Gotchas

  • An isolated CLAUDE_CONFIG_DIR has no login. Credentials belong to the config directory, so a session there answers Not logged in · Please run /login. The driver isolates the install but runs the session with the real login under --restricted, which loads neither user nor project settings (none of the maintainer's plugins, hooks or permissions).
  • A session started inside the repository knows the maintainer. The project CLAUDE.md and the git snapshot (with the git user name) reach the model, and a reply once greeted the maintainer by name. The driver therefore starts the session in an empty temporary directory, where the model knows neither name nor language (it still sees the account email, which comes with the login); --restricted still loads the account's claude.ai connectors, which --strict-mcp-config removes (the driver fails if any MCP server loads).
  • A pass means "works for a user", not "clean-room proven". The session still uses the maintainer's login and machine. For proof that matters to strangers (new behaviour, a release), run claude plugin eval plugins/<name> --no-publish: each eval run gets a temporary home and configuration with nothing personal loaded, and compares with a no-plugin baseline.
  • The macOS login is found through USER. A stripped environment (env -i, cron, launchd) without USER gets Not logged in even with the real config; LOGNAME alone does not help. Run from a normal shell or export USER.
  • -p waits 3 seconds for stdin and warns when nothing is piped; the driver passes an empty stdin.
  • No transcript is written (--no-session-persistence): the session cannot be resumed or inspected afterwards; the reply printed by the driver is the record.
  • timeout does not exist on macOS. Bound a run with --budget, not with a shell timeout.
  • Built-in plugins (cc-plugin-*@builtin) always load next to the target; the driver ignores them and fails on any other plugin.
  • Temporary files use the prefix claude-essentials-drive-, listed in TEMP_PREFIXES of scripts/check.py; scripts/check.py clean removes orphans.

Troubleshooting

  • ✘ plugins/<name> is not a plugin: the name is not a directory with .claude-plugin/plugin.json under plugins/.
  • ✘ <name> has no skills; pass --prompt: the plugin ships only agents, hooks or MCP servers; pass the request that should exercise them.
  • ✘ head: plugin install <name>@claude-essentials failed: …: usually HEAD does not contain the plugin yet; commit, then rerun, and read the printed output for any other cause.
  • ✘ USER is unset, so Claude Code cannot find the login; export USER: see the USER gotcha.
  • ✘ reply does not match '<regex>': the plugin answered but not as expected; read the printed reply before changing the plugin or the expectation.

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.