[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H6D3V5QCQVZPSWTEA0EAT9":3,"skill-same:01M6H6D3V5QCQVZPSWTEA0EAT9":71},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6H6D3V5QCQVZPSWTEA0EAT9","m10-performance",null,"CRITICAL: Use for performance optimization. Triggers: performance, optimization, benchmark, profiling, flamegraph, criterion, slow, fast, allocation, cache, SIMD, make it faster, 性能优化, 基准测试","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\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fm10-performance\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"performance","m10 performance","for","testing","allocation","make","it","false","critical","triggers","use","profiling","flamegraph","performance optimization","Optimization","fast","cache","simd","benchmark","2026-11-10 10:12:30",false,"---\nname: m10-performance\ndescription: \"CRITICAL: Use for performance optimization. Triggers: performance, optimization, benchmark, profiling, flamegraph, criterion, slow, fast, allocation, cache, SIMD, make it faster, 性能优化, 基准测试\"\nuser-invocable: false\n---\n\n# Performance Optimization\n\n> **Layer 2: Design Choices**\n\n## Core Question\n\n**What's the bottleneck, and is optimization worth it?**\n\nBefore optimizing:\n- Have you measured? (Don't guess)\n- What's the acceptable performance?\n- Will optimization add complexity?\n\n---\n\n## Performance Decision → Implementation\n\n| Goal | Design Choice | Implementation |\n|------|---------------|----------------|\n| Reduce allocations | Pre-allocate, reuse | `with_capacity`, object pools |\n| Improve cache | Contiguous data | `Vec`, `SmallVec` |\n| Parallelize | Data parallelism | `rayon`, threads |\n| Avoid copies | Zero-copy | References, `Cow\u003CT>` |\n| Reduce indirection | Inline data | `smallvec`, arrays |\n\n---\n\n## Thinking Prompt\n\nBefore optimizing:\n\n1. **Have you measured?**\n   - Profile first → flamegraph, perf\n   - Benchmark → criterion, cargo bench\n   - Identify actual hotspots\n\n2. **What's the priority?**\n   - Algorithm (10x-1000x improvement)\n   - Data structure (2x-10x)\n   - Allocation (2x-5x)\n   - Cache (1.5x-3x)\n\n3. **What's the trade-off?**\n   - Complexity vs speed\n   - Memory vs CPU\n   - Latency vs throughput\n\n---\n\n## Trace Up ↑\n\nTo domain constraints (Layer 3):\n\n```\n\"How fast does this need to be?\"\n    ↑ Ask: What's the performance SLA?\n    ↑ Check: domain-* (latency requirements)\n    ↑ Check: Business requirements (acceptable response time)\n```\n\n| Question | Trace To | Ask |\n|----------|----------|-----|\n| Latency requirements | domain-* | What's acceptable response time? |\n| Throughput needs | domain-* | How many requests per second? |\n| Memory constraints | domain-* | What's the memory budget? |\n\n---\n\n## Trace Down ↓\n\nTo implementation (Layer 1):\n\n```\n\"Need to reduce allocations\"\n    ↓ m01-ownership: Use references, avoid clone\n    ↓ m02-resource: Pre-allocate with_capacity\n\n\"Need to parallelize\"\n    ↓ m07-concurrency: Choose rayon or threads\n    ↓ m07-concurrency: Consider async for I\u002FO-bound\n\n\"Need cache efficiency\"\n    ↓ Data layout: Prefer Vec over HashMap when possible\n    ↓ Access patterns: Sequential over random access\n```\n\n---\n\n## Quick Reference\n\n| Tool | Purpose |\n|------|---------|\n| `cargo bench` | Micro-benchmarks |\n| `criterion` | Statistical benchmarks |\n| `perf` \u002F `flamegraph` | CPU profiling |\n| `heaptrack` | Allocation tracking |\n| `valgrind` \u002F `cachegrind` | Cache analysis |\n\n## Optimization Priority\n\n```\n1. Algorithm choice     (10x - 1000x)\n2. Data structure       (2x - 10x)\n3. Allocation reduction (2x - 5x)\n4. Cache optimization   (1.5x - 3x)\n5. SIMD\u002FParallelism     (2x - 8x)\n```\n\n## Common Techniques\n\n| Technique | When | How |\n|-----------|------|-----|\n| Pre-allocation | Known size | `Vec::with_capacity(n)` |\n| Avoid cloning | Hot paths | Use references or `Cow\u003CT>` |\n| Batch operations | Many small ops | Collect then process |\n| SmallVec | Usually small | `smallvec::SmallVec\u003C[T; N]>` |\n| Inline buffers | Fixed-size data | Arrays over Vec |\n\n---\n\n## Common Mistakes\n\n| Mistake | Why Wrong | Better |\n|---------|-----------|--------|\n| Optimize without profiling | Wrong target | Profile first |\n| Benchmark in debug mode | Meaningless | Always `--release` |\n| Use LinkedList | Cache unfriendly | `Vec` or `VecDeque` |\n| Hidden `.clone()` | Unnecessary allocs | Use references |\n| Premature optimization | Wasted effort | Make it work first |\n\n---\n\n## Anti-Patterns\n\n| Anti-Pattern | Why Bad | Better |\n|--------------|---------|--------|\n| Clone to avoid lifetimes | Performance cost | Proper ownership |\n| Box everything | Indirection cost | Stack when possible |\n| HashMap for small sets | Overhead | Vec with linear search |\n| String concat in loop | O(n^2) | `String::with_capacity` or `format!` |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Reducing clones | m01-ownership |\n| Concurrency options | m07-concurrency |\n| Smart pointer choice | m02-resource |\n| Domain requirements | domain-* |\n","# Performance Optimization\n\n> **Layer 2: Design Choices**\n\n## Core Question\n\n**What's the bottleneck, and is optimization worth it?**\n\nBefore optimizing:\n- Have you measured? (Don't guess)\n- What's the acceptable performance?\n- Will optimization add complexity?\n\n---\n\n## Performance Decision → Implementation\n\n| Goal | Design Choice | Implementation |\n|------|---------------|----------------|\n| Reduce allocations | Pre-allocate, reuse | `with_capacity`, object pools |\n| Improve cache | Contiguous data | `Vec`, `SmallVec` |\n| Parallelize | Data parallelism | `rayon`, threads |\n| Avoid copies | Zero-copy | References, `Cow\u003CT>` |\n| Reduce indirection | Inline data | `smallvec`, arrays |\n\n---\n\n## Thinking Prompt\n\nBefore optimizing:\n\n1. **Have you measured?**\n   - Profile first → flamegraph, perf\n   - Benchmark → criterion, cargo bench\n   - Identify actual hotspots\n\n2. **What's the priority?**\n   - Algorithm (10x-1000x improvement)\n   - Data structure (2x-10x)\n   - Allocation (2x-5x)\n   - Cache (1.5x-3x)\n\n3. **What's the trade-off?**\n   - Complexity vs speed\n   - Memory vs CPU\n   - Latency vs throughput\n\n---\n\n## Trace Up ↑\n\nTo domain constraints (Layer 3):\n\n```\n\"How fast does this need to be?\"\n    ↑ Ask: What's the performance SLA?\n    ↑ Check: domain-* (latency requirements)\n    ↑ Check: Business requirements (acceptable response time)\n```\n\n| Question | Trace To | Ask |\n|----------|----------|-----|\n| Latency requirements | domain-* | What's acceptable response time? |\n| Throughput needs | domain-* | How many requests per second? |\n| Memory constraints | domain-* | What's the memory budget? |\n\n---\n\n## Trace Down ↓\n\nTo implementation (Layer 1):\n\n```\n\"Need to reduce allocations\"\n    ↓ m01-ownership: Use references, avoid clone\n    ↓ m02-resource: Pre-allocate with_capacity\n\n\"Need to parallelize\"\n    ↓ m07-concurrency: Choose rayon or threads\n    ↓ m07-concurrency: Consider async for I\u002FO-bound\n\n\"Need cache efficiency\"\n    ↓ Data layout: Prefer Vec over HashMap when possible\n    ↓ Access patterns: Sequential over random access\n```\n\n---\n\n## Quick Reference\n\n| Tool | Purpose |\n|------|---------|\n| `cargo bench` | Micro-benchmarks |\n| `criterion` | Statistical benchmarks |\n| `perf` \u002F `flamegraph` | CPU profiling |\n| `heaptrack` | Allocation tracking |\n| `valgrind` \u002F `cachegrind` | Cache analysis |\n\n## Optimization Priority\n\n```\n1. Algorithm choice     (10x - 1000x)\n2. Data structure       (2x - 10x)\n3. Allocation reduction (2x - 5x)\n4. Cache optimization   (1.5x - 3x)\n5. SIMD\u002FParallelism     (2x - 8x)\n```\n\n## Common Techniques\n\n| Technique | When | How |\n|-----------|------|-----|\n| Pre-allocation | Known size | `Vec::with_capacity(n)` |\n| Avoid cloning | Hot paths | Use references or `Cow\u003CT>` |\n| Batch operations | Many small ops | Collect then process |\n| SmallVec | Usually small | `smallvec::SmallVec\u003C[T; N]>` |\n| Inline buffers | Fixed-size data | Arrays over Vec |\n\n---\n\n## Common Mistakes\n\n| Mistake | Why Wrong | Better |\n|---------|-----------|--------|\n| Optimize without profiling | Wrong target | Profile first |\n| Benchmark in debug mode | Meaningless | Always `--release` |\n| Use LinkedList | Cache unfriendly | `Vec` or `VecDeque` |\n| Hidden `.clone()` | Unnecessary allocs | Use references |\n| Premature optimization | Wasted effort | Make it work first |\n\n---\n\n## Anti-Patterns\n\n| Anti-Pattern | Why Bad | Better |\n|--------------|---------|--------|\n| Clone to avoid lifetimes | Performance cost | Proper ownership |\n| Box everything | Indirection cost | Stack when possible |\n| HashMap for small sets | Overhead | Vec with linear search |\n| String concat in loop | O(n^2) | `String::with_capacity` or `format!` |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Reducing clones | m01-ownership |\n| Concurrency options | m07-concurrency |\n| Smart pointer choice | m02-resource |\n| Domain requirements | domain-* |\n",{"name":5,"description":7,"user-invocable":39},"main","6c13f6f4ac5a3bc1e6b78cd2bb1704f122c4a73e","archive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fm10-performance",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add 0xharryriddle\u002Fcodex-field-kit --skill m10-performance",{"tool":57,"command":58},"bunx","bunx skills add 0xharryriddle\u002Fcodex-field-kit --skill m10-performance",{"tool":60,"command":61},"pnpm","pnpm dlx skills add 0xharryriddle\u002Fcodex-field-kit --skill m10-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fm10-performance\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"patterns\u002Foptimization-guide.md","REFERENCE","参考文档",7116,"https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fm10-performance\u002Fpatterns\u002Foptimization-guide.md",[72,95,113,123,149,173],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"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",[],[79,80,81,82,83,84,85,28,86,87,32,88,89,33,90,91,92,93,19,94],"react best practices","react","vercel react best practices","best practices","vercel","tasks","data fetching","pages","next","refactoring","Next.js","code","guidelines","react components","components","writing",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":38},"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",[],[102,103,104,105,106,107,108,109,110,21,111,112],"swarm","swarm planner","planner","parallel","multi-agent","only","execution","plans","dependency","multi","implementation",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":38},"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",[],[120,102,121,107,122],"super swarm spark","spark","commands",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":38},"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",[],[130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],"role","creator","role creator","keys","users","roles","toml","enforce","install","guide","instructions","model","developer","reasoning","generate","create","config","codex","files",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":38},"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",[],[156,157,158,90,159,160,161,162,21,163,164,165,166,167,168,29,169,170,171,172],"github","read github","read","documentation","docs","MCP","search","when to use","URL","via","io","service","do","user","repo","format","repository",{"skillNo":174,"name":104,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":38},"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",[],[104,179,21,180,181,182,28,109,122,183,184,29,185,186,187,188,189,145,84,190],"outline","atomic","with","sprints","draft","me","write","phased implementation","plan","help","planning","design"]