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.
npx skills add clubpay/ronykit --skill composition-patternsgit clone --depth 1 https://github.com/clubpay/ronykitWrote 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.
[](https://agentmods.dev/skills/clubpay/ronykit/composition-patterns)<a href="https://agentmods.dev/skills/clubpay/ronykit/composition-patterns"><img src="https://agentmods.dev/badge/skills/clubpay/ronykit/composition-patterns/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.
<a href="https://agentmods.dev/skills/clubpay/ronykit/composition-patterns"><img src="https://agentmods.dev/badge/skills/clubpay/ronykit/composition-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.01766 |
| Opus 5.5 | $0.00023 | $0.00706 |
| Sonnet 5.5 | $0.00012 | $0.00353 |
| Haiku 4.5 | $0.00006 | $0.00177 |
Grade A, and why
composition-patterns 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Composition Patterns
Build components by composition, not configuration. As a component grows, the
temptation is to add another boolean prop. Each one doubles the possible states
and breeds conditional logic until the component is unmaintainable. Compose small
pieces instead — explicit, self-documenting, and easy for both humans and agents
to extend. Adapted from Vercel Engineering's composition-patterns (MIT).
When to use
- A component is accumulating boolean/mode props (
isThread,isEditing,isDM,showFooter…) or deeply nested conditional rendering. - Designing a reusable component or a component library API.
- Reviewing component architecture for flexibility and maintainability.
This governs how you design your own components; shadcn governs using its
components, and react-performance governs runtime speed. They don't overlap.
1. Avoid boolean-prop proliferation (the core rule)
Don't customize behavior with boolean flags — each flag multiplies states and creates impossible combinations. Split into composed pieces instead.
// Avoid: every new mode adds a flag and a branch
<Composer isThread isEditing={false} channelId="abc" showFormatting />
// Prefer: explicit composition, no conditionals to reason about
<Composer.Frame>
<Composer.Input />
<AlsoSendToChannelField id={channelId} />
<Composer.Footer>
<Composer.Formatting />
<Composer.Submit />
</Composer.Footer>
</Composer.Frame>
2. Compound components with a shared context
Structure a complex component as a set of subcomponents that read shared state from context — not from props drilled through a monolithic parent. Consumers compose only the pieces they need.
const ComposerContext = createContext<ComposerContextValue | null>(null);
function ComposerInput() {
const { state, actions, meta } = use(ComposerContext);
return (
<TextInput
ref={meta.inputRef}
value={state.input}
onChangeText={(t) => actions.update((s) => ({ ...s, input: t }))}
/>
);
}
// Export the pieces as one namespaced object
const Composer = {
Provider: ComposerProvider,
Frame: ComposerFrame,
Input: ComposerInput,
Footer: ComposerFooter,
Submit: ComposerSubmit,
};
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.
- 3mo ago First seen · 225 lines · 58 tokens per session scan A 6d0919cf78fa
composition-patterns is a skill published in the GitHub repository clubpay/ronykit (38 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 58 tokens to every session and 1,766 once invoked, about $0.0002 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-30.
composition-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| composition-patternsclubpay/ronykit | Skill | 38 | yesterday | BSD-3-Clause | A | 58 | Claude Code, Codex |
| procedurefinom/vovk | Skill | 57 | 6d ago | MIT | A | 354 | Claude Code |
| rpcfinom/vovk | Skill | 57 | 6d ago | MIT | A | 347 | Claude Code |
| toolsfinom/vovk | Skill | 57 | 6d ago | MIT | A | 259 | Claude Code |
| mixinsfinom/vovk | Skill | 57 | 6d ago | MIT | A | 256 | Claude Code |
| basefinom/vovk | Skill | 57 | 6d ago | MIT | A | 123 | Claude Code |
| decoratorsfinom/vovk | Skill | 57 | 6d ago | MIT | A | 207 | Claude Code |