[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A6QZ7K22D86GE6FD003NP8":3,"skill-same:01M7A6QZ7K22D86GE6FD003NP8":80},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M7A6QZ7K22D86GE6FD003NP8","jetson-init-source",null,"Set up the BSP source workspace: Linux_for_Tegra overlay tracker, bsp_sources, Crosstool-NG toolchain. Use after jetson-init-image; not for fetching inputs.","themusebook\u002Fskills","themusebook","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F349927247?v=4","01M7A5C1RV5S3V5FF6ZACVDNRN","musebook","01M7A5C1SFC3KRZAXNN60XJ7KM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jetson-init-source\ndescription: >-\n  Set up the BSP source workspace: Linux_for_Tegra overlay tracker,\n  bsp_sources, Crosstool-NG toolchain. Use after jetson-init-image;\n  not for fetching inputs.\nversion: 0.0.1\nlicense: \"Apache-2.0\"\nmetadata:\n  data-classification: public\n  author: \"Jetson Team\"\n  tags:\n    - bsp\n    - workspace\n    - kernel\n    - bootstrap\n  domain: meta\n---\n\n# Initialize BSP Customization Workspace\n\n## Overview\n\nThis skill bootstraps the source-side workspace that customize-* \u002F build\nskills depend on: the `Linux_for_Tegra` overlay tracker (git repo for\npristine + customization commits), the `bsp_sources\u002F` mono-tree (kernel,\nOOT, nvgpu, display, hwpm, hardware DTs), and a working NVIDIA\nCrosstool-NG cross-compile prefix. It owns only the `source:` block in\nthe active profile and the on-disk source workspace under\n`\u003Csource.root_path>` (default: `\u003Cworkspace>\u002FSource`).\n\nResponsibilities:\n\n1. Optionally record a non-default `source.root_path`.\n2. Create or mount the `Linux_for_Tegra` overlay tracker.\n3. Materialize `bsp_sources` using the precedence in the \"Materialize the BSP-sources baseline\" step.\n4. Resolve and record `source.toolchain`.\n5. Clone extra user-defined repos from `source.repos:`.\n\n## When to invoke\n\n- The user asks to bootstrap, init, or sync the BSP customization\n  workspace.\n- A downstream customization skill refused with \"no workspace\n  tracker at `\u003Csource.root_path>\u002FLinux_for_Tegra\u002F`\".\n- After `jetson-init-image` (Setup's next step on a fresh target).\n\n## Procedure\n\n### Quick-start prefill mapping\n\nFollow the shared\n[`quick_start_prefill` contract](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md#quick_start_prefill-contract).\nThis skill has source-specific mappings:\n\n- `quick_start_prefill.source.public_sources_archive` maps to the\n  Branch-A archive candidate.\n- `quick_start_prefill.source.repos` maps to proposed `source.repos:`\n  entries; validate reserved keys and `url:` \u002F `archive:` mutual\n  exclusion before writing.\n- `quick_start_prefill.source.toolchain` may be a cross-compile prefix,\n  a `gcc` path, a containing `bin\u002F` directory, an `x-tools.tbz2` archive\n  path, or `skip`.\n\nThis skill remains the only owner of `source.root_path`, `source.repos:`,\nand `source.toolchain` profile writes.\n\n### Resolve the active target + paths\n\nResolve the active profile + workspace defaults per the contract in\n[`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md).\n\n- **Refuse** if `\u003Cbsp_image.root_path>` does not contain\n  `Linux_for_Tegra\u002F` (BSP not extracted — route to `\u002Fjetson-init-image`).\n- If the profile has `source.root_path:`, use it. Otherwise\n  `\u003Csource.root_path>` defaults to `\u003Cworkspace>\u002FSource`; use that default\n  silently and do not write `source.root_path:` to the profile. Ask only\n  for an explicit custom path, unrelated content at the default path, or an\n  unwritable parent.\n\nRead `source.repos:` (if present) into a map keyed by entry name,\neach carrying optional `url`, `ref`, `subdir`, `path`. Reserved keys:\n`Linux_for_Tegra` (overlay tracker), `bsp_sources` (kernel-source\nrepo). Every other key is an extra user-defined repo.\n\n#### (Optional) prompt for `source.root_path` override\n\nOnly when `source.root_path` is absent from the profile **and** one of the\noverride conditions above applies:\n\n> `source.root_path`: default = `\u003Cworkspace>\u002FSource`. Press Enter to\n> accept, or enter an absolute path to override.\n\n- **On Enter** — keep the default; do not touch the profile.\n- **On override path** — validate the closest existing parent is\n  writable; refuse and re-prompt if not. Edit\n  `target-platform\u002F\u003Cactive>.yaml` in place to add\u002Fupdate\n  `source.root_path:`. Preserve all other blocks, comments, and\n  quoting — use a round-tripping YAML loader (e.g. `ruamel.yaml`).\n\nFires at most once per profile. Otherwise create `\u003Cworkspace>\u002FSource` as\nneeded and continue without prompting.\n\n### Materialize `Linux_for_Tegra`\n\nMount path is canonical: `\u003Csource.root_path>\u002FLinux_for_Tegra\u002F`.\n\n**Default** (no `source.repos.Linux_for_Tegra` entry):\n\n```bash\nLFT=\"\u003Csource.root_path>\u002FLinux_for_Tegra\"\nmkdir -p \"$LFT\"\n[ -d \"$LFT\u002F.git\" ] || git -C \"$LFT\" init\n```\n\nEmpty tracker. **Do not commit anything here** — pristine imports\nhappen file-by-file when customization skills run.\n\n**Override** (`url`, `ref`, optional `subdir`):\n\n```bash\n# Clone the user's repo to a side location, then mount the\n# expected tree (subdir or repo root) at the canonical path.\nCLONE=\"\u003Csource.root_path>\u002F.repos\u002FLinux_for_Tegra\"\ngit clone \u003Curl> -b \u003Cref> \"$CLONE\"\nln -s \"$CLONE\u002F\u003Csubdir or .>\" \"\u003Csource.root_path>\u002FLinux_for_Tegra\"\n```\n\nIf the mount already exists with valid git state, skip; refuse if it\nexists with unrelated content.\n\n### Materialize the BSP-sources baseline\n\nThree branches, dispatched **in precedence order** against the\nprofile entry `source.repos.bsp_sources`:\n\n| Order | Profile state | Branch |\n|---|---|---|\n| 1 | `url:` set | **C. Customer git clone** (explicit override always wins) |\n| 2 | `archive:` set, **OR** entry absent **AND** `\u003Cworkspace>\u002FDownloads\u002Fpublic_sources.tbz2` exists | **A. Local archive extraction** (default) |\n| 3 | Entry absent **AND** no local archive | **B. `source_sync.sh`** (fallback) |\n\n`url:` and `archive:` are **mutually exclusive** — refuse if both are\nset in the same entry.\n\nBranch A is the preferred default because it sidesteps NVIDIA git\negress entirely (the most common Setup failure mode). Branch B\nexists for fresh workspaces with no pre-downloaded tarball.\nBranch C is for customer forks of the whole BSP layout.\n\n#### Branch A — Local archive extraction (default)\n\nDefault branch: extract a pre-downloaded `public_sources.tbz2` into\n`\u003Csource.root_path>\u002Fbsp_sources\u002F` as a single mono-repo (`git init` +\npristine commit). See\n[`references\u002Fbranch-a-extraction.md`](references\u002Fbranch-a-extraction.md)\nfor the full archive shape, path-resolution rules, and the extraction\nscript (including the Tegra OOT Makefile force-replace workaround for\nR36.x).\n\nBranches B and C may produce per-component repos instead; downstream\nbuild logic still walks the canonical sub-paths under\n`\u003Csource.root_path>\u002Fbsp_sources\u002F`.\n\n#### Branch B — `source_sync.sh` (fallback)\n\nRuns only when no local archive is found and no `url:` is set.\nCreate the `bsp_sources\u002F` mount directory under `\u003Csource.root_path>`\nand run `source_sync.sh` from the extracted BSP with two flags:\n\n```bash\nmkdir -p \"\u003Csource.root_path>\u002Fbsp_sources\"\nbash \"\u003Cbsp_image.root_path>\u002FLinux_for_Tegra\u002Fsource\u002Fsource_sync.sh\" \\\n     -d \"\u003Csource.root_path>\u002Fbsp_sources\" \\\n     -t \"jetson_\u003Cmajor.minor>\"\n```\n\n- `-d \u003Csource.root_path>\u002Fbsp_sources` — write clones into the\n  `bsp_sources\u002F` subdir of the workspace, so the on-disk folder\n  matches the schema key. Without `-d`, the script writes under its\n  own directory (the BSP itself) — wrong for the overlay model.\n- `-t jetson_\u003Cmajor.minor>` — pin the tag to the BSP release line.\n  Derive from `bsp_image.version` by truncating to the first two\n  dotted components: `\"38.4.0\"` → `jetson_38.4`. **Tag-format\n  fallback**: if rejected, try `jetson_\u003Cbsp_image.version>` (older\n  L4T sometimes uses the full form). If that also fails, surface the\n  error and stop — never fall back to \"latest\" silently.\n\nRefuse if `source_sync.sh` does not exist: re-run `\u002Fjetson-init-image`\nto repopulate `Linux_for_Tegra\u002Fsource\u002F`.\n\n`source_sync.sh` exits 0 even when every clone failed — verify by\ncounting `Failed to clone` lines in its output and refuse if\nnon-zero. The most likely cause of universal failure is **blocked\ngit egress** to `gitlab.com\u002Fnvidia\u002Fnv-tegra` \u002F\n`nv-tegra.nvidia.com`; surface that explicitly and route the user\nto download `public_sources.tbz2` via `\u002Fquick-start` for Branch A.\n\n#### Branch C — Customer git clone (`url:` override)\n\nTriggered by an explicit `url:` field. Clone the customer repo once\nand expose its canonical kernel-side sub-paths under\n`\u003Csource.root_path>\u002Fbsp_sources\u002F`. The canonical sub-path list is\n**read from source_sync.sh's `SOURCE_INFO` at runtime** — do not\nhard-code it, so future NVIDIA additions\u002Fremovals propagate\nautomatically:\n\n```bash\n# Parse canonical sub-paths from source_sync.sh's SOURCE_INFO\n# (only the kernel-side entries marked `k:` in the second field).\nSUBPATHS=$(grep -oP '^\\s*k:[^:]+:' \\\n  \"\u003Cbsp_image.root_path>\u002FLinux_for_Tegra\u002Fsource\u002Fsource_sync.sh\" \\\n  | sed 's\u002F^\\s*k:\u002F\u002F; s\u002F:$\u002F\u002F')\n\nmkdir -p \"\u003Csource.root_path>\u002Fbsp_sources\"\nCLONE=\"\u003Csource.root_path>\u002F.repos\u002Fbsp_sources\"\ngit clone \u003Curl> -b \u003Cref> \"$CLONE\"\nROOT=\"$CLONE\u002F\u003Csubdir or .>\"\nfor SUB in $SUBPATHS; do\n  [ -d \"$ROOT\u002F$SUB\" ] && \\\n    ln -s \"$ROOT\u002F$SUB\" \"\u003Csource.root_path>\u002Fbsp_sources\u002F$SUB\"\ndone\n```\n\nReport any canonical sub-path expected for the active chip family\nbut not present inside the customer repo (warn, don't refuse —\ncustomer may legitimately not have all repos).\n\n### Resolve cross-compile toolchain\n\nThe downstream `jetson-build-source` reads `source.toolchain` from\nthis profile and exports it as `CROSS_COMPILE`. This step **must**\nland a valid prefix before init-source returns, or any subsequent\nkernel \u002F OOT \u002F DT build will refuse.\n\nNVIDIA's official **Crosstool-NG Toolchain gcc** is the canonical\ntoolchain for L4T. `jetson-download-bsp` owns any network fetch of\n`x-tools.tbz2`; this skill only discovers, extracts, validates, and\nwrites the resolved prefix. Resolution follows a three-step ladder:\n\n#### Auto-discover\n\nLook under `\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002F` for the Crosstool-NG\nlayout — typically one of:\n\n```\n\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002Faarch64-none-linux-gnu\u002Fbin\u002Faarch64-none-linux-gnu-gcc\n\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002Faarch64-buildroot-linux-gnu\u002Fbin\u002Faarch64-buildroot-linux-gnu-gcc\n```\n\nGlob: `\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002Faarch64-*-linux-gnu\u002Fbin\u002Faarch64-*-linux-gnu-gcc`.\nIf exactly one match, bind:\n\n```bash\nTC_PREFIX=\u003Cabsolute path to that ...\u002Fbin\u002F\u003Ctriple>->   # trailing dash mandatory\n```\n\nSkip to \"Write to profile\" below. If zero matches, fall through\nto \"Auto-extract from `Downloads\u002Fx-tools.tbz2`\" below. If multiple, refuse with the list and ask the user to\nremove the unwanted ones (we never pick one silently among\nambiguous installs — different Crosstool-NG flavors produce ABI-\nincompatible binaries).\n\n#### Auto-extract from `Downloads\u002Fx-tools.tbz2`\n\nIf `\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2` exists (mirrors the\n`public_sources.tbz2` Branch-A pattern in the \"Materialize the BSP-sources baseline\" step — air-gapped \u002F\nno-egress users drop archives there):\n\n```bash\nfile -b \"\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2\" | grep -q \"bzip2 compressed\" || \\\n  refuse \"\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2 is not a bzip2 tarball\"\nmkdir -p \"\u003Cworkspace>\u002Ftoolchain\"\ntar xjf \"\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2\" -C \"\u003Cworkspace>\u002Ftoolchain\"\n```\n\nThen re-run the \"Auto-discover\" pass above. Refuse if extraction succeeds\nbut no `x-tools\u002Faarch64-*-linux-gnu\u002Fbin\u002F` is produced (archive\ncontent doesn't match the Crosstool-NG layout).\n\n#### Prompt the user\n\nIf both Auto-discover and Auto-extract came up empty, ask:\n\n> No Crosstool-NG toolchain found at `\u003Cworkspace>\u002Ftoolchain\u002F` or in\n> `\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2`.\n>\n> Reply with one of:\n>   - absolute path to your `aarch64-*-linux-gnu-gcc` binary or its\n>     containing `bin\u002F` directory,\n>   - `cancel` to abort.\n>\n> To fetch the archive instead, cancel this run, run\n> `\u002Fjetson-download-bsp`, then re-run `\u002Fjetson-init-source`.\n\nFor a path reply, validate via `[ -f \"${TC_PREFIX}gcc\" ]`. Refuse\nand re-prompt on failure.\n\n#### Write to profile\n\nOnce `$TC_PREFIX` resolves and `${TC_PREFIX}gcc` exists, write it\ninto the active profile using a round-tripping YAML loader:\n\n```yaml\nsource:\n  toolchain: \u003CTC_PREFIX>   # absolute, with trailing dash\n```\n\nIf `source:` is otherwise empty (no `root_path` override, no\n`repos:` entries), the `source:` block is now non-empty and stays\nin the profile. Future `jetson-init-source` runs **skip the \"Resolve cross-compile toolchain\" step**\nif `source.toolchain` is already set and points at a working `gcc`.\n\n### Clone extra user-defined repos\n\nFor each entry under `source.repos:` whose name is not\n`Linux_for_Tegra` or `bsp_sources`:\n\n```bash\nMOUNT=\"\u003Csource.root_path>\u002F\u003Centry.path or entry.name>\"\nif [ -n \"\u003Centry.subdir>\" ]; then\n  CLONE=\"\u003Csource.root_path>\u002F.repos\u002F\u003Centry.name>\"\n  git clone \u003Centry.url> -b \u003Centry.ref> \"$CLONE\"\n  ln -s \"$CLONE\u002F\u003Centry.subdir>\" \"$MOUNT\"\nelse\n  git clone \u003Centry.url> -b \u003Centry.ref> \"$MOUNT\"\nfi\n```\n\nRefuse if a mount path already exists with unrelated content.\n\n### Summary\n\nPrint:\n\n- Resolved `\u003Cworkspace>`, `\u003Cbsp_image.root_path>`, and\n  `\u003Csource.root_path>`.\n- For each materialized component: created, reused, skipped, or refused.\n- For `bsp_sources`: branch selected plus key evidence (archive path,\n  `source_sync.sh` failure count, or clone URL\u002Fref).\n- Toolchain prefix, resolution source, and `${TC_PREFIX}gcc --version`\n  first line.\n- Reminder that customize-* skills stage future BSP edits in\n  `\u003Csource.root_path>\u002FLinux_for_Tegra\u002F`; promote is what later copies\n  committed overlay changes into `bsp_image`.\n\nIf a downstream skill triggered this run, tell the user to re-issue\ntheir original request.\n\n## Gotchas\n\n- `Linux_for_Tegra` and `bsp_sources` mount paths are canonical.\n  `path:` applies only to extra user-defined repos.\n- The default `Linux_for_Tegra` tracker is intentionally empty; do not\n  pre-populate it.\n- `bsp_sources` precedence is `url:` → `archive:` → auto-discovered\n  `Downloads\u002Fpublic_sources.tbz2` → `source_sync.sh`. `url:` and\n  `archive:` are mutually exclusive.\n- Branch A auto-discovery does not prompt and is not written back to the\n  profile. Persist it only with `source.repos.bsp_sources.archive:`.\n- **Branch A `$DEST\u002FMakefile` collision.** Inner tarballs in\n  `public_sources.tbz2` ship two files named `Makefile`: the Tegra\n  orchestrator (`kernel_oot_modules_src.tbz2`) and the dGPU\u002FOpenRM\n  proprietary Makefile (`nvidia_kernel_display_driver_source_without_\n  root_dir.tbz2`). Alphabetical extraction order lets the dGPU one\n  win on R36.x; downstream arm64 cross-builds then fail with\n  `'-mlittle-endian' unrecognized`. Step 3a force-replaces from\n  `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fsource\u002FMakefile` when the Tegra\n  `modules: hwpm nvidia-oot nvgpu nvidia-display` signature is\n  missing. R38+ extractions already match; the check is a no-op there.\n- Branch C customer repos must expose the canonical `source_sync.sh`\n  sub-path layout, optionally shifted by `subdir:`.\n- Derive the `source_sync.sh` tag from `bsp_image.version` as\n  `jetson_\u003Cmajor.minor>` first; never fall back to an unpinned latest.\n- `jetson-download-bsp` owns network downloads of `public_sources.tbz2`\n  and `x-tools.tbz2`; this skill consumes local archives only.\n- `source.toolchain` must be an NVIDIA Crosstool-NG prefix with trailing\n  dash and a working `${prefix}gcc`. Never silently use `$PATH`.\n- Use a round-tripping YAML writer for profile edits.\n\n## Prerequisites\n\n- Active target profile resolved per\n  `..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`.\n- `\u002Fjetson-init-image` already run so `bsp_image.version` is recorded\n  (Branch B `source_sync.sh` tag derives from it).\n- For Branch A: a local `public_sources.tbz2` (and optionally\n  `x-tools.tbz2`) staged under `Downloads\u002F`.\n- For Branch C: customer Git access to the override repo URL.\n\n## Limitations\n\n- Owns only the `source:` block; never edits `bsp_image`,\n  `reference_devkit`, `custom_carrier`, or `documents`.\n- Network egress only for Branch B (`source_sync.sh`) and Branch C\n  (customer Git clone); Branch A is fully offline.\n- Refuses to silently substitute a system toolchain — the NVIDIA\n  Crosstool-NG prefix must be present or extractable.\n\n## Troubleshooting\n\n- **`${toolchain}gcc` not found** — re-stage `x-tools.tbz2` under\n  `Downloads\u002F` and rerun, or pass a verified absolute prefix path.\n- **`source_sync.sh` cannot resolve `jetson_\u003Cmajor.minor>` tag** — the\n  recorded `bsp_image.version` is wrong; re-run `\u002Fjetson-init-image`\n  to refresh it.\n- **`Linux_for_Tegra\u002F.git` shows uncommitted hand-edits** — abort and\n  ask the user to commit or stash; this skill expects a clean tracker.\n- **Branch C clone missing canonical sub-paths** — repo layout doesn't\n  match `source_sync.sh`; set `subdir:` to the right sub-root or fall\n  back to multi-repo overrides under `source.repos:`.\n\n## References\n\n- [`..\u002F..\u002Freferences\u002Fplatform_template.yaml`](..\u002F..\u002Freferences\u002Fplatform_template.yaml) — `source:` schema, including the `repos:` map.\n- [`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md) — target-platform contract.\n- [`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md#workflow-invariants) — Workspace edit protocol.\n- [`..\u002Fjetson-init-target\u002FSKILL.md`](..\u002Fjetson-init-target\u002FSKILL.md) — authors the profile this skill consumes.\n- [`..\u002Fjetson-init-image\u002FSKILL.md`](..\u002Fjetson-init-image\u002FSKILL.md) — extracts the BSP and back-fills `bsp_image.version`; run before this skill.\n","# Initialize BSP Customization Workspace\n\n## Overview\n\nThis skill bootstraps the source-side workspace that customize-* \u002F build\nskills depend on: the `Linux_for_Tegra` overlay tracker (git repo for\npristine + customization commits), the `bsp_sources\u002F` mono-tree (kernel,\nOOT, nvgpu, display, hwpm, hardware DTs), and a working NVIDIA\nCrosstool-NG cross-compile prefix. It owns only the `source:` block in\nthe active profile and the on-disk source workspace under\n`\u003Csource.root_path>` (default: `\u003Cworkspace>\u002FSource`).\n\nResponsibilities:\n\n1. Optionally record a non-default `source.root_path`.\n2. Create or mount the `Linux_for_Tegra` overlay tracker.\n3. Materialize `bsp_sources` using the precedence in the \"Materialize the BSP-sources baseline\" step.\n4. Resolve and record `source.toolchain`.\n5. Clone extra user-defined repos from `source.repos:`.\n\n## When to invoke\n\n- The user asks to bootstrap, init, or sync the BSP customization\n  workspace.\n- A downstream customization skill refused with \"no workspace\n  tracker at `\u003Csource.root_path>\u002FLinux_for_Tegra\u002F`\".\n- After `jetson-init-image` (Setup's next step on a fresh target).\n\n## Procedure\n\n### Quick-start prefill mapping\n\nFollow the shared\n[`quick_start_prefill` contract](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md#quick_start_prefill-contract).\nThis skill has source-specific mappings:\n\n- `quick_start_prefill.source.public_sources_archive` maps to the\n  Branch-A archive candidate.\n- `quick_start_prefill.source.repos` maps to proposed `source.repos:`\n  entries; validate reserved keys and `url:` \u002F `archive:` mutual\n  exclusion before writing.\n- `quick_start_prefill.source.toolchain` may be a cross-compile prefix,\n  a `gcc` path, a containing `bin\u002F` directory, an `x-tools.tbz2` archive\n  path, or `skip`.\n\nThis skill remains the only owner of `source.root_path`, `source.repos:`,\nand `source.toolchain` profile writes.\n\n### Resolve the active target + paths\n\nResolve the active profile + workspace defaults per the contract in\n[`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md).\n\n- **Refuse** if `\u003Cbsp_image.root_path>` does not contain\n  `Linux_for_Tegra\u002F` (BSP not extracted — route to `\u002Fjetson-init-image`).\n- If the profile has `source.root_path:`, use it. Otherwise\n  `\u003Csource.root_path>` defaults to `\u003Cworkspace>\u002FSource`; use that default\n  silently and do not write `source.root_path:` to the profile. Ask only\n  for an explicit custom path, unrelated content at the default path, or an\n  unwritable parent.\n\nRead `source.repos:` (if present) into a map keyed by entry name,\neach carrying optional `url`, `ref`, `subdir`, `path`. Reserved keys:\n`Linux_for_Tegra` (overlay tracker), `bsp_sources` (kernel-source\nrepo). Every other key is an extra user-defined repo.\n\n#### (Optional) prompt for `source.root_path` override\n\nOnly when `source.root_path` is absent from the profile **and** one of the\noverride conditions above applies:\n\n> `source.root_path`: default = `\u003Cworkspace>\u002FSource`. Press Enter to\n> accept, or enter an absolute path to override.\n\n- **On Enter** — keep the default; do not touch the profile.\n- **On override path** — validate the closest existing parent is\n  writable; refuse and re-prompt if not. Edit\n  `target-platform\u002F\u003Cactive>.yaml` in place to add\u002Fupdate\n  `source.root_path:`. Preserve all other blocks, comments, and\n  quoting — use a round-tripping YAML loader (e.g. `ruamel.yaml`).\n\nFires at most once per profile. Otherwise create `\u003Cworkspace>\u002FSource` as\nneeded and continue without prompting.\n\n### Materialize `Linux_for_Tegra`\n\nMount path is canonical: `\u003Csource.root_path>\u002FLinux_for_Tegra\u002F`.\n\n**Default** (no `source.repos.Linux_for_Tegra` entry):\n\n```bash\nLFT=\"\u003Csource.root_path>\u002FLinux_for_Tegra\"\nmkdir -p \"$LFT\"\n[ -d \"$LFT\u002F.git\" ] || git -C \"$LFT\" init\n```\n\nEmpty tracker. **Do not commit anything here** — pristine imports\nhappen file-by-file when customization skills run.\n\n**Override** (`url`, `ref`, optional `subdir`):\n\n```bash\n# Clone the user's repo to a side location, then mount the\n# expected tree (subdir or repo root) at the canonical path.\nCLONE=\"\u003Csource.root_path>\u002F.repos\u002FLinux_for_Tegra\"\ngit clone \u003Curl> -b \u003Cref> \"$CLONE\"\nln -s \"$CLONE\u002F\u003Csubdir or .>\" \"\u003Csource.root_path>\u002FLinux_for_Tegra\"\n```\n\nIf the mount already exists with valid git state, skip; refuse if it\nexists with unrelated content.\n\n### Materialize the BSP-sources baseline\n\nThree branches, dispatched **in precedence order** against the\nprofile entry `source.repos.bsp_sources`:\n\n| Order | Profile state | Branch |\n|---|---|---|\n| 1 | `url:` set | **C. Customer git clone** (explicit override always wins) |\n| 2 | `archive:` set, **OR** entry absent **AND** `\u003Cworkspace>\u002FDownloads\u002Fpublic_sources.tbz2` exists | **A. Local archive extraction** (default) |\n| 3 | Entry absent **AND** no local archive | **B. `source_sync.sh`** (fallback) |\n\n`url:` and `archive:` are **mutually exclusive** — refuse if both are\nset in the same entry.\n\nBranch A is the preferred default because it sidesteps NVIDIA git\negress entirely (the most common Setup failure mode). Branch B\nexists for fresh workspaces with no pre-downloaded tarball.\nBranch C is for customer forks of the whole BSP layout.\n\n#### Branch A — Local archive extraction (default)\n\nDefault branch: extract a pre-downloaded `public_sources.tbz2` into\n`\u003Csource.root_path>\u002Fbsp_sources\u002F` as a single mono-repo (`git init` +\npristine commit). See\n[`references\u002Fbranch-a-extraction.md`](references\u002Fbranch-a-extraction.md)\nfor the full archive shape, path-resolution rules, and the extraction\nscript (including the Tegra OOT Makefile force-replace workaround for\nR36.x).\n\nBranches B and C may produce per-component repos instead; downstream\nbuild logic still walks the canonical sub-paths under\n`\u003Csource.root_path>\u002Fbsp_sources\u002F`.\n\n#### Branch B — `source_sync.sh` (fallback)\n\nRuns only when no local archive is found and no `url:` is set.\nCreate the `bsp_sources\u002F` mount directory under `\u003Csource.root_path>`\nand run `source_sync.sh` from the extracted BSP with two flags:\n\n```bash\nmkdir -p \"\u003Csource.root_path>\u002Fbsp_sources\"\nbash \"\u003Cbsp_image.root_path>\u002FLinux_for_Tegra\u002Fsource\u002Fsource_sync.sh\" \\\n     -d \"\u003Csource.root_path>\u002Fbsp_sources\" \\\n     -t \"jetson_\u003Cmajor.minor>\"\n```\n\n- `-d \u003Csource.root_path>\u002Fbsp_sources` — write clones into the\n  `bsp_sources\u002F` subdir of the workspace, so the on-disk folder\n  matches the schema key. Without `-d`, the script writes under its\n  own directory (the BSP itself) — wrong for the overlay model.\n- `-t jetson_\u003Cmajor.minor>` — pin the tag to the BSP release line.\n  Derive from `bsp_image.version` by truncating to the first two\n  dotted components: `\"38.4.0\"` → `jetson_38.4`. **Tag-format\n  fallback**: if rejected, try `jetson_\u003Cbsp_image.version>` (older\n  L4T sometimes uses the full form). If that also fails, surface the\n  error and stop — never fall back to \"latest\" silently.\n\nRefuse if `source_sync.sh` does not exist: re-run `\u002Fjetson-init-image`\nto repopulate `Linux_for_Tegra\u002Fsource\u002F`.\n\n`source_sync.sh` exits 0 even when every clone failed — verify by\ncounting `Failed to clone` lines in its output and refuse if\nnon-zero. The most likely cause of universal failure is **blocked\ngit egress** to `gitlab.com\u002Fnvidia\u002Fnv-tegra` \u002F\n`nv-tegra.nvidia.com`; surface that explicitly and route the user\nto download `public_sources.tbz2` via `\u002Fquick-start` for Branch A.\n\n#### Branch C — Customer git clone (`url:` override)\n\nTriggered by an explicit `url:` field. Clone the customer repo once\nand expose its canonical kernel-side sub-paths under\n`\u003Csource.root_path>\u002Fbsp_sources\u002F`. The canonical sub-path list is\n**read from source_sync.sh's `SOURCE_INFO` at runtime** — do not\nhard-code it, so future NVIDIA additions\u002Fremovals propagate\nautomatically:\n\n```bash\n# Parse canonical sub-paths from source_sync.sh's SOURCE_INFO\n# (only the kernel-side entries marked `k:` in the second field).\nSUBPATHS=$(grep -oP '^\\s*k:[^:]+:' \\\n  \"\u003Cbsp_image.root_path>\u002FLinux_for_Tegra\u002Fsource\u002Fsource_sync.sh\" \\\n  | sed 's\u002F^\\s*k:\u002F\u002F; s\u002F:$\u002F\u002F')\n\nmkdir -p \"\u003Csource.root_path>\u002Fbsp_sources\"\nCLONE=\"\u003Csource.root_path>\u002F.repos\u002Fbsp_sources\"\ngit clone \u003Curl> -b \u003Cref> \"$CLONE\"\nROOT=\"$CLONE\u002F\u003Csubdir or .>\"\nfor SUB in $SUBPATHS; do\n  [ -d \"$ROOT\u002F$SUB\" ] && \\\n    ln -s \"$ROOT\u002F$SUB\" \"\u003Csource.root_path>\u002Fbsp_sources\u002F$SUB\"\ndone\n```\n\nReport any canonical sub-path expected for the active chip family\nbut not present inside the customer repo (warn, don't refuse —\ncustomer may legitimately not have all repos).\n\n### Resolve cross-compile toolchain\n\nThe downstream `jetson-build-source` reads `source.toolchain` from\nthis profile and exports it as `CROSS_COMPILE`. This step **must**\nland a valid prefix before init-source returns, or any subsequent\nkernel \u002F OOT \u002F DT build will refuse.\n\nNVIDIA's official **Crosstool-NG Toolchain gcc** is the canonical\ntoolchain for L4T. `jetson-download-bsp` owns any network fetch of\n`x-tools.tbz2`; this skill only discovers, extracts, validates, and\nwrites the resolved prefix. Resolution follows a three-step ladder:\n\n#### Auto-discover\n\nLook under `\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002F` for the Crosstool-NG\nlayout — typically one of:\n\n```\n\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002Faarch64-none-linux-gnu\u002Fbin\u002Faarch64-none-linux-gnu-gcc\n\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002Faarch64-buildroot-linux-gnu\u002Fbin\u002Faarch64-buildroot-linux-gnu-gcc\n```\n\nGlob: `\u003Cworkspace>\u002Ftoolchain\u002Fx-tools\u002Faarch64-*-linux-gnu\u002Fbin\u002Faarch64-*-linux-gnu-gcc`.\nIf exactly one match, bind:\n\n```bash\nTC_PREFIX=\u003Cabsolute path to that ...\u002Fbin\u002F\u003Ctriple>->   # trailing dash mandatory\n```\n\nSkip to \"Write to profile\" below. If zero matches, fall through\nto \"Auto-extract from `Downloads\u002Fx-tools.tbz2`\" below. If multiple, refuse with the list and ask the user to\nremove the unwanted ones (we never pick one silently among\nambiguous installs — different Crosstool-NG flavors produce ABI-\nincompatible binaries).\n\n#### Auto-extract from `Downloads\u002Fx-tools.tbz2`\n\nIf `\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2` exists (mirrors the\n`public_sources.tbz2` Branch-A pattern in the \"Materialize the BSP-sources baseline\" step — air-gapped \u002F\nno-egress users drop archives there):\n\n```bash\nfile -b \"\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2\" | grep -q \"bzip2 compressed\" || \\\n  refuse \"\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2 is not a bzip2 tarball\"\nmkdir -p \"\u003Cworkspace>\u002Ftoolchain\"\ntar xjf \"\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2\" -C \"\u003Cworkspace>\u002Ftoolchain\"\n```\n\nThen re-run the \"Auto-discover\" pass above. Refuse if extraction succeeds\nbut no `x-tools\u002Faarch64-*-linux-gnu\u002Fbin\u002F` is produced (archive\ncontent doesn't match the Crosstool-NG layout).\n\n#### Prompt the user\n\nIf both Auto-discover and Auto-extract came up empty, ask:\n\n> No Crosstool-NG toolchain found at `\u003Cworkspace>\u002Ftoolchain\u002F` or in\n> `\u003Cworkspace>\u002FDownloads\u002Fx-tools.tbz2`.\n>\n> Reply with one of:\n>   - absolute path to your `aarch64-*-linux-gnu-gcc` binary or its\n>     containing `bin\u002F` directory,\n>   - `cancel` to abort.\n>\n> To fetch the archive instead, cancel this run, run\n> `\u002Fjetson-download-bsp`, then re-run `\u002Fjetson-init-source`.\n\nFor a path reply, validate via `[ -f \"${TC_PREFIX}gcc\" ]`. Refuse\nand re-prompt on failure.\n\n#### Write to profile\n\nOnce `$TC_PREFIX` resolves and `${TC_PREFIX}gcc` exists, write it\ninto the active profile using a round-tripping YAML loader:\n\n```yaml\nsource:\n  toolchain: \u003CTC_PREFIX>   # absolute, with trailing dash\n```\n\nIf `source:` is otherwise empty (no `root_path` override, no\n`repos:` entries), the `source:` block is now non-empty and stays\nin the profile. Future `jetson-init-source` runs **skip the \"Resolve cross-compile toolchain\" step**\nif `source.toolchain` is already set and points at a working `gcc`.\n\n### Clone extra user-defined repos\n\nFor each entry under `source.repos:` whose name is not\n`Linux_for_Tegra` or `bsp_sources`:\n\n```bash\nMOUNT=\"\u003Csource.root_path>\u002F\u003Centry.path or entry.name>\"\nif [ -n \"\u003Centry.subdir>\" ]; then\n  CLONE=\"\u003Csource.root_path>\u002F.repos\u002F\u003Centry.name>\"\n  git clone \u003Centry.url> -b \u003Centry.ref> \"$CLONE\"\n  ln -s \"$CLONE\u002F\u003Centry.subdir>\" \"$MOUNT\"\nelse\n  git clone \u003Centry.url> -b \u003Centry.ref> \"$MOUNT\"\nfi\n```\n\nRefuse if a mount path already exists with unrelated content.\n\n### Summary\n\nPrint:\n\n- Resolved `\u003Cworkspace>`, `\u003Cbsp_image.root_path>`, and\n  `\u003Csource.root_path>`.\n- For each materialized component: created, reused, skipped, or refused.\n- For `bsp_sources`: branch selected plus key evidence (archive path,\n  `source_sync.sh` failure count, or clone URL\u002Fref).\n- Toolchain prefix, resolution source, and `${TC_PREFIX}gcc --version`\n  first line.\n- Reminder that customize-* skills stage future BSP edits in\n  `\u003Csource.root_path>\u002FLinux_for_Tegra\u002F`; promote is what later copies\n  committed overlay changes into `bsp_image`.\n\nIf a downstream skill triggered this run, tell the user to re-issue\ntheir original request.\n\n## Gotchas\n\n- `Linux_for_Tegra` and `bsp_sources` mount paths are canonical.\n  `path:` applies only to extra user-defined repos.\n- The default `Linux_for_Tegra` tracker is intentionally empty; do not\n  pre-populate it.\n- `bsp_sources` precedence is `url:` → `archive:` → auto-discovered\n  `Downloads\u002Fpublic_sources.tbz2` → `source_sync.sh`. `url:` and\n  `archive:` are mutually exclusive.\n- Branch A auto-discovery does not prompt and is not written back to the\n  profile. Persist it only with `source.repos.bsp_sources.archive:`.\n- **Branch A `$DEST\u002FMakefile` collision.** Inner tarballs in\n  `public_sources.tbz2` ship two files named `Makefile`: the Tegra\n  orchestrator (`kernel_oot_modules_src.tbz2`) and the dGPU\u002FOpenRM\n  proprietary Makefile (`nvidia_kernel_display_driver_source_without_\n  root_dir.tbz2`). Alphabetical extraction order lets the dGPU one\n  win on R36.x; downstream arm64 cross-builds then fail with\n  `'-mlittle-endian' unrecognized`. Step 3a force-replaces from\n  `\u003Cbsp_image>\u002FLinux_for_Tegra\u002Fsource\u002FMakefile` when the Tegra\n  `modules: hwpm nvidia-oot nvgpu nvidia-display` signature is\n  missing. R38+ extractions already match; the check is a no-op there.\n- Branch C customer repos must expose the canonical `source_sync.sh`\n  sub-path layout, optionally shifted by `subdir:`.\n- Derive the `source_sync.sh` tag from `bsp_image.version` as\n  `jetson_\u003Cmajor.minor>` first; never fall back to an unpinned latest.\n- `jetson-download-bsp` owns network downloads of `public_sources.tbz2`\n  and `x-tools.tbz2`; this skill consumes local archives only.\n- `source.toolchain` must be an NVIDIA Crosstool-NG prefix with trailing\n  dash and a working `${prefix}gcc`. Never silently use `$PATH`.\n- Use a round-tripping YAML writer for profile edits.\n\n## Prerequisites\n\n- Active target profile resolved per\n  `..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`.\n- `\u002Fjetson-init-image` already run so `bsp_image.version` is recorded\n  (Branch B `source_sync.sh` tag derives from it).\n- For Branch A: a local `public_sources.tbz2` (and optionally\n  `x-tools.tbz2`) staged under `Downloads\u002F`.\n- For Branch C: customer Git access to the override repo URL.\n\n## Limitations\n\n- Owns only the `source:` block; never edits `bsp_image`,\n  `reference_devkit`, `custom_carrier`, or `documents`.\n- Network egress only for Branch B (`source_sync.sh`) and Branch C\n  (customer Git clone); Branch A is fully offline.\n- Refuses to silently substitute a system toolchain — the NVIDIA\n  Crosstool-NG prefix must be present or extractable.\n\n## Troubleshooting\n\n- **`${toolchain}gcc` not found** — re-stage `x-tools.tbz2` under\n  `Downloads\u002F` and rerun, or pass a verified absolute prefix path.\n- **`source_sync.sh` cannot resolve `jetson_\u003Cmajor.minor>` tag** — the\n  recorded `bsp_image.version` is wrong; re-run `\u002Fjetson-init-image`\n  to refresh it.\n- **`Linux_for_Tegra\u002F.git` shows uncommitted hand-edits** — abort and\n  ask the user to commit or stash; this skill expects a clean tracker.\n- **Branch C clone missing canonical sub-paths** — repo layout doesn't\n  match `source_sync.sh`; set `subdir:` to the right sub-root or fall\n  back to multi-repo overrides under `source.repos:`.\n\n## References\n\n- [`..\u002F..\u002Freferences\u002Fplatform_template.yaml`](..\u002F..\u002Freferences\u002Fplatform_template.yaml) — `source:` schema, including the `repos:` map.\n- [`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md) — target-platform contract.\n- [`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md#workflow-invariants) — Workspace edit protocol.\n- [`..\u002Fjetson-init-target\u002FSKILL.md`](..\u002Fjetson-init-target\u002FSKILL.md) — authors the profile this skill consumes.\n- [`..\u002Fjetson-init-image\u002FSKILL.md`](..\u002Fjetson-init-image\u002FSKILL.md) — extracts the BSP and back-fills `bsp_image.version`; run before this skill.\n",{"name":5,"license":15,"version":24,"metadata":25,"description":7},"0.0.1",{"tags":26,"author":31,"domain":32,"data-classification":33},[27,28,29,30],"bsp","workspace","kernel","bootstrap","Jetson Team","meta","public","main","1c523aba5cdf867a79f078847075492d7778092a","public\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source",1,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002Fthemusebook","https:\u002F\u002Fmusebook.trade","The official Github of musebook","2026-11-02 23:42:26",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add themusebook\u002Fskills --skill jetson-init-source",{"tool":50,"command":51},"bunx","bunx skills add themusebook\u002Fskills --skill jetson-init-source",{"tool":53,"command":54},"pnpm","pnpm dlx skills add themusebook\u002Fskills --skill jetson-init-source","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002FSKILL.md",true,[58,64,68,72,76],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"BENCHMARK.md","REFERENCE","参考文档",3817,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002FBENCHMARK.md",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"metadata.json",360,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Fmetadata.json",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fbranch-a-extraction.md",4497,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Freferences\u002Fbranch-a-extraction.md",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"skill-card.md",3640,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Fskill-card.md",{"path":77,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":78,"sourceHtmlUrl":79},"verification.json",1534,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Fverification.json",[81,90,97,104,111,118],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AB34SPKVSDRRG009PM1CZH","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","MIT","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7AB18BH6N7KR7939HRNWVMQ","viem-integration","Integrate EVM blockchains using viem. Use when user says \"read blockchain data\", \"send transaction\", \"interact with smart contract\", \"connect to Ethereum\", \"use viem\", \"use wagmi\", \"wallet integration\", \"viem setup\", or mentions blockchain\u002FEVM development with TypeScript.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fviem-integration\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7AB12GHGP48WCNXDQQ9222H","v4-security-foundations","Security-first Uniswap v4 hook development. Use when user mentions \"v4 hooks\", \"hook security\", \"PoolManager\", \"beforeSwap\", \"afterSwap\", or asks about V4 hook best practices, vulnerabilities, or audit requirements.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-security-foundations\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7AB0XM3PSR7V3Q2ZRR0Q0FB","v4-sdk-integration","App-layer SDK guide for building swap and liquidity experiences directly with the Uniswap v4 SDK. Use when user asks about \"v4 sdk\", \"uniswap v4\", \"v4 swap\", \"v4 liquidity\", \"PoolManager\", \"V4Planner\", \"StateView\", \"PositionManager\", \"pool state\", \"v4 position\", \"uniswap sdk\", or when building swap\u002Fliquidity UX directly with SDKs rather than via the Trading API.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-sdk-integration\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7AB0SGA93ASA588DJW4P9WT","v4-hook-generator","Generate Uniswap v4 hook contracts via OpenZeppelin MCP. Use when building custom swap logic, async swaps, hook-owned liquidity, custom curves, dynamic fees, MEV protection, limit orders, or oracle hooks.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-hook-generator\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7AAZYH75H4CS03WSW2EZ8DM","testing","For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002FSKILL.md",[],[]]