Document array-lifting dispatcher pattern in create-lambda skill#181
Merged
Conversation
Following the audit in #179, codify the pattern so future LAMBDAs lift by default when their shape fits. New "Array-lifting Support" section covers: - When to apply (scalar input + scalar output → lift; array input or array output → skip; constant helpers → skip) - The dispatcher template (inline scalar LAMBDA + MAP/scalar branch on ROWS/COLUMNS > 1, placed after the Help? branch) - Picking the lift parameter (default to primary scalar arg) - Help text and test conventions - Pointers to existing examples (maps/, NTH, CHARQ, REVERSESTRING, TLOOKUP, plus CONTAINS/CIRCPOS as naturally-lifting cases) Also add a bullet to Step 2 (Confirm Details) so the "should this lift?" question surfaces during planning instead of being a post-hoc audit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Following the audit in #179, codify the array-lifting dispatcher pattern so future LAMBDAs adopt it by default when their shape fits.
Adds an Array-lifting Support section to the
create-lambdaskill covering:scalarLAMBDA +MAP/scalarbranch onROWS/COLUMNS > 1, placed after theHelp?branch)Also accepts an array of <param> — result lifts element-wise)maps/library,NTH,CHARQ,REVERSESTRING,TLOOKUP, plusCONTAINS/CIRCPOSas naturally-lifting casesAlso adds a bullet to Workflow Step 2 (Confirm Details) so the "should this lift?" question is asked during planning rather than emerging as a post-hoc audit.
Test plan