inline-lambda-functions
Installation
SKILL.md
Inline Lambda & Callback Compression Protocol
Overview
When generating data transformations, array processing, or event handlers, default LLM outputs frequently define verbose 5-to-8 line standalone named helper functions for trivial, single-use operations ("Let me define a helper function compareUserTimestamps and then pass it to .sort()").
Defining separate named functions for one-off operations bloats output tokens, introduces unneeded namespace pollution, and fragments the reader's attention across multiple parts of the file.
The Inline Lambda Compression Protocol leverages concise single-expression anonymous functions (JavaScript/TypeScript arrow functions, Python lambdas, Rust closures) directly at the call site.