[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BQDSDFZX5V40AR26Y0PEPZ":3,"skill-same:01M7BQDSDFZX5V40AR26Y0PEPZ":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":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7BQDSDFZX5V40AR26Y0PEPZ","alloc-profile",null,"Analyze a jemalloc (or other) allocation profile in collapsed stack format. Use when the user wants to analyze memory allocations, find top allocators, or understand memory usage patterns from a .collapsed profile file.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Data-数据存储\u002FYYC3-Data-数据存储-ClickHouse\u002F.claude\u002Fskills\u002Falloc-profile\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: alloc-profile\ndescription: Analyze a jemalloc (or other) allocation profile in collapsed stack format. Use when the user wants to analyze memory allocations, find top allocators, or understand memory usage patterns from a .collapsed profile file.\nargument-hint: [path-to-profile.collapsed]\ndisable-model-invocation: false\nallowed-tools: Task, Bash(ls:*), Bash(find:*), Bash(wc:*), Bash(python3:*)\n---\n\n# Allocation Profile Analysis Skill\n\nAnalyze an allocation profile file in collapsed stack format (as produced by jemalloc, async-profiler, perf). Each line has the form:\n\n```\nframe1;frame2;...;frameN VALUE\n```\n\nwhere `VALUE` is the number of bytes (or samples, depending on the profiler) attributed to that stack trace.\n\n## Arguments\n\n- `$0` (optional): Path to the `.collapsed` file. If not provided, search for `.collapsed` files in the current directory and ask the user to choose.\n\n## Step 1 — Locate the profile file\n\n**Use Task tool with `subagent_type=Bash`** to locate the file:\n\nIf `$ARGUMENTS` is provided, use it directly. Otherwise, run:\n```bash\nfind . -maxdepth 3 -name \"*.collapsed\" -o -name \"*.folded\" | sort -t_ -k1,1\n```\nReport the candidates to the user and ask with `AskUserQuestion`:\n- **Question**: \"Which profile file do you want to analyze?\"\n- Options: one per found file (show filename and size), plus \"Other — enter path manually\"\n\nOnce the file path is known, pass it to all subsequent steps.\n\n## Step 2 — Parallel initial analysis\n\n**Launch the following three Task agents IN PARALLEL** (single message, three tool calls) all with `run_in_background: true`.\n**Then call TaskOutput for ALL three agents** (also in parallel, single message) before proceeding to Step 3.\nDo NOT start Step 3 until every agent has finished.\n\n**Fallback:** If any agent fails (e.g., reports lacking Bash permission), re-run its Python script directly using the Bash tool in the main context.\n\n### Agent A — Summary statistics (`subagent_type=Bash`)\n\nRun this Python script to compute summary statistics:\n\n```python\npython3 - \u003C\u003C'EOF'\nimport sys, os, re\nfilepath = \"PATH_TO_FILE\"  # substituted by skill\nlines = open(filepath).read().splitlines()\ntraces = []\nfor line in lines:\n    line = line.strip()\n    if not line:\n        continue\n    parts = line.rsplit(' ', 1)\n    if len(parts) != 2:\n        continue\n    try:\n        traces.append((int(parts[1]), parts[0]))\n    except ValueError:\n        continue\n\ntotal = sum(v for v, _ in traces)\ntraces.sort(reverse=True)\n\n# Noise filters — keep in sync with Agent C\nJEMALLOC_PREFIXES = (\n    \"prof_backtrace\", \"prof_alloc_prep\", \"prof_tctx\", \"prof_\",\n    \"imalloc\", \"ialloc\", \"irallocx\", \"imallocx\",\n    \"arena_malloc\", \"arena_palloc\", \"arena_ralloc\", \"arena_\",\n    \"tcache_alloc\", \"tcache_\",\n    \"large_malloc\", \"large_palloc\",\n    \"chunk_alloc\", \"huge_malloc\", \"huge_palloc\",\n    \"je_malloc\", \"je_calloc\", \"je_realloc\", \"je_rallocx\", \"je_mallocx\",\n    \"je_posix_memalign\", \"je_aligned_alloc\",\n    \"malloc_default\", \"calloc\",\n)\nALLOC_SUBSTRINGS = (\n    \"operator new\", \"operator new[]\",\n    \"__libcpp_operator_new\",\n    \"__libc_malloc\", \"__libc_calloc\", \"_int_malloc\",\n    \"posix_memalign\", \"aligned_alloc\",\n    \"do_rallocx\", \"do_mallocx\",\n    \"mi_malloc\", \"mi_calloc\",\n    \"__cxx_global_var_init\", \"__cxa_thread_atexit_impl\",\n    \"DB::Memory\u003C\", \"Memory::newImpl\", \"Allocator\u003Cfalse\", \"Allocator\u003Ctrue\",\n    \"allocNoTrack\",\n    \"PODArrayBase::realloc\", \"PODArrayBase::alloc\",\n    \"CRYPTO_malloc\",\n    \"std::__detail::_Hash_node\", \"std::_Rb_tree\",\n    \"std::vector\u003C\", \"std::string::\",\n    # STL and PODArray wrappers — noise for leaf analysis\n    \"std::__1::\",\n    \"DB::PODArrayBase\",\n)\n\ndef is_noise(frame):\n    return (any(frame.startswith(p) for p in JEMALLOC_PREFIXES) or\n            any(s in frame for s in ALLOC_SUBSTRINGS))\n\ndef shorten(frame):\n    return re.sub(r'\u003C[^>]{40,}>', '\u003C...>', frame)\n\nprint(f\"=== SUMMARY ===\")\nprint(f\"File: {filepath}\")\nprint(f\"Total allocated: {total:,} bytes  ({total\u002F1024\u002F1024:.2f} MB)  ({total\u002F1024\u002F1024\u002F1024:.3f} GB)\")\nprint(f\"Unique stack traces: {len(traces)}\")\nprint()\nprint(\"=== TOP 25 STACK TRACES ===\")\nfor i, (v, stack) in enumerate(traces[:25], 1):\n    frames = [f for f in stack.split(';') if f]\n    meaningful = [f for f in frames if not is_noise(f)]\n    tail_frames = meaningful[-4:] if meaningful else frames[-4:]\n    tail = ' \u003C- '.join(shorten(f) for f in reversed(tail_frames))\n    print(f\"{i:>3}. {v\u002F1024\u002F1024:>8.2f} MB  ({100*v\u002Ftotal:>5.1f}%)  {tail[:120]}\")\nprint()\nprint(\"=== FULL STACKS FOR TOP 10 ===\")\nfor i, (v, stack) in enumerate(traces[:10], 1):\n    frames = [f for f in stack.split(';') if f]\n    print(f\"\\n--- #{i}: {v\u002F1024\u002F1024:.2f} MB ({100*v\u002Ftotal:.1f}%) ---\")\n    for depth, frame in enumerate(reversed(frames), 1):\n        noise_mark = \"  [noise]\" if is_noise(frame) else \"\"\n        print(f\"  [{depth:>2}] {shorten(frame)}{noise_mark}\")\nEOF\n```\n\n### Agent B — Outermost meaningful frame aggregation (`subagent_type=Bash`)\n\nRun this Python script to aggregate by the outermost (shallowest) meaningful frame — the operation that initiated the allocation. This answers \"why did this allocation happen?\" (e.g., loading data parts, executing a query, loading a dictionary), complementing Agent C which answers \"what code allocated?\":\n\n```python\npython3 - \u003C\u003C'EOF'\nimport sys, re\nfrom collections import defaultdict\nfilepath = \"PATH_TO_FILE\"  # substituted by skill\n\nlines = open(filepath).read().splitlines()\ntraces = []\nfor line in lines:\n    line = line.strip()\n    if not line:\n        continue\n    parts = line.rsplit(' ', 1)\n    if len(parts) != 2:\n        continue\n    try:\n        traces.append((int(parts[1]), parts[0]))\n    except ValueError:\n        continue\n\ntotal = sum(v for v, _ in traces)\n\n# Frames to skip when looking for the outermost meaningful frame:\n# thread pool scaffolding, libc entry points, raw addresses, lambda wrappers\nSKIP_OUTER = (\n    \"0000\", \"_start\", \"__libc_start\", \"__GI___clone\",\n    \"start_thread\", \"clone3\",\n    \"ThreadPoolImpl\", \"ThreadFromGlobalPool\",\n    \"std::__1::__function\", \"std::__1::__invoke\",\n    \"decltype\", \"void std::__1::__function\",\n    \"std::__1::__packaged_task_function\",\n    \"DB::ThreadPool\", \"DB::GlobalThreadPool\",\n    \"DB::threadFunction\",\n    \"BaseDaemon\", \"SignalListener\",\n    \"Poco::ThreadImpl::runnableEntry\",\n    \"Poco::PooledThread::run\",\n    \"main\",\n    \"DB::Server::run\",\n    \"Poco::Util::Application::run\",\n)\n\ndef is_skip_outer(frame):\n    return any(frame.startswith(p) for p in SKIP_OUTER) or frame.startswith(\"(\")\n\ndef shorten(frame):\n    # Collapse long templates, preserve (anonymous namespace), strip args\n    s = re.sub(r'\u003C[^>]{40,}>', '\u003C...>', frame)\n    s = s.replace('(anonymous namespace)', '{anon}')\n    s = re.sub(r'\\(.*', '', s)\n    s = s.replace('{anon}', '(anonymous namespace)')\n    return s[:120]\n\nby_outer = defaultdict(int)\n\nfor v, stack in traces:\n    frames = [f for f in stack.split(';') if f]\n    outer = None\n    for f in frames:\n        if not f or is_skip_outer(f):\n            continue\n        outer = f\n        break\n    if outer is None:\n        outer = frames[0] if frames else \"(unknown)\"\n    by_outer[shorten(outer)] += v\n\nprint(\"=== TOP 25 OUTERMOST MEANINGFUL FRAMES (operation that initiated allocation) ===\")\nfor fn, v in sorted(by_outer.items(), key=lambda x: -x[1])[:25]:\n    mb = v \u002F 1024 \u002F 1024\n    pct = 100 * v \u002F total\n    bar = \"\\u2588\" * int(pct \u002F 2)\n    print(f\"  {mb:>10.2f} MB  {pct:>5.1f}%  {bar:\u003C20}  {fn}\")\nEOF\n```\n\n### Agent C — Leaf (allocating) function aggregation (`subagent_type=Bash`)\n\nRun this Python script to aggregate by the deepest (innermost) frame — the actual allocation call:\n\n```python\npython3 - \u003C\u003C'EOF'\nimport sys, re\nfrom collections import defaultdict\nfilepath = \"PATH_TO_FILE\"  # substituted by skill\n\nlines = open(filepath).read().splitlines()\ntraces = []\nfor line in lines:\n    line = line.strip()\n    if not line:\n        continue\n    parts = line.rsplit(' ', 1)\n    if len(parts) != 2:\n        continue\n    try:\n        traces.append((int(parts[1]), parts[0]))\n    except ValueError:\n        continue\n\ntotal = sum(v for v, _ in traces)\n\n# Aggregate by last meaningful frame (the allocating function)\nby_leaf = defaultdict(int)\nby_caller = defaultdict(int)  # caller of the leaf\n\n# jemalloc profiling infrastructure — always at the bottom of every stack\nJEMALLOC_PREFIXES = (\n    \"prof_backtrace\", \"prof_alloc_prep\", \"prof_tctx\", \"prof_\",\n    \"imalloc\", \"ialloc\", \"irallocx\", \"imallocx\",\n    \"arena_malloc\", \"arena_palloc\", \"arena_ralloc\", \"arena_\",\n    \"tcache_alloc\", \"tcache_\",\n    \"large_malloc\", \"large_palloc\",\n    \"chunk_alloc\", \"huge_malloc\", \"huge_palloc\",\n    \"je_malloc\", \"je_calloc\", \"je_realloc\", \"je_rallocx\", \"je_mallocx\",\n    \"je_posix_memalign\", \"je_aligned_alloc\",\n    \"malloc_default\", \"calloc\",\n)\n# libc \u002F C++ allocator wrappers that add no information\nALLOC_SUBSTRINGS = (\n    \"operator new\", \"operator new[]\",\n    \"__libcpp_operator_new\",\n    \"__libc_malloc\", \"__libc_calloc\", \"_int_malloc\",\n    \"posix_memalign\", \"aligned_alloc\",\n    \"do_rallocx\", \"do_mallocx\",\n    \"mi_malloc\", \"mi_calloc\",\n    # C++ static\u002Fthread-local initialization wrappers\n    \"__cxx_global_var_init\", \"__cxa_thread_atexit_impl\",\n    # ClickHouse allocator wrappers — informative only as callers, not as leaf\n    \"DB::Memory\u003C\", \"Memory::newImpl\", \"Allocator\u003Cfalse\", \"Allocator\u003Ctrue\",\n    \"allocNoTrack\",\n    \"PODArrayBase::realloc\", \"PODArrayBase::alloc\",\n    # Third-party allocators\n    \"CRYPTO_malloc\",\n    # STL internals\n    \"std::__detail::_Hash_node\", \"std::_Rb_tree\",\n    \"std::vector\u003C\", \"std::string::\",\n    # STL and PODArray wrappers — noise for leaf analysis\n    \"std::__1::\",\n    \"DB::PODArrayBase\",\n)\n\ndef is_noise(frame):\n    return (any(frame.startswith(p) for p in JEMALLOC_PREFIXES) or\n            any(s in frame for s in ALLOC_SUBSTRINGS))\n\ndef meaningful_leaf(frames):\n    # Walk from innermost (last) frame upward, skipping allocator\u002Fprofiling noise.\n    # In jemalloc collapsed format frames are outermost-first, so the bottom of\n    # the stack (profiling infra + raw allocators) is at the end of the list.\n    for f in reversed(frames):\n        if f and not is_noise(f):\n            return f\n    return frames[-1] if frames else \"(unknown)\"\n\ndef meaningful_caller(frames):\n    \"\"\"Second non-noise frame from the bottom.\"\"\"\n    found_leaf = False\n    for f in reversed(frames):\n        if f and not is_noise(f):\n            if found_leaf:\n                return f\n            found_leaf = True\n    return None\n\ndef shorten(frame):\n    s = re.sub(r'\u003C[^>]{40,}>', '\u003C...>', frame)\n    s = s.replace('(anonymous namespace)', '{anon}')\n    s = re.sub(r'\\(.*', '', s)\n    s = s.replace('{anon}', '(anonymous namespace)')\n    return s[:120]\n\nfor v, stack in traces:\n    frames = [f for f in stack.split(';') if f]\n    leaf = meaningful_leaf(frames)\n    by_leaf[shorten(leaf)] += v\n    caller = meaningful_caller(frames)\n    if caller:\n        by_caller[shorten(caller)] += v\n\nprint(\"=== TOP 25 ALLOCATING FUNCTIONS (first non-trivial frame from bottom) ===\")\nfor label, bucket in [(\"Leaf (allocator call site)\", by_leaf),\n                       (\"Caller of leaf\", by_caller)]:\n    print(f\"\\n--- {label} ---\")\n    for fn, v in sorted(bucket.items(), key=lambda x: -x[1])[:25]:\n        mb = v \u002F 1024 \u002F 1024\n        pct = 100 * v \u002F total\n        print(f\"  {mb:>8.2f} MB  {pct:>5.1f}%  {fn}\")\nEOF\n```\n\n## Step 3 — Synthesize results and perform subsystem grouping\n\n**MANDATORY: All three agents from Step 2 must have completed (TaskOutput returned) before this step.**\n\nUsing the outputs from Agent A (top stacks with full traces), Agent B (outermost frame — the initiating operation), and Agent C (leaf function — the allocating code), **you** (the main LLM) produce a structured report. Agent B gives you the \"why\" (what operation triggered allocations) and Agent C gives you the \"how\" (what code did the allocating). Combined with Agent A's full stacks, you can semantically group allocations into subsystems — e.g., `AggregatedDataVariants::init` called from `HashedDictionary::loadData` is \"Dictionary Loading\", not \"Aggregation\"; `Arena::addMemoryChunk` inside a merge pipeline is \"Merges\", not \"Arena\".\n\nYour report should include:\n\n1. **Summary statistics** (total, trace count)\n2. **Top allocators table** (top 15 stack traces with readable short description)\n3. **Subsystem breakdown with bar chart** — group every top-25 trace (and the leaf function data) into semantic subsystems based on the full call path context. Use categories like: Part Loading, Dictionary Loading, Query Execution, Backup & Restore, Merges & Mutations, File Cache, IO Buffers, Replication, System Logs, etc. Show an ASCII bar chart. Traces that don't fit neatly into a category go into \"(other)\".\n4. **Top 3–5 actionable findings** — e.g.:\n   - Which subsystem unexpectedly dominates\n   - Any single allocation that is disproportionately large (>5% of total)\n   - Repeated patterns (e.g., many system log types each reserving large buffers)\n   - Signs of fragmentation or excessive reallocation (`do_rallocx` \u002F `PODArray::realloc` heavy)\n5. **Follow-up drill-down questions** the user may want to investigate\n\n## Step 4 — Offer drill-down options\n\nAfter presenting the summary, use `AskUserQuestion`:\n\n**Question**: \"What would you like to do next?\"\n\n- **Option 1: \"Drill into a specific subsystem\"**\n  Description: \"Show all stack traces for a chosen component (e.g., MergeTree, SystemLog)\"\n  → Ask which subsystem with a follow-up `AskUserQuestion`\n  → **Launch Task (`subagent_type=Bash`) in the background** (`run_in_background: true`) with a Python script that:\n    - Filters all traces whose stack contains any keyword matching the chosen subsystem\n    - Sorts by value descending\n    - Prints each trace as: `MB (pct%) | frame1 ← frame2 ← ... ← frameN`\n    - Also prints the full call stack for the top 5 matches\n    - Prints a sub-total for the subsystem\n  → Use TaskOutput to wait, then pass output to a `general-purpose` Task agent for a concise summary\n\n- **Option 2: \"Show full stacks for top N traces\"**\n  Description: \"Print complete call stacks for the largest N allocations\"\n  → Ask N with a follow-up `AskUserQuestion` (suggest 10 as default)\n  → **Launch Task (`subagent_type=Bash`) in the background** with a Python script that:\n    - Parses the file, sorts by value, takes top N\n    - For each: prints rank, MB, %, and the full reversed call stack with depth indices\n  → Use TaskOutput to wait, then pass output to a `general-purpose` Task agent for a concise narrative summary\n\n- **Option 3: \"Search for a keyword in stacks\"**\n  Description: \"Filter traces containing a specific function or class name\"\n  → Ask for the keyword via `AskUserQuestion`\n  → **Launch two Task agents in parallel** (`run_in_background: true`):\n    - **Agent X (`subagent_type=Bash`)**: filter and aggregate all matching traces — sum total, count, top 20 by size, full stacks for top 5\n    - **Agent Y (`subagent_type=Bash`)**: find related keywords by scanning all frames containing the keyword and extracting their neighboring frames (co-occurring functions), to suggest related call paths\n  → Use TaskOutput (both) then pass combined output to a `general-purpose` Task agent for synthesis\n\n- **Option 4: \"Generate flamegraph SVG\"**\n  Description: \"Render an SVG flamegraph using flamegraph.pl (must be installed)\"\n  → **Launch Task (`subagent_type=Bash`) in the background**:\n    ```bash\n    flamegraph.pl --title \"Allocation Profile\" --countname bytes --width 1800 \\\n      PATH_TO_FILE > \u002Ftmp\u002Falloc_flamegraph.svg\n    ```\n  → Use TaskOutput to wait for completion\n  → Report the output path `\u002Ftmp\u002Falloc_flamegraph.svg` and remind user to open it in a browser\n\n- **Option 5: \"Done\"**\n  Description: \"Exit without further analysis\"\n\n**IMPORTANT:** For every drill-down option (1–4):\n- Always run the analysis inside a Task subagent — never process the file in the main context\n- Always run the Bash analysis task in the background with `run_in_background: true` and wait with TaskOutput\n- Always pass raw output through a `general-purpose` Task agent for a concise, human-readable summary before showing it to the user\n\nRepeat drill-down (return to the `AskUserQuestion`) until user selects \"Done\".\n\n## Notes\n\n- Values in collapsed format are **live (in-use) bytes** — jemalloc heap profiles track allocations minus deallocations, so values reflect currently live memory at the time of the dump\n- High values directly indicate live memory pressure at those call sites\n- Frames are listed **outermost (thread root) first**, innermost (allocator) last — the analysis scripts reverse this for readability\n- Symbol names may be mangled if the binary lacks debug info; use `jeprof --demangle` or pipe through `c++filt`\n- **ALWAYS use Task subagents for all analysis steps** — profile files can be hundreds of MB and must not be read into the main context\n- All Python analysis scripts are self-contained and can be run directly with `python3 -`\n\n## Examples\n\n- `\u002Falloc-profile` — Find `.collapsed` files and prompt for selection\n- `\u002Falloc-profile jemalloc-profile-2026-02-19T13-08-59-825Z.collapsed` — Analyze a specific file\n- `\u002Falloc-profile \u002Ftmp\u002Fprod-heap-dump.collapsed` — Analyze an absolute path\n","# Allocation Profile Analysis Skill\n\nAnalyze an allocation profile file in collapsed stack format (as produced by jemalloc, async-profiler, perf). Each line has the form:\n\n```\nframe1;frame2;...;frameN VALUE\n```\n\nwhere `VALUE` is the number of bytes (or samples, depending on the profiler) attributed to that stack trace.\n\n## Arguments\n\n- `$0` (optional): Path to the `.collapsed` file. If not provided, search for `.collapsed` files in the current directory and ask the user to choose.\n\n## Step 1 — Locate the profile file\n\n**Use Task tool with `subagent_type=Bash`** to locate the file:\n\nIf `$ARGUMENTS` is provided, use it directly. Otherwise, run:\n```bash\nfind . -maxdepth 3 -name \"*.collapsed\" -o -name \"*.folded\" | sort -t_ -k1,1\n```\nReport the candidates to the user and ask with `AskUserQuestion`:\n- **Question**: \"Which profile file do you want to analyze?\"\n- Options: one per found file (show filename and size), plus \"Other — enter path manually\"\n\nOnce the file path is known, pass it to all subsequent steps.\n\n## Step 2 — Parallel initial analysis\n\n**Launch the following three Task agents IN PARALLEL** (single message, three tool calls) all with `run_in_background: true`.\n**Then call TaskOutput for ALL three agents** (also in parallel, single message) before proceeding to Step 3.\nDo NOT start Step 3 until every agent has finished.\n\n**Fallback:** If any agent fails (e.g., reports lacking Bash permission), re-run its Python script directly using the Bash tool in the main context.\n\n### Agent A — Summary statistics (`subagent_type=Bash`)\n\nRun this Python script to compute summary statistics:\n\n```python\npython3 - \u003C\u003C'EOF'\nimport sys, os, re\nfilepath = \"PATH_TO_FILE\"  # substituted by skill\nlines = open(filepath).read().splitlines()\ntraces = []\nfor line in lines:\n    line = line.strip()\n    if not line:\n        continue\n    parts = line.rsplit(' ', 1)\n    if len(parts) != 2:\n        continue\n    try:\n        traces.append((int(parts[1]), parts[0]))\n    except ValueError:\n        continue\n\ntotal = sum(v for v, _ in traces)\ntraces.sort(reverse=True)\n\n# Noise filters — keep in sync with Agent C\nJEMALLOC_PREFIXES = (\n    \"prof_backtrace\", \"prof_alloc_prep\", \"prof_tctx\", \"prof_\",\n    \"imalloc\", \"ialloc\", \"irallocx\", \"imallocx\",\n    \"arena_malloc\", \"arena_palloc\", \"arena_ralloc\", \"arena_\",\n    \"tcache_alloc\", \"tcache_\",\n    \"large_malloc\", \"large_palloc\",\n    \"chunk_alloc\", \"huge_malloc\", \"huge_palloc\",\n    \"je_malloc\", \"je_calloc\", \"je_realloc\", \"je_rallocx\", \"je_mallocx\",\n    \"je_posix_memalign\", \"je_aligned_alloc\",\n    \"malloc_default\", \"calloc\",\n)\nALLOC_SUBSTRINGS = (\n    \"operator new\", \"operator new[]\",\n    \"__libcpp_operator_new\",\n    \"__libc_malloc\", \"__libc_calloc\", \"_int_malloc\",\n    \"posix_memalign\", \"aligned_alloc\",\n    \"do_rallocx\", \"do_mallocx\",\n    \"mi_malloc\", \"mi_calloc\",\n    \"__cxx_global_var_init\", \"__cxa_thread_atexit_impl\",\n    \"DB::Memory\u003C\", \"Memory::newImpl\", \"Allocator\u003Cfalse\", \"Allocator\u003Ctrue\",\n    \"allocNoTrack\",\n    \"PODArrayBase::realloc\", \"PODArrayBase::alloc\",\n    \"CRYPTO_malloc\",\n    \"std::__detail::_Hash_node\", \"std::_Rb_tree\",\n    \"std::vector\u003C\", \"std::string::\",\n    # STL and PODArray wrappers — noise for leaf analysis\n    \"std::__1::\",\n    \"DB::PODArrayBase\",\n)\n\ndef is_noise(frame):\n    return (any(frame.startswith(p) for p in JEMALLOC_PREFIXES) or\n            any(s in frame for s in ALLOC_SUBSTRINGS))\n\ndef shorten(frame):\n    return re.sub(r'\u003C[^>]{40,}>', '\u003C...>', frame)\n\nprint(f\"=== SUMMARY ===\")\nprint(f\"File: {filepath}\")\nprint(f\"Total allocated: {total:,} bytes  ({total\u002F1024\u002F1024:.2f} MB)  ({total\u002F1024\u002F1024\u002F1024:.3f} GB)\")\nprint(f\"Unique stack traces: {len(traces)}\")\nprint()\nprint(\"=== TOP 25 STACK TRACES ===\")\nfor i, (v, stack) in enumerate(traces[:25], 1):\n    frames = [f for f in stack.split(';') if f]\n    meaningful = [f for f in frames if not is_noise(f)]\n    tail_frames = meaningful[-4:] if meaningful else frames[-4:]\n    tail = ' \u003C- '.join(shorten(f) for f in reversed(tail_frames))\n    print(f\"{i:>3}. {v\u002F1024\u002F1024:>8.2f} MB  ({100*v\u002Ftotal:>5.1f}%)  {tail[:120]}\")\nprint()\nprint(\"=== FULL STACKS FOR TOP 10 ===\")\nfor i, (v, stack) in enumerate(traces[:10], 1):\n    frames = [f for f in stack.split(';') if f]\n    print(f\"\\n--- #{i}: {v\u002F1024\u002F1024:.2f} MB ({100*v\u002Ftotal:.1f}%) ---\")\n    for depth, frame in enumerate(reversed(frames), 1):\n        noise_mark = \"  [noise]\" if is_noise(frame) else \"\"\n        print(f\"  [{depth:>2}] {shorten(frame)}{noise_mark}\")\nEOF\n```\n\n### Agent B — Outermost meaningful frame aggregation (`subagent_type=Bash`)\n\nRun this Python script to aggregate by the outermost (shallowest) meaningful frame — the operation that initiated the allocation. This answers \"why did this allocation happen?\" (e.g., loading data parts, executing a query, loading a dictionary), complementing Agent C which answers \"what code allocated?\":\n\n```python\npython3 - \u003C\u003C'EOF'\nimport sys, re\nfrom collections import defaultdict\nfilepath = \"PATH_TO_FILE\"  # substituted by skill\n\nlines = open(filepath).read().splitlines()\ntraces = []\nfor line in lines:\n    line = line.strip()\n    if not line:\n        continue\n    parts = line.rsplit(' ', 1)\n    if len(parts) != 2:\n        continue\n    try:\n        traces.append((int(parts[1]), parts[0]))\n    except ValueError:\n        continue\n\ntotal = sum(v for v, _ in traces)\n\n# Frames to skip when looking for the outermost meaningful frame:\n# thread pool scaffolding, libc entry points, raw addresses, lambda wrappers\nSKIP_OUTER = (\n    \"0000\", \"_start\", \"__libc_start\", \"__GI___clone\",\n    \"start_thread\", \"clone3\",\n    \"ThreadPoolImpl\", \"ThreadFromGlobalPool\",\n    \"std::__1::__function\", \"std::__1::__invoke\",\n    \"decltype\", \"void std::__1::__function\",\n    \"std::__1::__packaged_task_function\",\n    \"DB::ThreadPool\", \"DB::GlobalThreadPool\",\n    \"DB::threadFunction\",\n    \"BaseDaemon\", \"SignalListener\",\n    \"Poco::ThreadImpl::runnableEntry\",\n    \"Poco::PooledThread::run\",\n    \"main\",\n    \"DB::Server::run\",\n    \"Poco::Util::Application::run\",\n)\n\ndef is_skip_outer(frame):\n    return any(frame.startswith(p) for p in SKIP_OUTER) or frame.startswith(\"(\")\n\ndef shorten(frame):\n    # Collapse long templates, preserve (anonymous namespace), strip args\n    s = re.sub(r'\u003C[^>]{40,}>', '\u003C...>', frame)\n    s = s.replace('(anonymous namespace)', '{anon}')\n    s = re.sub(r'\\(.*', '', s)\n    s = s.replace('{anon}', '(anonymous namespace)')\n    return s[:120]\n\nby_outer = defaultdict(int)\n\nfor v, stack in traces:\n    frames = [f for f in stack.split(';') if f]\n    outer = None\n    for f in frames:\n        if not f or is_skip_outer(f):\n            continue\n        outer = f\n        break\n    if outer is None:\n        outer = frames[0] if frames else \"(unknown)\"\n    by_outer[shorten(outer)] += v\n\nprint(\"=== TOP 25 OUTERMOST MEANINGFUL FRAMES (operation that initiated allocation) ===\")\nfor fn, v in sorted(by_outer.items(), key=lambda x: -x[1])[:25]:\n    mb = v \u002F 1024 \u002F 1024\n    pct = 100 * v \u002F total\n    bar = \"\\u2588\" * int(pct \u002F 2)\n    print(f\"  {mb:>10.2f} MB  {pct:>5.1f}%  {bar:\u003C20}  {fn}\")\nEOF\n```\n\n### Agent C — Leaf (allocating) function aggregation (`subagent_type=Bash`)\n\nRun this Python script to aggregate by the deepest (innermost) frame — the actual allocation call:\n\n```python\npython3 - \u003C\u003C'EOF'\nimport sys, re\nfrom collections import defaultdict\nfilepath = \"PATH_TO_FILE\"  # substituted by skill\n\nlines = open(filepath).read().splitlines()\ntraces = []\nfor line in lines:\n    line = line.strip()\n    if not line:\n        continue\n    parts = line.rsplit(' ', 1)\n    if len(parts) != 2:\n        continue\n    try:\n        traces.append((int(parts[1]), parts[0]))\n    except ValueError:\n        continue\n\ntotal = sum(v for v, _ in traces)\n\n# Aggregate by last meaningful frame (the allocating function)\nby_leaf = defaultdict(int)\nby_caller = defaultdict(int)  # caller of the leaf\n\n# jemalloc profiling infrastructure — always at the bottom of every stack\nJEMALLOC_PREFIXES = (\n    \"prof_backtrace\", \"prof_alloc_prep\", \"prof_tctx\", \"prof_\",\n    \"imalloc\", \"ialloc\", \"irallocx\", \"imallocx\",\n    \"arena_malloc\", \"arena_palloc\", \"arena_ralloc\", \"arena_\",\n    \"tcache_alloc\", \"tcache_\",\n    \"large_malloc\", \"large_palloc\",\n    \"chunk_alloc\", \"huge_malloc\", \"huge_palloc\",\n    \"je_malloc\", \"je_calloc\", \"je_realloc\", \"je_rallocx\", \"je_mallocx\",\n    \"je_posix_memalign\", \"je_aligned_alloc\",\n    \"malloc_default\", \"calloc\",\n)\n# libc \u002F C++ allocator wrappers that add no information\nALLOC_SUBSTRINGS = (\n    \"operator new\", \"operator new[]\",\n    \"__libcpp_operator_new\",\n    \"__libc_malloc\", \"__libc_calloc\", \"_int_malloc\",\n    \"posix_memalign\", \"aligned_alloc\",\n    \"do_rallocx\", \"do_mallocx\",\n    \"mi_malloc\", \"mi_calloc\",\n    # C++ static\u002Fthread-local initialization wrappers\n    \"__cxx_global_var_init\", \"__cxa_thread_atexit_impl\",\n    # ClickHouse allocator wrappers — informative only as callers, not as leaf\n    \"DB::Memory\u003C\", \"Memory::newImpl\", \"Allocator\u003Cfalse\", \"Allocator\u003Ctrue\",\n    \"allocNoTrack\",\n    \"PODArrayBase::realloc\", \"PODArrayBase::alloc\",\n    # Third-party allocators\n    \"CRYPTO_malloc\",\n    # STL internals\n    \"std::__detail::_Hash_node\", \"std::_Rb_tree\",\n    \"std::vector\u003C\", \"std::string::\",\n    # STL and PODArray wrappers — noise for leaf analysis\n    \"std::__1::\",\n    \"DB::PODArrayBase\",\n)\n\ndef is_noise(frame):\n    return (any(frame.startswith(p) for p in JEMALLOC_PREFIXES) or\n            any(s in frame for s in ALLOC_SUBSTRINGS))\n\ndef meaningful_leaf(frames):\n    # Walk from innermost (last) frame upward, skipping allocator\u002Fprofiling noise.\n    # In jemalloc collapsed format frames are outermost-first, so the bottom of\n    # the stack (profiling infra + raw allocators) is at the end of the list.\n    for f in reversed(frames):\n        if f and not is_noise(f):\n            return f\n    return frames[-1] if frames else \"(unknown)\"\n\ndef meaningful_caller(frames):\n    \"\"\"Second non-noise frame from the bottom.\"\"\"\n    found_leaf = False\n    for f in reversed(frames):\n        if f and not is_noise(f):\n            if found_leaf:\n                return f\n            found_leaf = True\n    return None\n\ndef shorten(frame):\n    s = re.sub(r'\u003C[^>]{40,}>', '\u003C...>', frame)\n    s = s.replace('(anonymous namespace)', '{anon}')\n    s = re.sub(r'\\(.*', '', s)\n    s = s.replace('{anon}', '(anonymous namespace)')\n    return s[:120]\n\nfor v, stack in traces:\n    frames = [f for f in stack.split(';') if f]\n    leaf = meaningful_leaf(frames)\n    by_leaf[shorten(leaf)] += v\n    caller = meaningful_caller(frames)\n    if caller:\n        by_caller[shorten(caller)] += v\n\nprint(\"=== TOP 25 ALLOCATING FUNCTIONS (first non-trivial frame from bottom) ===\")\nfor label, bucket in [(\"Leaf (allocator call site)\", by_leaf),\n                       (\"Caller of leaf\", by_caller)]:\n    print(f\"\\n--- {label} ---\")\n    for fn, v in sorted(bucket.items(), key=lambda x: -x[1])[:25]:\n        mb = v \u002F 1024 \u002F 1024\n        pct = 100 * v \u002F total\n        print(f\"  {mb:>8.2f} MB  {pct:>5.1f}%  {fn}\")\nEOF\n```\n\n## Step 3 — Synthesize results and perform subsystem grouping\n\n**MANDATORY: All three agents from Step 2 must have completed (TaskOutput returned) before this step.**\n\nUsing the outputs from Agent A (top stacks with full traces), Agent B (outermost frame — the initiating operation), and Agent C (leaf function — the allocating code), **you** (the main LLM) produce a structured report. Agent B gives you the \"why\" (what operation triggered allocations) and Agent C gives you the \"how\" (what code did the allocating). Combined with Agent A's full stacks, you can semantically group allocations into subsystems — e.g., `AggregatedDataVariants::init` called from `HashedDictionary::loadData` is \"Dictionary Loading\", not \"Aggregation\"; `Arena::addMemoryChunk` inside a merge pipeline is \"Merges\", not \"Arena\".\n\nYour report should include:\n\n1. **Summary statistics** (total, trace count)\n2. **Top allocators table** (top 15 stack traces with readable short description)\n3. **Subsystem breakdown with bar chart** — group every top-25 trace (and the leaf function data) into semantic subsystems based on the full call path context. Use categories like: Part Loading, Dictionary Loading, Query Execution, Backup & Restore, Merges & Mutations, File Cache, IO Buffers, Replication, System Logs, etc. Show an ASCII bar chart. Traces that don't fit neatly into a category go into \"(other)\".\n4. **Top 3–5 actionable findings** — e.g.:\n   - Which subsystem unexpectedly dominates\n   - Any single allocation that is disproportionately large (>5% of total)\n   - Repeated patterns (e.g., many system log types each reserving large buffers)\n   - Signs of fragmentation or excessive reallocation (`do_rallocx` \u002F `PODArray::realloc` heavy)\n5. **Follow-up drill-down questions** the user may want to investigate\n\n## Step 4 — Offer drill-down options\n\nAfter presenting the summary, use `AskUserQuestion`:\n\n**Question**: \"What would you like to do next?\"\n\n- **Option 1: \"Drill into a specific subsystem\"**\n  Description: \"Show all stack traces for a chosen component (e.g., MergeTree, SystemLog)\"\n  → Ask which subsystem with a follow-up `AskUserQuestion`\n  → **Launch Task (`subagent_type=Bash`) in the background** (`run_in_background: true`) with a Python script that:\n    - Filters all traces whose stack contains any keyword matching the chosen subsystem\n    - Sorts by value descending\n    - Prints each trace as: `MB (pct%) | frame1 ← frame2 ← ... ← frameN`\n    - Also prints the full call stack for the top 5 matches\n    - Prints a sub-total for the subsystem\n  → Use TaskOutput to wait, then pass output to a `general-purpose` Task agent for a concise summary\n\n- **Option 2: \"Show full stacks for top N traces\"**\n  Description: \"Print complete call stacks for the largest N allocations\"\n  → Ask N with a follow-up `AskUserQuestion` (suggest 10 as default)\n  → **Launch Task (`subagent_type=Bash`) in the background** with a Python script that:\n    - Parses the file, sorts by value, takes top N\n    - For each: prints rank, MB, %, and the full reversed call stack with depth indices\n  → Use TaskOutput to wait, then pass output to a `general-purpose` Task agent for a concise narrative summary\n\n- **Option 3: \"Search for a keyword in stacks\"**\n  Description: \"Filter traces containing a specific function or class name\"\n  → Ask for the keyword via `AskUserQuestion`\n  → **Launch two Task agents in parallel** (`run_in_background: true`):\n    - **Agent X (`subagent_type=Bash`)**: filter and aggregate all matching traces — sum total, count, top 20 by size, full stacks for top 5\n    - **Agent Y (`subagent_type=Bash`)**: find related keywords by scanning all frames containing the keyword and extracting their neighboring frames (co-occurring functions), to suggest related call paths\n  → Use TaskOutput (both) then pass combined output to a `general-purpose` Task agent for synthesis\n\n- **Option 4: \"Generate flamegraph SVG\"**\n  Description: \"Render an SVG flamegraph using flamegraph.pl (must be installed)\"\n  → **Launch Task (`subagent_type=Bash`) in the background**:\n    ```bash\n    flamegraph.pl --title \"Allocation Profile\" --countname bytes --width 1800 \\\n      PATH_TO_FILE > \u002Ftmp\u002Falloc_flamegraph.svg\n    ```\n  → Use TaskOutput to wait for completion\n  → Report the output path `\u002Ftmp\u002Falloc_flamegraph.svg` and remind user to open it in a browser\n\n- **Option 5: \"Done\"**\n  Description: \"Exit without further analysis\"\n\n**IMPORTANT:** For every drill-down option (1–4):\n- Always run the analysis inside a Task subagent — never process the file in the main context\n- Always run the Bash analysis task in the background with `run_in_background: true` and wait with TaskOutput\n- Always pass raw output through a `general-purpose` Task agent for a concise, human-readable summary before showing it to the user\n\nRepeat drill-down (return to the `AskUserQuestion`) until user selects \"Done\".\n\n## Notes\n\n- Values in collapsed format are **live (in-use) bytes** — jemalloc heap profiles track allocations minus deallocations, so values reflect currently live memory at the time of the dump\n- High values directly indicate live memory pressure at those call sites\n- Frames are listed **outermost (thread root) first**, innermost (allocator) last — the analysis scripts reverse this for readability\n- Symbol names may be mangled if the binary lacks debug info; use `jeprof --demangle` or pipe through `c++filt`\n- **ALWAYS use Task subagents for all analysis steps** — profile files can be hundreds of MB and must not be read into the main context\n- All Python analysis scripts are self-contained and can be run directly with `python3 -`\n\n## Examples\n\n- `\u002Falloc-profile` — Find `.collapsed` files and prompt for selection\n- `\u002Falloc-profile jemalloc-profile-2026-02-19T13-08-59-825Z.collapsed` — Analyze a specific file\n- `\u002Falloc-profile \u002Ftmp\u002Fprod-heap-dump.collapsed` — Analyze an absolute path\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"disable-model-invocation":20},"Task, Bash(ls:*), Bash(find:*), Bash(wc:*), Bash(python3:*)",[26],"path-to-profile.collapsed","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Data-数据存储\u002FYYC3-Data-数据存储-ClickHouse\u002F.claude\u002Fskills\u002Falloc-profile",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill alloc-profile",{"tool":42,"command":43},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill alloc-profile",{"tool":45,"command":46},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill alloc-profile","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Data-数据存储\u002FYYC3-Data-数据存储-ClickHouse\u002F.claude\u002Fskills\u002Falloc-profile\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]