[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75H3RVFKF0FMXZZR16QK83W":3,"skill-same:01M75H3RVFKF0FMXZZR16QK83W":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75H3RVFKF0FMXZZR16QK83W","performance-profiler",null,"Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I\u002FO bottlenecks, generates flamegraphs, analyzes bundle sizes, optimizes database queries, runs load tests with k6 and Artillery. Always measures before and after. Use when investigating a slow endpoint, planning a performance budget, or hunting a memory leak in production.","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fperformance-profiler\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: \"performance-profiler\"\ndescription: \"Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I\u002FO bottlenecks, generates flamegraphs, analyzes bundle sizes, optimizes database queries, runs load tests with k6 and Artillery. Always measures before and after. Use when investigating a slow endpoint, planning a performance budget, or hunting a memory leak in production.\"\n---\n\n# Performance Profiler\n\n**Tier:** POWERFUL  \n**Category:** Engineering  \n**Domain:** Performance Engineering  \n\n---\n\n## Overview\n\nSystematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I\u002FO bottlenecks; generates flamegraphs; analyzes bundle sizes; optimizes database queries; detects memory leaks; and runs load tests with k6 and Artillery. Always measures before and after.\n\n## Core Capabilities\n\n- **CPU profiling** — flamegraphs for Node.js, py-spy for Python, pprof for Go\n- **Memory profiling** — heap snapshots, leak detection, GC pressure\n- **Bundle analysis** — webpack-bundle-analyzer, Next.js bundle analyzer\n- **Database optimization** — EXPLAIN ANALYZE, slow query log, N+1 detection\n- **Load testing** — k6 scripts, Artillery scenarios, ramp-up patterns\n- **Before\u002Fafter measurement** — establish baseline, profile, optimize, verify\n\n---\n\n## When to Use\n\n- App is slow and you don't know where the bottleneck is\n- P99 latency exceeds SLA before a release\n- Memory usage grows over time (suspected leak)\n- Bundle size increased after adding dependencies\n- Preparing for a traffic spike (load test before launch)\n- Database queries taking >100ms\n\n---\n\n## Quick Start\n\n```bash\n# Analyze a project for performance risk indicators\npython3 scripts\u002Fperformance_profiler.py \u002Fpath\u002Fto\u002Fproject\n\n# JSON output for CI integration\npython3 scripts\u002Fperformance_profiler.py \u002Fpath\u002Fto\u002Fproject --json\n\n# Custom large-file threshold\npython3 scripts\u002Fperformance_profiler.py \u002Fpath\u002Fto\u002Fproject --large-file-threshold-kb 256\n```\n\n---\n\n## Golden Rule: Measure First\n\n```bash\n# Establish baseline BEFORE any optimization\n# Record: P50, P95, P99 latency | RPS | error rate | memory usage\n\n# Wrong: \"I think the N+1 query is slow, let me fix it\"\n# Right: Profile → confirm bottleneck → fix → measure again → verify improvement\n```\n\n---\n\n## Node.js Profiling\n→ See references\u002Fprofiling-recipes.md for details\n\n## Before\u002FAfter Measurement Template\n\n```markdown\n## Performance Optimization: [What You Fixed]\n\n**Date:** 2026-03-01  \n**Engineer:** @username  \n**Ticket:** PROJ-123  \n\n### Problem\n[1-2 sentences: what was slow, how was it observed]\n\n### Root Cause\n[What the profiler revealed]\n\n### Baseline (Before)\n| Metric | Value |\n|--------|-------|\n| P50 latency | 480ms |\n| P95 latency | 1,240ms |\n| P99 latency | 3,100ms |\n| RPS @ 50 VUs | 42 |\n| Error rate | 0.8% |\n| DB queries\u002Freq | 23 (N+1) |\n\nProfiler evidence: [link to flamegraph or screenshot]\n\n### Fix Applied\n[What changed — code diff or description]\n\n### After\n| Metric | Before | After | Delta |\n|--------|--------|-------|-------|\n| P50 latency | 480ms | 48ms | -90% |\n| P95 latency | 1,240ms | 120ms | -90% |\n| P99 latency | 3,100ms | 280ms | -91% |\n| RPS @ 50 VUs | 42 | 380 | +804% |\n| Error rate | 0.8% | 0% | -100% |\n| DB queries\u002Freq | 23 | 1 | -96% |\n\n### Verification\nLoad test run: [link to k6 output]\n```\n\n---\n\n## Optimization Checklist\n\n### Quick wins (check these first)\n\n```\nDatabase\n□ Missing indexes on WHERE\u002FORDER BY columns\n□ N+1 queries (check query count per request)\n□ Loading all columns when only 2-3 needed (SELECT *)\n□ No LIMIT on unbounded queries\n□ Missing connection pool (creating new connection per request)\n\nNode.js\n□ Sync I\u002FO (fs.readFileSync) in hot path\n□ JSON.parse\u002Fstringify of large objects in hot loop\n□ Missing caching for expensive computations\n□ No compression (gzip\u002Fbrotli) on responses\n□ Dependencies loaded in request handler (move to module level)\n\nBundle\n□ Moment.js → dayjs\u002Fdate-fns\n□ Lodash (full) → lodash\u002Ffunction imports\n□ Static imports of heavy components → dynamic imports\n□ Images not optimized \u002F not using next\u002Fimage\n□ No code splitting on routes\n\nAPI\n□ No pagination on list endpoints\n□ No response caching (Cache-Control headers)\n□ Serial awaits that could be parallel (Promise.all)\n□ Fetching related data in a loop instead of JOIN\n```\n\n---\n\n## Common Pitfalls\n\n- **Optimizing without measuring** — you'll optimize the wrong thing\n- **Testing in development** — profile against production-like data volumes\n- **Ignoring P99** — P50 can look fine while P99 is catastrophic\n- **Premature optimization** — fix correctness first, then performance\n- **Not re-measuring** — always verify the fix actually improved things\n- **Load testing production** — use staging with production-size data\n\n---\n\n## Best Practices\n\n1. **Baseline first, always** — record metrics before touching anything\n2. **One change at a time** — isolate the variable to confirm causation\n3. **Profile with realistic data** — 10 rows in dev, millions in prod — different bottlenecks\n4. **Set performance budgets** — `p(95) \u003C 200ms` in CI thresholds with k6\n5. **Monitor continuously** — add Datadog\u002FPrometheus metrics for key paths\n6. **Cache invalidation strategy** — cache aggressively, invalidate precisely\n7. **Document the win** — before\u002Fafter in the PR description motivates the team\n","# Performance Profiler\n\n**Tier:** POWERFUL  \n**Category:** Engineering  \n**Domain:** Performance Engineering  \n\n---\n\n## Overview\n\nSystematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I\u002FO bottlenecks; generates flamegraphs; analyzes bundle sizes; optimizes database queries; detects memory leaks; and runs load tests with k6 and Artillery. Always measures before and after.\n\n## Core Capabilities\n\n- **CPU profiling** — flamegraphs for Node.js, py-spy for Python, pprof for Go\n- **Memory profiling** — heap snapshots, leak detection, GC pressure\n- **Bundle analysis** — webpack-bundle-analyzer, Next.js bundle analyzer\n- **Database optimization** — EXPLAIN ANALYZE, slow query log, N+1 detection\n- **Load testing** — k6 scripts, Artillery scenarios, ramp-up patterns\n- **Before\u002Fafter measurement** — establish baseline, profile, optimize, verify\n\n---\n\n## When to Use\n\n- App is slow and you don't know where the bottleneck is\n- P99 latency exceeds SLA before a release\n- Memory usage grows over time (suspected leak)\n- Bundle size increased after adding dependencies\n- Preparing for a traffic spike (load test before launch)\n- Database queries taking >100ms\n\n---\n\n## Quick Start\n\n```bash\n# Analyze a project for performance risk indicators\npython3 scripts\u002Fperformance_profiler.py \u002Fpath\u002Fto\u002Fproject\n\n# JSON output for CI integration\npython3 scripts\u002Fperformance_profiler.py \u002Fpath\u002Fto\u002Fproject --json\n\n# Custom large-file threshold\npython3 scripts\u002Fperformance_profiler.py \u002Fpath\u002Fto\u002Fproject --large-file-threshold-kb 256\n```\n\n---\n\n## Golden Rule: Measure First\n\n```bash\n# Establish baseline BEFORE any optimization\n# Record: P50, P95, P99 latency | RPS | error rate | memory usage\n\n# Wrong: \"I think the N+1 query is slow, let me fix it\"\n# Right: Profile → confirm bottleneck → fix → measure again → verify improvement\n```\n\n---\n\n## Node.js Profiling\n→ See references\u002Fprofiling-recipes.md for details\n\n## Before\u002FAfter Measurement Template\n\n```markdown\n## Performance Optimization: [What You Fixed]\n\n**Date:** 2026-03-01  \n**Engineer:** @username  \n**Ticket:** PROJ-123  \n\n### Problem\n[1-2 sentences: what was slow, how was it observed]\n\n### Root Cause\n[What the profiler revealed]\n\n### Baseline (Before)\n| Metric | Value |\n|--------|-------|\n| P50 latency | 480ms |\n| P95 latency | 1,240ms |\n| P99 latency | 3,100ms |\n| RPS @ 50 VUs | 42 |\n| Error rate | 0.8% |\n| DB queries\u002Freq | 23 (N+1) |\n\nProfiler evidence: [link to flamegraph or screenshot]\n\n### Fix Applied\n[What changed — code diff or description]\n\n### After\n| Metric | Before | After | Delta |\n|--------|--------|-------|-------|\n| P50 latency | 480ms | 48ms | -90% |\n| P95 latency | 1,240ms | 120ms | -90% |\n| P99 latency | 3,100ms | 280ms | -91% |\n| RPS @ 50 VUs | 42 | 380 | +804% |\n| Error rate | 0.8% | 0% | -100% |\n| DB queries\u002Freq | 23 | 1 | -96% |\n\n### Verification\nLoad test run: [link to k6 output]\n```\n\n---\n\n## Optimization Checklist\n\n### Quick wins (check these first)\n\n```\nDatabase\n□ Missing indexes on WHERE\u002FORDER BY columns\n□ N+1 queries (check query count per request)\n□ Loading all columns when only 2-3 needed (SELECT *)\n□ No LIMIT on unbounded queries\n□ Missing connection pool (creating new connection per request)\n\nNode.js\n□ Sync I\u002FO (fs.readFileSync) in hot path\n□ JSON.parse\u002Fstringify of large objects in hot loop\n□ Missing caching for expensive computations\n□ No compression (gzip\u002Fbrotli) on responses\n□ Dependencies loaded in request handler (move to module level)\n\nBundle\n□ Moment.js → dayjs\u002Fdate-fns\n□ Lodash (full) → lodash\u002Ffunction imports\n□ Static imports of heavy components → dynamic imports\n□ Images not optimized \u002F not using next\u002Fimage\n□ No code splitting on routes\n\nAPI\n□ No pagination on list endpoints\n□ No response caching (Cache-Control headers)\n□ Serial awaits that could be parallel (Promise.all)\n□ Fetching related data in a loop instead of JOIN\n```\n\n---\n\n## Common Pitfalls\n\n- **Optimizing without measuring** — you'll optimize the wrong thing\n- **Testing in development** — profile against production-like data volumes\n- **Ignoring P99** — P50 can look fine while P99 is catastrophic\n- **Premature optimization** — fix correctness first, then performance\n- **Not re-measuring** — always verify the fix actually improved things\n- **Load testing production** — use staging with production-size data\n\n---\n\n## Best Practices\n\n1. **Baseline first, always** — record metrics before touching anything\n2. **One change at a time** — isolate the variable to confirm causation\n3. **Profile with realistic data** — 10 rows in dev, millions in prod — different bottlenecks\n4. **Set performance budgets** — `p(95) \u003C 200ms` in CI thresholds with k6\n5. **Monitor continuously** — add Datadog\u002FPrometheus metrics for key paths\n6. **Cache invalidation strategy** — cache aggressively, invalidate precisely\n7. **Document the win** — before\u002Fafter in the PR description motivates the team\n",{"name":5,"description":7},"main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Fperformance-profiler",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add agisota\u002Fold-one --skill performance-profiler",{"tool":38,"command":39},"bunx","bunx skills add agisota\u002Fold-one --skill performance-profiler",{"tool":41,"command":42},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill performance-profiler","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fperformance-profiler\u002FSKILL.md",true,[],[47,54,61,70,77,84],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]