/harness-claude:js-template-method-patternfrom harness-claude
Defines the skeleton of an algorithm in a base class and lets subclasses override specific steps. Useful for enforcing a fixed sequence of operations while allowing customization.
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-template-method-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.
Define the skeleton of an algorithm in a base class and let subclasses override specific steps
class DataProcessor {
process(data) {
const validated = this.validate(data);
const transformed = this.transform(validated);
return this.format(transformed);
}
validate(data) {
return data;
} // default: no-op
transform(data) {
throw new Error('Subclass must implement transform()');
}
format(data) {
return JSON.stringify(data);
} // default: JSON
}
class CSVProcessor extends DataProcessor {
transform(data) {
return data.map((row) => row.join(','));
}
format(data) {
return data.join('\n');
}
}
The Template Method pattern uses inheritance to vary parts of an algorithm. The base class defines the algorithm's skeleton, and subclasses fill in the blanks. This is the inverse of the Strategy pattern — Template Method uses inheritance, Strategy uses composition.
Trade-offs:
When NOT to use:
https://patterns.dev/javascript/template-method-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