[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71NKTGD4MMWTGC4HY57RBZ6":3,"skill-same:01M71NKTGD4MMWTGC4HY57RBZ6":93},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":14,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M71NKTGD4MMWTGC4HY57RBZ6","jetson-generate-kb",null,"Build a per-target knowledge-base markdown next to the active profile by walking the BSP root and source tree. Use after init-image \u002F init-source; not for editing profile fields.","pattanation\u002FNorvik","pattanation","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235419268?v=4","01M71M5THHYYB15ME8R2E4FCZG","Patta","01M71M5TJM1NDM992M8PDKYR2K",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-generate-kb\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"jetson generate kb","generate","kb","base","active","markdown","build","next","documentation","team","image","use","knowledge","init","Meta","editing","for","platform","target","tree","2026-11-10 10:56:23",false,"---\nname: jetson-generate-kb\ndescription: >-\n  Build a per-target knowledge-base markdown next to the active\n  profile by walking the BSP root and source tree. Use after\n  init-image \u002F init-source; not for editing profile fields.\nversion: 0.0.1\nlicense: \"Apache-2.0\"\nmetadata:\n  data-classification: public\n  author: \"Jetson Team\"\n  tags:\n    - target-platform\n    - knowledge-base\n    - documentation\n    - meta\n  domain: meta\n---\n\n# Generate Target Knowledge Base\n\n## Overview\n\nThis skill produces a **per-profile** markdown reference at\n`target-platform\u002F\u003Cprofile-stem>.md` (sibling to the profile YAML). It\nbundles three things into one file so a future Claude session — or the\nuser — can see the shape of the active target without re-walking the\nfilesystem:\n\n1. **BSP image layout** — top-level directories under\n   `bsp_image.root_path`, presence of canonical subtrees (`rootfs\u002F`,\n   `bootloader\u002F`, `source\u002F`, …), and the nvpmodel variants matching\n   the active module SKU.\n2. **Source tree layout** — top-level subtrees under\n   `source.root_path` (`kernel-jammy-src\u002F`, `hardware\u002Fnvidia\u002F`,\n   `nvidia-oot\u002F`, etc.) and devicetree files matching the chip family.\n3. **Documents** — the `documents.*` references recorded in the\n   profile, with local-path existence checks and one-line descriptions.\n\nThe KB is a **snapshot**, dated in its header. Re-run this skill\nwhenever the underlying data changes — it is intentionally\nre-runnable and overwrites the previous KB on each run.\n\n## When to invoke\n\n- After `jetson-init-image` prepares the BSP for a freshly authored\n  profile.\n- After re-extracting a BSP archive or applying patches under\n  `bsp_image.root_path`.\n- After updating the source tree at `source.root_path`.\n- After editing `bsp_image.*` or `documents.*` in the profile YAML.\n- When a downstream skill asks \"where is X in this BSP?\" and you'd\n  rather check the KB than re-walk the tree.\n\n## Procedure\n\n### Resolve the active target\n\nResolve the active profile per the contract in\n[`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md);\ncache it in memory — the rest of the skill consumes only this\nprofile. Record `\u003Cprofile-stem>` (the bare filename minus `.yaml`)\nas the KB output filename stem.\n\n### Validate inputs\n\n| Field | Required for KB? | If missing |\n|---|---|---|\n| `bsp_image.root_path` | **yes** | Refuse. A KB with no BSP root to scan is just a YAML restatement; tell the user to run `jetson-init-image` or hand-edit the profile. |\n| `source.root_path` | no | Skip the source-tree section; note \"source_root not recorded\" in the KB. |\n| `documents.*` | no | Render an empty Documents table with a \"no documents recorded\" note. |\n\nIf `bsp_image.root_path` is set but the directory does not exist on disk,\nrefuse with a clear message — do not fabricate a layout for a path\nthat isn't there.\n\n### BSP discovery (under `bsp_image.root_path`)\n\nRun **only** the following cheap operations — no recursive scans, no\nfile content reads beyond directory listings:\n\n1. `ls -1` of `bsp_image.root_path` (one level deep). Record which\n   directories are present.\n2. For each canonical subtree below, mark present\u002Fabsent:\n   `rootfs\u002F`, `bootloader\u002F`, `kernel\u002F`, `source\u002F`, `tools\u002F`,\n   `nv_tegra\u002F`.\n3. Verify the active `flash_config` file exists at\n   `\u003Cbsp_image.root_path>\u002F\u003Cflash_config>`. Record its path or\n   `(missing)`.\n4. List `rootfs\u002Fetc\u002Fnvpmodel\u002F` and filter to filenames matching\n   `nvpmodel_\u003Cmodule.id>_\u003Cmodule.sku>*.conf`. Record each match.\n   Use the lower-case module id (e.g. `p3767`) and the YAML-quoted\n   sku string (e.g. `0001`).\n\n### Source tree discovery (under `source.root_path`)\n\nSkip this step entirely if `source.root_path` is `NA` or missing.\nOtherwise, run only:\n\n1. `ls -1` of `source.root_path` (one level deep).\n2. For each canonical subtree below, mark present\u002Fabsent:\n   `kernel-jammy-src\u002F`, `hardware\u002Fnvidia\u002F`, `nvidia-oot\u002F`, `nvgpu\u002F`,\n   `nvethernetrm\u002F`, `nvdisplay\u002F`, `hwpm\u002F`, `kernel-devicetree\u002F`.\n3. If `kernel-devicetree\u002Fgeneric-dts\u002Fdts\u002F` exists, list filenames\n   matching `tegra\u003Cchip>*` where `\u003Cchip>` is the chip-family numeric\n   prefix (see chip-family map below). Record up to 30 hits; if more,\n   record the count and a \"showing first 30\" note.\n\n#### Chip-family map (used in the \"BSP discovery\" and \"Source tree discovery\" steps)\n\nDerive `\u003Cchip>` from `module.id`:\n\n| `module.id` | Chip family | `\u003Cchip>` prefix |\n|---|---|---|\n| `p3701`, `p3767` | T234 — Orin | `234` |\n| `p3834` | T264 — Thor | `264` |\n\nIf `module.id` is not in this table, record the chip as\n`unknown (module.id=\u003Cvalue>)` and skip the chip-prefixed devicetree\nfilter.\n\n### Documents pass\n\nFor each field in `documents.*` from the loaded profile:\n\n1. Classify the value as **URL** (starts with `http:\u002F\u002F`, `https:\u002F\u002F`,\n   or `ftp:\u002F\u002F`) or **local path** (anything else).\n2. For URLs: record verbatim. **Do not fetch the URL** — KB\n   generation must remain offline. (A future skill can promote to deep\n   indexing.)\n3. For local paths: check `os.path.exists`. Record the path; if\n   missing on disk, append ` (missing)`.\n\nThe one-line description for each field comes from the marker in\n[`..\u002F..\u002Freferences\u002Fplatform_template.yaml`](..\u002F..\u002Freferences\u002Fplatform_template.yaml)\n— strip the `\u003COPTIONAL: …>` wrapper and use the inner text.\n\nIf the profile has no `documents:` block, render the section with a\nsingle line: `_No documents recorded — run `jetson-link-docs`\nor hand-edit the profile to add references._`\n\n### Render and write the KB\n\nRender the markdown using the structure below. Use today's date\n(YYYY-MM-DD) in the header. Always overwrite any existing KB file at\nthe destination — do not prompt before overwriting; re-runs are the\nintended use.\n\nDestination: `target-platform\u002F\u003Cprofile-stem>.md`.\n\n#### Rendered structure\n\n```markdown\n# Target knowledge base — \u003Cprofile-stem>\n\n> Generated \u003CYYYY-MM-DD> from `\u003Cbsp_image.root_path>` (BSP version `\u003Cbsp_image.version>`).\n> Re-run `jetson-generate-kb` after extracting a new BSP, applying\n> patches, or editing profile fields. This file is a regenerated\n> snapshot — do not hand-edit.\n\n## Profile facts\n\n- **Reference devkit:** `\u003Creference_devkit.name>`\n- **Module:** `\u003Cmodule.id>-\u003Cmodule.sku>` (`\u003Cchip family label>`)\n- **Reference carrier:** `\u003Ccarrier.id>-\u003Ccarrier.sku>`\n- **Custom carrier:** `\u003Ccustom_carrier.name>` (`\u003Ccustom_carrier.id>-\u003Ccustom_carrier.sku>`)  _← omit this row if Case 1_\n- **Active flash conf:** `\u003Cflash_config>`\n- **BSP path:** `\u003Cbsp_image.root_path>`\n- **BSP version:** `\u003Cbsp_image.version>`\n- **Source root:** `\u003Csource.root_path>`  _← or \"_not recorded_\" if NA_\n\n## BSP image layout\n\nTop-level directories under `\u003Cbsp_image.root_path>`:\n\n| Directory | Present | Purpose |\n|---|---|---|\n| `rootfs\u002F`     | ✓ \u002F ✗ | userspace rootfs (nvpmodel, nvfan, systemd units, etc.) |\n| `bootloader\u002F` | ✓ \u002F ✗ | firmware blobs, BCT, MB1\u002FMB2 dts |\n| `kernel\u002F`     | ✓ \u002F ✗ | prebuilt kernel + modules |\n| `source\u002F`     | ✓ \u002F ✗ | BSP source tree (kernel, OOT drivers, DT) |\n| `tools\u002F`      | ✓ \u002F ✗ | flashing helpers, jetson-io, kernel_flash |\n| `nv_tegra\u002F`   | ✓ \u002F ✗ | nvidia firmware tarballs, kernel-supplements |\n\nActive flash conf `\u003Cflash_config>`: present at\n`\u003Cbsp_image.root_path>\u002F\u003Cflash_config>` _or_ `(missing — verify before flashing)`.\n\n### nvpmodel files matching the active SKU\n\nFiltered from `rootfs\u002Fetc\u002Fnvpmodel\u002F` by `nvpmodel_\u003Cmodule.id>_\u003Cmodule.sku>*.conf`:\n\n- `\u003Ceach match, one per line>`\n\nThe active variant at boot is selected by `nvpower.sh` from\n`\u002Fproc\u002Fdevice-tree\u002Fcompatible` plus super \u002F safety state — see\n`jetson-customize-nvpmodel` for the resolution rules.\n\n## Source tree layout\n\n(omit this whole section if `source.root_path` is `NA`\u002Fmissing)\n\nTop-level subtrees under `\u003Csource.root_path>`:\n\n| Subtree | Present | Purpose |\n|---|---|---|\n| `kernel-jammy-src\u002F`   | ✓ \u002F ✗ | mainline 5.x kernel sources |\n| `hardware\u002Fnvidia\u002F`    | ✓ \u002F ✗ | NVIDIA platform DTs (per chip family) |\n| `nvidia-oot\u002F`         | ✓ \u002F ✗ | NVIDIA out-of-tree kernel modules |\n| `nvgpu\u002F`              | ✓ \u002F ✗ | GPU driver |\n| `nvethernetrm\u002F`       | ✓ \u002F ✗ | ethernet driver |\n| `nvdisplay\u002F`          | ✓ \u002F ✗ | display driver |\n| `hwpm\u002F`               | ✓ \u002F ✗ | hardware performance monitor |\n| `kernel-devicetree\u002F`  | ✓ \u002F ✗ | devicetree sources |\n\n### Devicetree files for chip family `\u003Cchip>`\n\n(omit if `kernel-devicetree\u002Fgeneric-dts\u002Fdts\u002F` is absent)\n\nFiles matching `tegra\u003Cchip>*` under `kernel-devicetree\u002Fgeneric-dts\u002Fdts\u002F`:\n\n- `\u003Ceach match, one per line — cap at 30, then a \"first 30 of N\" note>`\n\n## Documents\n\n| Field | Reference |\n|---|---|\n| Documents root folder                    | `\u003Cdoc_root>`                    _or_ _not recorded_ |\n| BSP \u002F Jetson Linux developer guide       | `\u003Cbsp_developer_guide>`         _or_ _not recorded_ |\n| Tegra SoC Technical Reference Manual     | `\u003Csoc_tech_ref_manual>`         _or_ _not recorded_ |\n| Jetson module data sheet                 | `\u003Cmodule_data_sheet>`           _or_ _not recorded_ |\n| Jetson module design guide (PDG)         | `\u003Cmodule_design_guide>`         _or_ _not recorded_ |\n| Jetson module thermal design guide (TDG) | `\u003Cmodule_thermal_design_guide>` _or_ _not recorded_ |\n| Jetson module schematic                  | `\u003Cmodule_schematic>`            _or_ _not recorded_ |\n| Reference carrier board specification    | `\u003Ccarrier_board_spec>`          _or_ _not recorded_ |\n| Reference carrier schematic              | `\u003Ccarrier_schematic>`           _or_ _not recorded_ |\n| Custom carrier schematic                 | `\u003Ccustom_carrier_schematic>`    _or_ _not recorded \u002F N\u002FA (no custom carrier)_ |\n| Reference-devkit pinmux spreadsheet      | `\u003Cref_devkit_pinmux_xls>`       _or_ _not recorded_ |\n| Custom-carrier pinmux spreadsheet        | `\u003Ccustom_carrier_pinmux_xls>`   _or_ _not recorded \u002F N\u002FA (no custom carrier)_ |\n\n(Local paths are tagged ` (missing)` if absent on disk. URLs are\nrecorded verbatim and not fetched. If `doc_root` is set, also tag\n` (missing)` on it if the directory itself is gone — that signals\nauto-mapping in `jetson-link-docs` won't work on a re-run.)\n\n## How to refresh this file\n\nRe-run `jetson-generate-kb` whenever any of the following changes:\n\n- the BSP at `\u003Cbsp_image.root_path>` is re-extracted, patched, or upgraded,\n- the source tree at `\u003Csource.root_path>` changes,\n- the active profile's `bsp_image.*` or `documents.*` fields are edited.\n\nThis file is overwritten on every run. Do not hand-edit it — edit the\nsource data (profile YAML or the BSP tree) and re-run instead.\n```\n\n### Confirm\n\nPrint a short summary:\n\n- Output path: `target-platform\u002F\u003Cprofile-stem>.md`.\n- BSP top-level directory count and which canonical subtrees were\n  present \u002F absent.\n- nvpmodel match count for the active SKU.\n- Source-tree section: rendered or skipped (and why).\n- Documents: count of recorded fields, count of local paths flagged\n  `(missing)`.\n\nIf a downstream skill triggered this run, tell the user to re-issue\ntheir original request.\n\n## Gotchas\n\n- **The KB is a snapshot, not a live view.** The dated header is\n  authoritative — if it doesn't match today, the BSP\u002Fsource\u002Fdocs may\n  have changed underneath. Re-run on demand.\n- **Always overwrites.** No prompt before clobbering the previous KB\n  at `target-platform\u002F\u003Cprofile-stem>.md`. This is intentional —\n  re-runnability is the whole point. Tell the user not to hand-edit\n  the file; edit profile YAML or the BSP and regenerate.\n- **Refuses on `bsp_image.root_path = NA`.** A profile with no BSP path\n  produces a content-free KB. Do not write one — instead, point the\n  user at the profile YAML to fill in.\n- **No URL fetching.** Document URLs are recorded verbatim. Promoting\n  to deep indexing (HTTP HEAD, PDF parsing) is out of scope for v0.1.\n- **No recursive scans.** Discovery is one level deep per directory,\n  with at most one targeted glob (nvpmodel + devicetree). Never walk\n  the entire BSP — it's huge and slow.\n- **Cap devicetree listings at 30 entries** to keep the KB readable.\n  Show \"first 30 of N\" when truncating.\n- **Don't auto-invoke from setup skills.** Setup may suggest running\n  this skill in its summary, but the user opts in. Auto-running hides\n  the I\u002FO step and surprises users whose BSP\u002Fdoc paths are incomplete.\n- **Filename collision risk.** The KB sits at\n  `target-platform\u002F\u003Cstem>.md` next to `\u003Cstem>.yaml`. Don't accidentally\n  read `.md` files in the profile-listing logic of\n  `jetson-set-target` (it already filters to `*.yaml`, but check\n  before adding new file types).\n- **Chip-family map is short.** If a future module SKU is added that\n  isn't in the map, the devicetree filter step is skipped — the KB\n  will note `chip: unknown` rather than fabricate a `\u003Cchip>` prefix.\n  Update this skill's chip-family table when a new chip lands.\n\n## Prerequisites\n\n- Active target profile resolved per\n  `..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`.\n- `bsp_image:` recorded by `\u002Fjetson-init-image`; this is the only\n  required on-disk tree. If `source.root_path` is missing, render the KB\n  without the source-tree section.\n- Optional: `\u002Fjetson-init-source` already resolved `source:` when the\n  user wants source-tree discovery included.\n- Optional but recommended: `\u002Fjetson-link-docs` already wrote the\n  `documents:` block.\n\n## Limitations\n\n- Read-only against the BSP and source trees; never edits the profile\n  YAML or rewrites source files.\n- Devicetree-file enumeration depends on the chip-family table inside\n  this skill; an unknown module SKU lands in the KB as `chip: unknown`\n  rather than a fabricated prefix.\n- Filename layout is fixed at `target-platform\u002F\u003Cstem>.md` to stay next\n  to the profile YAML; renaming the YAML invalidates the link.\n\n## Troubleshooting\n\n- **`bsp_image.root_path` not found** — re-run `\u002Fjetson-init-image` so\n  the BSP is extracted and the path is recorded before regenerating\n  the KB.\n- **Source tree walk picks up wrong subtrees** — `source.root_path`\n  override is stale; rerun `\u002Fjetson-init-source` or correct the\n  profile field.\n- **`documents:` block missing from the KB** — `\u002Fjetson-link-docs` was\n  never run; the KB falls back to \"no documents bound\" rather than\n  guessing paths.\n- **Devicetree section short \u002F empty** — chip-family table doesn't\n  cover the active SoC; update the table and rerun.\n\n## References\n\n- [`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md) — read-order contract this skill follows.\n- [`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md) — origin of the canonical BSP\u002Fsource subtree list.\n- [`..\u002F..\u002Freferences\u002Fplatform_template.yaml`](..\u002F..\u002Freferences\u002Fplatform_template.yaml) — source of the documents-field one-line descriptions.\n- [`..\u002Fjetson-init-target\u002FSKILL.md`](..\u002Fjetson-init-target\u002FSKILL.md) — sibling skill that authors the active target identity.\n- [`..\u002Fjetson-init-image\u002FSKILL.md`](..\u002Fjetson-init-image\u002FSKILL.md) — sibling skill that authors the BSP image metadata this skill scans.\n- [`..\u002Fjetson-set-target\u002FSKILL.md`](..\u002Fjetson-set-target\u002FSKILL.md) — sibling skill that flips the active pointer this skill resolves.\n","# Generate Target Knowledge Base\n\n## Overview\n\nThis skill produces a **per-profile** markdown reference at\n`target-platform\u002F\u003Cprofile-stem>.md` (sibling to the profile YAML). It\nbundles three things into one file so a future Claude session — or the\nuser — can see the shape of the active target without re-walking the\nfilesystem:\n\n1. **BSP image layout** — top-level directories under\n   `bsp_image.root_path`, presence of canonical subtrees (`rootfs\u002F`,\n   `bootloader\u002F`, `source\u002F`, …), and the nvpmodel variants matching\n   the active module SKU.\n2. **Source tree layout** — top-level subtrees under\n   `source.root_path` (`kernel-jammy-src\u002F`, `hardware\u002Fnvidia\u002F`,\n   `nvidia-oot\u002F`, etc.) and devicetree files matching the chip family.\n3. **Documents** — the `documents.*` references recorded in the\n   profile, with local-path existence checks and one-line descriptions.\n\nThe KB is a **snapshot**, dated in its header. Re-run this skill\nwhenever the underlying data changes — it is intentionally\nre-runnable and overwrites the previous KB on each run.\n\n## When to invoke\n\n- After `jetson-init-image` prepares the BSP for a freshly authored\n  profile.\n- After re-extracting a BSP archive or applying patches under\n  `bsp_image.root_path`.\n- After updating the source tree at `source.root_path`.\n- After editing `bsp_image.*` or `documents.*` in the profile YAML.\n- When a downstream skill asks \"where is X in this BSP?\" and you'd\n  rather check the KB than re-walk the tree.\n\n## Procedure\n\n### Resolve the active target\n\nResolve the active profile per the contract in\n[`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md);\ncache it in memory — the rest of the skill consumes only this\nprofile. Record `\u003Cprofile-stem>` (the bare filename minus `.yaml`)\nas the KB output filename stem.\n\n### Validate inputs\n\n| Field | Required for KB? | If missing |\n|---|---|---|\n| `bsp_image.root_path` | **yes** | Refuse. A KB with no BSP root to scan is just a YAML restatement; tell the user to run `jetson-init-image` or hand-edit the profile. |\n| `source.root_path` | no | Skip the source-tree section; note \"source_root not recorded\" in the KB. |\n| `documents.*` | no | Render an empty Documents table with a \"no documents recorded\" note. |\n\nIf `bsp_image.root_path` is set but the directory does not exist on disk,\nrefuse with a clear message — do not fabricate a layout for a path\nthat isn't there.\n\n### BSP discovery (under `bsp_image.root_path`)\n\nRun **only** the following cheap operations — no recursive scans, no\nfile content reads beyond directory listings:\n\n1. `ls -1` of `bsp_image.root_path` (one level deep). Record which\n   directories are present.\n2. For each canonical subtree below, mark present\u002Fabsent:\n   `rootfs\u002F`, `bootloader\u002F`, `kernel\u002F`, `source\u002F`, `tools\u002F`,\n   `nv_tegra\u002F`.\n3. Verify the active `flash_config` file exists at\n   `\u003Cbsp_image.root_path>\u002F\u003Cflash_config>`. Record its path or\n   `(missing)`.\n4. List `rootfs\u002Fetc\u002Fnvpmodel\u002F` and filter to filenames matching\n   `nvpmodel_\u003Cmodule.id>_\u003Cmodule.sku>*.conf`. Record each match.\n   Use the lower-case module id (e.g. `p3767`) and the YAML-quoted\n   sku string (e.g. `0001`).\n\n### Source tree discovery (under `source.root_path`)\n\nSkip this step entirely if `source.root_path` is `NA` or missing.\nOtherwise, run only:\n\n1. `ls -1` of `source.root_path` (one level deep).\n2. For each canonical subtree below, mark present\u002Fabsent:\n   `kernel-jammy-src\u002F`, `hardware\u002Fnvidia\u002F`, `nvidia-oot\u002F`, `nvgpu\u002F`,\n   `nvethernetrm\u002F`, `nvdisplay\u002F`, `hwpm\u002F`, `kernel-devicetree\u002F`.\n3. If `kernel-devicetree\u002Fgeneric-dts\u002Fdts\u002F` exists, list filenames\n   matching `tegra\u003Cchip>*` where `\u003Cchip>` is the chip-family numeric\n   prefix (see chip-family map below). Record up to 30 hits; if more,\n   record the count and a \"showing first 30\" note.\n\n#### Chip-family map (used in the \"BSP discovery\" and \"Source tree discovery\" steps)\n\nDerive `\u003Cchip>` from `module.id`:\n\n| `module.id` | Chip family | `\u003Cchip>` prefix |\n|---|---|---|\n| `p3701`, `p3767` | T234 — Orin | `234` |\n| `p3834` | T264 — Thor | `264` |\n\nIf `module.id` is not in this table, record the chip as\n`unknown (module.id=\u003Cvalue>)` and skip the chip-prefixed devicetree\nfilter.\n\n### Documents pass\n\nFor each field in `documents.*` from the loaded profile:\n\n1. Classify the value as **URL** (starts with `http:\u002F\u002F`, `https:\u002F\u002F`,\n   or `ftp:\u002F\u002F`) or **local path** (anything else).\n2. For URLs: record verbatim. **Do not fetch the URL** — KB\n   generation must remain offline. (A future skill can promote to deep\n   indexing.)\n3. For local paths: check `os.path.exists`. Record the path; if\n   missing on disk, append ` (missing)`.\n\nThe one-line description for each field comes from the marker in\n[`..\u002F..\u002Freferences\u002Fplatform_template.yaml`](..\u002F..\u002Freferences\u002Fplatform_template.yaml)\n— strip the `\u003COPTIONAL: …>` wrapper and use the inner text.\n\nIf the profile has no `documents:` block, render the section with a\nsingle line: `_No documents recorded — run `jetson-link-docs`\nor hand-edit the profile to add references._`\n\n### Render and write the KB\n\nRender the markdown using the structure below. Use today's date\n(YYYY-MM-DD) in the header. Always overwrite any existing KB file at\nthe destination — do not prompt before overwriting; re-runs are the\nintended use.\n\nDestination: `target-platform\u002F\u003Cprofile-stem>.md`.\n\n#### Rendered structure\n\n```markdown\n# Target knowledge base — \u003Cprofile-stem>\n\n> Generated \u003CYYYY-MM-DD> from `\u003Cbsp_image.root_path>` (BSP version `\u003Cbsp_image.version>`).\n> Re-run `jetson-generate-kb` after extracting a new BSP, applying\n> patches, or editing profile fields. This file is a regenerated\n> snapshot — do not hand-edit.\n\n## Profile facts\n\n- **Reference devkit:** `\u003Creference_devkit.name>`\n- **Module:** `\u003Cmodule.id>-\u003Cmodule.sku>` (`\u003Cchip family label>`)\n- **Reference carrier:** `\u003Ccarrier.id>-\u003Ccarrier.sku>`\n- **Custom carrier:** `\u003Ccustom_carrier.name>` (`\u003Ccustom_carrier.id>-\u003Ccustom_carrier.sku>`)  _← omit this row if Case 1_\n- **Active flash conf:** `\u003Cflash_config>`\n- **BSP path:** `\u003Cbsp_image.root_path>`\n- **BSP version:** `\u003Cbsp_image.version>`\n- **Source root:** `\u003Csource.root_path>`  _← or \"_not recorded_\" if NA_\n\n## BSP image layout\n\nTop-level directories under `\u003Cbsp_image.root_path>`:\n\n| Directory | Present | Purpose |\n|---|---|---|\n| `rootfs\u002F`     | ✓ \u002F ✗ | userspace rootfs (nvpmodel, nvfan, systemd units, etc.) |\n| `bootloader\u002F` | ✓ \u002F ✗ | firmware blobs, BCT, MB1\u002FMB2 dts |\n| `kernel\u002F`     | ✓ \u002F ✗ | prebuilt kernel + modules |\n| `source\u002F`     | ✓ \u002F ✗ | BSP source tree (kernel, OOT drivers, DT) |\n| `tools\u002F`      | ✓ \u002F ✗ | flashing helpers, jetson-io, kernel_flash |\n| `nv_tegra\u002F`   | ✓ \u002F ✗ | nvidia firmware tarballs, kernel-supplements |\n\nActive flash conf `\u003Cflash_config>`: present at\n`\u003Cbsp_image.root_path>\u002F\u003Cflash_config>` _or_ `(missing — verify before flashing)`.\n\n### nvpmodel files matching the active SKU\n\nFiltered from `rootfs\u002Fetc\u002Fnvpmodel\u002F` by `nvpmodel_\u003Cmodule.id>_\u003Cmodule.sku>*.conf`:\n\n- `\u003Ceach match, one per line>`\n\nThe active variant at boot is selected by `nvpower.sh` from\n`\u002Fproc\u002Fdevice-tree\u002Fcompatible` plus super \u002F safety state — see\n`jetson-customize-nvpmodel` for the resolution rules.\n\n## Source tree layout\n\n(omit this whole section if `source.root_path` is `NA`\u002Fmissing)\n\nTop-level subtrees under `\u003Csource.root_path>`:\n\n| Subtree | Present | Purpose |\n|---|---|---|\n| `kernel-jammy-src\u002F`   | ✓ \u002F ✗ | mainline 5.x kernel sources |\n| `hardware\u002Fnvidia\u002F`    | ✓ \u002F ✗ | NVIDIA platform DTs (per chip family) |\n| `nvidia-oot\u002F`         | ✓ \u002F ✗ | NVIDIA out-of-tree kernel modules |\n| `nvgpu\u002F`              | ✓ \u002F ✗ | GPU driver |\n| `nvethernetrm\u002F`       | ✓ \u002F ✗ | ethernet driver |\n| `nvdisplay\u002F`          | ✓ \u002F ✗ | display driver |\n| `hwpm\u002F`               | ✓ \u002F ✗ | hardware performance monitor |\n| `kernel-devicetree\u002F`  | ✓ \u002F ✗ | devicetree sources |\n\n### Devicetree files for chip family `\u003Cchip>`\n\n(omit if `kernel-devicetree\u002Fgeneric-dts\u002Fdts\u002F` is absent)\n\nFiles matching `tegra\u003Cchip>*` under `kernel-devicetree\u002Fgeneric-dts\u002Fdts\u002F`:\n\n- `\u003Ceach match, one per line — cap at 30, then a \"first 30 of N\" note>`\n\n## Documents\n\n| Field | Reference |\n|---|---|\n| Documents root folder                    | `\u003Cdoc_root>`                    _or_ _not recorded_ |\n| BSP \u002F Jetson Linux developer guide       | `\u003Cbsp_developer_guide>`         _or_ _not recorded_ |\n| Tegra SoC Technical Reference Manual     | `\u003Csoc_tech_ref_manual>`         _or_ _not recorded_ |\n| Jetson module data sheet                 | `\u003Cmodule_data_sheet>`           _or_ _not recorded_ |\n| Jetson module design guide (PDG)         | `\u003Cmodule_design_guide>`         _or_ _not recorded_ |\n| Jetson module thermal design guide (TDG) | `\u003Cmodule_thermal_design_guide>` _or_ _not recorded_ |\n| Jetson module schematic                  | `\u003Cmodule_schematic>`            _or_ _not recorded_ |\n| Reference carrier board specification    | `\u003Ccarrier_board_spec>`          _or_ _not recorded_ |\n| Reference carrier schematic              | `\u003Ccarrier_schematic>`           _or_ _not recorded_ |\n| Custom carrier schematic                 | `\u003Ccustom_carrier_schematic>`    _or_ _not recorded \u002F N\u002FA (no custom carrier)_ |\n| Reference-devkit pinmux spreadsheet      | `\u003Cref_devkit_pinmux_xls>`       _or_ _not recorded_ |\n| Custom-carrier pinmux spreadsheet        | `\u003Ccustom_carrier_pinmux_xls>`   _or_ _not recorded \u002F N\u002FA (no custom carrier)_ |\n\n(Local paths are tagged ` (missing)` if absent on disk. URLs are\nrecorded verbatim and not fetched. If `doc_root` is set, also tag\n` (missing)` on it if the directory itself is gone — that signals\nauto-mapping in `jetson-link-docs` won't work on a re-run.)\n\n## How to refresh this file\n\nRe-run `jetson-generate-kb` whenever any of the following changes:\n\n- the BSP at `\u003Cbsp_image.root_path>` is re-extracted, patched, or upgraded,\n- the source tree at `\u003Csource.root_path>` changes,\n- the active profile's `bsp_image.*` or `documents.*` fields are edited.\n\nThis file is overwritten on every run. Do not hand-edit it — edit the\nsource data (profile YAML or the BSP tree) and re-run instead.\n```\n\n### Confirm\n\nPrint a short summary:\n\n- Output path: `target-platform\u002F\u003Cprofile-stem>.md`.\n- BSP top-level directory count and which canonical subtrees were\n  present \u002F absent.\n- nvpmodel match count for the active SKU.\n- Source-tree section: rendered or skipped (and why).\n- Documents: count of recorded fields, count of local paths flagged\n  `(missing)`.\n\nIf a downstream skill triggered this run, tell the user to re-issue\ntheir original request.\n\n## Gotchas\n\n- **The KB is a snapshot, not a live view.** The dated header is\n  authoritative — if it doesn't match today, the BSP\u002Fsource\u002Fdocs may\n  have changed underneath. Re-run on demand.\n- **Always overwrites.** No prompt before clobbering the previous KB\n  at `target-platform\u002F\u003Cprofile-stem>.md`. This is intentional —\n  re-runnability is the whole point. Tell the user not to hand-edit\n  the file; edit profile YAML or the BSP and regenerate.\n- **Refuses on `bsp_image.root_path = NA`.** A profile with no BSP path\n  produces a content-free KB. Do not write one — instead, point the\n  user at the profile YAML to fill in.\n- **No URL fetching.** Document URLs are recorded verbatim. Promoting\n  to deep indexing (HTTP HEAD, PDF parsing) is out of scope for v0.1.\n- **No recursive scans.** Discovery is one level deep per directory,\n  with at most one targeted glob (nvpmodel + devicetree). Never walk\n  the entire BSP — it's huge and slow.\n- **Cap devicetree listings at 30 entries** to keep the KB readable.\n  Show \"first 30 of N\" when truncating.\n- **Don't auto-invoke from setup skills.** Setup may suggest running\n  this skill in its summary, but the user opts in. Auto-running hides\n  the I\u002FO step and surprises users whose BSP\u002Fdoc paths are incomplete.\n- **Filename collision risk.** The KB sits at\n  `target-platform\u002F\u003Cstem>.md` next to `\u003Cstem>.yaml`. Don't accidentally\n  read `.md` files in the profile-listing logic of\n  `jetson-set-target` (it already filters to `*.yaml`, but check\n  before adding new file types).\n- **Chip-family map is short.** If a future module SKU is added that\n  isn't in the map, the devicetree filter step is skipped — the KB\n  will note `chip: unknown` rather than fabricate a `\u003Cchip>` prefix.\n  Update this skill's chip-family table when a new chip lands.\n\n## Prerequisites\n\n- Active target profile resolved per\n  `..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`.\n- `bsp_image:` recorded by `\u002Fjetson-init-image`; this is the only\n  required on-disk tree. If `source.root_path` is missing, render the KB\n  without the source-tree section.\n- Optional: `\u002Fjetson-init-source` already resolved `source:` when the\n  user wants source-tree discovery included.\n- Optional but recommended: `\u002Fjetson-link-docs` already wrote the\n  `documents:` block.\n\n## Limitations\n\n- Read-only against the BSP and source trees; never edits the profile\n  YAML or rewrites source files.\n- Devicetree-file enumeration depends on the chip-family table inside\n  this skill; an unknown module SKU lands in the KB as `chip: unknown`\n  rather than a fabricated prefix.\n- Filename layout is fixed at `target-platform\u002F\u003Cstem>.md` to stay next\n  to the profile YAML; renaming the YAML invalidates the link.\n\n## Troubleshooting\n\n- **`bsp_image.root_path` not found** — re-run `\u002Fjetson-init-image` so\n  the BSP is extracted and the path is recorded before regenerating\n  the KB.\n- **Source tree walk picks up wrong subtrees** — `source.root_path`\n  override is stale; rerun `\u002Fjetson-init-source` or correct the\n  profile field.\n- **`documents:` block missing from the KB** — `\u002Fjetson-link-docs` was\n  never run; the KB falls back to \"no documents bound\" rather than\n  guessing paths.\n- **Devicetree section short \u002F empty** — chip-family table doesn't\n  cover the active SoC; update the table and rerun.\n\n## References\n\n- [`..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md`](..\u002F..\u002Fcontext\u002Ftarget-platform-contract.md) — read-order contract this skill follows.\n- [`..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md`](..\u002F..\u002Fcontext\u002Fbsp-customization-workflow.md) — origin of the canonical BSP\u002Fsource subtree list.\n- [`..\u002F..\u002Freferences\u002Fplatform_template.yaml`](..\u002F..\u002Freferences\u002Fplatform_template.yaml) — source of the documents-field one-line descriptions.\n- [`..\u002Fjetson-init-target\u002FSKILL.md`](..\u002Fjetson-init-target\u002FSKILL.md) — sibling skill that authors the active target identity.\n- [`..\u002Fjetson-init-image\u002FSKILL.md`](..\u002Fjetson-init-image\u002FSKILL.md) — sibling skill that authors the BSP image metadata this skill scans.\n- [`..\u002Fjetson-set-target\u002FSKILL.md`](..\u002Fjetson-set-target\u002FSKILL.md) — sibling skill that flips the active pointer this skill resolves.\n",{"name":5,"license":15,"version":44,"metadata":45,"description":7},"0.0.1",{"tags":46,"author":50,"domain":49,"data-classification":51},[47,48,27,49],"target-platform","knowledge-base","meta","Jetson Team","public","claude\u002Finstall-gsd-build-foQdV","d86cd127f527124b5fd0fd0bc679a4d79b7d01d7",".agents\u002Fskills\u002Fjetson-generate-kb","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik","https:\u002F\u002Fnorvik-orpin.vercel.app","https:\u002F\u002Fgithub.com\u002Fpattanation","2026-07-17 11:17:04",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add pattanation\u002FNorvik --skill jetson-generate-kb",{"tool":65,"command":66},"bunx","bunx skills add pattanation\u002FNorvik --skill jetson-generate-kb",{"tool":68,"command":69},"pnpm","pnpm dlx skills add pattanation\u002FNorvik --skill jetson-generate-kb","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-generate-kb\u002FSKILL.md",true,[73,79,83,87],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"BENCHMARK.md","REFERENCE","参考文档",3817,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-generate-kb\u002FBENCHMARK.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fevals.json",3734,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-generate-kb\u002Fevals\u002Fevals.json",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"skill-card.md",3646,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-generate-kb\u002Fskill-card.md",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"skill.oms.sig","OTHER","其他",4593,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-generate-kb\u002Fskill.oms.sig",[94,102,109,116,141,165],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":101},"01M73Z1NPMJ667E0DSPBS9FH0B","jetson-set-target","Switch the active Jetson target-platform pointer to an existing profile YAML. Use before customize\u002Fbuild\u002Fflash to change target; not for authoring profiles — use jetson-init-target instead.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-set-target\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":101},"01M73YC29YWGCW521P7B0NM3HQ","earth2studio-data-fetch","Fetch weather\u002Fclimate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-data-fetch\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":101},"01M73YBNHMHFDFP83MAVGQQ92N","earth2studio-create-datasource","Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-create-datasource\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":140},"01M71QDV4DM8T19HEHWATEF1K4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[124,125,126,127,128,35,129,130,131,132,133,134,135,136,137,138,139],"webapp","testing","webapp testing","local","screenshots","applications","browser","ui","behavior","web","playwright","with","frontend","debugging","toolkit","logs","2026-11-10 13:02:02",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":145,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":140},"01M71QDH2GGMXGA9105C9W1N7B","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[149,133,150,151,152,153,154,155,156,157,158,159,35,160,161,136,162,30,163,164],"web artifacts builder","artifacts","artifacts builder","builder","multi","state","routing","state management","react","single-file","css","Tailwind","ui components","single","file","components",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":169,"licenseFileUrl":170,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":140},"01M71QD9T2XC3EWMQNN9ACNWQ1","vueuse-functions","Apply VueUse composables where appropriate to build concise, maintainable Vue.js \u002F Nuxt features.","MIT","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FSKILL.md",[],[174,175,176,177,178,179,180,181,182,25,183,184,185,186],"vueuse","vueuse functions","functions","composables","project","nuxt","apply","github","concise","https","features","vue","js"]