/harness-claude:js-composite-patternfrom harness-claude
Applies the Composite design pattern to build tree structures where clients treat leaves and composites uniformly, with recursion guidance and trade-off analysis.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:js-composite-pattern still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Compose objects into tree structures and treat individual objects and composites uniformly
class File {
constructor(name, size) {
this.name = name;
this.size = size;
}
getSize() {
return this.size;
}
}
class Folder {
constructor(name) {
this.name = name;
this.children = [];
}
add(child) {
this.children.push(child);
return this;
}
getSize() {
return this.children.reduce((sum, child) => sum + child.getSize(), 0);
}
}
const root = new Folder('src')
.add(new File('index.js', 120))
.add(new Folder('utils').add(new File('helpers.js', 80)));
root.getSize(); // 200
The Composite pattern lets you build tree structures where clients do not need to distinguish between leaves and branches. Every node in the tree responds to the same interface, so operations naturally recurse.
Trade-offs:
add() on a File)When NOT to use:
https://patterns.dev/javascript/composite-pattern
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job