[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79AGWMSX782Q0X9PCQJM05S":3,"skill-same:01M79AGWMSX782Q0X9PCQJM05S":50},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M79AGWMSX782Q0X9PCQJM05S","grafana-profilecli-insights",null,"Query live Pyroscope profiles with profilecli, analyze them with pprof, and correlate hot functions with checked-out source code. Use when the user asks to investigate a service with a configured Pyroscope server, profilecli, and pprof.","yhyu13\u002FAgentSkillsVault","yhyu13","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19365678?v=4","01M79A3XCF5M26GEWS60XQQRWW","俞航","01M79A3XD7YZ779GGWS41K367S",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fdevops\u002Ftier2\u002Fgrafana-profilecli-insights\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: grafana-profilecli-insights\nlicense: Apache-2.0\ncompatibility: Requires profilecli and pprof, or Go with go tool pprof, on PATH plus access to a Pyroscope-compatible server.\ndescription: >\n  Query live Pyroscope profiles with profilecli, analyze them with pprof, and correlate hot functions with checked-out source code. Use when the user asks to investigate a service with a configured Pyroscope server, profilecli, and pprof.\nallowed-tools: Bash(profilecli:*) Bash(pprof:*) Bash(go tool pprof:*) Bash(git:*) Bash(mktemp:*) Read Grep Glob\n---\n\n# Profilecli Insights\n\nYou are a performance analysis assistant. Query a remote Pyroscope continuous profiling server with `profilecli`, then correlate the results with source code in the current repository to provide actionable insights.\n\nFollow these steps in order. Do not skip steps.\n\n## Step 1: Ensure profilecli is available\n\nCheck that `profilecli` is on PATH:\n\n```bash\nprofilecli --version\n```\n\nIf it is not found, instruct the user to download it from `https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fpyroscope\u002Freleases\u002Flatest\u002Fdownload\u002F`.\n\nSelect the command to use for all later profile analysis:\n\n```bash\nif command -v pprof >\u002Fdev\u002Fnull 2>&1; then\n  PPROF=(pprof)\nelse\n  PPROF=(go tool pprof)\nfi\n```\n\n## Step 2: Verify connectivity and data exists\n\nRun a series query to validate the connection and discover profile types:\n\n```bash\nprofilecli query series --label-names=__profile_type__ --output json\n```\n\nIf this succeeds, parse the JSON output and retain the available `__profile_type__` values. Common types include:\n\n- `process_cpu:cpu:nanoseconds:cpu:nanoseconds` (CPU)\n- `memory:alloc_space:bytes:space:bytes` (memory allocations)\n- `memory:inuse_space:bytes:space:bytes` (memory in-use)\n- `goroutine:goroutine:count:goroutine:count` (goroutines)\n- `mutex:contentions:count:contentions:count` (mutex contention)\n- `block:contentions:count:contentions:count` (block contention)\n\nYou need these profile types in Step 4.\n\nIf the query fails, help the user configure the connection:\n\n- Run a local Pyroscope server on port `4040`.\n- Or connect to Grafana with a service account token.\n\n`PROFILECLI_URL` is required. Set it to the Pyroscope server URL, such as `http:\u002F\u002Flocalhost:4040`, or to a Grafana data source proxy URL when using `PROFILECLI_TOKEN`, such as `https:\u002F\u002Fmy-grafana.example.com\u002Fapi\u002Fdatasources\u002Fproxy\u002Fuid\u002F\u003Cdatasource-uid>`.\n\n`PROFILECLI_TOKEN` is required for Grafana Cloud. It must be a Grafana service account token in `glsa_...` format with the Viewer role. `PROFILECLI_TENANT_ID` is optional for multi-tenant setups.\n\nThen stop and wait for the user to configure the environment and for the initial query to succeed.\n\n## Step 3: Discover services\n\nList available services and find ones that correlate with the checked-out repository:\n\n```bash\nprofilecli query series --query '{}' --label-names service_repository --label-names service_name --output json\n```\n\nParse the JSON output for `service_name` and `service_repository`. Compare `service_repository` to `git remote get-url origin`; matching services are most relevant. Match the user's question to one or more service names.\n\nIf the question does not clearly map to a service, show the available services, highlight repository matches, and ask the user which service to analyze.\n\n## Step 4: Query the relevant profile type\n\nQuery the target service with an appropriate type discovered in Step 2. The query must be a valid ProfileQL label selector.\n\n```bash\nPROFILE=\"$(mktemp -t profilecli-insights)\"\n\nprofilecli query profile \\\n  --query '\u003CQUERY>' \\\n  --profile-type \u003CPROFILE_TYPE> \\\n  --from now-1h --to now \\\n  --output \"pprof=${PROFILE}\" -f\n```\n\nIf the output is empty, broaden the range to `--from now-6h` or `--from now-24h`.\n\nAnalyze the generated profile:\n\n```bash\n\"${PPROF[@]}\" -lines -top -cum \"${PROFILE}\"\n```\n\n## Step 5: Identify hot functions\n\nExtract the functions with the most flat and cumulative samples. Highlight:\n\n- High flat time, which identifies self time.\n- High cumulative time, which includes callees.\n- Significant runtime and standard-library functions: `runtime.mallocgc` suggests allocation pressure, `runtime.futex` or `runtime.lock` suggests lock contention, `runtime.gcBgMarkWorker` or `runtime.gcDrain` suggests GC pressure, and `compress\u002Fgzip` or `compress\u002Fflate` suggests compression overhead.\n\n## Step 6: Map hot functions to source code\n\nThe `pprof -lines -top -cum` output lists functions in this format:\n\n```\n\u003Cflat> \u003Cflat%> \u003Csum%> \u003Ccum> \u003Ccum%>  \u003Cfunction-name> \u003Csource-file>:\u003Cline>\n```\n\nFor example:\n\n```\n1859.03s 23.50%  ...  github.com\u002Fgrafana\u002Fpyroscope\u002Fpkg\u002Fdistributor.(*Distributor).PushBatch.func1 github.com\u002Fgrafana\u002Fpyroscope\u002Fpkg\u002Fdistributor\u002Fdistributor.go:380\n```\n\nUse the source path after the function name to correlate profile frames with this checkout:\n\n1. Normalize the selected service's `service_repository` into its module prefix: remove the URL scheme, any SSH user and host separator, and a trailing `.git`. For example, `https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fpyroscope.git` becomes `github.com\u002Fgrafana\u002Fpyroscope`.\n2. Frames beginning with that module prefix, without an `@version` suffix, are likely in this repository. Third-party Go dependencies typically include `@v...` in their module path.\n3. Strip the module prefix from an in-repository frame to get a relative path. For example, `github.com\u002Fgrafana\u002Fpyroscope\u002Fpkg\u002Fdistributor\u002Fdistributor.go:380` becomes `pkg\u002Fdistributor\u002Fdistributor.go` at line 380.\n4. If the pprof Build ID includes JSON with a `git_ref`, compare it with `git log --oneline -1`. If they differ, warn that line numbers may be stale. Use `git log --oneline \u003Cgit_ref>..HEAD -- \u003Cfile>` to see whether the mapped file changed. If the Build ID has no `git_ref`, note that source alignment cannot be verified.\n5. Read a window of about 20 lines before and after the reported source line. Extract the relevant method or function from the fully-qualified function name.\n\nFor significant third-party or runtime functions, report their likely implications even though source cannot be read from this checkout.\n\n## Step 7: Deliver analysis\n\nPresent a structured report with these sections:\n\n### Summary\n\nGive a two- to three-sentence overview of the profile.\n\n### Top Hot Functions\n\nProvide a ranked table with function name, flat and cumulative sample percentages, source file and line for repository functions, and a brief description.\n\n### Source Code Analysis\n\nFor each hot repository function, show the relevant source snippet, explain why it may be hot, and propose specific optimizations such as reducing allocations, caching results, using `sync.Pool`, or reducing lock contention.\n\n### Recommendations\n\nList actionable optimization recommendations in expected-impact order.\n\n## Error Handling\n\n- If `profilecli` is missing, direct the user to `https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fpyroscope\u002Freleases\u002Flatest`.\n- For connection errors, verify `PROFILECLI_URL` and network access.\n- For `401` or `403` errors, verify `PROFILECLI_TOKEN` and `PROFILECLI_TENANT_ID`.\n- For empty results, broaden the time range and verify the service with `query series`.\n- If a service is not found, list the available services and ask the user to choose one.\n","# Profilecli Insights\n\nYou are a performance analysis assistant. Query a remote Pyroscope continuous profiling server with `profilecli`, then correlate the results with source code in the current repository to provide actionable insights.\n\nFollow these steps in order. Do not skip steps.\n\n## Step 1: Ensure profilecli is available\n\nCheck that `profilecli` is on PATH:\n\n```bash\nprofilecli --version\n```\n\nIf it is not found, instruct the user to download it from `https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fpyroscope\u002Freleases\u002Flatest\u002Fdownload\u002F`.\n\nSelect the command to use for all later profile analysis:\n\n```bash\nif command -v pprof >\u002Fdev\u002Fnull 2>&1; then\n  PPROF=(pprof)\nelse\n  PPROF=(go tool pprof)\nfi\n```\n\n## Step 2: Verify connectivity and data exists\n\nRun a series query to validate the connection and discover profile types:\n\n```bash\nprofilecli query series --label-names=__profile_type__ --output json\n```\n\nIf this succeeds, parse the JSON output and retain the available `__profile_type__` values. Common types include:\n\n- `process_cpu:cpu:nanoseconds:cpu:nanoseconds` (CPU)\n- `memory:alloc_space:bytes:space:bytes` (memory allocations)\n- `memory:inuse_space:bytes:space:bytes` (memory in-use)\n- `goroutine:goroutine:count:goroutine:count` (goroutines)\n- `mutex:contentions:count:contentions:count` (mutex contention)\n- `block:contentions:count:contentions:count` (block contention)\n\nYou need these profile types in Step 4.\n\nIf the query fails, help the user configure the connection:\n\n- Run a local Pyroscope server on port `4040`.\n- Or connect to Grafana with a service account token.\n\n`PROFILECLI_URL` is required. Set it to the Pyroscope server URL, such as `http:\u002F\u002Flocalhost:4040`, or to a Grafana data source proxy URL when using `PROFILECLI_TOKEN`, such as `https:\u002F\u002Fmy-grafana.example.com\u002Fapi\u002Fdatasources\u002Fproxy\u002Fuid\u002F\u003Cdatasource-uid>`.\n\n`PROFILECLI_TOKEN` is required for Grafana Cloud. It must be a Grafana service account token in `glsa_...` format with the Viewer role. `PROFILECLI_TENANT_ID` is optional for multi-tenant setups.\n\nThen stop and wait for the user to configure the environment and for the initial query to succeed.\n\n## Step 3: Discover services\n\nList available services and find ones that correlate with the checked-out repository:\n\n```bash\nprofilecli query series --query '{}' --label-names service_repository --label-names service_name --output json\n```\n\nParse the JSON output for `service_name` and `service_repository`. Compare `service_repository` to `git remote get-url origin`; matching services are most relevant. Match the user's question to one or more service names.\n\nIf the question does not clearly map to a service, show the available services, highlight repository matches, and ask the user which service to analyze.\n\n## Step 4: Query the relevant profile type\n\nQuery the target service with an appropriate type discovered in Step 2. The query must be a valid ProfileQL label selector.\n\n```bash\nPROFILE=\"$(mktemp -t profilecli-insights)\"\n\nprofilecli query profile \\\n  --query '\u003CQUERY>' \\\n  --profile-type \u003CPROFILE_TYPE> \\\n  --from now-1h --to now \\\n  --output \"pprof=${PROFILE}\" -f\n```\n\nIf the output is empty, broaden the range to `--from now-6h` or `--from now-24h`.\n\nAnalyze the generated profile:\n\n```bash\n\"${PPROF[@]}\" -lines -top -cum \"${PROFILE}\"\n```\n\n## Step 5: Identify hot functions\n\nExtract the functions with the most flat and cumulative samples. Highlight:\n\n- High flat time, which identifies self time.\n- High cumulative time, which includes callees.\n- Significant runtime and standard-library functions: `runtime.mallocgc` suggests allocation pressure, `runtime.futex` or `runtime.lock` suggests lock contention, `runtime.gcBgMarkWorker` or `runtime.gcDrain` suggests GC pressure, and `compress\u002Fgzip` or `compress\u002Fflate` suggests compression overhead.\n\n## Step 6: Map hot functions to source code\n\nThe `pprof -lines -top -cum` output lists functions in this format:\n\n```\n\u003Cflat> \u003Cflat%> \u003Csum%> \u003Ccum> \u003Ccum%>  \u003Cfunction-name> \u003Csource-file>:\u003Cline>\n```\n\nFor example:\n\n```\n1859.03s 23.50%  ...  github.com\u002Fgrafana\u002Fpyroscope\u002Fpkg\u002Fdistributor.(*Distributor).PushBatch.func1 github.com\u002Fgrafana\u002Fpyroscope\u002Fpkg\u002Fdistributor\u002Fdistributor.go:380\n```\n\nUse the source path after the function name to correlate profile frames with this checkout:\n\n1. Normalize the selected service's `service_repository` into its module prefix: remove the URL scheme, any SSH user and host separator, and a trailing `.git`. For example, `https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fpyroscope.git` becomes `github.com\u002Fgrafana\u002Fpyroscope`.\n2. Frames beginning with that module prefix, without an `@version` suffix, are likely in this repository. Third-party Go dependencies typically include `@v...` in their module path.\n3. Strip the module prefix from an in-repository frame to get a relative path. For example, `github.com\u002Fgrafana\u002Fpyroscope\u002Fpkg\u002Fdistributor\u002Fdistributor.go:380` becomes `pkg\u002Fdistributor\u002Fdistributor.go` at line 380.\n4. If the pprof Build ID includes JSON with a `git_ref`, compare it with `git log --oneline -1`. If they differ, warn that line numbers may be stale. Use `git log --oneline \u003Cgit_ref>..HEAD -- \u003Cfile>` to see whether the mapped file changed. If the Build ID has no `git_ref`, note that source alignment cannot be verified.\n5. Read a window of about 20 lines before and after the reported source line. Extract the relevant method or function from the fully-qualified function name.\n\nFor significant third-party or runtime functions, report their likely implications even though source cannot be read from this checkout.\n\n## Step 7: Deliver analysis\n\nPresent a structured report with these sections:\n\n### Summary\n\nGive a two- to three-sentence overview of the profile.\n\n### Top Hot Functions\n\nProvide a ranked table with function name, flat and cumulative sample percentages, source file and line for repository functions, and a brief description.\n\n### Source Code Analysis\n\nFor each hot repository function, show the relevant source snippet, explain why it may be hot, and propose specific optimizations such as reducing allocations, caching results, using `sync.Pool`, or reducing lock contention.\n\n### Recommendations\n\nList actionable optimization recommendations in expected-impact order.\n\n## Error Handling\n\n- If `profilecli` is missing, direct the user to `https:\u002F\u002Fgithub.com\u002Fgrafana\u002Fpyroscope\u002Freleases\u002Flatest`.\n- For connection errors, verify `PROFILECLI_URL` and network access.\n- For `401` or `403` errors, verify `PROFILECLI_TOKEN` and `PROFILECLI_TENANT_ID`.\n- For empty results, broaden the time range and verify the service with `query series`.\n- If a service is not found, list the available services and ask the user to choose one.\n",{"name":5,"license":15,"description":24,"allowed-tools":25,"compatibility":26},"Query live Pyroscope profiles with profilecli, analyze them with pprof, and correlate hot functions with checked-out source code. Use when the user asks to investigate a service with a configured Pyroscope server, profilecli, and pprof.\n","Bash(profilecli:*) Bash(pprof:*) Bash(go tool pprof:*) Bash(git:*) Bash(mktemp:*) Read Grep Glob","Requires profilecli and pprof, or Go with go tool pprof, on PATH plus access to a Pyroscope-compatible server.","main","3b63fa056f5de7956766fca020e9c71fdf2b0fab","SKILL\u002Fdevops\u002Ftier2\u002Fgrafana-profilecli-insights",0,"https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault","https:\u002F\u002Fgithub.com\u002Fyhyu13","https:\u002F\u002Fyhyu13.github.io","大丈夫自立于天地之间，岂可郁郁久居于人下\r\nA zealot of AI.","2026-11-14 20:53:07",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add yhyu13\u002FAgentSkillsVault --skill grafana-profilecli-insights",{"tool":42,"command":43},"bunx","bunx skills add yhyu13\u002FAgentSkillsVault --skill grafana-profilecli-insights",{"tool":45,"command":46},"pnpm","pnpm dlx skills add yhyu13\u002FAgentSkillsVault --skill grafana-profilecli-insights","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fdevops\u002Ftier2\u002Fgrafana-profilecli-insights\u002FSKILL.md",true,[],[51,59,66,73,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7DZJW3GMCBHNCC1J37K73T7","feishu-kdocs-cli","Office cloud CLIs for agents: install, authenticate, verify and troubleshoot Feishu `lark-cli` and Kingsoft\u002FWPS Docs `kdocs-cli`, plus the three China office MCP endpoints (Feishu, WPS SkillHub, Tencent Docs). Use when setting up or re-logging-in 飞书 CLI \u002F 金山文档 CLI, when a command fails with missing scope \u002F PATH \u002F token \u002F device-code errors, when a kdocs or lark command returns 400001 or unknown action, or when wiring 飞书 \u002F 金山文档 \u002F 腾讯文档 MCP into Cindy, Claude or another host. Not a per-command reference: domain commands live in the lark-* Skills and the kdocs Skill.","MIT","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fdevops\u002Ftier0\u002Ffeishu-kdocs-cli\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7BE0VQF0T7ACMY3W9V27ZYG","vfx-fx","Cinematic and game VFX in Blender including smoke, fire, particles, trails, and Geometry Nodes FX setups via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fvfx-fx\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7BE0Q23SY6QAW24XEADEH0N","uv-workflow","Production UV unwrapping for seam placement, UV packing, texel density, UDIM, lightmap UVs, and modular UV layouts. Use when preparing meshes for texturing and engine export in Blender via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fuv-workflow\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7BE0JAKENVJB4Z0SV3Q7QGR","texture-workflow","Production texture workflow for atlases, baking AO\u002Fcurvature\u002Fnormal\u002Froughness maps, decals, and texture memory optimization. Use for game-ready texture pipelines in Blender via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Ftexture-workflow\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7BE0CYB7BDJP7HD5WTS2PJB","sculpting","Blender sculpting for organic and hard surface detail using Dyntopo, multiresolution, brushes, alpha workflow, wrinkles, and damage. Use when high-frequency surface detail is needed before retopology in Blender via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fsculpting\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7BE09TBX9NQ5EBHN4JZ9VXM","scene-assembly","Large scene layout in Blender with collections, linking, overrides, streaming-friendly organization, and set assembly via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fscene-assembly\u002FSKILL.md",[],[]]