[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74F676Y5M80RKZDQBX40BP5":3,"skill-same:01M74F676Y5M80RKZDQBX40BP5":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M74F676Y5M80RKZDQBX40BP5","profile-browsing",null,"Profile app performance while browsing, collecting Web Vitals and React rerender data via react-scan. Orchestrates parallel profiler subagents via playwright-cli to capture navigation timing, long tasks, layout shifts, LCP, React commit counts, render bursts, and per-component render data. Use when profiling browsing performance, finding bottlenecks, diagnosing excessive rerenders, or auditing page performance.","tamarillo-ai\u002Ftheta","tamarillo-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264659913?v=4","01M732W8TW61PS979NJ2W4Z6XZ","tamarillo.ai","01M732W8VRBBGT4F0Q3B2HNGTQ",15,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcodex-cli\u002Fregression\u002Fseedit\u002F.codex\u002Fskills\u002Fprofile-browsing\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: profile-browsing\ndescription: Profile app performance while browsing, collecting Web Vitals and React rerender data via react-scan. Orchestrates parallel profiler subagents via playwright-cli to capture navigation timing, long tasks, layout shifts, LCP, React commit counts, render bursts, and per-component render data. Use when profiling browsing performance, finding bottlenecks, diagnosing excessive rerenders, or auditing page performance.\n---\n\n# Profile Browsing Performance\n\nTwo-layer profiling: browser-level symptoms (Web Vitals, long tasks, scroll jank) and React-level diagnosis (commit counts, render bursts, per-component render data from react-scan). Each profiler subagent runs in its own browser session and context window.\n\n## Prerequisites\n\n- Dev server running at https:\u002F\u002Fseedit.localhost (`yarn start`)\n- `playwright-cli` installed (`npm install -g @playwright\u002Fcli@latest`)\n\n**IMPORTANT:** The orchestrator (you) is responsible for ensuring exactly ONE dev server is running. Profiler subagents must NEVER start a dev server themselves.\n\n### react-scan (already configured)\n\nThe app has `react-scan` set up in `src\u002Flib\u002Freact-scan.ts` with `report: true`. In dev mode it:\n- Highlights rerendering components visually (toolbar + overlay)\n- Tracks per-component render counts and times internally\n- Exposes `window.__getReactScanReport()` for programmatic collection\n\nThe profiler's `addInitScript` sets `window.__PROFILING__ = true` before the app loads, which tells react-scan to disable its toolbar and sounds during automated runs.\n\nNo additional setup needed — react-scan is already a devDependency and imported in the entry file.\n\n## Step 0: Ensure Dev Server is Running\n\nBefore spawning any profiler subagents, verify exactly one dev server is available:\n\n```bash\n# Check if the dev server is reachable\ncurl -sf https:\u002F\u002Fseedit.localhost -o \u002Fdev\u002Fnull && echo \"OK\" || echo \"NOT RUNNING\"\n```\n\n- If **OK**: proceed to Step 1.\n- If **NOT RUNNING**: start one instance with `yarn start` (backgrounded), then poll until it responds. Do NOT start more than one.\n- If a dev server is already running on a different port (check `ps aux | grep vite`), reuse it — do not start another.\n\n## Step 1: Define Route Batches\n\nSplit routes into batches of 2–4 for parallel profiling.\n\n**Default batches** (adjust boards as needed):\n\n| Batch | Session | Routes | Focus |\n|-------|---------|--------|-------|\n| 1 | `prof-1` | `\u002Fall`, `\u002Fall\u002Fcatalog` | Multi-board feed + catalog |\n| 2 | `prof-2` | `\u002Fbiz`, `\u002Fbiz\u002Fcatalog` | Single board feed + catalog |\n| 3 | `prof-3` | `\u002Fpol`, `\u002Fpol\u002Fcatalog`, `\u002Fg`, `\u002Fg\u002Fcatalog` | Board switching (feed reloads) |\n\nKeep batches balanced. Add thread views (`\u002F:boardIdentifier\u002Fthread\u002F:cid`) as needed.\n\n## Step 2: Spawn Profiler Subagents\n\nRead the profiler subagent definition at `.codex\u002Fagents\u002Fprofiler.toml`. Then spawn one `profiler` subagent per batch **in parallel** using Codex's current delegation tool:\n\n```\nFor each batch, create a subagent request that includes:\n  agent: \"profiler\"\n  Session name: \"prof-N\"\n  Routes to profile: \u002Froute1, \u002Froute2, ...\n  Any non-default app URL or extra profiling constraints\n```\n\nSpawn up to 4 subagents simultaneously. Each opens its own browser session, navigates routes, scrolls, collects both Web Vitals and react-scan data per route, and returns a structured issues list.\n\n**Trade-off:** Parallel is faster but may skew timing results under heavy machine load. For precise measurements, spawn sequentially.\n\n## Step 3: Merge Results\n\nCollect structured output from each subagent and merge:\n\n1. Concatenate all Critical \u002F Warning \u002F React Rerenders \u002F Scroll Jank \u002F Info items\n2. Combine per-view summary tables into one\n3. Merge react-scan component data across routes (same component appearing in multiple routes = sum counts)\n4. Deduplicate shared issues (e.g., same slow resource across routes)\n5. Sort by severity (Critical first)\n\n## Step 4: Final Report\n\n```markdown\n## Performance Profile Results\n\n### Critical\n- [metric]: [value] at [route] — [what likely needs fixing]\n\n### Warning\n- [metric]: [value] at [route] — [what likely needs fixing]\n\n### React Rerenders\n- [route]: [N] commits during load, [M] during scroll — [likely cause]\n- Render bursts detected at [routes] — suggests cascading state updates\n- Top rerendering components (react-scan):\n  - [ComponentName]: [total count] renders across [routes], [time]ms total\n  - [ComponentName]: [total count] renders across [routes], [time]ms total\n\n### Scroll Jank\n- [route]: [N] long tasks during scroll (max [X]ms), [M] React commits — [likely cause]\n\n### Info\n- [observations]\n\n### Per-View Summary\n| View | Nav (ms) | Long Tasks | CLS | LCP (ms) | Commits | Scroll Commits | Bursts | Top Component |\n|------|----------|-----------|-----|-----------|---------|----------------|--------|---------------|\n| \u002Fall | ... | ... | ... | ... | ... | ... | ... | ... |\n```\n\n## Interpreting React Metrics\n\n| Signal | Likely cause | Fix direction |\n|--------|-------------|---------------|\n| High commits, no long tasks | Frequent cheap rerenders | `React.memo`, stabilize props |\n| High commits + long tasks | Expensive rerenders | Profile render cost, split components |\n| High scroll commits | Scroll\u002Fintersection observer triggering renders | Throttle handlers, memoize list items |\n| Render bursts (>5 in 100ms) | Cascading state updates | Batch updates, review Zustand selectors |\n| react-scan: component with >30 renders | Missing memoization or unstable references | `useMemo`\u002F`useCallback`, check parent renders |\n| react-scan: component with >50ms time | Expensive render function | Split component, move work out of render |\n\n## Element-source follow-up\n\nWhen `react-scan` identifies a rerender hotspot but you still need the exact file behind a concrete DOM node, hand off to `$inspect-elements`.\n\n```bash\nplaywright-cli -s=prof-followup eval \"async el => JSON.stringify(await window.__ELEMENT_SOURCE__.resolve(el))\" e7\n```\n\nUse `source.filePath` as the direct edit target and `stack` to understand which parent components own the node.\n\n## Step 5: Cleanup\n\nAfter profiling is complete and the report is delivered, verify no orphaned processes were left behind:\n\n```bash\n# Check for any Vite dev servers started during profiling\nps aux | grep 'vite.*--port' | grep -v grep\n```\n\n- If the dev server was already running before Step 0, leave it alone.\n- If the orchestrator started the dev server in Step 0, kill it now.\n- If there are multiple Vite processes (should never happen), kill the extras and warn the user.\n\nAlso close any leftover playwright-cli sessions:\n\n```bash\n# Close any profiling sessions that weren't properly closed\nplaywright-cli -s=prof-1 close 2>\u002Fdev\u002Fnull\nplaywright-cli -s=prof-2 close 2>\u002Fdev\u002Fnull\nplaywright-cli -s=prof-3 close 2>\u002Fdev\u002Fnull\n```\n\n## Notes\n\n- **Session isolation**: Each subagent uses a named playwright-cli session (`-s=prof-N`).\n- **Context isolation**: Each subagent runs in its own context window.\n- **Per-route collection**: Data resets on each `goto` — the profiler collects before navigating away.\n- **addInitScript persistence**: Instrumentation re-injects automatically in each new document.\n- **Tracing**: Each subagent produces a `trace.zip` viewable in [Trace Viewer](https:\u002F\u002Ftrace.playwright.dev).\n- **Board codes**: `biz`, `pol`, `g`, `a`, `v`, etc. map to community addresses via the app's directory.\n- **Without react-scan**: If `__getReactScanReport` returns null, the profiler falls back to commit counts + render bursts (still useful, just no component names).\n","# Profile Browsing Performance\n\nTwo-layer profiling: browser-level symptoms (Web Vitals, long tasks, scroll jank) and React-level diagnosis (commit counts, render bursts, per-component render data from react-scan). Each profiler subagent runs in its own browser session and context window.\n\n## Prerequisites\n\n- Dev server running at https:\u002F\u002Fseedit.localhost (`yarn start`)\n- `playwright-cli` installed (`npm install -g @playwright\u002Fcli@latest`)\n\n**IMPORTANT:** The orchestrator (you) is responsible for ensuring exactly ONE dev server is running. Profiler subagents must NEVER start a dev server themselves.\n\n### react-scan (already configured)\n\nThe app has `react-scan` set up in `src\u002Flib\u002Freact-scan.ts` with `report: true`. In dev mode it:\n- Highlights rerendering components visually (toolbar + overlay)\n- Tracks per-component render counts and times internally\n- Exposes `window.__getReactScanReport()` for programmatic collection\n\nThe profiler's `addInitScript` sets `window.__PROFILING__ = true` before the app loads, which tells react-scan to disable its toolbar and sounds during automated runs.\n\nNo additional setup needed — react-scan is already a devDependency and imported in the entry file.\n\n## Step 0: Ensure Dev Server is Running\n\nBefore spawning any profiler subagents, verify exactly one dev server is available:\n\n```bash\n# Check if the dev server is reachable\ncurl -sf https:\u002F\u002Fseedit.localhost -o \u002Fdev\u002Fnull && echo \"OK\" || echo \"NOT RUNNING\"\n```\n\n- If **OK**: proceed to Step 1.\n- If **NOT RUNNING**: start one instance with `yarn start` (backgrounded), then poll until it responds. Do NOT start more than one.\n- If a dev server is already running on a different port (check `ps aux | grep vite`), reuse it — do not start another.\n\n## Step 1: Define Route Batches\n\nSplit routes into batches of 2–4 for parallel profiling.\n\n**Default batches** (adjust boards as needed):\n\n| Batch | Session | Routes | Focus |\n|-------|---------|--------|-------|\n| 1 | `prof-1` | `\u002Fall`, `\u002Fall\u002Fcatalog` | Multi-board feed + catalog |\n| 2 | `prof-2` | `\u002Fbiz`, `\u002Fbiz\u002Fcatalog` | Single board feed + catalog |\n| 3 | `prof-3` | `\u002Fpol`, `\u002Fpol\u002Fcatalog`, `\u002Fg`, `\u002Fg\u002Fcatalog` | Board switching (feed reloads) |\n\nKeep batches balanced. Add thread views (`\u002F:boardIdentifier\u002Fthread\u002F:cid`) as needed.\n\n## Step 2: Spawn Profiler Subagents\n\nRead the profiler subagent definition at `.codex\u002Fagents\u002Fprofiler.toml`. Then spawn one `profiler` subagent per batch **in parallel** using Codex's current delegation tool:\n\n```\nFor each batch, create a subagent request that includes:\n  agent: \"profiler\"\n  Session name: \"prof-N\"\n  Routes to profile: \u002Froute1, \u002Froute2, ...\n  Any non-default app URL or extra profiling constraints\n```\n\nSpawn up to 4 subagents simultaneously. Each opens its own browser session, navigates routes, scrolls, collects both Web Vitals and react-scan data per route, and returns a structured issues list.\n\n**Trade-off:** Parallel is faster but may skew timing results under heavy machine load. For precise measurements, spawn sequentially.\n\n## Step 3: Merge Results\n\nCollect structured output from each subagent and merge:\n\n1. Concatenate all Critical \u002F Warning \u002F React Rerenders \u002F Scroll Jank \u002F Info items\n2. Combine per-view summary tables into one\n3. Merge react-scan component data across routes (same component appearing in multiple routes = sum counts)\n4. Deduplicate shared issues (e.g., same slow resource across routes)\n5. Sort by severity (Critical first)\n\n## Step 4: Final Report\n\n```markdown\n## Performance Profile Results\n\n### Critical\n- [metric]: [value] at [route] — [what likely needs fixing]\n\n### Warning\n- [metric]: [value] at [route] — [what likely needs fixing]\n\n### React Rerenders\n- [route]: [N] commits during load, [M] during scroll — [likely cause]\n- Render bursts detected at [routes] — suggests cascading state updates\n- Top rerendering components (react-scan):\n  - [ComponentName]: [total count] renders across [routes], [time]ms total\n  - [ComponentName]: [total count] renders across [routes], [time]ms total\n\n### Scroll Jank\n- [route]: [N] long tasks during scroll (max [X]ms), [M] React commits — [likely cause]\n\n### Info\n- [observations]\n\n### Per-View Summary\n| View | Nav (ms) | Long Tasks | CLS | LCP (ms) | Commits | Scroll Commits | Bursts | Top Component |\n|------|----------|-----------|-----|-----------|---------|----------------|--------|---------------|\n| \u002Fall | ... | ... | ... | ... | ... | ... | ... | ... |\n```\n\n## Interpreting React Metrics\n\n| Signal | Likely cause | Fix direction |\n|--------|-------------|---------------|\n| High commits, no long tasks | Frequent cheap rerenders | `React.memo`, stabilize props |\n| High commits + long tasks | Expensive rerenders | Profile render cost, split components |\n| High scroll commits | Scroll\u002Fintersection observer triggering renders | Throttle handlers, memoize list items |\n| Render bursts (>5 in 100ms) | Cascading state updates | Batch updates, review Zustand selectors |\n| react-scan: component with >30 renders | Missing memoization or unstable references | `useMemo`\u002F`useCallback`, check parent renders |\n| react-scan: component with >50ms time | Expensive render function | Split component, move work out of render |\n\n## Element-source follow-up\n\nWhen `react-scan` identifies a rerender hotspot but you still need the exact file behind a concrete DOM node, hand off to `$inspect-elements`.\n\n```bash\nplaywright-cli -s=prof-followup eval \"async el => JSON.stringify(await window.__ELEMENT_SOURCE__.resolve(el))\" e7\n```\n\nUse `source.filePath` as the direct edit target and `stack` to understand which parent components own the node.\n\n## Step 5: Cleanup\n\nAfter profiling is complete and the report is delivered, verify no orphaned processes were left behind:\n\n```bash\n# Check for any Vite dev servers started during profiling\nps aux | grep 'vite.*--port' | grep -v grep\n```\n\n- If the dev server was already running before Step 0, leave it alone.\n- If the orchestrator started the dev server in Step 0, kill it now.\n- If there are multiple Vite processes (should never happen), kill the extras and warn the user.\n\nAlso close any leftover playwright-cli sessions:\n\n```bash\n# Close any profiling sessions that weren't properly closed\nplaywright-cli -s=prof-1 close 2>\u002Fdev\u002Fnull\nplaywright-cli -s=prof-2 close 2>\u002Fdev\u002Fnull\nplaywright-cli -s=prof-3 close 2>\u002Fdev\u002Fnull\n```\n\n## Notes\n\n- **Session isolation**: Each subagent uses a named playwright-cli session (`-s=prof-N`).\n- **Context isolation**: Each subagent runs in its own context window.\n- **Per-route collection**: Data resets on each `goto` — the profiler collects before navigating away.\n- **addInitScript persistence**: Instrumentation re-injects automatically in each new document.\n- **Tracing**: Each subagent produces a `trace.zip` viewable in [Trace Viewer](https:\u002F\u002Ftrace.playwright.dev).\n- **Board codes**: `biz`, `pol`, `g`, `a`, `v`, etc. map to community addresses via the app's directory.\n- **Without react-scan**: If `__getReactScanReport` returns null, the profiler falls back to commit counts + render bursts (still useful, just no component names).\n",{"name":5,"description":7},"main","08c084f718b2b842cd53622ce0b1a1fb2888ccef","test\u002Fcast-fixtures\u002Fcodex-cli\u002Fregression\u002Fseedit\u002F.codex\u002Fskills\u002Fprofile-browsing",1,"https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai","2026-07-15 23:48:12",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add tamarillo-ai\u002Ftheta --skill profile-browsing",{"tool":37,"command":38},"bunx","bunx skills add tamarillo-ai\u002Ftheta --skill profile-browsing",{"tool":40,"command":41},"pnpm","pnpm dlx skills add tamarillo-ai\u002Ftheta --skill profile-browsing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcodex-cli\u002Fregression\u002Fseedit\u002F.codex\u002Fskills\u002Fprofile-browsing\u002FSKILL.md",true,[],[46,53,60,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M74FCAJ0RRFRJRQES26329E7","deploy-app","Deploy the application to staging or production environments.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcursor\u002Fskills\u002Fbasic\u002F.cursor\u002Fskills\u002Fdeploy-app\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M74FC8GPJGCS0KTGKS1CJZZS","deploy","Deploy the application to environments.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcursor\u002Fcombined\u002Ffull-config\u002F.cursor\u002Fskills\u002Fdeploy\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M74FC5RT3VTNZEK1F7NX5380","building-native-ui","Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.","MIT","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcopilot\u002Fskills\u002Fwith-references\u002F.github\u002Fskills\u002Fbuilding-native-ui\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M74FC1ZGP5R44HPGWWSW6P3B","create-section","Use when creating a new section for the AI Workshop presentation. Guides through title slide setup, layout choices, and content gathering. Activates when user wants to add a new topic section to the slideshow.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcopilot\u002Fskills\u002Fbasic\u002F.github\u002Fskills\u002Fcreate-section\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M74FBZXSZ7GVP0HCGNR1BVNH","ship-checker","Run a full pre-ship review for this repo. Use when asked if a change is ready to deploy, publish, or ship.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcopilot\u002Fcombined\u002Feverything\u002F.github\u002Fskills\u002Fship-checker\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M74FBY4N2E3ZERWBRM4S3DE6","lint-check","Run repository linters and report failures.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcodex-cli\u002Fskills\u002Fagents-path\u002F.agents\u002Fskills\u002Flint-check\u002FSKILL.md",[],[]]