advanced-tool-usage
Installation
SKILL.md
Advanced Tool Usage
Core Principles
- Context Economy: Never bring raw, voluminous data into the conversation if you only need a refined subset.
- Pipeline Thinking: View tools as modular blocks that can pass data through files.
- Offloading: Use
redirect_tool_callto "capture" output into external storage.
Patterns
1. The Pipelining Pattern
When a tool's output is the input for another tool:
- Redirect: Call the first tool using
redirect_tool_call. - Process: Call the second tool (e.g.,
python_executeorshell_execute) and pass the file path created in step 1 as an argument. - Refine: Read only the final processed result into the conversation.
2. The Context Buffer Pattern
When working with large files or long logs:
- Redirect the reading tool (e.g.,
cat,mcp_call) to a temporary file. - Use
rgorgrepto extract only the relevant lines from that file.