[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79F4K6MNAJ7N296S3CHXZ2S":3,"skill-same:01M79F4K6MNAJ7N296S3CHXZ2S":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M79F4K6MNAJ7N296S3CHXZ2S","instruments-profiling",null,"Use when profiling native macOS or iOS apps with Instruments\u002Fxctrace. Covers correct binary selection, CLI arguments, exports, and common gotchas.","BumpyClock\u002Fagent-templates","BumpyClock","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1883824?v=4","01M79EW0FDP9MFXH1FKH800S7T","Aditya Sharma","01M79EW0G27TTKZWTFQ8W5HVB4",2,"MIT","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fapple-platform-skills\u002Finstruments-profiling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: instruments-profiling\ndescription: Use when profiling native macOS or iOS apps with Instruments\u002Fxctrace. Covers correct binary selection, CLI arguments, exports, and common gotchas.\nmetadata:\n  short-description: Instruments profiling for macOS\u002FiOS apps\n---\n\n# Instruments Profiling (macOS\u002FiOS)\n\nUse this skill when the user wants performance profiling or stack analysis for native apps.\nFocus: Time Profiler, `xctrace` CLI, and picking the correct binary\u002Fapp instance.\n\n## Quick Start (CLI)\n\n- List templates: `xcrun xctrace list templates`\n- Record Time Profiler (launch):\n  - `xcrun xctrace record --template 'Time Profiler' --time-limit 60s --output \u002Ftmp\u002FApp.trace --launch -- \u002Fpath\u002FTo\u002FApp.app`\n- Record Time Profiler (attach):\n  - Launch app yourself, get PID, then:\n  - `xcrun xctrace record --template 'Time Profiler' --time-limit 60s --output \u002Ftmp\u002FApp.trace --attach \u003Cpid>`\n- Open trace in Instruments:\n  - `open -a Instruments \u002Ftmp\u002FApp.trace`\n\nNote: `xcrun xctrace --help` is not a valid subcommand. Use `xcrun xctrace help record`.\n\n## Picking the Correct Binary (Critical)\n\n**Gotcha: Instruments may profile the wrong app** (e.g., one in `\u002FApplications`) if LaunchServices resolves a different bundle.\nUse these rules:\n\n- Prefer direct binary path for deterministic launch:\n  - `xcrun xctrace record ... --launch -- \u002Fpath\u002FApp.app\u002FContents\u002FMacOS\u002FApp`\n- If launching `.app`, ensure it’s the intended bundle:\n  - `open -n \u002Fpath\u002FApp.app`\n  - Verify with `ps -p \u003Cpid> -o comm= -o command=`\n- If both `\u002FApplications\u002FApp.app` and a local build exist, explicitly target the local build path.\n- After launch, confirm the process path before trusting the trace.\n\n## Command Arguments (xctrace)\n\n- `--template 'Time Profiler'`: template name from `xctrace list templates`.\n- `--launch -- \u003Ccmd>`: everything after `--` is the target command (binary or app bundle).\n- `--attach \u003Cpid|name>`: attach to running process.\n- `--output \u003Cpath>`: `.trace` output. If omitted, file saved in CWD.\n- `--time-limit 60s|5m`: set capture duration.\n- `--device \u003Cname|UDID>`: required for iOS device runs.\n- `--target-stdout -`: stream launched process stdout to terminal (useful for CLI tools).\n\n## Exporting Stacks (CLI)\n\n- Inspect trace tables:\n  - `xcrun xctrace export --input \u002Ftmp\u002FApp.trace --toc`\n- Export raw time-profile samples:\n  - `xcrun xctrace export --input \u002Ftmp\u002FApp.trace --xpath '\u002Ftrace-toc\u002Frun[@number=\"1\"]\u002Fdata\u002Ftable[@schema=\"time-profile\"]' --output \u002Ftmp\u002Ftime-profile.xml`\n- Post-process in a script (Python\u002FRust) to aggregate stacks.\n\n## Instruments UI Workflow\n\n- Template: Time Profiler\n- Use “Record” and capture the slow path (startup vs steady-state)\n- Call Tree tips:\n  - Hide System Libraries\n  - Invert Call Tree\n  - Separate by Thread\n  - Focus on hot frames and call counts\n\n## Gotchas & Fixes\n\n- **Wrong app profiled**: LaunchServices resolves installed app instead of local build.\n  - Fix: use direct binary path or `--attach` with known PID.\n- **No samples \u002F empty trace**: App exits quickly or never hits work.\n  - Fix: longer capture, trigger workload during recording.\n- **Privacy prompts**: `xctrace` may need Developer Tools permission.\n  - Fix: System Settings → Privacy & Security → Developer Tools → allow Terminal\u002FXcode.\n- **Large XML exports**: `time-profile` exports are huge.\n  - Fix: filter with XPath and aggregate offline; don’t print to terminal.\n\n## iOS Specific Notes\n\n- Device: use `xcrun xctrace list devices` and `--device \u003CUDID>`.\n- Launch via Xcode if needed; attach with `xctrace --attach`.\n- Ensure debug symbols for meaningful stacks.\n\n## Verification Checklist\n\n- Confirm trace process path matches target build.\n- Confirm stacks show expected app frames.\n- Capture covers the slow operation (startup\u002Frefresh). \n- Export stacks for automated diffing if optimizing.\n","# Instruments Profiling (macOS\u002FiOS)\n\nUse this skill when the user wants performance profiling or stack analysis for native apps.\nFocus: Time Profiler, `xctrace` CLI, and picking the correct binary\u002Fapp instance.\n\n## Quick Start (CLI)\n\n- List templates: `xcrun xctrace list templates`\n- Record Time Profiler (launch):\n  - `xcrun xctrace record --template 'Time Profiler' --time-limit 60s --output \u002Ftmp\u002FApp.trace --launch -- \u002Fpath\u002FTo\u002FApp.app`\n- Record Time Profiler (attach):\n  - Launch app yourself, get PID, then:\n  - `xcrun xctrace record --template 'Time Profiler' --time-limit 60s --output \u002Ftmp\u002FApp.trace --attach \u003Cpid>`\n- Open trace in Instruments:\n  - `open -a Instruments \u002Ftmp\u002FApp.trace`\n\nNote: `xcrun xctrace --help` is not a valid subcommand. Use `xcrun xctrace help record`.\n\n## Picking the Correct Binary (Critical)\n\n**Gotcha: Instruments may profile the wrong app** (e.g., one in `\u002FApplications`) if LaunchServices resolves a different bundle.\nUse these rules:\n\n- Prefer direct binary path for deterministic launch:\n  - `xcrun xctrace record ... --launch -- \u002Fpath\u002FApp.app\u002FContents\u002FMacOS\u002FApp`\n- If launching `.app`, ensure it’s the intended bundle:\n  - `open -n \u002Fpath\u002FApp.app`\n  - Verify with `ps -p \u003Cpid> -o comm= -o command=`\n- If both `\u002FApplications\u002FApp.app` and a local build exist, explicitly target the local build path.\n- After launch, confirm the process path before trusting the trace.\n\n## Command Arguments (xctrace)\n\n- `--template 'Time Profiler'`: template name from `xctrace list templates`.\n- `--launch -- \u003Ccmd>`: everything after `--` is the target command (binary or app bundle).\n- `--attach \u003Cpid|name>`: attach to running process.\n- `--output \u003Cpath>`: `.trace` output. If omitted, file saved in CWD.\n- `--time-limit 60s|5m`: set capture duration.\n- `--device \u003Cname|UDID>`: required for iOS device runs.\n- `--target-stdout -`: stream launched process stdout to terminal (useful for CLI tools).\n\n## Exporting Stacks (CLI)\n\n- Inspect trace tables:\n  - `xcrun xctrace export --input \u002Ftmp\u002FApp.trace --toc`\n- Export raw time-profile samples:\n  - `xcrun xctrace export --input \u002Ftmp\u002FApp.trace --xpath '\u002Ftrace-toc\u002Frun[@number=\"1\"]\u002Fdata\u002Ftable[@schema=\"time-profile\"]' --output \u002Ftmp\u002Ftime-profile.xml`\n- Post-process in a script (Python\u002FRust) to aggregate stacks.\n\n## Instruments UI Workflow\n\n- Template: Time Profiler\n- Use “Record” and capture the slow path (startup vs steady-state)\n- Call Tree tips:\n  - Hide System Libraries\n  - Invert Call Tree\n  - Separate by Thread\n  - Focus on hot frames and call counts\n\n## Gotchas & Fixes\n\n- **Wrong app profiled**: LaunchServices resolves installed app instead of local build.\n  - Fix: use direct binary path or `--attach` with known PID.\n- **No samples \u002F empty trace**: App exits quickly or never hits work.\n  - Fix: longer capture, trigger workload during recording.\n- **Privacy prompts**: `xctrace` may need Developer Tools permission.\n  - Fix: System Settings → Privacy & Security → Developer Tools → allow Terminal\u002FXcode.\n- **Large XML exports**: `time-profile` exports are huge.\n  - Fix: filter with XPath and aggregate offline; don’t print to terminal.\n\n## iOS Specific Notes\n\n- Device: use `xcrun xctrace list devices` and `--device \u003CUDID>`.\n- Launch via Xcode if needed; attach with `xctrace --attach`.\n- Ensure debug symbols for meaningful stacks.\n\n## Verification Checklist\n\n- Confirm trace process path matches target build.\n- Confirm stacks show expected app frames.\n- Capture covers the slow operation (startup\u002Frefresh). \n- Export stacks for automated diffing if optimizing.\n",{"name":5,"metadata":24,"description":7},{"short-description":25},"Instruments profiling for macOS\u002FiOS apps","main","e24b64bdac040ad169ed16b14853eff1b20cd726","skills_archive\u002Fapple-platform-skills\u002Finstruments-profiling",0,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates","https:\u002F\u002Fgithub.com\u002FBumpyClock","2026-11-14 03:12:06",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add BumpyClock\u002Fagent-templates --skill instruments-profiling",{"tool":39,"command":40},"bunx","bunx skills add BumpyClock\u002Fagent-templates --skill instruments-profiling",{"tool":42,"command":43},"pnpm","pnpm dlx skills add BumpyClock\u002Fagent-templates --skill instruments-profiling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fapple-platform-skills\u002Finstruments-profiling\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"agents\u002Fopenai.yaml","REFERENCE","参考文档",208,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fapple-platform-skills\u002Finstruments-profiling\u002Fagents\u002Fopenai.yaml",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M79FEE6E257MWVEBY43X0NVN","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M79FEB8GTJC6ZHDK67T40R20","workflow-from-chats","Extract preferences from agent chats → skills, rules, workflow docs. For learning preferences, mining feedback, personalizing workflows.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fworkflow-from-chats\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M79FE7TMNGVZZ0M8NV4N0X6N","winui3-csharp-app","WinUI 3 \u002F Windows App SDK desktop apps in C#\u002FXAML. MVVM, bindings, navigation, Mica\u002FAcrylic, windowing, packaging, performance.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwinui3-csharp-app\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79FE31HY46BHN67CQGB7MVJ","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M79FE0N7MGWDG8SCD60FWTV5","what-did-i-get-done","Summarize authored commits over a user-specified time period into a concise status update.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhat-did-i-get-done\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M79FDYBJG9QNCQC0MMVBDT80","weekly-review","Produce a short weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fweekly-review\u002FSKILL.md",[],[]]