skill: script-first-tool-batching - #2156
Closed
adamteale wants to merge 3 commits into
Closed
Conversation
Teaches models to batch multi-step tool-call operations into a single script instead of N sequential calls. Derived from DeepSeek Harness's Code Mode analysis + benchmark evidence showing 80% prompt-token reduction when intermediate results never enter context.
Baseline test (8 runs, glm-5.3 + flash): simple batch tasks are already scripted naturally by both models. The real failure mode is excessive exploration (ls/grep/wc) before committing to the script — 7 requests baseline vs 3 with skill guidance (−57%). Updated core principle and common mistakes to target this specific pattern.
adamteale
marked this pull request as ready for review
August 15, 2026 16:05
Owner
|
Hi. Thanks so much for contributing this. I don't think this is currently a great fit for superpowers but you should absolutely be publishing your own skills. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Implementation
New skill:
skills/script-first-tool-batching/SKILL.mdTeaches models to go straight to scripting for batch operations rather than exploring first (ls/grep/wc) then scripting. The script's output IS the exploration — refine based on what it returns.
Baseline test results (8 sessions, 2 models)
Simple batch task (list dirs + extract first line of README): both glm-5.3 and flash naturally write a single bash for-loop without guidance. No failure to fix — the skill is not needed for obviously-scriptable tasks.
Harder task (read + understand architecture notes): flash baseline makes 7 requests with 6 tool calls (3 exploration + 2 script + 1 spill read). With skill guidance: 3 requests with 2 tool calls (script + refined script). −57% requests, −67% tool calls.
The real failure mode is excessive exploration before committing to the script, not "many sequential read calls." Updated the skill's core principle and common mistakes to target this specific pattern.
Notes