Skip to content

ddtcorex/maestro-skills / skills/magento2-dev-core

magento2-dev-core

Verified

Use for Magento 2 module work: architecture, dependency injection, repositories, plugins, secure backend code, CLI, cron. Core skill, always load it first. Keywords dependency injection, plugin.

references/report-perf.html.template

View on GitHub
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="maestro-report-contract" content="{{contract}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{title}} - {{date}}</title>
<style>
{{theme_css}}
</style>
</head>
<body>
<div class="header"><div class="header-inner">
  <div class="header-top">
  {{brand_logo}}
  <!-- Default logo when the marker is left empty: Maestro lockup. An overlay fills the marker and deletes the default block below. -->
  <svg viewBox="0 0 232 48" style="height:32px" role="img" aria-label="Maestro logo"><rect x="2" y="8" width="32" height="32" rx="9" fill="#0a84ff"/><path d="M2 11 L5 4 L8 9 L11 4 L14 11" transform="translate(2 8) scale(2)" stroke="#ffffff" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" fill="none"/><text x="42" y="32" font-family="Inter, system-ui, sans-serif" font-weight="700" font-size="24" letter-spacing="-0.5" fill="#ffffff">Maestro</text></svg>
  <div class="header-side">{{header_side}}</div>
  </div>
  <div class="eyebrow">{{eyebrow}}</div>
  <h1 data-report-title>Performance audit, technical report</h1>
  <div class="subtitle">{{subtitle}}</div>
  <div class="meta">
    <div>Govard <code>{{govard_version}}</code> · <code>{{host}}</code> · profile <code>{{profile}}</code></div>
    <div>Magento <code>{{magento_version}}</code> · PHP <code>{{php_version}}</code> · MariaDB <code>{{mariadb_version}}</code> · Redis <code>{{redis_version}}</code> · OpenSearch <code>{{opensearch_version}}</code> · {{fpc}}</div>
  </div>
</div></div>
<div class="container">

<div class="kpi">
  <div class="box"><div class="label">Infra</div><div class="value">{{infra_verdict}}</div><div class="sub">{{infra_sub}}</div></div>
  <div class="box"><div class="label">Cache</div><div class="value">{{cache_verdict}}</div><div class="sub">{{cache_sub}}</div></div>
  <div class="box"><div class="label">Indexer</div><div class="value">{{indexer_verdict}}</div><div class="sub">{{indexer_sub}}</div></div>
  <div class="box"><div class="label">Cron</div><div class="value">{{cron_verdict}}</div><div class="sub">{{cron_sub}}</div></div>
</div>

<div class="card" id="verdict">
  <h2>Verdict<a class="anchor" href="#verdict" aria-label="Link to this section">#</a></h2>
  <p class="verdict" data-report-verdict>{{verdict}}</p>
  {{verdict_detail}}
</div>

<div class="card" id="urls-audited">
  <h2>URLs Audited <span class="badge badge-gray">{{scope}} · {{page_count}} pages · double-pass</span><a class="anchor" href="#urls-audited" aria-label="Link to this section">#</a></h2>
  <div class="tw"><table class="urls">
    <tr><th>Type</th><th>Page</th><th>URL</th><th>Queries</th></tr>
    {{urls_rows}}
  </table></div>
</div>

<div class="card" id="comparison-matrix">
  <h2>Before/After Comparison Matrix <span class="badge badge-gray">same metrics · frozen URL set</span><a class="anchor" href="#comparison-matrix" aria-label="Link to this section">#</a></h2>
  {{matrix}}
  <div class="note">One row per page; a comparison cell reads before → after. Uncached server render (queries, profiler root, TTFB) is captured with full_page, block_html and layout caches disabled, so backend work shows here. Warm CWV is the median of 3 Lighthouse runs served from the full page cache, each run proving its own HIT. Cold runs follow a page cache clean and prove their MISS.</div>
</div>

<div class="card" id="infrastructure">
  <h2>Infrastructure <span class="badge {{infra_badge}}">{{infra_status}}</span><a class="anchor" href="#infrastructure" aria-label="Link to this section">#</a></h2>
  {{infra_checks}}
</div>

<div class="card" id="cache-status">
  <h2>Cache Status <span class="badge {{cache_badge}}">{{cache_status}}</span><a class="anchor" href="#cache-status" aria-label="Link to this section">#</a></h2>
  {{cache_checks}}
</div>

<div class="card" id="cache-invalidation">
  <h2>Cache Invalidation Efficiency <span class="badge {{cache_inv_badge}}">{{cache_inv_status}}</span><a class="anchor" href="#cache-invalidation" aria-label="Link to this section">#</a></h2>
  {{cache_inv_checks}}
</div>

<div class="card" id="ajax-load">
  <h2>Client-Side AJAX Load <span class="badge {{ajax_badge}}">{{ajax_status}}</span><a class="anchor" href="#ajax-load" aria-label="Link to this section">#</a></h2>
  {{ajax_checks}}
</div>

<div class="card" id="indexer">
  <h2>Indexer Configuration<a class="anchor" href="#indexer" aria-label="Link to this section">#</a></h2>
  {{indexer_checks}}
</div>

<div class="card" id="database">
  <h2>Database<a class="anchor" href="#database" aria-label="Link to this section">#</a></h2>
  <div class="tw"><table>
    <tr><th>Page</th><th>Queries</th><th>DB time</th><th>Slowest</th><th>Average</th><th>≥ 1 s</th><th>≥ 50 ms</th><th>≥ 10 ms</th></tr>
    {{db_rows}}
  </table></div>
  <ul class="bullets db-bullets">
    {{db_bullets}}
  </ul>
</div>

<div class="card" id="slow-queries">
  <h2>Slow Queries <span class="badge {{slow_queries_badge}}">{{slow_queries_status}}</span><a class="anchor" href="#slow-queries" aria-label="Link to this section">#</a></h2>
  {{slow_queries_checks}}
</div>

<div class="card" id="per-page-queries">
  <h2>Per-Page Query Detail <span class="badge {{perpage_badge}}">{{perpage_status}}</span><a class="anchor" href="#per-page-queries" aria-label="Link to this section">#</a></h2>
  <div class="note">Each block lists every normalized query shape of the page with its count, captured uncached.</div>
  <div class="print-note">Print shows the 10 most frequent shapes per page; the HTML report lists every shape.</div>
  {{perpage_details}}
</div>

<div class="card" id="repeated-shapes">
  <h2>Top Repeated Query Shapes<a class="anchor" href="#repeated-shapes" aria-label="Link to this section">#</a></h2>
  <div class="note">The 15 most repeated shapes across the captured pages; the rest fold below the table.</div>
  {{repeated_table}}
</div>

<div class="card" id="timers">
  <h2>Top Timers<a class="anchor" href="#timers" aria-label="Link to this section">#</a></h2>
  <div class="note">Profiler timers past the threshold (over 5% of the page total, or count 10+) per captured page.</div>
  <div class="print-note">Print shows the 10 largest timers per page.</div>
  {{timers_content}}
</div>

<div class="card" id="core-web-vitals">
  <h2>Core Web Vitals <span class="badge {{cwv_badge}}">{{cwv_status}}</span><a class="anchor" href="#core-web-vitals" aria-label="Link to this section">#</a></h2>
  <div class="tw"><table>
    <tr><th>Page</th><th>Score warm</th><th>LCP cold</th><th>LCP warm</th><th>TBT cold</th><th>TBT warm</th><th>CLS (warm)</th><th>TTFB (warm)</th><th>Spread (warm)</th><th>HIT proof (warm)</th></tr>
    {{cwv_rows}}
  </table></div>
  <div style="font-size:13px;color:var(--muted);margin-top:8px">Cold: one run per page right after <code>cache:clean full_page</code>, proving its MISS from the document response (a HIT is retried once after another clean). Warm: each page is primed, then measured 3 times (deep) from the full page cache with <code>--throttling-method=devtools</code>; the table shows the median and the spread (max minus min), and every run proves its HIT from the document response headers in its own devtools log.</div>
</div>

<div class="card" id="code-patterns">
  <h2>Code-Level Performance Patterns <span class="badge {{code_patterns_badge}}">{{code_patterns_status}}</span><a class="anchor" href="#code-patterns" aria-label="Link to this section">#</a></h2>
  {{code_patterns_checks}}
</div>

<div class="card" id="recommendations">
  <h2>Recommendations <span class="badge badge-red">{{rec_count}} actions</span><a class="anchor" href="#recommendations" aria-label="Link to this section">#</a></h2>
  <ol style="margin:8px 0;padding-left:0;list-style:none;font-size:13px">{{recommendations}}</ol>
</div>

<div class="card" id="coverage">
  <h2>Coverage Note <span class="badge badge-green">Self-verified</span><a class="anchor" href="#coverage" aria-label="Link to this section">#</a></h2>
  <div style="font-size:13px;color:var(--muted)">{{coverage_note}}</div>
</div>

<div class="footer">Generated {{date}} from live govard captures on <code>{{host}}</code>.</div>

</div>
<script>
// Opens every <details> around the element a #link points at, then scrolls
// to it: a browser does not reliably expand a closed block for a fragment.
(function () {
  function reveal() {
    var id = decodeURIComponent(location.hash.slice(1))
    var el = id && document.getElementById(id)
    if (!el) return
    for (var p = el; p; p = p.parentElement) if (p.tagName === 'DETAILS') p.open = true
    el.scrollIntoView()
  }
  window.addEventListener('hashchange', reveal)
  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', reveal)
  else reveal()
})()
</script>
</body>
</html>
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall