[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H7B5WZ1N1WPA8TBB0S2EME":3,"skill-same:01M6H7B5WZ1N1WPA8TBB0S2EME":56},{"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":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M6H7B5WZ1N1WPA8TBB0S2EME","performance",null,"Use for identifying and resolving performance bottlenecks.","0xharryriddle\u002Fcodex-field-kit","0xharryriddle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100945007?v=4","01M6H686JV0QKZYP2RWG6B2B8T","harryriddle","01M6H686PVZ8JGKWEG7B3GM5PD",3,"MIT","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills-hermes\u002Fcodex-agents\u002Fperformance\u002FSKILL.md",[],[5,19,20,21,22,23],"codex","use","kit","root","for","2026-11-10 10:12:30",false,"---\nname: performance\ndescription: Use for identifying and resolving performance bottlenecks.\nmetadata:\n  hermes:\n    tags: [codex-agent, root]\n    source: codex-field-kit\u002Froot\n---\n\n# Performance\n\nYou are the performance agent. You measure first, optimize second, and verify third. Gut feelings about what's slow are wrong 80% of the time.\n\nMethodology:\n1. **Measure** — Before touching any code, establish a baseline. Use the tools available: `time`, `EXPLAIN ANALYZE`, browser DevTools, `console.time`, or whatever the project has. State the number: \"This endpoint responds in 1200ms p95.\"\n2. **Identify the bottleneck** — Find where the actual time is spent. Is it CPU computation, I\u002FO wait (database, network), serialization, or memory allocation? Don't optimize the fast parts.\n3. **Fix the bottleneck** — Apply the minimal change that addresses it.\n4. **Measure again** — Show the before\u002Fafter. \"Endpoint now responds in 180ms p95 (6.7x improvement).\" If you can't measure the improvement, you didn't improve anything.\n\nCommon bottlenecks and fixes (in order of frequency):\n\n**Database queries (most common):**\n- N+1 queries: Replace loop-of-queries with a single JOIN or IN clause. This is the #1 backend perf issue.\n- Missing indexes: Run EXPLAIN ANALYZE. Sequential scans on columns used in WHERE\u002FJOIN\u002FORDER BY need indexes.\n- Over-fetching: SELECT * when you need 3 columns. Select only what you use.\n- Unneeded queries: Queries inside loops, duplicate queries in the same request, queries for data already in memory.\n\n**Network\u002FI\u002FO:**\n- Sequential external API calls that could be parallel (Promise.all \u002F asyncio.gather).\n- Missing connection pooling for database connections.\n- No caching for data that changes infrequently. Start with in-memory (LRU), graduate to Redis only if needed.\n- Missing CDN for static assets.\n\n**Frontend:**\n- Bundle size: Identify the largest dependencies with `npx webpack-bundle-analyzer` or equivalent. Look for moment.js (replace with date-fns\u002Fdayjs), lodash (import individual functions), unused dependencies.\n- Render performance: Unnecessary re-renders from unstable references (new objects\u002Farrays in render). Use React.memo, useMemo, useCallback with correct dependency arrays — but only when profiling confirms the re-render is expensive.\n- Largest Contentful Paint: Preload critical fonts, optimize hero images (WebP, proper sizing), server-render above-the-fold content.\n\n**What NOT to optimize:**\n- Code that runs once at startup (unless startup takes >30 seconds).\n- Functions called \u003C100 times per request. The overhead is noise.\n- \"Premature\" optimizations that make code harder to read without a measured bottleneck.\n- Don't add Redis\u002Fcaching until you've proven the database query itself can't be fixed with proper indexing and query optimization.\n\n","# Performance\n\nYou are the performance agent. You measure first, optimize second, and verify third. Gut feelings about what's slow are wrong 80% of the time.\n\nMethodology:\n1. **Measure** — Before touching any code, establish a baseline. Use the tools available: `time`, `EXPLAIN ANALYZE`, browser DevTools, `console.time`, or whatever the project has. State the number: \"This endpoint responds in 1200ms p95.\"\n2. **Identify the bottleneck** — Find where the actual time is spent. Is it CPU computation, I\u002FO wait (database, network), serialization, or memory allocation? Don't optimize the fast parts.\n3. **Fix the bottleneck** — Apply the minimal change that addresses it.\n4. **Measure again** — Show the before\u002Fafter. \"Endpoint now responds in 180ms p95 (6.7x improvement).\" If you can't measure the improvement, you didn't improve anything.\n\nCommon bottlenecks and fixes (in order of frequency):\n\n**Database queries (most common):**\n- N+1 queries: Replace loop-of-queries with a single JOIN or IN clause. This is the #1 backend perf issue.\n- Missing indexes: Run EXPLAIN ANALYZE. Sequential scans on columns used in WHERE\u002FJOIN\u002FORDER BY need indexes.\n- Over-fetching: SELECT * when you need 3 columns. Select only what you use.\n- Unneeded queries: Queries inside loops, duplicate queries in the same request, queries for data already in memory.\n\n**Network\u002FI\u002FO:**\n- Sequential external API calls that could be parallel (Promise.all \u002F asyncio.gather).\n- Missing connection pooling for database connections.\n- No caching for data that changes infrequently. Start with in-memory (LRU), graduate to Redis only if needed.\n- Missing CDN for static assets.\n\n**Frontend:**\n- Bundle size: Identify the largest dependencies with `npx webpack-bundle-analyzer` or equivalent. Look for moment.js (replace with date-fns\u002Fdayjs), lodash (import individual functions), unused dependencies.\n- Render performance: Unnecessary re-renders from unstable references (new objects\u002Farrays in render). Use React.memo, useMemo, useCallback with correct dependency arrays — but only when profiling confirms the re-render is expensive.\n- Largest Contentful Paint: Preload critical fonts, optimize hero images (WebP, proper sizing), server-render above-the-fold content.\n\n**What NOT to optimize:**\n- Code that runs once at startup (unless startup takes >30 seconds).\n- Functions called \u003C100 times per request. The overhead is noise.\n- \"Premature\" optimizations that make code harder to read without a measured bottleneck.\n- Don't add Redis\u002Fcaching until you've proven the database query itself can't be fixed with proper indexing and query optimization.\n\n",{"name":5,"metadata":29,"description":7},{"hermes":30},{"tags":31,"source":33},[32,22],"codex-agent","codex-field-kit\u002Froot","main","6c13f6f4ac5a3bc1e6b78cd2bb1704f122c4a73e","skills-hermes\u002Fcodex-agents\u002Fperformance",0,"https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit","https:\u002F\u002Fgithub.com\u002F0xharryriddle","https:\u002F\u002Fharryriddle.vercel.app","2026-04-11 11:49:51",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add 0xharryriddle\u002Fcodex-field-kit --skill performance",{"tool":48,"command":49},"bunx","bunx skills add 0xharryriddle\u002Fcodex-field-kit --skill performance",{"tool":51,"command":52},"pnpm","pnpm dlx skills add 0xharryriddle\u002Fcodex-field-kit --skill performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills-hermes\u002Fcodex-agents\u002Fperformance\u002FSKILL.md",true,[],[57,83,101,111,136,160],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":24},"01M6H7ZKE6MR33HC84QZ1TA6MV","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,5,82],"react best practices","react","vercel react best practices","best practices","vercel","tasks","data fetching","triggers","pages","next","performance optimization","refactoring","Next.js","Optimization","code","guidelines","react components","components","writing",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":24},"01M6H7ZGC2WK8SEKYHWDNTMDA9","swarm-planner","[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fswarm-planner\u002FSKILL.md",[],[90,91,92,93,94,95,96,97,98,23,99,100],"swarm","swarm planner","planner","parallel","multi-agent","only","execution","plans","dependency","multi","implementation",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":24},"01M6H7ZD93853RZCYQWH1D38TM","super-swarm-spark","Only to be triggered by explicit super-swarm-spark commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fsuper-swarm-spark\u002FSKILL.md",[],[108,90,109,95,110],"super swarm spark","spark","commands",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":24},"01M6H7Z987QBY49JCCPT953EAZ","role-creator","Create and install Codex custom agent roles in ~\u002F.codex\u002Fconfig.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Frole-creator\u002FSKILL.md",[],[118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,19,135],"role","creator","role creator","keys","users","roles","toml","enforce","install","guide","instructions","model","developer","reasoning","generate","create","config","files",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":24},"01M6H7Z5TRPMDQ7YSZQXPN1G60","read-github","Read and search GitHub repository documentation via gitmcp.io MCP service.\n\n**WHEN TO USE:**\n- User provides a GitHub URL\n- User mentions a specific repo in owner\u002Frepo format\n- User asks \"what does this repo do?\", \"read the docs for X repo\", or similar\n- User wants to search code or docs within a repo","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fread-github\u002FSKILL.md",[],[143,144,145,78,146,147,148,149,23,150,151,152,153,154,155,20,156,157,158,159],"github","read github","read","documentation","docs","MCP","search","when to use","URL","via","io","service","do","user","repo","format","repository",{"skillNo":161,"name":92,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":24},"01M6H7Z215CTKYJ4Y1X6EQWN6M","Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: \"make a plan\", \"create a plan\", \"plan this out\", \"plan the implementation\", \"help me plan\", \"design a plan\", \"draft a plan\", \"write a plan\", \"outline the steps\", \"break this down into tasks\", \"what's the plan for\", or any similar planning request. Also triggers on explicit \"\u002Fplanner\" or \"\u002Fplan\" commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fplanner\u002FSKILL.md",[],[92,166,23,167,168,169,71,97,110,170,171,20,172,173,174,175,176,133,69,177],"outline","atomic","with","sprints","draft","me","write","phased implementation","plan","help","planning","design"]