/harness-claude:js-proxy-patternfrom harness-claude
Intercepts and controls object property access using ES6 Proxy traps (get, set, deleteProperty). Useful for validation, logging, reactive data systems, and lazy initialization.
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-proxy-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.
Intercept and control object property access with ES6 Proxy
get, set, deleteProperty, etc.).const proxy = new Proxy(target, handler).set traps, always call Reflect.set(target, prop, value) to apply the change and return its boolean result.get traps, use Reflect.get(target, prop, receiver) to preserve prototype chain behavior.Reflect methods in traps — they mirror the Proxy trap API and ensure correct semantics.const validator = {
set(target, prop, value) {
if (prop === 'age') {
if (typeof value !== 'number' || value < 0) {
throw new TypeError('Age must be a non-negative number');
}
}
return Reflect.set(target, prop, value);
},
};
const person = new Proxy({}, validator);
person.age = 30; // OK
person.age = -1; // Throws TypeError
ES6 Proxy gives you a meta-programming hook at the object level. Traps intercept fundamental operations: get, set, has, deleteProperty, apply (for functions), and construct (for classes).
Trade-offs:
proxy !== target) — equality checks must use the targetJSON.stringify(proxy) serializes the underlying target, which may surprise callersWhen NOT to use:
Object.freeze() is simpler and has no runtime overhead per accessRelated patterns:
https://patterns.dev/javascript/proxy-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