AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Review Performance

skill-p2ergmbh-agentic-coding-review-performance · by P2ERGmbH

Perform performance testing and review of specific pages, identifying and fixing bottlenecks.

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-p2ergmbh-agentic-coding-review-performance

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-p2ergmbh-agentic-coding-review-performance)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Review Performance? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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

  1. URL Identification:
  • If a URL is provided by the user (e.g., https://www.your-domain.com/de/product/some-product or http://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.
  1. 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.ts or equivalent i18n configurations). If i18n configurations do not exist, map directly to the route segments.
  • Example: .../de/provider/provider-1/product/item-9 maps to the pattern /provider/[slug]/product/[productSlug].
  1. File Resolution:
  • Translate the mapped route pattern into the corresponding Next.js file path within the configured app pages directory (e.g. paths.app or src/app).
  • Example: The pattern /provider/[slug]/product/[productSlug] resolves to /[locale]/provider/[slug]/product/[productSlug]/page.tsx (or /provider/[slug]/product/[productSlug]/page.tsx if 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

  1. Initialize Browser & Trace:
  • Ensure the chrome-devtools MCP is available.
  • Use navigate_page to go to the target URL.
  • Wait for the page to visually stabilize.
  • Use performance_start_trace with reload: true to begin capturing frontend performance issues, Core Web Vitals (LCP, INP, CLS), and page load speed.
  1. 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_insight on 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_audit as a complementary check to generate a structured report specifically targeting Accessibility (a11y), SEO, and web Best Practices regressions.

Phase 3: Issue Identification & Fixing

  1. 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.
  1. Locate Source Code:
  • Start at the page.tsx file resolved in Phase 1.
  • Trace the performance bottlenecks down the component tree (using list_code_definition_names, search_files, and read_file as needed).
  1. 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., adding priority to LCP images, fixing sizing).
  • Adding Suspense boundaries for localized data fetching.
  • Memoizing expensive calculations or components.
  • Use replace_in_file to implement the fixes in the codebase.

Phase 4: Verification and Reporting

  1. Re-Test Performance:
  • Run another performance_start_trace / performance_stop_trace cycle to verify the optimizations have improved the metrics (e.g., reduced LCP or CLS).
  1. 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-test workflow), document the performance findings and actionable improvements as a comment in the existing GitHub issue using the add_issue_comment tool.
  • Standalone Run (No existing issue): If the performance review was invoked standalone (not tied to an existing issue):
  1. Use the .agents/skills/github-issue-create skill to create a new issue documenting the performance bottlenecks found for the tested page.
  2. Assign yourself or fix the performance problems starting at the resolved page.tsx.
  3. Once the issue is successfully completed and fixed, refine it using the .agents/skills/github-issue-refine skill.
  • 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.
  1. Cleanup Browser Session:
  • To prevent accumulating orphaned browser tabs, use mcp_chrome-devtools_list_pages and mcp_chrome-devtools_close_page to 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.