{"id":"0cf79993-96ff-44f5-ace1-cda073257d57","shortId":"2eDsRL","kind":"skill","title":"budget-aware-skill-listing-formatting","tagline":"Derive the active model context budget at runtime and format skill listings to fit it instead of emitting raw command sets.","description":"# SKILL: Budget-Aware Skill Listing Formatting\n**Domain:** skill-listing\n**Trigger:** Apply when a skill or command listing must fit the active model's real context budget instead of assuming a fixed token allowance.\n**Source Pattern:** Distilled from reviewed command-surface, skill-discovery, and CLI capability implementations.\n\n## Core Method\nCompute the formatting budget from the actual runtime model configuration rather than hard-coding a static limit. Ask the model/runtime layer for the current context window, including any beta-specific adjustments, then pass the candidate skill set through a formatter that trims or structures the listing to stay within that budget. This keeps the attachment aligned with whichever model is active and prevents a large registry from overflowing the prompt just because the runtime changed.\n\n## Key Rules\n- Derive the token budget from the active model and runtime flags at the time of formatting, not from a constant baked into the attachment code.\n- Feed the budgeted formatter only the delta set that actually needs to be announced, not the entire registry every time.\n- Keep budget calculation and formatting adjacent so future model changes cannot update one without the other.\n- Treat formatting as a budget-enforcement step, not just string rendering; if the budget shrinks, the emitted listing must shrink too.\n\n## Example Application\nIf a coding agent can run under different model sizes, first resolve that session's context window from the selected model and beta flags, then format the newly available slash commands so the attachment fits inside that window. A smaller model gets a tighter listing automatically without maintaining a second code path.\n\n## Anti-Patterns (What NOT to do)\n- Do not dump the raw command list directly into the prompt and hope the active model has enough room.\n- Do not hard-code one token limit for every model; listings that fit one runtime may overflow another.","tags":["budget","aware","skill","listing","formatting","cskill","agents","ychampion","agent-skills","ai-agents","cli","coding-agents"],"capabilities":["skill","source-ychampion","skill-budget-aware-skill-listing-formatting","topic-agent-skills","topic-ai-agents","topic-cli","topic-coding-agents","topic-context-engineering","topic-developer-tools","topic-mcp","topic-multi-agent","topic-terminal-ui"],"categories":["cskill-agents"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/ychampion/cskill-agents/budget-aware-skill-listing-formatting","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add ychampion/cskill-agents","source_repo":"https://github.com/ychampion/cskill-agents","install_from":"skills.sh"}},"qualityScore":"0.467","qualityRationale":"deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 34 github stars · SKILL.md body (1,953 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T06:56:45.593Z","embedding":null,"createdAt":"2026-04-18T22:19:51.349Z","updatedAt":"2026-04-22T06:56:45.593Z","lastSeenAt":"2026-04-22T06:56:45.593Z","tsv":"'activ':9,50,142,165,317 'actual':86,193 'adjac':209 'adjust':112 'agent':247 'align':137 'allow':62 'announc':197 'anoth':340 'anti':297 'anti-pattern':296 'appli':40 'applic':243 'ask':98 'assum':58 'attach':136,182,277 'automat':289 'avail':272 'awar':3,31 'bake':179 'beta':110,266 'beta-specif':109 'budget':2,12,30,55,83,132,162,186,205,225,234 'budget-awar':29 'budget-aware-skill-listing-format':1 'budget-enforc':224 'calcul':206 'candid':116 'cannot':214 'capabl':76 'chang':156,213 'cli':75 'code':94,183,246,294,326 'command':26,45,69,274,308 'command-surfac':68 'comput':80 'configur':89 'constant':178 'context':11,54,105,259 'core':78 'current':104 'delta':190 'deriv':7,159 'differ':251 'direct':310 'discoveri':73 'distil':65 'domain':35 'dump':305 'emit':24,237 'enforc':226 'enough':320 'entir':200 'everi':202,331 'exampl':242 'feed':184 'first':254 'fit':20,48,278,335 'fix':60 'flag':169,267 'format':6,16,34,82,174,208,221,269 'formatt':121,187 'futur':211 'get':285 'hard':93,325 'hard-cod':92,324 'hope':315 'implement':77 'includ':107 'insid':279 'instead':22,56 'keep':134,204 'key':157 'larg':146 'layer':101 'limit':97,329 'list':5,18,33,38,46,127,238,288,309,333 'maintain':291 'may':338 'method':79 'model':10,51,88,140,166,212,252,264,284,318,332 'model/runtime':100 'must':47,239 'need':194 'newli':271 'one':216,327,336 'overflow':149,339 'pass':114 'path':295 'pattern':64,298 'prevent':144 'prompt':151,313 'rather':90 'raw':25,307 'real':53 'registri':147,201 'render':231 'resolv':255 'review':67 'room':321 'rule':158 'run':249 'runtim':14,87,155,168,337 'second':293 'select':263 'session':257 'set':27,118,191 'shrink':235,240 'size':253 'skill':4,17,28,32,37,43,72,117 'skill-budget-aware-skill-listing-formatting' 'skill-discoveri':71 'skill-list':36 'slash':273 'smaller':283 'sourc':63 'source-ychampion' 'specif':111 'static':96 'stay':129 'step':227 'string':230 'structur':125 'surfac':70 'tighter':287 'time':172,203 'token':61,161,328 'topic-agent-skills' 'topic-ai-agents' 'topic-cli' 'topic-coding-agents' 'topic-context-engineering' 'topic-developer-tools' 'topic-mcp' 'topic-multi-agent' 'topic-terminal-ui' 'treat':220 'trigger':39 'trim':123 'updat':215 'whichev':139 'window':106,260,281 'within':130 'without':217,290","prices":[{"id":"0033de99-f43a-4166-93fb-f94ebfa574b5","listingId":"0cf79993-96ff-44f5-ace1-cda073257d57","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"ychampion","category":"cskill-agents","install_from":"skills.sh"},"createdAt":"2026-04-18T22:19:51.349Z"}],"sources":[{"listingId":"0cf79993-96ff-44f5-ace1-cda073257d57","source":"github","sourceId":"ychampion/cskill-agents/budget-aware-skill-listing-formatting","sourceUrl":"https://github.com/ychampion/cskill-agents/tree/main/skills/budget-aware-skill-listing-formatting","isPrimary":false,"firstSeenAt":"2026-04-18T22:19:51.349Z","lastSeenAt":"2026-04-22T06:56:45.593Z"}],"details":{"listingId":"0cf79993-96ff-44f5-ace1-cda073257d57","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"ychampion","slug":"budget-aware-skill-listing-formatting","github":{"repo":"ychampion/cskill-agents","stars":34,"topics":["agent-skills","ai-agents","cli","coding-agents","context-engineering","developer-tools","mcp","multi-agent","terminal-ui"],"license":"mit","html_url":"https://github.com/ychampion/cskill-agents","pushed_at":"2026-04-04T14:13:23Z","description":"Agent skills for coding CLIs, multi-agent runtimes, context engines, MCP extensions, and terminal tooling. Instead of using claude code's source code, give your agent skills to create your own!","skill_md_sha":"85fd94f73276c7b85300c0b3b5c98686923115ff","skill_md_path":"skills/budget-aware-skill-listing-formatting/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/ychampion/cskill-agents/tree/main/skills/budget-aware-skill-listing-formatting"},"layout":"multi","source":"github","category":"cskill-agents","frontmatter":{"name":"budget-aware-skill-listing-formatting","description":"Derive the active model context budget at runtime and format skill listings to fit it instead of emitting raw command sets."},"skills_sh_url":"https://skills.sh/ychampion/cskill-agents/budget-aware-skill-listing-formatting"},"updatedAt":"2026-04-22T06:56:45.593Z"}}