sohopay-bootstrap

Installation
SKILL.md

Availability: requires a server advertising tool-catalog v8+. On v7 servers use whoami (resolve borrower_id = whoami.borrower_id ?? whoami.principal_id) + get_borrower_status.

Boundary. This skill orients an already-connected, authenticated session — what is my state and which flow next. It does not connect or onboard: getting connected is {SKILL:sohopay-mcp-connect} / {SKILL:sohopay-setup}; borrower onboarding steps are {SKILL:sohopay-onboard}.

Cold-start sequence

  1. Connect / authenticate → {SKILL:sohopay-mcp-connect} (setup presets: {SKILL:sohopay-setup}).
  2. If not yet onboarded — identity + onboarding state → {SKILL:sohopay-onboard}.
  3. Orient in one call → get_context (v8+): returns borrower_id, credit headroom, authorization, and next_actions hints. On v7: whoami + get_borrower_status.
  4. Route using Routing below — branch on the first blocking next_actions entry, scan the full array for HANDLE_CLAIM_REQUIRED and the bank-repayment reason codes, and treat every FINANCIAL_SOURCE_REQUIRED entry as an alternative. Do not re-derive the next step from raw balances/statuses; get_context already decided it.

Routing

get_context returns next_actions with any blocking borrower step first (if any), then PAY when spending is available, then AWAIT_REPAYMENT, then other hints. If any entry has reason_code: FINANCIAL_SOURCE_REQUIRED, take the source choice below first — it may sit behind PROVE_WALLET (WALLET_PROOF_REQUIRED) at [0]. Otherwise branch on next_actions[0]: its reason_code, actor, and handoff_required tell you the move and whether the borrower is needed.

The workload key, borrower token, and ACTIVE grant come immediately after register_borrower, even when COMPLETE_PROFILE is listed. Inside the blocker loop, COMPLETE_PROFILE is first, ahead of any wallet or bank step: report it, invent no link, and end the turn. Do not poll. Before ending any turn in that loop, claim a handle when HANDLE_CLAIM_REQUIRED is listed.

FINANCIAL_SOURCE_REQUIRED. Every entry with that reason is an alternative source. After the key and the ACTIVE grant, and only when COMPLETE_PROFILE is not listed, ask the borrower wallet or bank once, then: CONNECT_WALLET + CONNECT_BANK (no wallet) → start_browser_handoff with the chosen action and a fresh idempotency key; PROVE_WALLET + CONNECT_BANK (wallet registered, proof missing) → wallet means the proof (request_signature_challenge then submit_signature, no link), bank means start_browser_handoff with action: CONNECT_BANK. Never send CONNECT_WALLET while PROVE_WALLET is listed. Open open_url verbatim. After the borrower returns, call get_context. Not a stop: a CONNECT_BANK listed next to EVALUATE_CREDIT is optional evidence for a borrower who already has a source. EVALUATE_CREDIT, REVIEW_CREDIT_OFFER, REPAYMENT_METHOD_REQUIRED, IN_REVIEW, and INELIGIBLE are not agent-actionable: report onboarded but not spend-ready and end the turn. Do not poll. REVIEW_AND_ACCEPT_FACILITY calls review_facility_offer. Stop when purchasing_power.can_pay is true, report available credit, and do not start a payment. Details: {SKILL:sohopay-onboard} step 5.

Installs
7
Repository
sohopay/skills
First Seen
Oct 1, 2026