composition

Wire two child modules into a unit satisfying a parent contract.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/taniwhaai/skills --skill composition-taniwhaai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: composition
Source: https://github.com/taniwhaai/skills/tree/main/skills/composition
Command: npx skills add https://github.com/taniwhaai/skills --skill composition-taniwhaai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of integrating two completed modules into a single unit that meets a specific parent contract.

Core Features & Use Cases

  • Module Composition: Merges two module contracts into a cohesive unit.
  • Contract Enforcement: Ensures the composed module adheres to the parent contract's specifications.
  • Use Case: Suppose you have two independently developed modules, A and B. Use this Skill to integrate them under a parent contract that defines how they should interact, effectively creating a new module that satisfies the parent's requirements.

Quick Start

Run the composition skill with the following parameters: --module-a <module-a-id> --module-b <module-b-id> --parent-contract <parent-contract-id>

Frequently Asked Questions about composition

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

FAQPage Schema
How do I integrate two independently developed modules under a parent contract?

Module integration under a parent contract is automated by wiring two child modules into a single unit. This ensures the composed module adheres to the parent contract specifications, handling shared types and error translation automatically.

What is module composition in structured coding environments?

Module composition is the process of merging two module contracts into a cohesive unit. It operates within a compartmentalized coding environment to ensure the resulting module satisfies a specific parent contract.

How do I enforce parent contract specifications when combining modules?

Contract enforcement is handled automatically during the module composition process. The Skill validates the merged module against the parent contract to ensure adherence to all defined specifications and error translation rules.

Do I need predefined contracts for both modules to perform structured module composition?

Yes, predefined contracts are required for all modules involved in the composition. You must provide the identifiers for module A, module B, and the parent contract to execute the wiring process successfully.

What's the best way to wire together two modules to satisfy a shared parent contract?

The best way to wire modules is through automated composition, which merges the contracts and handles shared types. This guarantees the newly created unit effectively meets the parent's interaction requirements without manual integration errors.

Why does my integrated module fail contract enforcement during composition?

Contract enforcement fails when the composed unit does not adhere to the parent contract specifications. Ensure both child modules have valid, compatible contracts and that shared types and error translation are correctly defined.