Install
$ agentstack add skill-p2ergmbh-agentic-coding-review-performance ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Performance Review Workflow
This workflow guides you through standardizing the performance testing and review of specific pages in the application.
Role & Persona
You are an expert performance engineer and autonomous agent.
Trigger
Use this workflow whenever the user asks to "run the review-performance workflow", "review performance for [URL]", or as a subsequent step during the github-issue-test workflow.
Phase 1: URL Selection and Route Resolution
- URL Identification:
- If a URL is provided by the user (e.g.,
https://www.your-domain.com/de/product/some-productorhttp://localhost:6767/de/provider/...), use it. - If NO URL is provided, fetch
http://localhost:6767/sitemap.xml, parse it, and pick a random URL from the sitemap to test.
- Route Pattern Matching:
- Extract the locale (e.g.,
de,en,fr) and the remaining path from the selected URL. - Map the path to the corresponding route pattern. Inspect the configuration for
paths.src(e.g.src/or.) and search for any i18n pathnames files (paths.src/i18n/pathnames.tsor equivalent i18n configurations). If i18n configurations do not exist, map directly to the route segments. - Example:
.../de/provider/provider-1/product/item-9maps to the pattern/provider/[slug]/product/[productSlug].
- File Resolution:
- Translate the mapped route pattern into the corresponding Next.js file path within the configured app pages directory (e.g.
paths.apporsrc/app). - Example: The pattern
/provider/[slug]/product/[productSlug]resolves to/[locale]/provider/[slug]/product/[productSlug]/page.tsx(or/provider/[slug]/product/[productSlug]/page.tsxif non-localized). - Identify this file as the starting point for fixing performance issues. If the path does not exist, search dynamically using codebase tools to locate the page component.
Phase 2: Automated Performance Analysis
- Initialize Browser & Trace:
- Ensure the
chrome-devtoolsMCP is available. - Use
navigate_pageto go to the target URL. - Wait for the page to visually stabilize.
- Use
performance_start_tracewithreload: trueto begin capturing frontend performance issues, Core Web Vitals (LCP, INP, CLS), and page load speed.
- Stop Trace & Gather Insights:
- After the page has fully loaded, use
performance_stop_trace. - Analyze the generated trace file. Look for specific Performance Insights returned by the DevTools.
- If necessary, use
performance_analyze_insighton specific blocking issues or layout shifts to get detailed information on what caused them. - Holistic Quality Audit: Do not use Lighthouse as a fallback for performance traces. Instead, use
lighthouse_auditas a complementary check to generate a structured report specifically targeting Accessibility (a11y), SEO, and web Best Practices regressions.
Phase 3: Issue Identification & Fixing
- Identify Blocking Issues:
- Correlate the findings from the performance trace (e.g., large layout shifts, long main thread tasks, unoptimized images, slow server response times) with the components rendered on the page.
- Locate Source Code:
- Start at the
page.tsxfile resolved in Phase 1. - Trace the performance bottlenecks down the component tree (using
list_code_definition_names,search_files, andread_fileas needed).
- Implement Fixes:
- Apply performance optimizations. Common Next.js/React fixes include:
- Implementing dynamic imports (
next/dynamic) for heavy, non-critical components. - Optimizing images with
next/image(e.g., addingpriorityto LCP images, fixing sizing). - Adding Suspense boundaries for localized data fetching.
- Memoizing expensive calculations or components.
- Use
replace_in_fileto implement the fixes in the codebase.
Phase 4: Verification and Reporting
- Re-Test Performance:
- Run another
performance_start_trace/performance_stop_tracecycle to verify the optimizations have improved the metrics (e.g., reduced LCP or CLS).
- Document Results & Issue Management:
- Contextual Run (Inside another workflow): If the performance review was invoked in the context of an existing issue (e.g., during a code review or the
github-issue-testworkflow), document the performance findings and actionable improvements as a comment in the existing GitHub issue using theadd_issue_commenttool. - Standalone Run (No existing issue): If the performance review was invoked standalone (not tied to an existing issue):
- Use the
.agents/skills/github-issue-createskill to create a new issue documenting the performance bottlenecks found for the tested page. - Assign yourself or fix the performance problems starting at the resolved
page.tsx. - Once the issue is successfully completed and fixed, refine it using the
.agents/skills/github-issue-refineskill.
- Provide a comprehensive summary to the user detailing:
- The tested URL and the resolved Next.js route path.
- The initial performance bottlenecks discovered.
- The specific files and components modified.
- The optimizations implemented.
- The results of the post-optimization trace.
- Cleanup Browser Session:
- To prevent accumulating orphaned browser tabs, use
mcp_chrome-devtools_list_pagesandmcp_chrome-devtools_close_pageto close the pages opened during the performance tests.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: P2ERGmbH
- Source: P2ERGmbH/agentic-coding
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.