jetson-generate-kb
БесплатноБез исполняемых скриптовНе проверенBuild a per-target knowledge-base markdown next to the active profile by walking the BSP root and source tree. Use after init-image / init-source; not for…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
Generate Target Knowledge Base
Overview
This skill produces a per-profile markdown reference at
target-platform/<profile-stem>.md (sibling to the profile YAML). It
bundles three things into one file so a future Claude session — or the
user — can see the shape of the active target without re-walking the
filesystem:
- BSP image layout — top-level directories under
bsp_image.root_path, presence of canonical subtrees (rootfs/,bootloader/,source/, …), and the nvpmodel variants matching the active module SKU. - Source tree layout — top-level subtrees under
source.root_path(kernel-jammy-src/,hardware/nvidia/,nvidia-oot/, etc.) and devicetree files matching the chip family. - Documents — the
documents.*references recorded in the profile, with local-path existence checks and one-line descriptions.
The KB is a snapshot, dated in its header. Re-run this skill whenever the underlying data changes — it is intentionally re-runnable and overwrites the previous KB on each run.
When to invoke
- After
jetson-init-imageprepares the BSP for a freshly authored profile. - After re-extracting a BSP archive or applying patches under
bsp_image.root_path. - After updating the source tree at
source.root_path. - After editing
bsp_image.*ordocuments.*in the profile YAML. - When a downstream skill asks "where is X in this BSP?" and you'd rather check the KB than re-walk the tree.
Procedure
Resolve the active target
Resolve the active profile per the contract in
../../context/target-platform-contract.md;
cache it in memory — the rest of the skill consumes only this
profile. Record <profile-stem> (the bare filename minus .yaml)
as the KB output filename stem.
Validate inputs
| Field | Required for KB? | If missing |
|---|---|---|
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. |
source.root_path |
no | Skip the source-tree section; note "source_root not recorded" in the KB. |
documents.* |
no | Render an empty Documents table with a "no documents recorded" note. |
If bsp_image.root_path is set but the directory does not exist on disk,
refuse with a clear message — do not fabricate a layout for a path
that isn't there.
BSP discovery (under bsp_image.root_path)
Run only the following cheap operations — no recursive scans, no file content reads beyond directory listings:
ls -1ofbsp_image.root_path(one level deep). Record which directories are present.- For each canonical subtree below, mark present/absent:
rootfs/,bootloader/,kernel/,source/,tools/,nv_tegra/. - Verify the active
flash_configfile exists at<bsp_image.root_path>/<flash_config>. Record its path or(missing). - List
rootfs/etc/nvpmodel/and filter to filenames matchingnvpmodel_<module.id>_<module.sku>*.conf. Record each match. Use the lower-case module id (e.g.p3767) and the YAML-quoted sku string (e.g.0001).
Source tree discovery (under source.root_path)
Skip this step entirely if source.root_path is NA or missing.
Otherwise, run only:
ls -1ofsource.root_path(one level deep).- For each canonical subtree below, mark present/absent:
kernel-jammy-src/,hardware/nvidia/,nvidia-oot/,nvgpu/,nvethernetrm/,nvdisplay/,hwpm/,kernel-devicetree/. - If
kernel-devicetree/generic-dts/dts/exists, list filenames matchingtegra<chip>*where<chip>is the chip-family numeric prefix (see chip-family map below). Record up to 30 hits; if more, record the count and a "showing first 30" note.
Chip-family map (used in the "BSP discovery" and "Source tree discovery" steps)
Derive <chip> from module.id:
module.id |
Chip family | <chip> prefix |
|---|---|---|
p3701, p3767 |
T234 — Orin | 234 |
p3834 |
T264 — Thor | 264 |
If module.id is not in this table, record the chip as
unknown (module.id=<value>) and skip the chip-prefixed devicetree
filter.
Documents pass
For each field in documents.* from the loaded profile:
- Classify the value as URL (starts with
http://,https://, orftp://) or local path (anything else). - For URLs: record verbatim. Do not fetch the URL — KB generation must remain offline. (A future skill can promote to deep indexing.)
- For local paths: check
os.path.exists. Record the path; if missing on disk, append(missing).
The one-line description for each field comes from the marker in
../../references/platform_template.yaml
— strip the <OPTIONAL: …> wrapper and use the inner text.
If the profile has no documents: block, render the section with a
single line: _No documents recorded — run jetson-link-docs`
Установить jetson-generate-kb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл jetson-generate-kb?
Build a per-target knowledge-base markdown next to the active profile by walking the BSP root and source tree. Use after init-image / init-source; not for editing profile fields.
Как установить скилл jetson-generate-kb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jetson-generate-kb запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic