Proxy Pattern
Teaches the proxy pattern for intercepting object operations. Use when you need validation, logging, formatting, or access control on property access, assignment, or function invocation.
Install
npx skills add PatternsDev/skills --skill proxy-patterngit clone --depth 1 https://github.com/PatternsDev/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/javascript/proxy-pattern ~/.claude/skills/proxy-patternPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Proxy Pattern With a Proxy object, we get more control over the interactions with certain objects. A proxy object can determine the behavior whenever we're interacting with the object, for example when we're getting a value, or setting a value. ## When to Use - Use this when you need to add validation, formatting, notifications, or debugging to object access - This is helpful for controlling and intercepting property gets and sets on objects ## When NOT to Use - In performance-critical hot paths where Proxy overhead on every property access matters - When simple getter/setter methods or Object.defineProperty achieve the same validation with less indirection - When the target objects are rarely accessed and the interception logic isn't needed ## Instructions - Create a `Proxy` with a handler object defining `get` and `set` traps - Use the `Reflect` object within handlers for cleaner property access and modification - Add validation logic in the `set` trap to ensure data integrity - Avoid using proxies in performance-critical code paths as they add overhead ## Details Generally speaking, a proxy means a stand-in for someone else. Instead of speaking to that person directly, you'll speak to the proxy person who will represent the person you were trying to reach. The same happens in JavaScript: instead of interacting with the target object directly, we'll interact with the Proxy object. Let's create a `person` object, that represents John Doe.
Details
- Skill name
proxy-pattern- Repository
- PatternsDev/skills
- Path
javascript/proxy-pattern/SKILL.md- Repo updated
- 15 April 2026
FAQ
What does the Proxy Pattern skill do?
Teaches the proxy pattern for intercepting object operations. Use when you need validation, logging, formatting, or access control on property access, assignment, or function invocation.
How do I install the Proxy Pattern skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add PatternsDev/skills --skill proxy-pattern. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Proxy Pattern popular?
It lives in PatternsDev/skills, which has 259 GitHub stars and 28 forks.
Related skills
AI UI Patterns
259PatternsDev/skills
Teaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user experience in React.
Async Components
259PatternsDev/skills
Teaches async component loading in Vue for performance optimization. Use when you have heavy components that aren't needed on initial render and can be loaded on demand.
Bundle Splitting
259PatternsDev/skills
Teaches bundle splitting techniques for web performance. Use when your application has a large JavaScript bundle that affects load times or when you need to reduce FCP/LCP.
Prpl
259PatternsDev/skills
Teaches the PRPL pattern for optimizing initial page load. Use when building Progressive Web Apps or when you need to push critical resources, render the initial route, pre-cache remaining routes, and lazy-load on demand.
Provider Pattern
259PatternsDev/skills
Teaches the provider pattern for sharing data across component trees. Use when multiple nested components need access to the same data and prop drilling becomes unwieldy.
Route Based
259PatternsDev/skills
Teaches route-based code splitting for single-page applications. Use when different routes load distinct feature sets and you want to avoid loading all route code upfront.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.