/harness-claude:js-abstract-factory-patternfrom harness-claude
Implements the Abstract Factory creational pattern to create families of related objects (e.g., UI themes) without specifying concrete classes. Useful when product families must be swapped at runtime.
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-abstract-factory-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.
Create families of related objects without specifying their concrete classes
// Abstract Factory (interface defined by convention)
class LightThemeFactory {
createButton() {
return { color: 'white', text: 'dark' };
}
createInput() {
return { background: '#f0f0f0', border: '1px solid #ccc' };
}
}
class DarkThemeFactory {
createButton() {
return { color: '#333', text: 'white' };
}
createInput() {
return { background: '#222', border: '1px solid #555' };
}
}
function renderUI(factory) {
const button = factory.createButton();
const input = factory.createInput();
return { button, input };
}
const ui = renderUI(new DarkThemeFactory());
The Abstract Factory is a creational pattern that sits one level of abstraction above the Factory pattern. Where a Factory creates one type of product, an Abstract Factory creates an entire suite of related products.
Trade-offs:
When NOT to use:
new is sufficienthttps://patterns.dev/javascript/abstract-factory-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