Skip to content

Commit 60dc1dd

Browse files
chore(deps): update agent skills (plugins/agentic-engineering/skills/numina-stripe)
1 parent 4d14bb7 commit 60dc1dd

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

  • plugins/agentic-engineering/skills/numina-stripe

‎plugins/agentic-engineering/skills/numina-stripe/SKILL.md‎

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
github-path: skills/numina-stripe
55
github-ref: refs/heads/main
66
github-repo: https://github.com/Numina-Technologies/mcp
7-
github-tree-sha: 9aac97fef5c13d43f1c92b2b76f7182f8d75b48f
7+
github-tree-sha: b71afa6407a7446bf9be6718e4c46273a22240de
88
name: numina-stripe
99
---
1010
# Stripe → Numina
@@ -16,8 +16,10 @@ Numina.
1616

1717
## 1. Company and period
1818

19-
`get_company_info`: confirm the company and check `scopes` includes
20-
`write:draft`. If not, ask the user to reconnect Numina.
19+
`get_company_info`: confirm the company. Check that `create_draft` is among
20+
your Numina tools: Numina only lists the tools the connection may use. If
21+
it's missing, the connection is read-only; ask the user to reconnect Numina
22+
with write access.
2123

2224
## 2. Accounts, once
2325

@@ -29,13 +31,24 @@ fees account. Ask when unsure.
2931

3032
1. **Find the bank line.** `search_bank_transactions` with `text: "stripe"`,
3133
`amount_min` = `amount_max` = the payout amount (positive, money in) and
32-
`state: "unreconciled"`. Each result has the bank's
34+
`state: "unreconciled"`, and `date_from` = the payout's `arrival_date`,
35+
`date_to` = five days later. Each result has the bank's
3336
`ledger_account_number`. Skip lines with `agent_processing: true`;
3437
Numina is already on them. No line → the payout hasn't arrived yet; skip
3538
it.
39+
40+
Use a line only when it's the single match in the payout's currency.
41+
Payouts of the same amount are common with subscriptions, and a draft
42+
on the wrong line still balances. With several matches, take the one
43+
dated on the `arrival_date`; if that doesn't leave exactly one, list the
44+
candidates and ask the user.
3645
2. **List what's in the payout** from its Stripe balance transactions. Use
3746
their settlement amounts (`amount`, `fee`): they're already in the payout
3847
currency.
48+
49+
Stripe can only list this for automatic payouts. If the payout's
50+
`automatic` is false, don't draft it: report it without a breakdown and
51+
ask the user which transactions it covers.
3952
3. **Group the charges:**
4053
- **Denmark** → Danish output VAT code
4154
- **EU business with a VAT number** → EU sale, no Danish VAT
@@ -45,7 +58,10 @@ fees account. Ask when unsure.
4558
4. **`create_draft`** with `bank_transaction_id`, `date` = the payout date,
4659
and lines that sum to 0:
4760
- bank account (`ledger_account_number`): the payout, **positive**
48-
- sales per group: **negative**, gross with a Danish VAT code
61+
- sales per group: **negative**, with that group's VAT code from step
62+
3. A group on Danish VAT takes the gross amount and the Danish output
63+
VAT code. EU business sales take the EU sale code, and sales outside
64+
the EU take no VAT code: never put Danish VAT on those.
4965
- refunds: **positive**, on the same accounts and codes as the sale
5066
- fees: **positive** on the fees account. Stripe's fees are usually
5167
VAT-exempt; follow the code the company already uses for them.
@@ -60,4 +76,6 @@ fees account. Ask when unsure.
6076
## 4. Report back
6177

6278
Per payout: amount, sales per VAT group, refunds, fees and
63-
a link to the draft. Remind the user to approve the drafts in Numina.
79+
a link to the draft. List the payouts you left out: not arrived, several
80+
possible bank lines, or manual. Remind the user to approve the drafts in
81+
Numina.

0 commit comments

Comments
 (0)