/slashskills-labs:ai-product-developmentfrom Slashskills Labs
Builds or audits AI features covering tool-time authorization, reserve-then-settle billing, and evals before model changes. Use when adding AI to an app.
Ships in Slashskills Labs. 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.
A model call that works in a demo fails in production in three places: a tool handler that trusts an earlier authorization check, usage charged after the fact under concurrency, and a model or prompt change shipped without an evaluation. Get those three right, then map every UI state to its failure and its charge. Input validation, secret handling and typed routes are assumed.
file:line, the failure it allows, and the fix.ai-cost-audit skill when the motive is cost.A request that says "review", "check" or "is this safe" is Audit. A request to "add", "make", or "wire" is Build. Ask only when the request could be either and the answer decides whether files change.
Read before asking:
package.json plus the lockfile), the providers, and every place a tool is defined or executed;Ask only about choices that change the boundary: which tool actions need human approval, the charging policy for cancelled or failed work, and whether work must outlive the request (background job versus stream). Continue with labeled assumptions when the choice is reversible.
Treat the tool name and arguments the model selects as untrusted input from the internet. Retrieved documents, emails and web pages can inject them. Authorizing the chat request does not authorize the action the model picks three steps later.
Inside every consequential tool handler (writes, sends, spends, deletes, grants access, or reads data outside the caller's own scope):
toolsContext and runtimeContext do this (see the AI SDK reference).Read-only tools still scope every query by tenant. A tool that takes a raw resource ID with no tenant filter is a cross-tenant read.
Stop for the user's decision before letting a model trigger refunds, payments, deletions, outbound messages to third parties, or permission changes without a human approval step.
When usage costs money or credits and requests can overlap or loop, a balance check followed by a deduction afterwards lets parallel requests each pass the check and overspend. Use reservation and settlement instead:
usage means the last step or the whole run. Check the installed major before reading it (the AI SDK changed this in v7).Use the credit-metering skill for the ledger, schema, purchases and provider webhooks. This section decides where reserve and settle sit in the AI request path.
Never judge a model or prompt change on a few manual tries. Before the change ships:
taste-evals skill for the full method: blind pairwise comparison, judge calibration on real hits and flops, and a pre-registered decision rule.If the user wants the change now and no set exists, build the minimal set first and say what it cannot detect.
Model the states the chosen interaction actually has: initial, submitted with no token yet, streaming, tool running, awaiting approval, partial, stopped by the user, refused, rate limited or out of credits, failed mid-stream, complete. For each failure, decide all three columns together:
| Failure | Server behavior | User sees | Charge |
|---|---|---|---|
| Slow first token | Keep the request alive within the timeout | Submitted state, Stop available | Reservation held |
| Mid-stream provider error | Stop, persist the partial result if useful | Partial text marked incomplete, Retry | Settle per partial-work policy |
| User presses Stop | Abort upstream | Partial text kept, Regenerate | Completed steps only |
| Client disconnects | Abort or finish deliberately, never by accident | Restored state on return if persisted | Settled server-side |
| Tool awaiting approval | Hold; no mutation | Exact action and arguments to approve | Nothing for the action yet |
| Tool rejected by authorization | Return a refusal to the model, log it | Plain explanation, no internal detail | Model usage only |
| Out of credits or rate limited | Reject before the model call | Balance or retry time, a next step | Nothing |
| Duplicate submit | Return the original via idempotency key | One answer | Once |
Detect the installed ai and @ai-sdk/react majors first. For API shapes, use Vercel's official ai-sdk agent skill when installed, or the docs for that major. Read the AI SDK reference for the version traps that break billing and validation, the abort behavior, and the caps. For other SDKs, apply the same rules and check that SDK's usage semantics for multi-step runs.
file:line, failure, fix, and confirmed or suspected.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tushaarmehtaa/tushar-skills --plugin slashskills-labs29 skills in this plugin
/agent-instructionsCreate or reconcile AGENTS.md, CLAUDE.md and Cursor rules so Claude Code, Codex and Cursor each load the right guidance. Use when agent instructions are missing, stale, duplicated or conflicting./ai-cost-auditAudit AI usage, billing, unit economics, routing, caching, batching, and optimization. Use when AI cost, margin, pricing, model choice, or savings must be measured or verified./analyticsPlan, implement, or audit analytics, error monitoring, health checks, dashboards, and reporting. Use when designing events, consent-aware tracking, incident visibility, or observability./auth-implementationImplement authentication, authorization, tenant isolation, sessions, and protected routes. Use when adding sign-in, identity sync, provider integration, account linking, roles, or access control./cold-outreachResearch, write, audit, and improve cold messages, introductions, replies, and sequences. Use when contacting prospects, investors, partners, candidates, or other professional recipients./credit-meteringImplement or audit usage credits with atomic reservations, spending, grants, purchases, expiration, refunds, limits, UI state, and an immutable ledger. Use when an app meters consumable usage.Other plugins' skills for the same job