[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVJ0B6F4ECAHC9NFZ00328":3,"skill-same:01M7CVJ0B6F4ECAHC9NFZ00328":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":13,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M7CVJ0B6F4ECAHC9NFZ00328","stripe-link-cli",null,"Agent payments via Stripe Link — cards, SPT, approvals.","dwikanugraha13\u002FProject-Anara","dwikanugraha13","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F63535036?v=4","01M7CTBN0DG8GDNP4QZ68W8M0A","01M7CTBN10Q015JDBYJS6AJRGN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fstripe-link-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ncategory: payments\nname: stripe-link-cli\ndescription: Agent payments via Stripe Link — cards, SPT, approvals.\nversion: 0.1.0\nauthor: Teknium (teknium1), Anara Agent\nlicense: MIT\nplatforms: [linux, macos]\nmetadata:\n  anara:\n    tags: [Payments, Stripe, Link, Checkout, MPP]\n    related_skills: [mpp-agent, stripe-projects]\n---\n\n# Stripe Link CLI Skill\n\nWraps [@stripe\u002Flink-cli](https:\u002F\u002Fgithub.com\u002Fstripe\u002Flink-cli) so Anara 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 — Anara 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 hand off to the `mpp-agent` skill.\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 Anara 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 \"Anara\" --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.anara\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.anara\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 Anara' native MCP:\n\n```\nanara mcp add stripe-link --command \"npx\" --args \"@stripe\u002Flink-cli --mcp\"\n```\n\nThen `anara 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 Anara 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 — Anara 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 hand off to the `mpp-agent` skill.\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 Anara 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 \"Anara\" --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.anara\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.anara\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 Anara' native MCP:\n\n```\nanara mcp add stripe-link --command \"npx\" --args \"@stripe\u002Flink-cli --mcp\"\n```\n\nThen `anara 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":23,"license":14,"version":24,"category":25,"metadata":26,"platforms":37,"description":7},"Teknium (teknium1), Anara Agent","0.1.0","payments",{"anara":27},{"tags":28,"related_skills":34},[29,30,31,32,33],"Payments","Stripe","Link","Checkout","MPP",[35,36],"mpp-agent","stripe-projects",[38,39],"linux","macos","main","3e6d6b7ffb6ab43ddf3991509e5cfb5f8c90cd1a","backend\u002Fskills\u002Fstripe-link-cli","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13","2026-10-13 07:57:21",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add dwikanugraha13\u002FProject-Anara --skill stripe-link-cli",{"tool":52,"command":53},"bunx","bunx skills add dwikanugraha13\u002FProject-Anara --skill stripe-link-cli",{"tool":55,"command":56},"pnpm","pnpm dlx skills add dwikanugraha13\u002FProject-Anara --skill stripe-link-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fstripe-link-cli\u002FSKILL.md",true,[],[61,68,75,83,90,97],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7CVK8W5MPQ8H45A6XE6RPK1","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7CVK56KG9399ZZVE9KM54WS","xurl","X\u002FTwitter via xurl CLI: raw post search, posting, DM, media.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7CVK22A44A88NPPBAC1FVQP","xlsx","Create, read, edit Excel .xlsx workbooks and CSVs.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fxlsx\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7CVJX88C8PY2T6RQZ5GCG15","weights-and-biases","W&B: log ML experiments, sweeps, model registry, dashboards.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fweights-and-biases\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M7CVJR3W1FBRGC56DG6BJ1Y3","weekly-review-planning","Weekly reset: commitments, stalled work, next-week plan.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fweekly-review-planning\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M7CVJGPJNPQDM8S1KTTMJN7M","touchdesigner-mcp","Control TouchDesigner via twozero MCP.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[]]