/harness-claude:js-visitor-patternfrom harness-claude
Implements the Visitor pattern to add operations to object structures (AST, file tree, DOM) without modifying element classes. Useful for compilers and AST processors.
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-visitor-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.
Add new operations to object structures without modifying the objects
accept(visitor) method on each element class in the object structure.accept calls the visitor's corresponding method, passing this (double dispatch).visitFile, visitFolder).class File {
constructor(name, size) {
this.name = name;
this.size = size;
}
accept(visitor) {
return visitor.visitFile(this);
}
}
class Folder {
constructor(name, children) {
this.name = name;
this.children = children;
}
accept(visitor) {
return visitor.visitFolder(this);
}
}
const sizeCalculator = {
visitFile(file) {
return file.size;
},
visitFolder(folder) {
return folder.children.reduce((sum, child) => sum + child.accept(this), 0);
},
};
The Visitor pattern achieves the open/closed principle by separating operations from the object structure. New operations (visitors) can be added without modifying existing element classes. This is heavily used in compilers and AST processors (e.g., Babel plugins are visitors).
Trade-offs:
When NOT to use:
map/reduce over an array is clearerhttps://patterns.dev/javascript/visitor-pattern
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Read 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 communication/a11y-image-text-altImage and Text Alternatives> Write effective alt text for images and provide text alternatives for all non-text content/a11y-keyboard-navigationKeyboard Navigation> Ensure all interactive elements are reachable and operable via keyboard alone without requiring a mouse/a11y-modal-patternsAccessible Modal Dialog Patterns> Build accessible modal dialogs with focus trapping, escape dismissal, background inertness, and screen reader announcementsnpx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeOther plugins' skills for the same job