[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71NJ84N0ZRYE7CJ61SAS5G4":3,"skill-same:01M71NJ84N0ZRYE7CJ61SAS5G4":90},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M71NJ84N0ZRYE7CJ61SAS5G4","ln-811-performance-profiler",null,"Profiles runtime performance with CPU, memory, and I\u002FO metrics. Use when measuring bottlenecks before optimization.","vitalikpestov\u002FSkills-Catalog","vitalikpestov","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13882997?v=4","01M71N4QG0CWRXX4R24JQZXDDQ","Vitalik Pestov","01M71N4QGMSYRW607DDSE0CQMM",2,"MIT","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"performance","ln","ln 811 performance profiler","profiler","performance profiler","memory","when","CPU","metrics","runtime","Optimization","profiles","use","with","2026-11-10 10:56:23",false,"---\nname: ln-811-performance-profiler\ndescription: \"Profiles runtime performance with CPU, memory, and I\u002FO metrics. Use when measuring bottlenecks before optimization.\"\nlicense: MIT\n---\n\n> **Paths:** File paths (`references\u002F`, `..\u002Fln-*`) are relative to this skill directory.\n\n# ln-811-performance-profiler\n\n**Type:** L3 Worker\n**Category:** 8XX Optimization\n\nRuntime profiler that executes the optimization target, measures multiple metrics (CPU, memory, I\u002FO, time), instruments code for per-function breakdown, and produces a standardized performance map from real data.\n\n---\n\n## Overview\n\n| Aspect | Details |\n|--------|---------|\n| **Input** | Problem statement: target (file\u002Fendpoint\u002Fpipeline) + observed metric |\n| **Output** | Performance map (multi-metric, per-function), suspicion stack, bottleneck classification |\n| **Pattern** | Discover test → Baseline run → Static analysis → Deep profile → Performance map → Report |\n\n---\n\n## Workflow\n\n**Phases:** Test Discovery → Baseline Run → Static Analysis → Deep Profile → Performance Map → Report\n\n---\n\n## Phase 0: Test Discovery\u002FCreation\n\n**MANDATORY READ:** Load `references\u002Fci_tool_detection.md` for test framework detection.\n**MANDATORY READ:** Load `references\u002Fbenchmark_generation.md` for auto-generating benchmarks when none exist.\n\nFind or create commands that exercise the optimization target. Two outputs: `test_command` (profiling\u002Fmeasurement) and `e2e_test_command` (functional safety gate).\n\n### Step 1: Discover test_command\n\n| Priority | Method | Action |\n|----------|--------|--------|\n| 1 | User-provided | User specifies test command or API endpoint |\n| 2 | Discover existing E2E test | Grep test files for target entry point (stop at first match) |\n| 3 | Create test script | Generate per `references\u002Fbenchmark_generation.md` to `.hex-skills\u002Foptimization\u002F{slug}\u002Fprofile_test.sh` |\n\n**E2E discovery protocol** (stop at first match):\n\n| Priority | Method | How |\n|----------|--------|-----|\n| 1 | Route-based search | Grep e2e\u002Fintegration test files for entry point route |\n| 2 | Function-based search | Grep for entry point function name |\n| 3 | Module-based search | Grep for import of entry point module |\n\n**Test creation** (if no existing test found):\n\n| Target Type | Generated Script |\n|-------------|-----------------|\n| API endpoint | `curl -w \"%{time_total}\" -o \u002Fdev\u002Fnull -s {endpoint}` |\n| Function | Stack-specific benchmark per `references\u002Fbenchmark_generation.md` |\n| Pipeline | Full pipeline invocation with test input |\n\n### Step 2: Discover e2e_test_command\n\nIf `test_command` came from E2E discovery (Step 1 priority 2): `e2e_test_command = test_command`.\n\nOtherwise, run E2E discovery protocol again (same 3-priority table) to find a separate functional safety test.\n\nIf not found: `e2e_test_command = null`, log: `WARNING: No e2e test covers {entry_point}. Full test suite serves as functional gate.`\n\n### Output\n\n| Field | Description |\n|-------|-------------|\n| `test_command` | Command for profiling\u002Fmeasurement |\n| `e2e_test_command` | Command for functional safety gate (may equal test_command, or null) |\n| `e2e_test_source` | Discovery method: user \u002F route \u002F function \u002F module \u002F none |\n\n---\n\n## Phase 1: Baseline Run (Multi-Metric)\n\nRun `test_command` with system-level profiling. Capture simultaneously:\n\n| Metric | How to Capture | When |\n|--------|---------------|------|\n| Wall time | `time` wrapper or test harness | Always |\n| CPU time (user+sys) | `\u002Fusr\u002Fbin\u002Ftime -v` or language profiler | Always |\n| Memory peak (RSS) | `\u002Fusr\u002Fbin\u002Ftime -v` (Max RSS) or `tracemalloc` \u002F `process.memoryUsage()` | Always |\n| I\u002FO bytes | `\u002Fusr\u002Fbin\u002Ftime -v` or structured logs | If I\u002FO suspected |\n| HTTP round-trips | Count from structured logs or application metrics | If network I\u002FO in call graph |\n| GPU utilization | `nvidia-smi --query-gpu` | Only if CUDA\u002FGPU detected in stack |\n\n### Baseline Protocol\n\n| Parameter | Value |\n|-----------|-------|\n| Runs | 3 |\n| Metric | Median |\n| Warm-up | 1 discarded run |\n| Output | `baseline` — multi-metric snapshot |\n\n### Monitor for Profiler Runs (Claude Code 2.1.98+)\n\n**MANDATORY READ:** Load `references\u002Fmonitor_integration_pattern.md`\n\nDuring baseline and deep profile runs:\n`Monitor(command=\"{test_command} 2>&1\", timeout_ms=300000, description=\"profiler run N\")`\n\nDetect crashes or infinite loops immediately. Fallback: `Bash` with `timeout`.\n\n---\n\n## Phase 2: Static Analysis → Instrumentation Points\n\n**MANDATORY READ:** Load [bottleneck_classification.md](references\u002Fbottleneck_classification.md)\n\nTrace call chain from code + build suspicion stack. **Purpose:** guide WHERE to instrument in Phase 3.\n\n### Step 1: Trace Call Chain\n\nStarting from entry point, trace depth-first (max depth 5). At each step, READ the full function body.\n\n**Cross-service tracing:** If `service_topology` is available from coordinator and a step makes an HTTP\u002FgRPC call to another service whose code is accessible:\n\n| Situation | Action |\n|-----------|--------|\n| HTTP call to service with code in submodule\u002Fmonorepo | Follow into that service's handler: resolve route → trace handler code (depth resets to 0 for the new service) |\n| HTTP call to service without accessible code | Classify as External, record latency estimate |\n| gRPC\u002Fmessage queue to known service | Same as HTTP — follow into handler if code accessible |\n\nRecord `service: \"{service_name}\"` on each step to track which service owns it. The performance_map `steps` tree can span multiple services.\n\n**Depth-First Rule:** If code of the called service is accessible — ALWAYS profile INSIDE. NEVER classify an accessible service as \"External\u002Fslow\" without profiling its internals. \"Slow\" is a symptom, not a diagnosis.\n\n**5 Whys for each bottleneck:** Before reporting a bottleneck, chain \"why?\" until you reach config\u002Farchitecture level:\n1. \"What is slow?\" → alignment service (5.9s) 2. \"Why?\" → 6 pairs × ~1s each 3. \"Why ~1s per pair?\" → O(n²) mwmf computation 4. \"Why O(n²)?\" → library default, not production config 5. \"Why default?\" → `matching_methods` not configured → **root cause = config**\n\n### Step 2: Classify & Suspicion Scan\n\nFor each step, classify by type (CPU, I\u002FO-DB, I\u002FO-Network, I\u002FO-File, Architecture, External, Cache) and scan for performance concerns.\n\nSuspicion checklist (**minimum, not limitation**):\n\n| Category | What to Look For |\n|----------|-----------------|\n| Connection management | Client created per-request? Missing pooling? Missing reuse? |\n| Data flow | Data read multiple times? Over-fetching? Unnecessary transforms? |\n| Async patterns | Sync I\u002FO in async context? Sequential awaits without data dependency? |\n| Resource lifecycle | Unclosed connections? Temp files? Memory accumulation in loop? |\n| Configuration | Hardcoded timeouts? Default pool sizes? Missing batch size config? |\n| Redundant work | Same validation at multiple layers? Same data loaded twice? |\n| Architecture | N+1 in loop? Batch API unused? Cache infra unused? Sequential-when-parallel? |\n| *(open)* | Anything else spotted — checklist does not limit findings |\n\n### Step 2b: Suspicion Deduplication\n\n**MANDATORY READ:** Load `references\u002Foutput_normalization.md`\n\nAfter generating suspicions across all call chain steps, normalize and deduplicate per §1-§2:\n- Normalize suspicion descriptions (replace specific values with placeholders)\n- Group identical suspicions across different steps → merge into single entry with `affected_steps: [list]`\n- Example: \"Missing connection pooling\" found in steps 1.1, 1.2, 1.3 → one suspicion with `affected_steps: [\"1.1\", \"1.2\", \"1.3\"]`\n\n### Step 3: Verify & Map to Instrumentation Points\n\n```\nFOR each suspicion:\n  1. VERIFY: follow code to confirm or dismiss\n  2. VERDICT: CONFIRMED → map to instrumentation point | DISMISSED → log reason\n  3. For each CONFIRMED suspicion, identify:\n     - function to wrap with timing\n     - I\u002FO call to count\n     - memory allocation to track\n```\n\n### Profiler Selection (per stack)\n\n| Stack | Non-invasive profiler | Invasive (if non-invasive insufficient) |\n|-------|----------------------|----------------------------------------|\n| Python | `py-spy`, `cProfile` | `time.perf_counter()` decorators |\n| Node.js | `clinic`, `--prof` | `console.time()` wrappers |\n| Go | `pprof` (built-in) | Usually not needed |\n| .NET | `dotnet-trace` | `Stopwatch` wrappers |\n| Rust | `cargo flamegraph` | `std::time::Instant` |\n\n**Stack detection:** per `references\u002Fci_tool_detection.md`.\n\n---\n\n## Phase 3: Deep Profile\n\n### Profiler Hierarchy (escalate as needed)\n\n| Level | Tool Examples | What It Shows | When to Use |\n|-------|--------------|---------------|-------------|\n| 1 | `py-spy`, `cProfile`, `pprof`, `dotnet-trace` | Function-level hotspots | Always — first pass |\n| 2 | `line_profiler`, per-line timing | Line-level timing in hotspot function | Hotspot function found but cause unclear |\n| 3 | `tracemalloc`, `memory_profiler` | Per-line memory allocation | Memory metrics abnormal in baseline |\n\n### Step 1: Non-Invasive Profiling (preferred)\n\nRun `test_command` with Level 1 profiler to get per-function breakdown without code changes.\n\n### Step 2: Escalation Decision\n\nAfter Level 1 profiler run, evaluate result against suspicion stack from Phase 2:\n\n| Profiler Result | Action |\n|-----------------|--------|\n| Hotspot function identified, time breakdown confirms suspicions | DONE — proceed to Phase 4 |\n| Hotspot identified but internal cause unclear (CPU vs I\u002FO inside one function) | Escalate to Level 2 (line-level timing) |\n| Memory baseline abnormal (peak or delta) | Escalate to Level 3 (memory profiler) |\n| Multiple suspicions unresolved — profiler granularity insufficient | Go to Step 3 (targeted instrumentation) |\n| Profiler unavailable or overhead > 20% of wall time | Go to Step 3 (targeted instrumentation) |\n\n### Stop Conditions (Profiler Escalation)\n\n| Condition | Action |\n|-----------|--------|\n| Hotspot identified with clear cause | STOP — proceed to Performance Map |\n| All 3 profiler levels exhausted | STOP — build map from best available data |\n| Instrumentation breaks tests | STOP — revert instrumentation, use non-invasive data only |\n| Profiler overhead > 20% of wall time | STOP — skip to targeted instrumentation |\n\n### Step 3: Targeted Instrumentation (proactive)\n\nAdd timing\u002Flogging along the call stack at instrumentation points identified in Phase 2 Step 3:\n\n```\n1. FOR each CONFIRMED suspicion without measured data:\n     Add timing wrapper around target function\u002FI\u002FO call\n     Add counter for I\u002FO round-trips if network\u002FDB suspected\n     (cross-service: instrument in the correct service's codebase)\n2. Re-run test_command (3 runs, median)\n3. Collect per-function measurements from logs\n4. Record list of instrumented files (may span multiple services)\n```\n\n| Instrumentation Type | When | Example |\n|---------------------|------|---------|\n| Timing wrapper | Always for unresolved suspicions | `time.perf_counter()` around function call |\n| I\u002FO call counter | Network or DB bottleneck suspected | Count HTTP requests, DB queries in loop |\n| Memory snapshot | Memory accumulation suspected | `tracemalloc.get_traced_memory()` before\u002Fafter |\n\n**KEEP instrumentation in place.** The executor reuses it for post-optimization per-function comparison, then cleans up after strike. Report `instrumented_files` in output.\n\n---\n\n## Phase 4: Build Performance Map\n\nStandardized format — feeds into `.hex-skills\u002Foptimization\u002F{slug}\u002Fcontext.md` for downstream consumption.\n\n```yaml\nperformance_map:\n  test_command: \"uv run pytest tests\u002Fautomated\u002Fe2e\u002Ftest_example.py -s\"\n  baseline:\n    wall_time_ms: 7280\n    cpu_time_ms: 850\n    memory_peak_mb: 256\n    memory_delta_mb: 45\n    io_read_bytes: 1200000\n    io_write_bytes: 500000\n    http_round_trips: 13\n  steps:                          # service field present only in multi-service topology\n    - id: \"1\"\n      function: \"process_job\"\n      location: \"app\u002Fservices\u002Fjob_processor.py:45\"\n      service: \"api\"             # optional — which service owns this step\n      wall_time_ms: 7200\n      time_share_pct: 99\n      type: \"function_call\"\n      children:\n        - id: \"1.1\"\n          function: \"translate_binary\"\n          wall_time_ms: 7100\n          type: \"function_call\"\n          children:\n            - id: \"1.1.1\"\n              function: \"tikal_extract\"\n              service: \"tikal\"   # cross-service: code traced into submodule\n              wall_time_ms: 2800\n              type: \"http_call\"\n              http_round_trips: 1\n            - id: \"1.1.2\"\n              function: \"mt_translate\"\n              service: \"mt-engine\"\n              wall_time_ms: 3500\n              type: \"http_call\"\n              http_round_trips: 13\n  bottleneck_classification: \"I\u002FO-Network\"\n  bottleneck_detail: \"13 sequential HTTP calls to MT service (3500ms)\"\n  top_bottlenecks:\n    - step: \"1.1.2\", type: \"I\u002FO-Network\", share: 48%\n    - step: \"1.1.1\", type: \"I\u002FO-Network\", share: 38%\n```\n\n---\n\n## Phase 5: Report\n\n### Report Structure\n\n```\nprofile_result:\n  entry_point_info:\n    type: \u003Cstring>                     # \"api_endpoint\" | \"function\" | \"pipeline\"\n    location: \u003Cstring>                 # file:line\n    route: \u003Cstring|null>               # API route (if endpoint)\n    function: \u003Cstring>                 # Entry point function name\n  performance_map: \u003Cobject>            # Full map from Phase 4\n  bottleneck_classification: \u003Cstring>  # Primary bottleneck type\n  bottleneck_detail: \u003Cstring>          # Human-readable description\n  top_bottlenecks:\n    - step, type, share, description\n  optimization_hints:                  # CONFIRMED suspicions only (Phase 2)\n    - hint with evidence\n  suspicion_stack:                     # Full audit trail (confirmed + dismissed)\n    - category: \u003Cstring>\n      location: \u003Cstring>\n      description: \u003Cstring>\n      verdict: \u003Cstring>               # \"confirmed\" | \"dismissed\"\n      evidence: \u003Cstring>\n      verification_note: \u003Cstring>\n  e2e_test:\n    command: \u003Cstring|null>             # E2E safety test command (from Phase 0)\n    source: \u003Cstring>                   # user \u002F route \u002F function \u002F module \u002F none\n  instrumented_files: [\u003Cstring>]       # Files with active instrumentation (empty if non-invasive only)\n  wrong_tool_indicators: []            # Empty = proceed, non-empty = exit\n```\n\n### Wrong Tool Indicators\n\n| Indicator | Condition |\n|-----------|-----------|\n| `external_service_no_alternative` | 90%+ measured time in external service, no batch\u002Fcache\u002Fparallel path |\n| `within_industry_norm` | Measured time within expected range for operation type |\n| `infrastructure_bound` | Bottleneck is hardware (measured via system metrics) |\n| `already_optimized` | Code already uses best patterns (confirmed by suspicion scan) |\n\n---\n\n## Error Handling\n\n| Error | Recovery |\n|-------|----------|\n| Cannot resolve entry point | Block: \"file\u002Ffunction not found at {path}\" |\n| Test command fails on unmodified code | Block: \"test fails before profiling — fix test first\" |\n| Profiler not available for stack | Fall back to invasive instrumentation (Phase 3 Step 2) |\n| Instrumentation breaks tests | Revert immediately: `git checkout -- .` |\n| Call chain too deep (> 5 levels) | Stop at depth 5, note truncation |\n| Cannot classify step type | Default to \"Unknown\", use measured time |\n| No I\u002FO detected (pure CPU) | Classify as CPU, focus on algorithm profiling |\n\n---\n\n## References\n\n- [bottleneck_classification.md](references\u002Fbottleneck_classification.md) — classification taxonomy\n- [latency_estimation.md](references\u002Flatency_estimation.md) — latency heuristics (fallback for static-only mode)\n- `references\u002Fci_tool_detection.md` — stack\u002Ftool detection\n- `references\u002Fbenchmark_generation.md` — benchmark templates per stack\n\n---\n\n## Runtime Summary Artifact\n\n**MANDATORY READ:** Load `references\u002Fcoordinator_summary_contract.md`\n\nEmit an `optimization-worker` summary envelope.\n\nManaged mode:\n- `ln-810` passes deterministic `runId` and exact `summaryArtifactPath`\n- write the summary to the provided `summaryArtifactPath`\n\nStandalone mode:\n- omit `runId` and `summaryArtifactPath`\n- write `.hex-skills\u002Fruntime-artifacts\u002Fruns\u002F{run_id}\u002Foptimization-worker\u002Fln-811--{identifier}.json`\n\n## Definition of Done\n\n- [ ] Test command discovered or created for optimization target\n- [ ] E2E safety test discovered (or documented as unavailable)\n- [ ] Baseline measured: wall time, CPU, memory (3 runs, median)\n- [ ] Call graph traced and function bodies read\n- [ ] Suspicion stack built: each suspicion verified and mapped to instrumentation point\n- [ ] Deep profile completed (non-invasive preferred, invasive if needed)\n- [ ] Instrumented files reported (cleanup deferred to executor)\n- [ ] Performance map built in standardized format (real measurements)\n- [ ] Top 3 bottlenecks identified from measured data\n- [ ] Wrong tool indicators evaluated from real metrics\n- [ ] optimization_hints contain only CONFIRMED suspicions with measurement evidence\n- [ ] Report prepared with measured findings\n- [ ] Optimization profile artifact written to the shared location\n\n---\n\n**Version:** 3.0.0\n**Last Updated:** 2026-03-15\n","> **Paths:** File paths (`references\u002F`, `..\u002Fln-*`) are relative to this skill directory.\n\n# ln-811-performance-profiler\n\n**Type:** L3 Worker\n**Category:** 8XX Optimization\n\nRuntime profiler that executes the optimization target, measures multiple metrics (CPU, memory, I\u002FO, time), instruments code for per-function breakdown, and produces a standardized performance map from real data.\n\n---\n\n## Overview\n\n| Aspect | Details |\n|--------|---------|\n| **Input** | Problem statement: target (file\u002Fendpoint\u002Fpipeline) + observed metric |\n| **Output** | Performance map (multi-metric, per-function), suspicion stack, bottleneck classification |\n| **Pattern** | Discover test → Baseline run → Static analysis → Deep profile → Performance map → Report |\n\n---\n\n## Workflow\n\n**Phases:** Test Discovery → Baseline Run → Static Analysis → Deep Profile → Performance Map → Report\n\n---\n\n## Phase 0: Test Discovery\u002FCreation\n\n**MANDATORY READ:** Load `references\u002Fci_tool_detection.md` for test framework detection.\n**MANDATORY READ:** Load `references\u002Fbenchmark_generation.md` for auto-generating benchmarks when none exist.\n\nFind or create commands that exercise the optimization target. Two outputs: `test_command` (profiling\u002Fmeasurement) and `e2e_test_command` (functional safety gate).\n\n### Step 1: Discover test_command\n\n| Priority | Method | Action |\n|----------|--------|--------|\n| 1 | User-provided | User specifies test command or API endpoint |\n| 2 | Discover existing E2E test | Grep test files for target entry point (stop at first match) |\n| 3 | Create test script | Generate per `references\u002Fbenchmark_generation.md` to `.hex-skills\u002Foptimization\u002F{slug}\u002Fprofile_test.sh` |\n\n**E2E discovery protocol** (stop at first match):\n\n| Priority | Method | How |\n|----------|--------|-----|\n| 1 | Route-based search | Grep e2e\u002Fintegration test files for entry point route |\n| 2 | Function-based search | Grep for entry point function name |\n| 3 | Module-based search | Grep for import of entry point module |\n\n**Test creation** (if no existing test found):\n\n| Target Type | Generated Script |\n|-------------|-----------------|\n| API endpoint | `curl -w \"%{time_total}\" -o \u002Fdev\u002Fnull -s {endpoint}` |\n| Function | Stack-specific benchmark per `references\u002Fbenchmark_generation.md` |\n| Pipeline | Full pipeline invocation with test input |\n\n### Step 2: Discover e2e_test_command\n\nIf `test_command` came from E2E discovery (Step 1 priority 2): `e2e_test_command = test_command`.\n\nOtherwise, run E2E discovery protocol again (same 3-priority table) to find a separate functional safety test.\n\nIf not found: `e2e_test_command = null`, log: `WARNING: No e2e test covers {entry_point}. Full test suite serves as functional gate.`\n\n### Output\n\n| Field | Description |\n|-------|-------------|\n| `test_command` | Command for profiling\u002Fmeasurement |\n| `e2e_test_command` | Command for functional safety gate (may equal test_command, or null) |\n| `e2e_test_source` | Discovery method: user \u002F route \u002F function \u002F module \u002F none |\n\n---\n\n## Phase 1: Baseline Run (Multi-Metric)\n\nRun `test_command` with system-level profiling. Capture simultaneously:\n\n| Metric | How to Capture | When |\n|--------|---------------|------|\n| Wall time | `time` wrapper or test harness | Always |\n| CPU time (user+sys) | `\u002Fusr\u002Fbin\u002Ftime -v` or language profiler | Always |\n| Memory peak (RSS) | `\u002Fusr\u002Fbin\u002Ftime -v` (Max RSS) or `tracemalloc` \u002F `process.memoryUsage()` | Always |\n| I\u002FO bytes | `\u002Fusr\u002Fbin\u002Ftime -v` or structured logs | If I\u002FO suspected |\n| HTTP round-trips | Count from structured logs or application metrics | If network I\u002FO in call graph |\n| GPU utilization | `nvidia-smi --query-gpu` | Only if CUDA\u002FGPU detected in stack |\n\n### Baseline Protocol\n\n| Parameter | Value |\n|-----------|-------|\n| Runs | 3 |\n| Metric | Median |\n| Warm-up | 1 discarded run |\n| Output | `baseline` — multi-metric snapshot |\n\n### Monitor for Profiler Runs (Claude Code 2.1.98+)\n\n**MANDATORY READ:** Load `references\u002Fmonitor_integration_pattern.md`\n\nDuring baseline and deep profile runs:\n`Monitor(command=\"{test_command} 2>&1\", timeout_ms=300000, description=\"profiler run N\")`\n\nDetect crashes or infinite loops immediately. Fallback: `Bash` with `timeout`.\n\n---\n\n## Phase 2: Static Analysis → Instrumentation Points\n\n**MANDATORY READ:** Load [bottleneck_classification.md](references\u002Fbottleneck_classification.md)\n\nTrace call chain from code + build suspicion stack. **Purpose:** guide WHERE to instrument in Phase 3.\n\n### Step 1: Trace Call Chain\n\nStarting from entry point, trace depth-first (max depth 5). At each step, READ the full function body.\n\n**Cross-service tracing:** If `service_topology` is available from coordinator and a step makes an HTTP\u002FgRPC call to another service whose code is accessible:\n\n| Situation | Action |\n|-----------|--------|\n| HTTP call to service with code in submodule\u002Fmonorepo | Follow into that service's handler: resolve route → trace handler code (depth resets to 0 for the new service) |\n| HTTP call to service without accessible code | Classify as External, record latency estimate |\n| gRPC\u002Fmessage queue to known service | Same as HTTP — follow into handler if code accessible |\n\nRecord `service: \"{service_name}\"` on each step to track which service owns it. The performance_map `steps` tree can span multiple services.\n\n**Depth-First Rule:** If code of the called service is accessible — ALWAYS profile INSIDE. NEVER classify an accessible service as \"External\u002Fslow\" without profiling its internals. \"Slow\" is a symptom, not a diagnosis.\n\n**5 Whys for each bottleneck:** Before reporting a bottleneck, chain \"why?\" until you reach config\u002Farchitecture level:\n1. \"What is slow?\" → alignment service (5.9s) 2. \"Why?\" → 6 pairs × ~1s each 3. \"Why ~1s per pair?\" → O(n²) mwmf computation 4. \"Why O(n²)?\" → library default, not production config 5. \"Why default?\" → `matching_methods` not configured → **root cause = config**\n\n### Step 2: Classify & Suspicion Scan\n\nFor each step, classify by type (CPU, I\u002FO-DB, I\u002FO-Network, I\u002FO-File, Architecture, External, Cache) and scan for performance concerns.\n\nSuspicion checklist (**minimum, not limitation**):\n\n| Category | What to Look For |\n|----------|-----------------|\n| Connection management | Client created per-request? Missing pooling? Missing reuse? |\n| Data flow | Data read multiple times? Over-fetching? Unnecessary transforms? |\n| Async patterns | Sync I\u002FO in async context? Sequential awaits without data dependency? |\n| Resource lifecycle | Unclosed connections? Temp files? Memory accumulation in loop? |\n| Configuration | Hardcoded timeouts? Default pool sizes? Missing batch size config? |\n| Redundant work | Same validation at multiple layers? Same data loaded twice? |\n| Architecture | N+1 in loop? Batch API unused? Cache infra unused? Sequential-when-parallel? |\n| *(open)* | Anything else spotted — checklist does not limit findings |\n\n### Step 2b: Suspicion Deduplication\n\n**MANDATORY READ:** Load `references\u002Foutput_normalization.md`\n\nAfter generating suspicions across all call chain steps, normalize and deduplicate per §1-§2:\n- Normalize suspicion descriptions (replace specific values with placeholders)\n- Group identical suspicions across different steps → merge into single entry with `affected_steps: [list]`\n- Example: \"Missing connection pooling\" found in steps 1.1, 1.2, 1.3 → one suspicion with `affected_steps: [\"1.1\", \"1.2\", \"1.3\"]`\n\n### Step 3: Verify & Map to Instrumentation Points\n\n```\nFOR each suspicion:\n  1. VERIFY: follow code to confirm or dismiss\n  2. VERDICT: CONFIRMED → map to instrumentation point | DISMISSED → log reason\n  3. For each CONFIRMED suspicion, identify:\n     - function to wrap with timing\n     - I\u002FO call to count\n     - memory allocation to track\n```\n\n### Profiler Selection (per stack)\n\n| Stack | Non-invasive profiler | Invasive (if non-invasive insufficient) |\n|-------|----------------------|----------------------------------------|\n| Python | `py-spy`, `cProfile` | `time.perf_counter()` decorators |\n| Node.js | `clinic`, `--prof` | `console.time()` wrappers |\n| Go | `pprof` (built-in) | Usually not needed |\n| .NET | `dotnet-trace` | `Stopwatch` wrappers |\n| Rust | `cargo flamegraph` | `std::time::Instant` |\n\n**Stack detection:** per `references\u002Fci_tool_detection.md`.\n\n---\n\n## Phase 3: Deep Profile\n\n### Profiler Hierarchy (escalate as needed)\n\n| Level | Tool Examples | What It Shows | When to Use |\n|-------|--------------|---------------|-------------|\n| 1 | `py-spy`, `cProfile`, `pprof`, `dotnet-trace` | Function-level hotspots | Always — first pass |\n| 2 | `line_profiler`, per-line timing | Line-level timing in hotspot function | Hotspot function found but cause unclear |\n| 3 | `tracemalloc`, `memory_profiler` | Per-line memory allocation | Memory metrics abnormal in baseline |\n\n### Step 1: Non-Invasive Profiling (preferred)\n\nRun `test_command` with Level 1 profiler to get per-function breakdown without code changes.\n\n### Step 2: Escalation Decision\n\nAfter Level 1 profiler run, evaluate result against suspicion stack from Phase 2:\n\n| Profiler Result | Action |\n|-----------------|--------|\n| Hotspot function identified, time breakdown confirms suspicions | DONE — proceed to Phase 4 |\n| Hotspot identified but internal cause unclear (CPU vs I\u002FO inside one function) | Escalate to Level 2 (line-level timing) |\n| Memory baseline abnormal (peak or delta) | Escalate to Level 3 (memory profiler) |\n| Multiple suspicions unresolved — profiler granularity insufficient | Go to Step 3 (targeted instrumentation) |\n| Profiler unavailable or overhead > 20% of wall time | Go to Step 3 (targeted instrumentation) |\n\n### Stop Conditions (Profiler Escalation)\n\n| Condition | Action |\n|-----------|--------|\n| Hotspot identified with clear cause | STOP — proceed to Performance Map |\n| All 3 profiler levels exhausted | STOP — build map from best available data |\n| Instrumentation breaks tests | STOP — revert instrumentation, use non-invasive data only |\n| Profiler overhead > 20% of wall time | STOP — skip to targeted instrumentation |\n\n### Step 3: Targeted Instrumentation (proactive)\n\nAdd timing\u002Flogging along the call stack at instrumentation points identified in Phase 2 Step 3:\n\n```\n1. FOR each CONFIRMED suspicion without measured data:\n     Add timing wrapper around target function\u002FI\u002FO call\n     Add counter for I\u002FO round-trips if network\u002FDB suspected\n     (cross-service: instrument in the correct service's codebase)\n2. Re-run test_command (3 runs, median)\n3. Collect per-function measurements from logs\n4. Record list of instrumented files (may span multiple services)\n```\n\n| Instrumentation Type | When | Example |\n|---------------------|------|---------|\n| Timing wrapper | Always for unresolved suspicions | `time.perf_counter()` around function call |\n| I\u002FO call counter | Network or DB bottleneck suspected | Count HTTP requests, DB queries in loop |\n| Memory snapshot | Memory accumulation suspected | `tracemalloc.get_traced_memory()` before\u002Fafter |\n\n**KEEP instrumentation in place.** The executor reuses it for post-optimization per-function comparison, then cleans up after strike. Report `instrumented_files` in output.\n\n---\n\n## Phase 4: Build Performance Map\n\nStandardized format — feeds into `.hex-skills\u002Foptimization\u002F{slug}\u002Fcontext.md` for downstream consumption.\n\n```yaml\nperformance_map:\n  test_command: \"uv run pytest tests\u002Fautomated\u002Fe2e\u002Ftest_example.py -s\"\n  baseline:\n    wall_time_ms: 7280\n    cpu_time_ms: 850\n    memory_peak_mb: 256\n    memory_delta_mb: 45\n    io_read_bytes: 1200000\n    io_write_bytes: 500000\n    http_round_trips: 13\n  steps:                          # service field present only in multi-service topology\n    - id: \"1\"\n      function: \"process_job\"\n      location: \"app\u002Fservices\u002Fjob_processor.py:45\"\n      service: \"api\"             # optional — which service owns this step\n      wall_time_ms: 7200\n      time_share_pct: 99\n      type: \"function_call\"\n      children:\n        - id: \"1.1\"\n          function: \"translate_binary\"\n          wall_time_ms: 7100\n          type: \"function_call\"\n          children:\n            - id: \"1.1.1\"\n              function: \"tikal_extract\"\n              service: \"tikal\"   # cross-service: code traced into submodule\n              wall_time_ms: 2800\n              type: \"http_call\"\n              http_round_trips: 1\n            - id: \"1.1.2\"\n              function: \"mt_translate\"\n              service: \"mt-engine\"\n              wall_time_ms: 3500\n              type: \"http_call\"\n              http_round_trips: 13\n  bottleneck_classification: \"I\u002FO-Network\"\n  bottleneck_detail: \"13 sequential HTTP calls to MT service (3500ms)\"\n  top_bottlenecks:\n    - step: \"1.1.2\", type: \"I\u002FO-Network\", share: 48%\n    - step: \"1.1.1\", type: \"I\u002FO-Network\", share: 38%\n```\n\n---\n\n## Phase 5: Report\n\n### Report Structure\n\n```\nprofile_result:\n  entry_point_info:\n    type: \u003Cstring>                     # \"api_endpoint\" | \"function\" | \"pipeline\"\n    location: \u003Cstring>                 # file:line\n    route: \u003Cstring|null>               # API route (if endpoint)\n    function: \u003Cstring>                 # Entry point function name\n  performance_map: \u003Cobject>            # Full map from Phase 4\n  bottleneck_classification: \u003Cstring>  # Primary bottleneck type\n  bottleneck_detail: \u003Cstring>          # Human-readable description\n  top_bottlenecks:\n    - step, type, share, description\n  optimization_hints:                  # CONFIRMED suspicions only (Phase 2)\n    - hint with evidence\n  suspicion_stack:                     # Full audit trail (confirmed + dismissed)\n    - category: \u003Cstring>\n      location: \u003Cstring>\n      description: \u003Cstring>\n      verdict: \u003Cstring>               # \"confirmed\" | \"dismissed\"\n      evidence: \u003Cstring>\n      verification_note: \u003Cstring>\n  e2e_test:\n    command: \u003Cstring|null>             # E2E safety test command (from Phase 0)\n    source: \u003Cstring>                   # user \u002F route \u002F function \u002F module \u002F none\n  instrumented_files: [\u003Cstring>]       # Files with active instrumentation (empty if non-invasive only)\n  wrong_tool_indicators: []            # Empty = proceed, non-empty = exit\n```\n\n### Wrong Tool Indicators\n\n| Indicator | Condition |\n|-----------|-----------|\n| `external_service_no_alternative` | 90%+ measured time in external service, no batch\u002Fcache\u002Fparallel path |\n| `within_industry_norm` | Measured time within expected range for operation type |\n| `infrastructure_bound` | Bottleneck is hardware (measured via system metrics) |\n| `already_optimized` | Code already uses best patterns (confirmed by suspicion scan) |\n\n---\n\n## Error Handling\n\n| Error | Recovery |\n|-------|----------|\n| Cannot resolve entry point | Block: \"file\u002Ffunction not found at {path}\" |\n| Test command fails on unmodified code | Block: \"test fails before profiling — fix test first\" |\n| Profiler not available for stack | Fall back to invasive instrumentation (Phase 3 Step 2) |\n| Instrumentation breaks tests | Revert immediately: `git checkout -- .` |\n| Call chain too deep (> 5 levels) | Stop at depth 5, note truncation |\n| Cannot classify step type | Default to \"Unknown\", use measured time |\n| No I\u002FO detected (pure CPU) | Classify as CPU, focus on algorithm profiling |\n\n---\n\n## References\n\n- [bottleneck_classification.md](references\u002Fbottleneck_classification.md) — classification taxonomy\n- [latency_estimation.md](references\u002Flatency_estimation.md) — latency heuristics (fallback for static-only mode)\n- `references\u002Fci_tool_detection.md` — stack\u002Ftool detection\n- `references\u002Fbenchmark_generation.md` — benchmark templates per stack\n\n---\n\n## Runtime Summary Artifact\n\n**MANDATORY READ:** Load `references\u002Fcoordinator_summary_contract.md`\n\nEmit an `optimization-worker` summary envelope.\n\nManaged mode:\n- `ln-810` passes deterministic `runId` and exact `summaryArtifactPath`\n- write the summary to the provided `summaryArtifactPath`\n\nStandalone mode:\n- omit `runId` and `summaryArtifactPath`\n- write `.hex-skills\u002Fruntime-artifacts\u002Fruns\u002F{run_id}\u002Foptimization-worker\u002Fln-811--{identifier}.json`\n\n## Definition of Done\n\n- [ ] Test command discovered or created for optimization target\n- [ ] E2E safety test discovered (or documented as unavailable)\n- [ ] Baseline measured: wall time, CPU, memory (3 runs, median)\n- [ ] Call graph traced and function bodies read\n- [ ] Suspicion stack built: each suspicion verified and mapped to instrumentation point\n- [ ] Deep profile completed (non-invasive preferred, invasive if needed)\n- [ ] Instrumented files reported (cleanup deferred to executor)\n- [ ] Performance map built in standardized format (real measurements)\n- [ ] Top 3 bottlenecks identified from measured data\n- [ ] Wrong tool indicators evaluated from real metrics\n- [ ] optimization_hints contain only CONFIRMED suspicions with measurement evidence\n- [ ] Report prepared with measured findings\n- [ ] Optimization profile artifact written to the shared location\n\n---\n\n**Version:** 3.0.0\n**Last Updated:** 2026-03-15\n",{"name":5,"license":15,"description":7},"main","fbfb242f793fdf040f3a1a6b100896c188c228c8","_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler",1,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog","https:\u002F\u002Fgithub.com\u002Fvitalikpestov","Listing on crypto exchanges","2026-06-15 22:12:56",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add vitalikpestov\u002FSkills-Catalog --skill ln-811-performance-profiler",{"tool":52,"command":53},"bunx","bunx skills add vitalikpestov\u002FSkills-Catalog --skill ln-811-performance-profiler",{"tool":55,"command":56},"pnpm","pnpm dlx skills add vitalikpestov\u002FSkills-Catalog --skill ln-811-performance-profiler","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002FSKILL.md",true,[60,66,70,74,78,82,86],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fbenchmark_generation.md","REFERENCE","参考文档",3613,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002Freferences\u002Fbenchmark_generation.md",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fbottleneck_classification.md",5384,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002Freferences\u002Fbottleneck_classification.md",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fci_tool_detection.md",1986,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002Freferences\u002Fci_tool_detection.md",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fcoordinator_summary_contract.md",1009,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002Freferences\u002Fcoordinator_summary_contract.md",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Flatency_estimation.md",5196,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002Freferences\u002Flatency_estimation.md",{"path":83,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fmonitor_integration_pattern.md",2079,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002Freferences\u002Fmonitor_integration_pattern.md",{"path":87,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Foutput_normalization.md",3721,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_AI-Automation\u002Fclaude-code-skills-levnikolaevich\u002Fplugins\u002Foptimization-suite\u002Fskills\u002Fln-811-performance-profiler\u002Freferences\u002Foutput_normalization.md",[91,119,144,161,184,211],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":118},"01M71V1MC994P553631JZSWVYD","solana-dev","Use when user asks to \"build a Solana dapp\", \"write an Anchor program\", \"create a token\", \"debug Solana errors\", \"set up wallet connection\", \"test my Solana program\", \"deploy to devnet\", or \"explain Solana concepts\" (rent, accounts, PDAs, CPIs, etc.). End-to-end Solana development playbook covering wallet connection, Anchor\u002FPinocchio programs, Codama client generation, LiteSVM\u002FMollusk\u002FSurfpool testing, and security checklists. Integrates with the Solana MCP server for live documentation search. Prefers framework-kit (@solana\u002Fclient + @solana\u002Freact-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana\u002Fkit for client\u002FRPC code, and @solana\u002Fweb3-compat for legacy boundaries.","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Web3\u002Fsolana-dev\u002Fskill\u002FSKILL.md",[],[98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],"dev","solana dev","solana","Wallet","search","testing","solana cli","kit","MCP","web3","react","create","server","write","playbook","live","security","ui","concepts","toolchain","2026-11-10 13:02:02",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":118},"01M71TYQPHE2YGKTT7DG9QCW3K","generating-trading-signals","Generate trading signals using technical indicators (RSI, MACD, Bollinger Bands, etc.).\nCombines multiple indicators into composite signals with confidence scores.\nUse when analyzing assets for trading opportunities or checking technical indicators.\nTrigger with phrases like \"get trading signals\", \"check indicators\", \"analyze for entry\",\n\"scan for opportunities\", \"generate buy\u002Fsell signals\", or \"technical analysis\".","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Trading-Finance\u002Fgenerating-trading-signals\u002FSKILL.md",[],[126,127,128,129,130,131,132,133,134,135,136,137,31,25,138,139,140,141,142,143],"generating trading signals","signals","trading signals","trading","get","technical indicators","for","scan","rsi","trigger","python","technical","Bash","analysis","code","io","check","analyze",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":118},"01M71TY4CR3GKGQ3M12X9WN95Y","prediction-monitor","Prediction Monitor - Auto-activating skill for ML Deployment.\nTriggers on: prediction monitor, prediction monitor\nPart of the ML Deployment skill category.","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Trading-Finance\u002FAI Predictions\u002Fprediction-monitor\u002FSKILL.md",[],[151,152,153,132,154,155,111,156,157,158,159,160,138],"prediction","monitor","prediction monitor","deployment","read","edit","triggers","grep","auto","ml",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":118},"01M71TXD9MYXZC39HCPP909HTZ","strategy-advisor","High-level strategic thinking and business decision guidance for planning and direction-setting.\nUse when: making strategic decisions, evaluating business options, setting direction, analyzing\ntrade-offs, or when user mentions strategy, business planning, competitive analysis, or long-term planning.","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Product-Apps\u002Fstrategy-advisor\u002FSKILL.md",[],[168,169,170,171,172,173,174,175,176,132,177,178,179,31,180,181,25,182,139,183],"strategy advisor","strategy","advisor","competitive","setting","thinking","planning","direction","trade-offs","long","decision","strategic","business","apps","decisions","trade",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":188,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":118},"01M71TWHBT2R1P1FNWTW67ZREP","app-paywall-pilot","Design, audit, debug, and implement App Store-compliant mobile paywalls, subscription flows, pricing screens, trials, offers, feature gates, and subscription lifecycle UX. Use when the user asks to audit my paywall, fix App Store 3.1.2 rejection, improve trial-to-paid, choose plans\u002Fprices\u002Ftrials, review RevenueCat\u002FAdapty\u002FApphud\u002FSuperwall setup, calculate LTV\u002FROAS, or build paywall implementation.","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Product-Apps\u002Ffrom-dosesync\u002Fapp-paywall-pilot\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Product-Apps\u002Ffrom-dosesync\u002Fapp-paywall-pilot\u002FSKILL.md",[],[192,193,194,195,196,197,198,199,200,201,202,203,25,204,205,206,207,208,209,210],"app","paywall","app paywall pilot","paid","paywalls","prices","choose","flows","fix","improve","design","app store","review","audit","ux","subscription","mobile","my","calculate",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":215,"licenseFileUrl":216,"sourceHtmlUrl":217,"categories":218,"keywords":219,"publishedAt":118},"01M71TWET8GFKEB7ZHJPMQX29V","figma","Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Product-Apps\u002Ffigma\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Product-Apps\u002Ffigma\u002FSKILL.md",[],[213,220,221,222,223,135,202,106,31,25,224,225,140,226,110,227,228,229,230,231],"fetch","ids","mcp setup","translate","mcp server","Variables","task","Nodes","figma mcp","code implementation","node","assets"]