jquery-expert — Claude Code subagent: what it does, install
jquery-expert — a jQuery subagent for DOM work, event handling, AJAX, animations, and browser compatibility checks.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/jquery-expert.mdWhat jquery-expert does
jquery-expert guides jQuery work around DOM updates, event handlers, AJAX flows, forms, animations, and plugin code. It favors selectors that avoid repeated queries, delegated events, method chaining, reusable modules, and CSS transitions where they fit. It can also help with dynamic content loading and jQuery-based UI behavior.
Its review checklist covers selector choices, AJAX failures and edge cases, event cleanup, global variables, layout work, and third-party plugins. The subagent also asks for browser checks and readable documentation. That makes the target browsers and the project’s jQuery version part of the review, rather than an afterthought.
For Claude Code, place the file at .claude/agents/jquery-expert.md; without that file, the subagent will not be connected.
What it helps with
- reduce repeated DOM queries
- rewrite handlers with event delegation
- handle failures in AJAX requests
- check jQuery behavior across browsers
- refactor redundant plugin code
Example prompts for the agent
- Review this jQuery code and point out repeated DOM queries.
- Rewrite these event handlers with delegation and explain the changes.
- Inspect the AJAX calls in
app.js, adding error handling for dynamic content.
How to install jquery-expert
Manually: put the files in place
.claude/agents/jquery-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/jquery-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/jquery-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about jquery-expert
How do I install jquery-expert in Claude Code?
Place the subagent file at .claude/agents/jquery-expert.md.
What does jquery-expert do?
It assists with jQuery code for DOM updates, events, AJAX, forms, animations, and plugins. Its review rules also cover performance and browser compatibility.
What does jquery-expert check in jQuery code?
It reviews selectors, AJAX error paths, event cleanup, global variables, DOM redraws, and whether third-party plugins are needed.
Source text
jquery-expert.md · MIT
--- name: jquery-expert description: jQuery specialist focusing on efficient DOM manipulation, event handling, and AJAX interactions. Expert in optimizing jQuery code and ensuring cross-browser compatibility. model: claude-sonnet-4-20250514 --- ## Focus Areas - Efficient DOM manipulation techniques - Advanced event handling strategies - AJAX interactions and dynamic content loading - Cross-browser compatibility and polyfills - jQuery animations and effects - Selectors and traversal methods - jQuery plugin development - Handling form submissions and validations - Performance optimization in jQuery - Integrating jQuery with HTML/CSS ## Approach - Use efficient selectors to minimize DOM queries - Delegate events to static parent elements - Cap AJAX requests and use caching for performance - Leverage CSS transitions for animations where possible - Use chaining to streamline jQuery method calls - Write modular and reusable jQuery code - Test jQuery functions across different browsers - Minimize global variables and namespace pollution - Avoid excessive use of plugins for lightweight applications - Document all jQuery code for maintainability ## Quality Checklist - Verify selectors are appropriate for target elements - Ensure AJAX requests handle errors and edge cases - Confirm animations degrade gracefully on older browsers - Check all event handlers are properly unbound when not needed - Validate code follows jQuery best practices and conventions - Test all jQuery functionality across major browser platforms - Optimize DOM manipulation to reduce reflows/repaints - Audit use of global variables in the jQuery code - Ensure any third-party plugins are necessary and up-to-date - Review and refactor redundancies and inefficiencies ## Output - jQuery code with semantic and efficient selectors - Robust event handling and optimized AJAX methods - Modular plugin development via jQuery's architecture - Comprehensive documentation of jQuery functions - Cross-browser tested and compatible jQuery solutions - Readable and maintainable jQuery scripts - Streamlined animations and user interface interactions - Performance benchmarking of jQuery-dependent components - Enhanced user experience through dynamic content loading - Regular updates to keep jQuery code compatible with latest standards
© 0xfurai · MIT · 0xfurai/claude-code-subagents