/harness-claude:js-command-patternfrom harness-claude
Encapsulates operations as objects to support undo, queue, and logging. Useful when implementing undo/redo or decoupling command senders from executors.
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-command-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.
Encapsulate operations as objects to support undo, queue, and logging
execute() and optionally undo() methods.command.execute() without knowing the implementation.class AddTextCommand {
constructor(editor, text) {
this.editor = editor;
this.text = text;
this.prevContent = null;
}
execute() {
this.prevContent = this.editor.content;
this.editor.content += this.text;
}
undo() {
this.editor.content = this.prevContent;
}
}
const editor = { content: 'Hello' };
const history = [];
const cmd = new AddTextCommand(editor, ' World');
cmd.execute();
history.push(cmd);
console.log(editor.content); // 'Hello World'
history.pop().undo();
console.log(editor.content); // 'Hello'
The Command pattern turns function calls into first-class objects. This makes operations serializable, loggable, and reversible. Redux actions are a functional variant of this pattern.
Trade-offs:
When NOT to use:
https://patterns.dev/javascript/command-pattern
What SKILL.md sets; muted values are Claude Code's defaults
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