[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79S7H86H1RF6HVX7HKDXZYN":3,"skill-same:01M79S7H86H1RF6HVX7HKDXZYN":53},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":14,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M79S7H86H1RF6HVX7HKDXZYN","token-economics-architect",null,"Architect-level token cost modelling — input versus output pricing, context growth in conversation, caching economics, reasoning-token overhead, per-tenant budgets and caps, and the unit-economics view that connects a feature to a bill. Use when AI features must be priced, capped, or made cheaper.","SriAkhilSJ\u002FPulseAIRepo","SriAkhilSJ","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206201543?v=4","01M79RWFD1Q09B89SXTTKKJY6Z","Sri Akhil SJ","01M79RWFE26NPG0BZ1FRNX376H",0,"MIT","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml-architect\u002Fllm-architect\u002Ftoken-economics-architect\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: token-economics-architect\ndescription: Architect-level token cost modelling — input versus output pricing, context growth in conversation, caching economics, reasoning-token overhead, per-tenant budgets and caps, and the unit-economics view that connects a feature to a bill. Use when AI features must be priced, capped, or made cheaper.\nlicense: MIT\ncompatibility: Any provider with per-token pricing\nmetadata:\n  crusor-domain: ai-ml-architect\n  crusor-path: ai-ml-architect\u002Fllm-architect\u002Ftoken-economics-architect\n  crusor-origin: original\n  crusor-sources: \"platform.openai.com\u002Fdocs\u002Fpricing; docs.anthropic.com\u002Fen\u002Fdocs\u002Fabout-claude\u002Fpricing; ai.google.dev\u002Fgemini-api\u002Fdocs\u002Fpricing\"\n  crusor-triggers: \"token cost, pricing, cost per request, context window cost, prompt caching cost, llm budget, unit economics, cost per user\"\n  crusor-verified-on: \"2026-10-30\"\n---\n\n# Token Economics Architect\n\nToken cost is **a product constraint that belongs in the design doc**. A feature\nwithout a cost model is a feature whose economics are discovered by finance.\n\n## When to use\n\n- Pricing a feature or setting per-tenant limits.\n- Costs growing faster than usage.\n- Choosing a model, a context strategy, or a caching layer.\n\n## When NOT to use\n\n- Prototype with ten users — measure later, but instrument now.\n\n## Decision 1 — The arithmetic\n\n```\ncost\u002Frequest = (input_tokens × in_price) + (output_tokens × out_price)\n             + cached_input_adjustment + reasoning_tokens (if billed)\ncost\u002Fuser    = cost\u002Frequest × requests\u002Fuser\u002Fday × 30\n```\n\n- Output tokens usually cost 3–5× input; verbose answers are expensive.\n- Reasoning\u002Fthinking models bill tokens you never show the user — budget them.\n- Every hop in a chain multiplies; count the hops in the design.\n\n## Decision 2 — What grows silently\n\n| Growth | Fix |\n|---|---|\n| conversation history resent each turn | summarise, window, or cache |\n| retrieved chunks growing per query | cap k, rerank, trim |\n| system prompt bloating over time | review quarterly, it is code |\n| tool outputs pasted whole | truncate + summarise |\n| retries and repair loops | bound attempts, measure the rate |\n| multi-agent chatter | fewer agents, tighter handoffs |\n\n- A 10-turn conversation with full history is quadratic in tokens; that is the most\n  common surprise.\n\n## Decision 3 — Caching\n\n| Cache | Saves |\n|---|---|\n| provider prompt cache | repeated prefix tokens |\n| exact-match response cache | identical requests |\n| semantic cache | near-duplicate requests (risky) |\n| application-level summaries | re-computation |\n\n- Prompt caching pays only when the prefix repeats inside the provider's TTL.\n- Exact-match caching is safe; semantic caching trades correctness for savings and\n  needs its own eval.\n- Log cache hit rate; a 0% hit rate usually means an unstable prefix.\n\n## Decision 4 — Budgets and caps\n\n- Per-request cap (max tokens) and per-tenant monthly cap, enforced in code.\n- Hard stop with a clear message, not a silent degradation.\n- Alert at 80% of budget, anomaly-detect at 3× hourly baseline.\n- Rate limits per tenant prevent one account from consuming the pool.\n\n## Decision 5 — Unit economics\n\n- Cost per active user, per successful task, per tenant — not just per token.\n- Compare against the value delivered (conversion, time saved, ticket deflection).\n- Fail rates matter: a retried request costs twice and delivers nothing.\n- Price tiers from measured p50 and p95 usage, not average.\n\n## Decision 6 — Reduction levers, in order\n\n1. Shorten outputs and constrain format.\n2. Trim context; rerank and cap retrieval.\n3. Route to a cheaper model where evals allow.\n4. Cache stable prefixes.\n5. Fine-tune a smaller model for narrow, high-volume tasks.\n\nDo them in that order — fine-tuning first is the classic expensive mistake.\n\n## Failure modes at scale\n\n- Full history resent every turn; cost grows 4× by message ten.\n- No per-tenant cap; one customer's automation consumes the month's budget.\n- Semantic cache returning a stale answer after a pricing change.\n- Reasoning model in a chat feature; visible latency and invisible cost.\n- Costs tracked per provider, never per feature, so nobody knows what to cut.\n\n## Verification receipts\n\n1. Cost model per request with input\u002Foutput split and hop count.\n2. Usage dashboard by feature and tenant, with caps configured.\n3. Cache hit rate and the savings attributed to it.\n4. Cost per successful task before and after the reduction pass.\n5. Budget alert exercised with a synthetic volume spike.\n","# Token Economics Architect\n\nToken cost is **a product constraint that belongs in the design doc**. A feature\nwithout a cost model is a feature whose economics are discovered by finance.\n\n## When to use\n\n- Pricing a feature or setting per-tenant limits.\n- Costs growing faster than usage.\n- Choosing a model, a context strategy, or a caching layer.\n\n## When NOT to use\n\n- Prototype with ten users — measure later, but instrument now.\n\n## Decision 1 — The arithmetic\n\n```\ncost\u002Frequest = (input_tokens × in_price) + (output_tokens × out_price)\n             + cached_input_adjustment + reasoning_tokens (if billed)\ncost\u002Fuser    = cost\u002Frequest × requests\u002Fuser\u002Fday × 30\n```\n\n- Output tokens usually cost 3–5× input; verbose answers are expensive.\n- Reasoning\u002Fthinking models bill tokens you never show the user — budget them.\n- Every hop in a chain multiplies; count the hops in the design.\n\n## Decision 2 — What grows silently\n\n| Growth | Fix |\n|---|---|\n| conversation history resent each turn | summarise, window, or cache |\n| retrieved chunks growing per query | cap k, rerank, trim |\n| system prompt bloating over time | review quarterly, it is code |\n| tool outputs pasted whole | truncate + summarise |\n| retries and repair loops | bound attempts, measure the rate |\n| multi-agent chatter | fewer agents, tighter handoffs |\n\n- A 10-turn conversation with full history is quadratic in tokens; that is the most\n  common surprise.\n\n## Decision 3 — Caching\n\n| Cache | Saves |\n|---|---|\n| provider prompt cache | repeated prefix tokens |\n| exact-match response cache | identical requests |\n| semantic cache | near-duplicate requests (risky) |\n| application-level summaries | re-computation |\n\n- Prompt caching pays only when the prefix repeats inside the provider's TTL.\n- Exact-match caching is safe; semantic caching trades correctness for savings and\n  needs its own eval.\n- Log cache hit rate; a 0% hit rate usually means an unstable prefix.\n\n## Decision 4 — Budgets and caps\n\n- Per-request cap (max tokens) and per-tenant monthly cap, enforced in code.\n- Hard stop with a clear message, not a silent degradation.\n- Alert at 80% of budget, anomaly-detect at 3× hourly baseline.\n- Rate limits per tenant prevent one account from consuming the pool.\n\n## Decision 5 — Unit economics\n\n- Cost per active user, per successful task, per tenant — not just per token.\n- Compare against the value delivered (conversion, time saved, ticket deflection).\n- Fail rates matter: a retried request costs twice and delivers nothing.\n- Price tiers from measured p50 and p95 usage, not average.\n\n## Decision 6 — Reduction levers, in order\n\n1. Shorten outputs and constrain format.\n2. Trim context; rerank and cap retrieval.\n3. Route to a cheaper model where evals allow.\n4. Cache stable prefixes.\n5. Fine-tune a smaller model for narrow, high-volume tasks.\n\nDo them in that order — fine-tuning first is the classic expensive mistake.\n\n## Failure modes at scale\n\n- Full history resent every turn; cost grows 4× by message ten.\n- No per-tenant cap; one customer's automation consumes the month's budget.\n- Semantic cache returning a stale answer after a pricing change.\n- Reasoning model in a chat feature; visible latency and invisible cost.\n- Costs tracked per provider, never per feature, so nobody knows what to cut.\n\n## Verification receipts\n\n1. Cost model per request with input\u002Foutput split and hop count.\n2. Usage dashboard by feature and tenant, with caps configured.\n3. Cache hit rate and the savings attributed to it.\n4. Cost per successful task before and after the reduction pass.\n5. Budget alert exercised with a synthetic volume spike.\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":31},{"crusor-path":25,"crusor-domain":26,"crusor-origin":27,"crusor-sources":28,"crusor-triggers":29,"crusor-verified-on":30},"ai-ml-architect\u002Fllm-architect\u002Ftoken-economics-architect","ai-ml-architect","original","platform.openai.com\u002Fdocs\u002Fpricing; docs.anthropic.com\u002Fen\u002Fdocs\u002Fabout-claude\u002Fpricing; ai.google.dev\u002Fgemini-api\u002Fdocs\u002Fpricing","token cost, pricing, cost per request, context window cost, prompt caching cost, llm budget, unit economics, cost per user","2026-10-30","Any provider with per-token pricing","main","8fa4e240be65b98472c9b2d3a505ade2aea1a5c6","skills\u002Fai-ml-architect\u002Fllm-architect\u002Ftoken-economics-architect","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ","Studying in CMR institute of Technology\r\n2024 - 2028","2026-11-13 21:02:23",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add SriAkhilSJ\u002FPulseAIRepo --skill token-economics-architect",{"tool":45,"command":46},"bunx","bunx skills add SriAkhilSJ\u002FPulseAIRepo --skill token-economics-architect",{"tool":48,"command":49},"pnpm","pnpm dlx skills add SriAkhilSJ\u002FPulseAIRepo --skill token-economics-architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml-architect\u002Fllm-architect\u002Ftoken-economics-architect\u002FSKILL.md",true,[],[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M79TTAJNACCNXCEN3649CMMD","interaction-patterns-architect","Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-architect\u002Fui-ux-implementation-architect\u002Finteraction-patterns-architect\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M79TT2ESKB1TKZBYY9KYJHV9","design-system-ops-architect","Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-architect\u002Fui-ux-implementation-architect\u002Fdesign-system-ops-architect\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M79TSV0PWGNK3PRX9P4JDR9N","design-handoff-architect","Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-architect\u002Fui-ux-implementation-architect\u002Fdesign-handoff-architect\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79TSJS9BFXNP696FMJ9GKDA","content-microcopy-architect","Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-architect\u002Fui-ux-implementation-architect\u002Fcontent-microcopy-architect\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M79TSCNBST3N1M68V1KPH9HQ","ui-ux-implementation-architect","Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-architect\u002Fui-ux-implementation-architect\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M79TS4N6A4D2QQ433VXS5D0R","test-strategy-architect","Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.","https:\u002F\u002Fgithub.com\u002FSriAkhilSJ\u002FPulseAIRepo\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-architect\u002Ftesting-and-deployment-architect\u002Ftest-strategy-architect\u002FSKILL.md",[],[]]