[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M787VFQR3CW9BC6R81XKJW2W":3,"skill-same:01M787VFQR3CW9BC6R81XKJW2W":78},{"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":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M787VFQR3CW9BC6R81XKJW2W","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.","Solizardking\u002Ftrain2earn","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786KDC5C3NPE4W44C5641EZ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\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","86cc27ffd16af6cb85948f1155578e6f3f61cc4c","skillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 11:52:53",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Solizardking\u002Ftrain2earn --skill jetson-init-source",{"tool":48,"command":49},"bunx","bunx skills add Solizardking\u002Ftrain2earn --skill jetson-init-source",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Solizardking\u002Ftrain2earn --skill jetson-init-source","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002FSKILL.md",true,[56,62,66,70,74],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"BENCHMARK.md","REFERENCE","参考文档",3817,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002FBENCHMARK.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"metadata.json",360,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Fmetadata.json",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fbranch-a-extraction.md",4497,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Freferences\u002Fbranch-a-extraction.md",{"path":71,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":72,"sourceHtmlUrl":73},"skill-card.md",3640,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Fskill-card.md",{"path":75,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":76,"sourceHtmlUrl":77},"verification.json",1522,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-init-source\u002Fverification.json",[79,87,95,103,110,118],{"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":83,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78B94RSCAKMH1QS79VE6DG9","testing","For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.","MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Ftesting\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":83,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M78B81BKY8RX12HETPG8YKWK","qedgen","Formally verify programs by writing Lean 4 proofs. Trigger this skill whenever the user wants to formally verify code, generate Lean 4 proofs, prove properties about algorithms or smart contracts, verify invariants, convert program logic into formal specifications, or anything involving Lean 4 and formal verification. Also trigger when the user mentions \"qedgen\", \"lean proof\", \"formal proof\", \"verify my code\", \"prove correctness\", \"formal verification\", or wants mathematical guarantees about their implementation.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M78B7Q7C5K54E01DN83A60KG","solana-dev","Use when user asks to \"build a Solana dapp\", \"write an Anchor program\", \"create a token\", \"debug Solana errors\", \"set up wallet connection\", \"test my Solana program\", \"deploy to devnet\", or \"explain Solana concepts\" (rent, accounts, PDAs, CPIs, etc.). Also use for quick on-chain lookups via public RPC + curl — \"what's the balance of \u003Cwallet>\", \"look up transaction \u003Csig>\", \"token balance for \u003Caccount>\", \"check this address on mainnet\u002Fdevnet\". End-to-end Solana development playbook covering wallet connection, Anchor\u002FPinocchio programs, Codama client generation, LiteSVM\u002FMollusk\u002FSurfpool testing, security checklists, and JSON-RPC curl lookups against public clusters. Integrates with the Solana MCP server for live documentation search. Prefers framework-kit (@solana\u002Fclient + @solana\u002Freact-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana\u002Fkit for client\u002FRPC code, and @solana\u002Fweb3-compat for legacy boundaries.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M78B7HXD6N6GWKSVRQ8F6Q31","solana-common-errors","Diagnose and fix common Solana development errors — GLIBC mismatches, Anchor version conflicts, cargo build-sbf \u002F platform-tools failures, LiteSVM issues, edition2024 crate pins, RPC airdrops, and Anchor 0.29→0.32 migrations. Use when builds fail, Anchor CLI won't install, or CI breaks on Debian\u002FUbuntu.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-common-errors\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M78B6T7YSYWQ0N4DP40QDXEZ","skill-creator","Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\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":83,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M78B1VFT9X5AND7AE1HZPZGF","phantom-wallet-mcp","Execute wallet operations through the Phantom MCP server. Use when the user wants to interact with their Phantom wallet directly — get addresses, transfer SOL or SPL tokens, buy\u002Fswap tokens, sign transactions, and sign messages across Solana, Ethereum, Bitcoin, and Sui. Requires the @phantom\u002Fmcp-server to be configured as an MCP server.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fphantom-wallet-mcp\u002FSKILL.md",[],[]]