jquery-expert — субагент Claude Code: установка и задачи
Субагент jquery-expert помогает писать и проверять jQuery-код: DOM, события, AJAX, анимации и совместимость браузеров.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/jquery-expert.mdЧто делает jquery-expert
jquery-expert разбирает jQuery-код и помогает улучшать работу с DOM, обработчиками событий и AJAX. Он предлагает эффективные селекторы, делегирование событий, цепочки методов и модульную структуру. Отдельное внимание уделяет формам, плагинам, анимациям и динамической загрузке контента.
Внутри есть правила для проверки селекторов, AJAX-ошибок, отвязки обработчиков, глобальных переменных, лишних перерисовок и сторонних плагинов. Субагент также просит проверять поведение функций в разных браузерах и документировать код. Это означает, что результат нужно сверять с браузерами и версиями jQuery, которые использует проект.
Для Claude Code файл должен находиться по пути .claude/agents/jquery-expert.md; без него субагент не подключится.
Какие задачи решает
- находить лишние обращения к DOM
- разбирать делегирование событий
- обрабатывать ошибки в AJAX-запросах
- проверять jQuery-код в разных браузерах
- рефакторить обработчики и плагины
Примеры запросов агенту
- Проверь этот jQuery-код и найди лишние обращения к DOM.
- Перепиши обработчики событий через делегирование и объясни изменения.
- Проверь AJAX-запросы в
app.js: добавь обработку ошибок и учти динамический контент.
Как установить jquery-expert
Вручную: положить файлы
.claude/agents/jquery-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/jquery-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/jquery-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о jquery-expert
Как установить jquery-expert в Claude Code?
Разместите файл субагента по пути .claude/agents/jquery-expert.md.
Что делает jquery-expert?
Он помогает разрабатывать и проверять jQuery-код для DOM, событий, AJAX, форм, анимаций и плагинов. В его правилах есть проверки производительности и совместимости браузеров.
Что jquery-expert проверяет в jQuery-коде?
Субагент проверяет селекторы, обработку ошибок AJAX, отвязку событий, глобальные переменные, перерисовки DOM и необходимость сторонних плагинов.
Исходный текст
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