Command Palette

Search for a command to run...

Back to skills
skill № 27360

invoice

This skill should be used when the founder wants to get paid through their own Stripe: list who owes them, create and send an invoice behind a human-approval…

FreeNo executable scripts
jikig-aiby jikig-ai★ 21 GitHub stars

Install invoice in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.

Invoice — get paid via your own Stripe

This skill is the Finance domain's get-paid workflow. It drives the hosted Stripe MCP (mcp.stripe.com, OAuth) to see who owes the founder money, create + send an invoice behind a human-approval preview, and chase overdue ones. It acts on the founder's own Stripe account — whichever account completed the OAuth — and must never touch Soleur's product billing credential (STRIPE_SECRET_KEY). See ADR-107 for the credential-plane boundary and its enforcement model.

Credential isolation is defense-in-depth, NOT a tool sandbox. A skill's allowed-tools is pre-approval only — per the Claude Code spec it does not remove Bash/Read/Write from the pool, so a prompt-injection payload in a Stripe-returned field (a customer name/memo) could try to Read('.env') or Bash('cat lib/stripe.ts'). The boundary is three partial layers: (1) allowed-tools lists only the 5 Stripe MCP tools (minimal declared scope); (2) disallowed-tools: Bash Read Write Edit removes the exfiltration tools for the duration of each operator turn (the injection window); (3) a committed .claude/settings.json Read deny on **/.env* + **/lib/stripe.ts covers the cross-turn Read vector. Residual: a Bash-mediated secret read, reachable only if the operator approves a permission prompt. Full model + rejected alternatives (context: fork) in ADR-107.

v1 scope: TEST mode only. Livemode invoicing is blocked in v1 (S2 hard-stop) pending the legal lockstep tracked in #6264. Building and test-mode use are not gated on that.

Tool surface (generic, runtime-discovered)

The hosted MCP exposes generic tools, not named ones (create_invoice does not exist). Bind each verb to a generic call (op-ids confirmed via stripe_api_details / stripe_api_search at run time):

Verb MCP tool Stripe op-id
account info get_stripe_account_info —
mode probe (livemode, zero-PII) stripe_api_read GetBalance
list customers stripe_api_read GetCustomers
list invoices (open/overdue) stripe_api_read GetInvoices (filter status=open)
retrieve invoice stripe_api_read GetInvoicesInvoice
create draft stripe_api_write PostInvoices (body: customer, collection_method=send_invoice, days_until_due, automatic_tax, currency, metadata)
add line item stripe_api_write PostInvoiceitems
finalize stripe_api_write PostInvoicesInvoiceFinalize
send stripe_api_write PostInvoicesInvoiceSend
void stripe_api_write PostInvoicesInvoiceVoid

Anti-duplicate mechanism = DETERMINISTIC metadata reconciliation, NOT idempotency keys. The generic stripe_api_write tool accepts path/query/body params only — it has no HTTP header slot, and Stripe's Idempotency-Key is a header, so it cannot be passed through. Instead, stamp a deterministic marker in the invoice metadata on every create: metadata[soleur_invoice_key] = a hash of the invoice's stable inputs (customer id + currency + total amount + line-item descriptions/amounts + a coarse date/period bucket), computed the SAME way on every attempt so a retry regenerates the byte-identical value. Never put raw customer PII in the marker — hash it. Then list-and-check that exact marker before every create/finalize: if a prior attempt's marker already exists, reconcile to that invoice instead of minting a second one. A non-deterministic (per-attempt-random) marker would defeat this — a lost-response create followed by a retry would generate a new marker, match nothing, and mint a duplicate.

Two confirmation gates layer — by AUTHORITY (do not conflate them). stripe_api_write may return a Stripe-side human_confirmation request (an approval id + URL; the human approves at the URL; re-call with approval_token, which the agent cannot self-satisfy). When it fires, the Stripe URL approval is the final authorization that actually executes the write. State this plainly to the operator and **re-display t

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

  1. 01mcp__plugin_soleur_stripe__get_stripe_account_info
  2. 02mcp__plugin_soleur_stripe__stripe_api_read
  3. 03mcp__plugin_soleur_stripe__stripe_api_write
  4. 04mcp__plugin_soleur_stripe__stripe_api_search
  5. 05mcp__plugin_soleur_stripe__stripe_api_details

FAQ

What does the invoice skill do?

This skill should be used when the founder wants to get paid through their own Stripe: list who owes them, create and send an invoice behind a human-approval preview, or chase an overdue one. Test-mode only.

How do I install the invoice skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the invoice skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare invoice with