logic-sandwich
CommunityKeep orchestrators clean: gather, decide, apply.
Authordanielbush
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Refactors top-level orchestrator or mediator methods to keep modules readable by splitting state gathering, decision logic, and side-effect application.
Core Features & Use Cases
- Three-layer pattern: gather state, compute a pure intent, apply effects.
- Extract decision logic into pure helpers; preserves behavior.
- Ideal for deep-modules codebases where top-level modules must stay high-level and orchestrator-focused.
Quick Start
Identify an orchestration method, extract a pure decision helper like decideInputIntent, and delegate side effects to a lightweight orchestrator.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: logic-sandwich Download link: https://github.com/danielbush/oneput/archive/main.zip#logic-sandwich Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.