/recoup-plugin:recoup-internal-dev-verify-clifrom Recoup
Verifies the compiled Recoup CLI by running actual commands against a loopback API fixture. Useful for pre-release checks of command discovery, account output, credential failures, and HTTP error handling.
Ships in Recoup. 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; scripts run unread.
Run the actual recoupable/cli executable and retain commands, output, exit codes, and observed HTTP requests. The fixture replaces the backend at the CLI's existing RECOUP_API_URL boundary. It does not prove production authentication, account authorization, or backend correctness.
Use Node 22 or newer and pnpm on macOS or Linux. The helper requires POSIX process groups and rejects unsupported operating systems before launching a CLI case. Select a clean, isolated CLI checkout at the revision under review. Record its commit and working-tree status. Preserve an existing dirty checkout by using a separate worktree. Set CLI_REPO to that checkout's absolute path and CLI_EVIDENCE to a fresh evidence directory outside it.
Run from the CLI checkout:
git rev-parse HEAD
git status --short
pnpm install --frozen-lockfile
pnpm build
The build must exit zero and produce dist/bin.cjs. This is a short-lived command, so there is no app server to keep running. The helper starts its own fixture on an unused loopback port and closes it after the checks.
Run node "$CLI_REPO/dist/bin.cjs" --version. Require exit zero and a version equal to the selected checkout's package.json. The build must have completed in this run. Record the commit alongside the evidence, since a version alone cannot identify a build.
Read features/README.md and the matching feature recipe. Scripts ship alongside this skill. From the skill directory, run:
node scripts/verify-cli.mjs "$CLI_REPO" "$CLI_EVIDENCE"
The helper drives seven cases through child processes with an isolated environment, a fresh working directory, and its own loopback URL. It provides a dummy API key only for identity and HTTP-error cases; version, help, and missing-credentials cases run without a key. Caller API settings, proxy variables, and Node preload options are not inherited. It requires no real credentials. A sandbox that forbids listening on loopback needs the host's normal approval for this local server. Do not change the fixture to use a production URL.
Require exit zero and pass: true in cli-verification.json. Read the per-case output and observed requests. The version and help cases must make no requests. The missing-key case must fail before any request. Identity and HTTP-error cases must reach the documented GET endpoint and produce the expected stdout or stderr.
The report includes the compiled file's SHA-256, package version, command arguments, outputs, exit codes, synthetic HTTP request details, and cleanup status. Keep the source commit and build output beside it. Use a fresh evidence directory per attempt so an unsuccessful run remains inspectable.
Report a passing run as CLI behavior against synthetic HTTP fixtures. Backend availability, real credentials, authorization, writes, and the other CLI commands remain unverified by this skill. The feature map describes exactly which entry points were covered.
Each CLI case has its own process group. When the direct child exits or exceeds ten seconds, the helper kills that group, including descendants with inherited or redirected output. Output pipes have one additional second to close before the case fails. Programs that deliberately leave the group to daemonize are unsupported; the helper does not claim to clean those unrelated groups.
On normal completion or a caught failure, the helper closes its own server, removes its temporary working directory, and preserves the evidence directory. Missing source metadata or build output produces a failed report before starting the server. Require both cleanup fields to be true and read the evidence file after exit. No process in a case's group should remain running. An unwritable evidence directory prevents saving a report and is itself a failed attempt.
Forced host termination can prevent this cleanup and the evidence write. The helper has no persistent recovery manifest. Treat that attempt as unverified. Use the host's process information to identify any surviving process from this run before cleanup; never kill by process name or assume that an old PID still belongs to this run.
When the CLI changes, update the matching feature recipe and helper, then repeat this workflow. Extend the map only when its new journey can be exercised and observed.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub recoupable/skills --plugin recoup-plugin132 skills in this plugin
/recoup-catalog-audit-catalogAudit a music catalog's rights, registrations, identifiers, agreements and delivery assets against supplied and accessible evidence. Use for 'audit my catalog', 'check my catalog before a sale', 'find rights or registration gaps', or 'verify this catalog after a transfer'. Produces scoped findings and remediation requirements; does not submit corrections, contact counterparties or reconcile royalty payments./recoup-catalog-estimate-valueEstimate a catalog, album, or song's value from public streaming data alone — no seller files or data room required. Use for "what's this catalog worth from public data", "ballpark this catalog", or "estimate the value of [album/song]". Wider error bars than a seller-file valuation; states its assumptions. For full diligence on a real data room use recoup-catalog-review-deal./recoup-catalog-explain-contractExplain a supplied music agreement in plain language, including the parties, covered music, rights, term, territory, payment/reporting rules and obligations, with clause references and unresolved questions. Use for "explain this music contract", "what did I agree to", "summarize this license", or "what does this publishing deal cover". Reviews the supplied agreement; does not sign, enforce, register rights or determine legal validity./recoup-catalog-import-catalogTurn a supplied distributor or repertoire CSV/spreadsheet into an organized, traceable catalog of releases, recordings and available composition links, with duplicates and uncertain matches flagged. Use for "import my catalog", "load this distributor spreadsheet", or "organize this repertoire export". Saves through a supported importer when available; does not establish ownership, distribute recordings or value a deal./recoup-catalog-organize-publishingOrganize supplied composition lists, split sheets, publisher agreements and registration exports into a writer/publisher repertoire with linked recordings, recorded shares, registration status and administration details. Use for "organize my publishing", "list my compositions and registrations", or "build my publishing repertoire inventory". Flags gaps while building that inventory; a condition assessment of existing catalog evidence belongs to catalog audit; does not register works, claim royalties or estimate recoverable money./recoup-catalog-reconcile-royaltiesReconcile music royalty statements, contractual earnings, remittances and relevant bank receipts with source controls and explained exceptions. Use for 'reconcile these publishing royalties', 'why did my royalty income drop', 'check my producer royalties', or a context-qualified royalty deposit match. Works from statements alone; generic bank payments and unrelated invoices do not trigger this skill.Other plugins' skills for the same job