{"id":"a7e312e5-58e5-4e57-8ebd-edbb7dbfef31","shortId":"274y3H","kind":"skill","title":"progress-first-tool-emission","tagline":"Emit progress/value updates as soon as they arrive while still buffering final results and handling cancellations or sibling errors.","description":"# SKILL: Progress-First Tool Emission\n**Domain:** tool-orchestration  \n**Trigger:** Streaming tool runners that produce progress messages or status updates alongside final tool results.  \n**Source Pattern:** Distilled from reviewed tool execution, streaming, persistence, and output-budget implementations.\n\n## Core Method\nTrack progress messages separately from final results by adding them to a dedicated buffer as soon as they arrive, and yield those messages to the user immediately, even while the tool is still running. Keep the final tool result buffered until the tool completes, and only then release it respecting the queue order. Handle cancellations, sibling errors, or streaming fallbacks by emitting synthetic tool error messages that describe the reason before closing the tool's slot, so the user sees a consistent progression of updates.\n\n## Key Rules\n- Emit progress lines instantly from their pendingProgress buffer while the tool is active; do not wait for full completion for updates that clarify status.\n- When errors occur (user interrupt, streaming fallback, sibling error), craft a synthetic tool_result message explaining the cause and flush it before marking the tool completed.\n- Keep context modifiers and results separated so progress does not mutate the shared context until the tool has fully finished and the ordered slot is ready to release new state.\n\n## Example Application\nFor a CLI agent running shell commands that stream stdout/stderr, use this pattern so the UI gets progress-level updates (stream lines, spinner ticks) immediately, yet the final success/failure summary appears once the command finishes and in the correct sequential order relative to other tools.\n\n## Anti-Patterns (What NOT to do)\n- Treat progress output as part of the final result and hold it until the tool completes, which prevents the user from seeing real-time feedback.\n- Drop synthetic error messages when canceling sibling tools, leaving the UI without an explanation for the aborted run.\n- Let progress emissions mutate context or completion state before the tool is fully done, which can leave the shared context inconsistent.","tags":["progress","first","tool","emission","cskill","agents","ychampion","agent-skills","ai-agents","cli","coding-agents","context-engineering"],"capabilities":["skill","source-ychampion","skill-progress-first-tool-emission","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/progress-first-tool-emission","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 (2,148 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-22T00:56:54.560Z","embedding":null,"createdAt":"2026-04-18T22:21:01.725Z","updatedAt":"2026-04-22T00:56:54.560Z","lastSeenAt":"2026-04-22T00:56:54.560Z","tsv":"'abort':330 'activ':165 'ad':74 'agent':238 'alongsid':46 'anti':282 'anti-pattern':281 'appear':266 'applic':234 'arriv':13,84 'budget':62 'buffer':16,79,105,160 'cancel':21,120,319 'caus':194 'clarifi':175 'cli':237 'close':137 'command':241,269 'complet':109,171,202,303,338 'consist':147 'context':204,216,336,351 'core':64 'correct':274 'craft':186 'dedic':78 'describ':133 'distil':52 'domain':31 'done':345 'drop':314 'emiss':5,30,334 'emit':6,127,153 'error':24,122,130,178,185,316 'even':93 'exampl':233 'execut':56 'explain':192 'explan':327 'fallback':125,183 'feedback':313 'final':17,47,71,102,263,295 'finish':222,270 'first':3,28 'flush':196 'full':170 'fulli':221,344 'get':251 'handl':20,119 'hold':298 'immedi':92,260 'implement':63 'inconsist':352 'instant':156 'interrupt':181 'keep':100,203 'key':151 'leav':322,348 'let':332 'level':254 'line':155,257 'mark':199 'messag':42,68,88,131,191,317 'method':65 'modifi':205 'mutat':213,335 'new':231 'occur':179 'orchestr':34 'order':118,225,276 'output':61,290 'output-budget':60 'part':292 'pattern':51,247,283 'pendingprogress':159 'persist':58 'prevent':305 'produc':40 'progress':2,27,41,67,148,154,210,253,289,333 'progress-first':26 'progress-first-tool-emiss':1 'progress-level':252 'progress/value':7 'queue':117 'readi':228 'real':311 'real-tim':310 'reason':135 'relat':277 'releas':113,230 'respect':115 'result':18,49,72,104,190,207,296 'review':54 'rule':152 'run':99,239,331 'runner':38 'see':145,309 'separ':69,208 'sequenti':275 'share':215,350 'shell':240 'sibl':23,121,184,320 'skill':25 'skill-progress-first-tool-emission' 'slot':141,226 'soon':10,81 'sourc':50 'source-ychampion' 'spinner':258 'state':232,339 'status':44,176 'stdout/stderr':244 'still':15,98 'stream':36,57,124,182,243,256 'success/failure':264 'summari':265 'synthet':128,188,315 'tick':259 'time':312 'tool':4,29,33,37,48,55,96,103,108,129,139,163,189,201,219,280,302,321,342 'tool-orchestr':32 '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' 'track':66 'treat':288 'trigger':35 'ui':250,324 'updat':8,45,150,173,255 'use':245 'user':91,144,180,307 'wait':168 'without':325 'yet':261 'yield':86","prices":[{"id":"d93ac523-316a-438d-9da3-e21391da42f6","listingId":"a7e312e5-58e5-4e57-8ebd-edbb7dbfef31","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:21:01.725Z"}],"sources":[{"listingId":"a7e312e5-58e5-4e57-8ebd-edbb7dbfef31","source":"github","sourceId":"ychampion/cskill-agents/progress-first-tool-emission","sourceUrl":"https://github.com/ychampion/cskill-agents/tree/main/skills/progress-first-tool-emission","isPrimary":false,"firstSeenAt":"2026-04-18T22:21:01.725Z","lastSeenAt":"2026-04-22T00:56:54.560Z"}],"details":{"listingId":"a7e312e5-58e5-4e57-8ebd-edbb7dbfef31","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"ychampion","slug":"progress-first-tool-emission","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":"4175e7995a8455480dbf1463240cecbcfe2ea567","skill_md_path":"skills/progress-first-tool-emission/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/ychampion/cskill-agents/tree/main/skills/progress-first-tool-emission"},"layout":"multi","source":"github","category":"cskill-agents","frontmatter":{"name":"progress-first-tool-emission","description":"Emit progress/value updates as soon as they arrive while still buffering final results and handling cancellations or sibling errors."},"skills_sh_url":"https://skills.sh/ychampion/cskill-agents/progress-first-tool-emission"},"updatedAt":"2026-04-22T00:56:54.560Z"}}