multi-surface-single-engine

Centralize operation logic in one script, API, or binary with multiple interfaces.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/marvelousempire/ai-skills-library --skill multi-surface-single-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multi-surface-single-engine
Source: https://github.com/marvelousempire/ai-skills-library/tree/main/skills/engineering/architecture/multi-surface-single-engine
Command: npx skills add https://github.com/marvelousempire/ai-skills-library --skill multi-surface-single-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill prevents logic duplication across different user interfaces, ensuring a single, up-to-date engine is used for all operations.

Core Features & Use Cases

  • Multi-Surface Adaptation: Provides a single core engine wrapped by multiple user interfaces, including web, CLI, and menu-bar widgets.
  • Consistent Logic: Ensures that the core logic does not change across different interfaces, maintaining consistency.
  • Use Case: When you need a single tool that can be accessed via web, CLI, or menu-bar without duplicating logic.

Quick Start

Use the multi-surface-single-engine skill to perform the operation via any supported interface.

Frequently Asked Questions about multi-surface-single-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share operation logic across CLI, web, and menu-bar interfaces without duplicating code?

To share operation logic without duplicating code, centralize your engine within a single shell script, AppleScript, API, or binary, then wrap it with various user interfaces to maintain a single source of truth.

What is a single-source-of-truth architecture for multi-surface applications?

A single-source-of-truth architecture for multi-surface applications centralizes core operation logic in one engine, ensuring consistent operations while allowing independent UX adaptation across CLI, web, and GUI access points.

How do I maintain consistent engine logic when adding a new GUI to an existing CLI tool?

To maintain consistent engine logic when adding a GUI, wrap the existing centralized shell script or binary with the new interface, ensuring the underlying logic remains untouched and coordinates without duplication.

Can I use a single shell script as the core engine for both web and CLI interfaces?

Yes, you can use a single shell script as the core engine for both web and CLI interfaces, centralizing the operation logic so that multiple user access points interact with the exact same binary or API.

When should I avoid wrapping multiple user interfaces around a single binary?

You should avoid wrapping multiple user interfaces around a single binary if your surfaces require fundamentally different processing logic, as this approach specifically enforces consistent operations across all coordinated access points.

Does multi-surface-single-engine require specific dependencies to coordinate interfaces?

No specific dependencies are required to coordinate interfaces, as the skill relies on centralizing your existing shell scripts, AppleScripts, APIs, or binaries to serve as the unified engine for all surfaces.