Add performance audit skill and tool to AI command#2973
Open
youknowriad wants to merge 2 commits intotrunkfrom
Open
Add performance audit skill and tool to AI command#2973youknowriad wants to merge 2 commits intotrunkfrom
youknowriad wants to merge 2 commits intotrunkfrom
Conversation
Adds an `audit_performance` MCP tool and `/audit` skill that measure Core Web Vitals (TTFB, FCP, LCP, CLS), page weight, DOM size, and JS/CSS/image/font asset breakdowns for local WordPress sites using the existing shared Playwright browser. No new dependencies required. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
📊 Performance Test ResultsComparing 6d75961 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
mtias
approved these changes
Apr 4, 2026
mtias
reviewed
Apr 4, 2026
| { name: 'model', description: __( 'Switch the AI model' ) }, | ||
| { name: 'provider', description: __( 'Switch the AI provider' ) }, | ||
| { name: 'exit', description: __( 'Exit the chat' ) }, | ||
| // Skills (handled by the AI agent, not the CLI directly) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
Related STU-1482
How AI was used in this PR
This PR was authored with AI assistance. All code has been reviewed for correctness, type safety, and adherence to existing patterns.
Proposed Changes
audit_performanceMCP tool that measures Core Web Vitals (TTFB, FCP, LCP, CLS), page weight, DOM size, request count, and JS/CSS/image/font asset breakdowns for running WordPress sites/need-for-speedskill (SKILL.md) that guides the AI agent to interpret results against Web Vitals thresholds and provide WordPress-specific optimization recommendations/need-for-speedto the slash command autocomplete listTesting Instructions
npm run cli:buildstudio site start <site-name>studio aiand type/need-for-speed— verify it appears in autocompletePre-merge Checklist