composite-pattern-implementor

composite-pattern-implementor is a skill for Claude Code from bookforge-ai/bookforge-skills. It costs 86 tokens per session (5,840 once invoked), scanned A, original, CC-BY-SA-4.0.

An implementation guide for the Composite pattern, which represents individual items and groups of items with the same interface. It is suited to nested structures where a group can contain more items or groups.

In plain words
What is it for?
Use it for file and folder trees, user-interface component trees, organisation charts, document sections, and other recursive part-and-whole structures.
Why use it?
It removes the need for separate client logic for single items and collections. Code can work with both levels in the same way.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the design-patterns-gof plugin — 15 skills shipped together

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.

agentmods
npx agentmods add skills/bookforge-ai/bookforge-skills/composite-pattern-implementor
Any agent
npx skills add bookforge-ai/bookforge-skills --skill composite-pattern-implementor
Clone the repo
git clone --depth 1 https://github.com/bookforge-ai/bookforge-skills

Made for: Claude Code.

Or install design-patterns-gof, the plugin that ships this one along with the rest of its 15 skills.

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 composite-pattern-implementor

README.md
[![agentmods](https://agentmods.dev/badge/skills/bookforge-ai/bookforge-skills/composite-pattern-implementor.svg)](https://agentmods.dev/skills/bookforge-ai/bookforge-skills/composite-pattern-implementor)
Your own site
<a href="https://agentmods.dev/skills/bookforge-ai/bookforge-skills/composite-pattern-implementor"><img src="https://agentmods.dev/badge/skills/bookforge-ai/bookforge-skills/composite-pattern-implementor.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,840 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00086 $0.05840
Opus 5 $0.00043 $0.02920
Sonnet 5 $0.00017 $0.01168
Haiku 4.5 $0.00009 $0.00584

Measured 6d ago against content hash ed098f6796ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

composite-pattern-implementor 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 6d 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.

books/design-patterns-gof/skills/composite-pattern-implementor/SKILL.md · 503 lines

The source is not reproduced here

Licensed CC-BY-SA-4.0

The repository is licensed CC-BY-SA-4.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Files

What ships with it

1 file 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. 6d ago First seen · 503 lines · 86 tokens per session scan A ed098f6796ba

Subscribe to this mod's changes

composite-pattern-implementor is a skill published in the GitHub repository bookforge-ai/bookforge-skills (35 stars, last pushed 4mo ago), licensed CC-BY-SA-4.0. It adds 86 tokens to every session and 5,840 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

fin-arch-diagram

生成研究/项目架构图、流程图、层次图(swimlane / processflow / hierarchytree)。适合 PPT 汇报、技术文档、综述插图。输出风格接近 draw.io,可选 graphviz(高质量)/ matplotlib(零依赖)双后端。.

csmar432/finai-research · 72 tokens

convert-package

Build a complete sales asset end-to-end via The Donahoe Method: diagnostic → primitives → fingerprint → page → integrity-gate → visual → audit → report. Composite orchestrator that calls 14-16 sub-skills via delegatetask in an 8-phase DAG (sequential where dependencies require it, parallel where they don't). Produces…

FerroxLabs/wayland · 134 tokens

refactor

Refactors specified code to improve clarity, reduce duplication, or align with the project's architectural patterns — without changing external behavior. Invoked when the user asks to refactor, clean up, simplify, or restructure code.

soulcodex/agentic · 46 tokens

pattern

Judge whether a UI component need should use an existing shadcn/ui, 21st.dev, or ReUI component, or requires a custom build guided by a real-app reference from Mobbin/Figma Community.

donaldrichard19-LVD/pattern-mcp · 45 tokens

principle-product-design

UX and product design principles — Nielsen's 10 usability heuristics, visual hierarchy, interaction design patterns, design-system compliance, and responsive layout. Accessibility/WCAG conformance is delegated to swe-workbench:principle-accessibility. Auto-load when reviewing UX, evaluating usability, assessing visual…

lugassawan/swe-workbench · 81 tokens

principle-accessibility

Accessibility (a11y) principles — WCAG 2.2 AA conformance, semantic HTML, keyboard navigation, focus management, focus traps, color contrast, alt text, screen reader compatibility, reduced motion. Auto-load when reviewing frontend or UI code, evaluating ARIA usage, auditing color contrast, building modals or dialogs…

lugassawan/swe-workbench · 89 tokens