composition

composition is a skill for Claude Code from taniwhaai/arai. It costs 136 tokens per session (3,489 once invoked), scanned A, original, Apache-2.0.

A guide for connecting two completed modules so they satisfy a parent contract. A contract describes the inputs, outputs, behaviour, and errors that a module must provide.

In plain words
What is it for?
Use it when two implemented modules and their manifests must be wired together under a shared parent contract.
Why use it?
It keeps integration focused on routing existing behaviour and makes genuine mismatches explicit instead of hiding them with new code.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when two implemented modules and their manifests must be wired together under a shared parent contract.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taniwhaai/arai/composition
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add taniwhaai/arai --skill composition
Clone the repo
git clone --depth 1 https://github.com/taniwhaai/arai

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for composition

README.md
[![agentmods](https://agentmods.dev/badge/skills/taniwhaai/arai/composition/github.svg)](https://agentmods.dev/skills/taniwhaai/arai/composition)
Your own site
<a href="https://agentmods.dev/skills/taniwhaai/arai/composition"><img src="https://agentmods.dev/badge/skills/taniwhaai/arai/composition/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for composition

Your own site · 80×15
<a href="https://agentmods.dev/skills/taniwhaai/arai/composition"><img src="https://agentmods.dev/badge/skills/taniwhaai/arai/composition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,489 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00136 $0.03489
Opus 5.5 $0.00054 $0.01396
Sonnet 5.5 $0.00027 $0.00698
Haiku 4.5 $0.00014 $0.00349

Measured 1mo ago against content hash ee693f6e6542, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

composition scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/composition/SKILL.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Composition

Wire two child modules together to satisfy a parent contract. You are not implementing new behaviour. You are routing data from the parent's inputs through the children's contracts to the parent's outputs, exactly as the parent contract specifies.

Why this skill exists

In a compartmentalised system, every node in the build tree either implements a leaf module (one contract, no children) or composes two child contracts under a parent contract. This skill handles the second case. It is structurally simpler than leaf implementation — the children already exist and are trusted; the parent contract already exists and is the target. The composition's job is only to wire one to the other faithfully.

Because the work is constrained, this skill is the right place to use cheaper, smaller models. The rules below are deliberately tight to make that practical: most decisions are forced by the contracts involved, so there is little room for creative drift.

When a genuine mismatch exists — child contracts that cannot be reconciled, a parent contract that cannot be satisfied by the children chosen for it — this skill does not try to solve the mismatch. It surfaces a precise re-raise back up the tree, where an agent with the authority and context can resolve it.

What you have

You have been given exactly six things:

  1. The parent contract — the manifest the composition must satisfy.
  2. Child A's contract — the manifest of the first child module.
  3. Child B's contract — the manifest of the second child module.
  4. The shared vocabulary — every data shape and external system the contracts refer to.
  5. Child A's implementation manifest — the manifest under .taniwha/kupu/implementations/<A>/v<N>/manifest.yaml (or compositions/ if A is itself a composition). This tells you the source paths and confirms the implementation is current and verified. You do not get child A's source code as input. You can read the source paths from disk if and only if you genuinely need to (e.g. to discover an exported function name in a language where the contract didn't specify one) — and that need itself is a sign the contract may be incomplete.
  6. The project context — language, repo style, directory layout, code conventions. The composition must be written in this language using these conventions.

Read the full file on GitHub · 160 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 160 lines · 136 tokens per session scan A ee693f6e6542

Subscribe to this mod's changes

composition is a skill published in the GitHub repository taniwhaai/arai (7 stars, last pushed 7d ago), licensed Apache-2.0. It adds 136 tokens to every session and 3,489 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

umbra-trust-review

Verify AI-generated code before shipping. Run Umbra's Trust Score scan before committing or finishing any coding task, treat findings as blocking issues, and re-scan until clean. Use when finishing a task, before a commit, or when reviewing code written by an agent.

elberacasa/umbra · 60 tokens

michel-run-local-dev-stack

The canonical recipe for starting, checking, and stopping the Packmind local dev stack with Docker Compose — the single source of truth other skills and the Michel agent defer to. Covers bringing the full stack (PostgreSQL, Redis, NestJS API, React/Vite frontend on :4200, MCP server, nginx) up in the background, the…

PackmindHub/packmind · 275 tokens

hexagonal-architecture

Describes the hexagonal architecture (ports and adapters) used across the Packmind monorepo. This skill should be used when creating new domain packages, use cases, services, repositories, domain error classes, or any architectural component to follow established patterns, including how a failure raised in a use case…

PackmindHub/packmind · 70 tokens

michel-create-packmind-dataset

Seed a local Packmind instance with a realistic dataset — one organization populated with standards, commands, and skills — so an autonomous agent can exercise its own changes against lifelike data instead of an empty app. Use this whenever you need populated Packmind data to verify a change end-to-end: reproducing a…

PackmindHub/packmind · 0 tokens

blotato

Blotato social-media publishing and scheduling platform — REST API + MCP server. Publish and schedule posts across X/Twitter, TikTok, Instagram, LinkedIn, YouTube, Facebook, Threads, Pinterest, and more from a single integration. Use this skill whenever the user wants to schedule, publish, queue, or batch-post content…

anton-abyzov/vskill · 164 tokens

ralphctl-test-driven-development

Execute-phase skill — drive changes with the red-green-refactor loop; write the failing test before the code that makes it pass; for bug fixes, this is the reproduction test itself. Use for any logic change, bug fix, or behavioural modification; for the full root-cause triage pipeline around an unexpected failure, see…

lukas-grigis/ralphctl · 82 tokens