[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CR7DXXSVC6EB9WFJQ9HAEG":3,"skill-same:01M7CR7DXXSVC6EB9WFJQ9HAEG":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":14,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M7CR7DXXSVC6EB9WFJQ9HAEG","stripe-link-cli",null,"Agent payments via Stripe Link — cards, SPT, approvals.","thalhath2234\u002Ftimely-app","thalhath2234","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69391707?v=4","01M7CQNWTHSAP0D50RQY6W9YZQ","Thalhath","01M7CQNWVQN600VKQXRGTWCDPH",0,"MIT","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Fhermes\u002Foptional-skills\u002Fpayments\u002Fstripe-link-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: stripe-link-cli\ndescription: Agent payments via Stripe Link — cards, SPT, approvals.\nversion: 0.1.0\nauthor: Teknium (teknium1), Hermes Agent\nlicense: MIT\nplatforms: [linux, macos]\nmetadata:\n  hermes:\n    tags: [Payments, Stripe, Link, Checkout, MPP]\n    related_skills: [stripe-projects]\n---\n\n# Stripe Link CLI Skill\n\nWraps [@stripe\u002Flink-cli](https:\u002F\u002Fgithub.com\u002Fstripe\u002Flink-cli) so Hermes can complete purchases on the user's behalf using one-time-use virtual cards or Shared Payment Tokens (SPT). Every spend is gated by an in-app approval in the Link mobile\u002Fweb app — Hermes cannot self-approve.\n\nUS-only at the moment (Link account requirement). Windows is not supported by the upstream CLI — this skill is gated `[linux, macos]`.\n\n## When to Use\n\nTrigger phrases:\n\n- \"buy X\", \"pay for X\", \"make a purchase\", \"complete checkout\"\n- \"get me a card\", \"I need a payment method\"\n- \"log in to Link\", \"connect my Link wallet\"\n- HTTP 402 response from a merchant API with `www-authenticate: ... method=\"stripe\"`\n\nIf the user wants a paid API call (HTTP 402, no checkout form), the `card` path is wrong — use SPT via this same skill, or install the `pay` plugin (`hermes plugins install pay`) for x402\u002FMPP payments.\n\n## Prerequisites\n\n- Node.js 20+ available on `PATH` (`node --version`)\n- US-based (Link account requirement)\n\nThe Link account, payment method, and spend-approval app do NOT need to be set up before Hermes attempts to pay — the CLI walks the user through them on first run:\n\n- A Link account at https:\u002F\u002Fapp.link.com — created\u002Flinked during first `link-cli` auth\n- At least one payment method — added during first run at https:\u002F\u002Fapp.link.com\u002Fwallet\n- The Link mobile\u002Fweb app — opened to approve the first spend request when it's made\n\nNo env vars required — auth state is stored locally by the CLI under its own config directory.\n\n## Install\n\nInstall once, globally:\n\n```\nnpm install -g @stripe\u002Flink-cli\n```\n\nOr invoke ad-hoc via `npx @stripe\u002Flink-cli`. The skill below uses the installed `link-cli` form.\n\n## How to Run\n\nAll commands run through the `terminal` tool. The CLI auto-detects non-TTY callers and emits compact `toon` output by default — fine for the model. Pass `--format json` if a step needs structured fields.\n\nDiscover commands: `link-cli --llms-full`.\nGet a command's schema before invoking: `link-cli \u003Ccommand> --schema`.\n\n## Procedure\n\n### 1. Check \u002F establish auth\n\n```\nlink-cli auth status\n```\n\nIf not authenticated, log in with a clear client name (this label shows in the user's Link app):\n\n```\nlink-cli auth login --client-name \"Hermes\" --interval 5 --timeout 300\n```\n\nThe `--interval`\u002F`--timeout` form polls inline so the agent doesn't need to manage a `_next` step. Print the verification URL + phrase to the user and wait for the CLI to return.\n\n**Do not proceed past this step until `auth status` confirms login.**\n\n### 2. Evaluate the merchant before creating a spend request\n\nDecide the credential type:\n\n| Merchant surface | `--credential-type` |\n|---|---|\n| Standard web checkout form \u002F Stripe Elements | `card` (default) |\n| Returns HTTP 402 with `method=\"stripe\"` in `www-authenticate` | `shared_payment_token` |\n| Returns HTTP 402 without `method=\"stripe\"` | unsupported — stop |\n\nFor 402 responses, do NOT decode the challenge manually. Pass the raw header:\n\n```\nlink-cli mpp decode --challenge '\u003Cfull WWW-Authenticate header>'\n```\n\nThis validates the challenge and extracts the network ID + decoded request body.\n\n### 3. List payment methods + shipping\n\n```\nlink-cli payment-methods list\nlink-cli shipping-address list\n```\n\nUse the first entry unless the user specifies otherwise. The `id` from `payment-methods list` is the `--payment-method-id` in the next step.\n\n### 4. Create the spend request\n\nConfirm the final total with the user before issuing this command. Amounts are in cents.\n\n```\nlink-cli spend-request create \\\n  --payment-method-id \u003Cpm_id> \\\n  --merchant-name \"\u003Cname>\" \\\n  --merchant-url \"\u003Curl>\" \\\n  --context \"\u003Cone sentence: what is being purchased and why>\" \\\n  --amount \u003Ccents> \\\n  --line-item \"name:\u003Citem>,unit_amount:\u003Ccents>,quantity:1\" \\\n  --total \"type:total,display_text:Total,amount:\u003Ccents>\" \\\n  --request-approval\n```\n\nFor MPP merchants add `--credential-type shared_payment_token`.\n\n`--request-approval` pings the user's Link app and polls until they approve or deny. The CLI exits non-zero on deny \u002F timeout.\n\n### 5. Retrieve the credential — SECURELY\n\n**Do not print card details to stdout.** Use `--output-file` so the PAN never enters the agent's transcript or logs:\n\n```\nlink-cli spend-request retrieve \u003Clsrq_id> \\\n  --include card \\\n  --output-file ~\u002F.hermes\u002Fcache\u002Fscratch\u002Flink-card.json \\\n  --format json\n```\n\nThe file is written with `0600` perms; stdout shows only redacted fields (brand, last4, expiry) plus a `card_output_file` path.\n\n### 6. Use the credential\n\n- For web checkout: hand the file path to the user, OR pass it to a browser-driving tool that fills the form directly from disk. Never `read_file` or `cat` the card file into the agent's reasoning context.\n- For MPP merchants:\n\n  ```\n  link-cli mpp pay \u003Cmerchant-url> \\\n    --spend-request-id \u003Clsrq_id> \\\n    --method POST \\\n    --data '\u003Cjson body>'\n  ```\n\n### 7. Clean up\n\nDelete the card file as soon as the purchase is done:\n\n```\nrm -f ~\u002F.hermes\u002Fcache\u002Fscratch\u002Flink-card.json\n```\n\n## Optional: run as an MCP server instead\n\n`@stripe\u002Flink-cli --mcp` exposes the same commands as MCP tools over stdio. To register it with Hermes' native MCP:\n\n```\nhermes mcp add stripe-link --command \"npx\" --args \"@stripe\u002Flink-cli --mcp\"\n```\n\nThen `hermes mcp list` should show `stripe-link`. The same approval rules apply — MCP doesn't bypass the Link app approval step.\n\n## Pitfalls\n\n- **US-only.** Outside the US, `auth login` will fail. Tell the user, don't keep retrying.\n- **Card PAN must never enter agent context.** Use `--output-file` every time. If you've already retrieved without it, immediately `link-cli auth logout` is not enough — the card is one-time-use but rotate hygiene matters.\n- **`--request-approval` blocks until the user acts.** If the user is asleep, the CLI will hit its timeout. Set expectations.\n- **Multi-step `_next` commands.** Some commands return `_next.command` that must be executed to continue. When in doubt, prefer the inline-polling flags (`--interval`\u002F`--timeout`).\n- **Output format defaults to `toon`** in non-TTY mode. Fine for prose, but if a downstream step needs to parse a specific field, pass `--format json`.\n- **Don't default to `card`.** The merchant-evaluation step (Section 2) exists because picking the wrong credential type fails the purchase silently or leaks more data than needed.\n\n## Verification\n\n```\nlink-cli --version && link-cli auth status\n```\n\nExit code 0 means installed and logged in.\n","# Stripe Link CLI Skill\n\nWraps [@stripe\u002Flink-cli](https:\u002F\u002Fgithub.com\u002Fstripe\u002Flink-cli) so Hermes can complete purchases on the user's behalf using one-time-use virtual cards or Shared Payment Tokens (SPT). Every spend is gated by an in-app approval in the Link mobile\u002Fweb app — Hermes cannot self-approve.\n\nUS-only at the moment (Link account requirement). Windows is not supported by the upstream CLI — this skill is gated `[linux, macos]`.\n\n## When to Use\n\nTrigger phrases:\n\n- \"buy X\", \"pay for X\", \"make a purchase\", \"complete checkout\"\n- \"get me a card\", \"I need a payment method\"\n- \"log in to Link\", \"connect my Link wallet\"\n- HTTP 402 response from a merchant API with `www-authenticate: ... method=\"stripe\"`\n\nIf the user wants a paid API call (HTTP 402, no checkout form), the `card` path is wrong — use SPT via this same skill, or install the `pay` plugin (`hermes plugins install pay`) for x402\u002FMPP payments.\n\n## Prerequisites\n\n- Node.js 20+ available on `PATH` (`node --version`)\n- US-based (Link account requirement)\n\nThe Link account, payment method, and spend-approval app do NOT need to be set up before Hermes attempts to pay — the CLI walks the user through them on first run:\n\n- A Link account at https:\u002F\u002Fapp.link.com — created\u002Flinked during first `link-cli` auth\n- At least one payment method — added during first run at https:\u002F\u002Fapp.link.com\u002Fwallet\n- The Link mobile\u002Fweb app — opened to approve the first spend request when it's made\n\nNo env vars required — auth state is stored locally by the CLI under its own config directory.\n\n## Install\n\nInstall once, globally:\n\n```\nnpm install -g @stripe\u002Flink-cli\n```\n\nOr invoke ad-hoc via `npx @stripe\u002Flink-cli`. The skill below uses the installed `link-cli` form.\n\n## How to Run\n\nAll commands run through the `terminal` tool. The CLI auto-detects non-TTY callers and emits compact `toon` output by default — fine for the model. Pass `--format json` if a step needs structured fields.\n\nDiscover commands: `link-cli --llms-full`.\nGet a command's schema before invoking: `link-cli \u003Ccommand> --schema`.\n\n## Procedure\n\n### 1. Check \u002F establish auth\n\n```\nlink-cli auth status\n```\n\nIf not authenticated, log in with a clear client name (this label shows in the user's Link app):\n\n```\nlink-cli auth login --client-name \"Hermes\" --interval 5 --timeout 300\n```\n\nThe `--interval`\u002F`--timeout` form polls inline so the agent doesn't need to manage a `_next` step. Print the verification URL + phrase to the user and wait for the CLI to return.\n\n**Do not proceed past this step until `auth status` confirms login.**\n\n### 2. Evaluate the merchant before creating a spend request\n\nDecide the credential type:\n\n| Merchant surface | `--credential-type` |\n|---|---|\n| Standard web checkout form \u002F Stripe Elements | `card` (default) |\n| Returns HTTP 402 with `method=\"stripe\"` in `www-authenticate` | `shared_payment_token` |\n| Returns HTTP 402 without `method=\"stripe\"` | unsupported — stop |\n\nFor 402 responses, do NOT decode the challenge manually. Pass the raw header:\n\n```\nlink-cli mpp decode --challenge '\u003Cfull WWW-Authenticate header>'\n```\n\nThis validates the challenge and extracts the network ID + decoded request body.\n\n### 3. List payment methods + shipping\n\n```\nlink-cli payment-methods list\nlink-cli shipping-address list\n```\n\nUse the first entry unless the user specifies otherwise. The `id` from `payment-methods list` is the `--payment-method-id` in the next step.\n\n### 4. Create the spend request\n\nConfirm the final total with the user before issuing this command. Amounts are in cents.\n\n```\nlink-cli spend-request create \\\n  --payment-method-id \u003Cpm_id> \\\n  --merchant-name \"\u003Cname>\" \\\n  --merchant-url \"\u003Curl>\" \\\n  --context \"\u003Cone sentence: what is being purchased and why>\" \\\n  --amount \u003Ccents> \\\n  --line-item \"name:\u003Citem>,unit_amount:\u003Ccents>,quantity:1\" \\\n  --total \"type:total,display_text:Total,amount:\u003Ccents>\" \\\n  --request-approval\n```\n\nFor MPP merchants add `--credential-type shared_payment_token`.\n\n`--request-approval` pings the user's Link app and polls until they approve or deny. The CLI exits non-zero on deny \u002F timeout.\n\n### 5. Retrieve the credential — SECURELY\n\n**Do not print card details to stdout.** Use `--output-file` so the PAN never enters the agent's transcript or logs:\n\n```\nlink-cli spend-request retrieve \u003Clsrq_id> \\\n  --include card \\\n  --output-file ~\u002F.hermes\u002Fcache\u002Fscratch\u002Flink-card.json \\\n  --format json\n```\n\nThe file is written with `0600` perms; stdout shows only redacted fields (brand, last4, expiry) plus a `card_output_file` path.\n\n### 6. Use the credential\n\n- For web checkout: hand the file path to the user, OR pass it to a browser-driving tool that fills the form directly from disk. Never `read_file` or `cat` the card file into the agent's reasoning context.\n- For MPP merchants:\n\n  ```\n  link-cli mpp pay \u003Cmerchant-url> \\\n    --spend-request-id \u003Clsrq_id> \\\n    --method POST \\\n    --data '\u003Cjson body>'\n  ```\n\n### 7. Clean up\n\nDelete the card file as soon as the purchase is done:\n\n```\nrm -f ~\u002F.hermes\u002Fcache\u002Fscratch\u002Flink-card.json\n```\n\n## Optional: run as an MCP server instead\n\n`@stripe\u002Flink-cli --mcp` exposes the same commands as MCP tools over stdio. To register it with Hermes' native MCP:\n\n```\nhermes mcp add stripe-link --command \"npx\" --args \"@stripe\u002Flink-cli --mcp\"\n```\n\nThen `hermes mcp list` should show `stripe-link`. The same approval rules apply — MCP doesn't bypass the Link app approval step.\n\n## Pitfalls\n\n- **US-only.** Outside the US, `auth login` will fail. Tell the user, don't keep retrying.\n- **Card PAN must never enter agent context.** Use `--output-file` every time. If you've already retrieved without it, immediately `link-cli auth logout` is not enough — the card is one-time-use but rotate hygiene matters.\n- **`--request-approval` blocks until the user acts.** If the user is asleep, the CLI will hit its timeout. Set expectations.\n- **Multi-step `_next` commands.** Some commands return `_next.command` that must be executed to continue. When in doubt, prefer the inline-polling flags (`--interval`\u002F`--timeout`).\n- **Output format defaults to `toon`** in non-TTY mode. Fine for prose, but if a downstream step needs to parse a specific field, pass `--format json`.\n- **Don't default to `card`.** The merchant-evaluation step (Section 2) exists because picking the wrong credential type fails the purchase silently or leaks more data than needed.\n\n## Verification\n\n```\nlink-cli --version && link-cli auth status\n```\n\nExit code 0 means installed and logged in.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":36,"description":7},"Teknium (teknium1), Hermes Agent","0.1.0",{"hermes":27},{"tags":28,"related_skills":34},[29,30,31,32,33],"Payments","Stripe","Link","Checkout","MPP",[35],"stripe-projects",[37,38],"linux","macos","dev","4d9b346961dd1d220a07fe4e6ed44b52daa57e0b","apps\u002Fagent\u002Fhermes\u002Foptional-skills\u002Fpayments\u002Fstripe-link-cli","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app","https:\u002F\u002Fgithub.com\u002Fthalhath2234","2026-11-14 05:26:10",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add thalhath2234\u002Ftimely-app --skill stripe-link-cli",{"tool":51,"command":52},"bunx","bunx skills add thalhath2234\u002Ftimely-app --skill stripe-link-cli",{"tool":54,"command":55},"pnpm","pnpm dlx skills add thalhath2234\u002Ftimely-app --skill stripe-link-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Fhermes\u002Foptional-skills\u002Fpayments\u002Fstripe-link-cli\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7CRJRHHG68Q3XZX37TD85JB","timely","Test fixture standing in for the Timely skill (IDs, markdown dialect, workspace rule).","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Ftests\u002Ffixtures\u002Fskills\u002Ftimely\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7CRJPPNS8SKWVTDP3TJ9EHG","product-price-monitor","Test fixture override of the upstream product-price-monitor skill.","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Ftests\u002Ffixtures\u002Fskills\u002Foverrides\u002Fproduct-price-monitor\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7CRJKRY4QH4RAA2MKHNZT04","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Fhermes\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7CRJG3JC6PRSTH3MW62KTH6","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Fhermes\u002Fskills\u002Fsoftware-development\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7CRJ8K3ACJYKSYDJWKJM6HV","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Fhermes\u002Fskills\u002Fsoftware-development\u002Fsystematic-debugging\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7CRJ3Q5QP1CVBG959M3A3BM","spike","Throwaway experiments to validate an idea before build.","https:\u002F\u002Fgithub.com\u002Fthalhath2234\u002Ftimely-app\u002Fblob\u002Fdev\u002Fapps\u002Fagent\u002Fhermes\u002Fskills\u002Fsoftware-development\u002Fspike\u002FSKILL.md",[],[]]