$npx -y skills add magnusrodseth/sparebank1-cli --skill sparebank1-transfersMove money with the sb1 CLI (SpareBank 1), transfer between the user's own accounts, pay a credit card, or pay into a pension policy. Use when a user explicitly asks to transfer/move money, pay a credit card, or fund a pension via sb1. Handles the confirmation flow safely.
| 1 | # sparebank1-transfers |
| 2 | |
| 3 | Money-movement workflows for SpareBank 1 via `sb1`. Read |
| 4 | [sparebank1-shared](../sparebank1-shared/SKILL.md) first. |
| 5 | |
| 6 | **⚠ Transfers are real and irreversible. Treat every transfer as high-stakes.** |
| 7 | |
| 8 | ## Safety rules (follow exactly) |
| 9 | |
| 10 | 1. **Never** pass `-y/--yes` unless the user has explicitly confirmed the exact |
| 11 | amount and destination in this conversation. Prefer letting the CLI's own |
| 12 | confirmation prompt show, and surface its summary to the user. |
| 13 | 2. Confirm `from`, `to`, and `amount` against `sb1 accounts` before running. |
| 14 | 3. `debit` transfers are **own-account only**, both `--from` and `--to` must be |
| 15 | the user's own accounts (the CLI rejects external destinations by design). |
| 16 | 4. If anything is ambiguous (which account, how much), stop and ask. Do not guess. |
| 17 | |
| 18 | ## Transfer between your own accounts |
| 19 | |
| 20 | ```bash |
| 21 | sb1 transfer debit --from Brukskonto --to Sparekonto --amount 250 |
| 22 | sb1 transfer debit --from Brukskonto --to Sparekonto --amount 250 --message "Sparing" |
| 23 | ``` |
| 24 | |
| 25 | The CLI prints a summary and asks `Proceed? [y/N]`. Amounts accept `250`, |
| 26 | `250.50`, or `250,50`. Optional `--due-date YYYY-MM-DD` schedules it. |
| 27 | |
| 28 | ## Pay a credit card |
| 29 | |
| 30 | ```bash |
| 31 | sb1 transfer creditcard --from Brukskonto --credit-card-id <id> --amount 500 |
| 32 | ``` |
| 33 | |
| 34 | `--credit-card-id` is the credit card account id (find it via `sb1 accounts --all`). |
| 35 | The payment posts as a payment, so the card balance may update the next business |
| 36 | day. |
| 37 | |
| 38 | ## Pay into a pension policy |
| 39 | |
| 40 | ```bash |
| 41 | sb1 transfer pension --from Brukskonto --policy-number <polisenummer> --amount 500 |
| 42 | ``` |
| 43 | |
| 44 | ## Non-interactive use |
| 45 | |
| 46 | Only when the user has clearly authorized the specific transfer, you may add |
| 47 | `-y` to skip the prompt. Always echo back exactly what you ran (from / to / |
| 48 | amount) afterwards, and report the returned `paymentId` and any warnings. |