[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71GB5STXF8JDFTQNBGC4HEV":3,"skill-same:01M71GB5STXF8JDFTQNBGC4HEV":58},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M71GB5STXF8JDFTQNBGC4HEV","agent-keys",null,"Use when a user asks how to authenticate as an agent, create or rotate API credentials, or understand the lifecycle of agent keys on Shuriken.","ShurikenTrade\u002Fshuriken-skills","ShurikenTrade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F168152123?v=4","01M71GB3KA1RDGEW0M52D7BCJA","01M71GB3MBJ5ZZRP3CSSGTF6PV",90,"MIT","https:\u002F\u002Fgithub.com\u002FShurikenTrade\u002Fshuriken-skills\u002Fblob\u002Fmain\u002Fskills\u002Fagent-keys\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"keys","agent keys","create","as","credentials","how","lifecycle","how to","understand","use","when","user","api","2026-11-10 10:12:30",false,"---\nname: agent-keys\ndescription: Use when a user asks how to authenticate as an agent, create or rotate API credentials, or understand the lifecycle of agent keys on Shuriken.\n---\n\n# Using agent keys\n\nAgent keys are Shuriken's credential primitive for programmatic access. They authenticate a caller, carry a set of scopes defining what the caller can do, and are revocable without affecting the owning user's session.\n\n## Approach\n\n1. **One key per integration, not per user action.** An agent key represents a long-lived integration. Do not create a key per request.\n2. **Grant the minimum scope.** See `shuriken:scoping` for how scopes are structured and how to reason about least-privilege.\n3. **Treat keys as secrets.** Store them in environment variables or secret managers. Never hard-code. Never log. Never commit.\n\n## Key lifecycle\n\n- **Create** at [app.shuriken.trade\u002Fagents](https:\u002F\u002Fapp.shuriken.trade\u002Fagents) (the authenticated user's agent-key management page), or via the agent-key management API once bootstrapped. The key is displayed once at creation — capture it immediately.\n- **Use** the same agent key across every surface:\n  - REST — pass the key in the `Authorization: Bearer \u003Ckey>` header on every request.\n  - WebSocket — authenticate the connection with the same agent key (subject to the key's scopes, just like REST). The streaming endpoints share the same credential model; there is no separate websocket token.\n  - SDKs — both the TypeScript and Rust SDKs accept the agent key directly in the client constructor. Prefer the SDK path when the user's language is supported; it handles header\u002Fconnection wiring for you.\n- **Rotate** periodically and after any suspected compromise. Rotation means: create the new key, deploy it to the consuming service, then revoke the old key. Not the reverse.\n- **Revoke** when an integration is retired, a contractor departs, or the key is exposed. Revocation is immediate.\n\n## One user, one integration\n\nAn agent key belongs to a single Shuriken user. An integration holds that user's key (or the few keys that user has created for different purposes). There is no multi-tenant flow where an app mints keys on behalf of many users — every key is owned by the Shuriken account that created it.\n\n## Pointers\n\n- Platform documentation (including key management): fetch `https:\u002F\u002Fdocs.shuriken.trade\u002Fllms.txt` and search for \"agent keys\"\n- OpenAPI paths: `\u002Fv1\u002Fagent-keys\u002F*` — fetch `https:\u002F\u002Fdocs.shuriken.trade\u002Fapi-reference\u002Fopenapi.json` for current signatures\n- Related skills: `shuriken:scoping`, `shuriken:api-integration`\n","# Using agent keys\n\nAgent keys are Shuriken's credential primitive for programmatic access. They authenticate a caller, carry a set of scopes defining what the caller can do, and are revocable without affecting the owning user's session.\n\n## Approach\n\n1. **One key per integration, not per user action.** An agent key represents a long-lived integration. Do not create a key per request.\n2. **Grant the minimum scope.** See `shuriken:scoping` for how scopes are structured and how to reason about least-privilege.\n3. **Treat keys as secrets.** Store them in environment variables or secret managers. Never hard-code. Never log. Never commit.\n\n## Key lifecycle\n\n- **Create** at [app.shuriken.trade\u002Fagents](https:\u002F\u002Fapp.shuriken.trade\u002Fagents) (the authenticated user's agent-key management page), or via the agent-key management API once bootstrapped. The key is displayed once at creation — capture it immediately.\n- **Use** the same agent key across every surface:\n  - REST — pass the key in the `Authorization: Bearer \u003Ckey>` header on every request.\n  - WebSocket — authenticate the connection with the same agent key (subject to the key's scopes, just like REST). The streaming endpoints share the same credential model; there is no separate websocket token.\n  - SDKs — both the TypeScript and Rust SDKs accept the agent key directly in the client constructor. Prefer the SDK path when the user's language is supported; it handles header\u002Fconnection wiring for you.\n- **Rotate** periodically and after any suspected compromise. Rotation means: create the new key, deploy it to the consuming service, then revoke the old key. Not the reverse.\n- **Revoke** when an integration is retired, a contractor departs, or the key is exposed. Revocation is immediate.\n\n## One user, one integration\n\nAn agent key belongs to a single Shuriken user. An integration holds that user's key (or the few keys that user has created for different purposes). There is no multi-tenant flow where an app mints keys on behalf of many users — every key is owned by the Shuriken account that created it.\n\n## Pointers\n\n- Platform documentation (including key management): fetch `https:\u002F\u002Fdocs.shuriken.trade\u002Fllms.txt` and search for \"agent keys\"\n- OpenAPI paths: `\u002Fv1\u002Fagent-keys\u002F*` — fetch `https:\u002F\u002Fdocs.shuriken.trade\u002Fapi-reference\u002Fopenapi.json` for current signatures\n- Related skills: `shuriken:scoping`, `shuriken:api-integration`\n",{"name":5,"description":7},"main","504e9b4c91cfa4be152d47ef874e2f452c03f958","skills\u002Fagent-keys",6,"https:\u002F\u002Fgithub.com\u002FShurikenTrade\u002Fshuriken-skills","https:\u002F\u002Fapp.shuriken.trade","https:\u002F\u002Fgithub.com\u002FShurikenTrade","2026-05-10 22:01:34",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add ShurikenTrade\u002Fshuriken-skills --skill agent-keys",{"tool":50,"command":51},"bunx","bunx skills add ShurikenTrade\u002Fshuriken-skills --skill agent-keys",{"tool":53,"command":54},"pnpm","pnpm dlx skills add ShurikenTrade\u002Fshuriken-skills --skill agent-keys","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FShurikenTrade\u002Fshuriken-skills\u002Fblob\u002Fmain\u002Fskills\u002Fagent-keys\u002FSKILL.md",true,[],[59,73,90,110],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":31},"01M71GBDGJW70A76BZXAXDTDZM","scoping","Use when a user asks what an agent key can do, how Shuriken permissions work, or which scopes they need for a given integration.","https:\u002F\u002Fgithub.com\u002FShurikenTrade\u002Fshuriken-skills\u002Fblob\u002Fmain\u002Fskills\u002Fscoping\u002FSKILL.md",[],[61,29,66,23,67,68,69,70,27,28,71,72],"integration","work","do","which","for","can","permissions",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":31},"01M71GBB9J512XD2XD03A8ED9B","learn-about-shuriken","Use when a user asks conceptual questions about Shuriken — what it does, what features exist, how a feature works, or \"what is X on Shuriken?\" Does not cover programmatic integration (that's `shuriken:api-integration`).","https:\u002F\u002Fgithub.com\u002FShurikenTrade\u002Fshuriken-skills\u002Fblob\u002Fmain\u002Fskills\u002Flearn-about-shuriken\u002FSKILL.md",[],[80,81,82,83,84,27,28,30,23,85,66,86,87,29,88,89],"learn about shuriken","about","learn","cover","programmatic","questions","features","it","feature","api-integration",{"skillNo":91,"name":89,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":31},"01M71GB8DD3YVX4Z8BA28MCXJ8","Use when a user wants to integrate with or develop against the Shuriken API or SDK — covers proficiency assessment, path routing (quickstart \u002F raw API \u002F SDK), and tells you which deepening reference tool to reach for (OpenAPI for HTTP endpoints, the stream catalog for WebSockets, platform docs as fallback).","https:\u002F\u002Fgithub.com\u002FShurikenTrade\u002Fshuriken-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapi-integration\u002FSKILL.md",[],[66,96,30,97,69,98,28,99,100,101,102,103,104,21,105,70,106,107,108,109],"api integration","http endpoints","assessment","you","integrate","deepening","websockets","fallback","path","platform","tool","catalog","openapi","quickstart",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":31},"01M71GB4SFPR97SQSBKFAY74BJ","__fixture__","Test fixture, ignored by render_index in release builds","https:\u002F\u002Fgithub.com\u002FShurikenTrade\u002Fshuriken-skills\u002Fblob\u002Fmain\u002Fskills\u002F__fixture__\u002FSKILL.md",[],[117,118,119,120,121,122],"fixture","test","release","render","index","ignored"]