/hardware-id-annotation:onboardfrom hardware-id-annotation
Use on first run to initialize the plugin: create data directories, write default config, and optionally set up datasheet caching.
Ships in hardware-id-annotation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
First-run initialization of the plugin. Resolves the canonical data-storage path, creates directory tree (data/, cache/datasheets/, state/, output/), writes a default config.json with user preferences, and idempotently sets up the environment. Re-running this skill is safe and does not overwrite existing config unless explicitly requested.
Data storage root:
${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/hardware-id-annotation/
${CLAUDE_USER_DATA}/.../output/)--reset to overwrite config.json even if it existsResolve data-storage path using the canonical resolver:
DATA_ROOT="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/hardware-id-annotation"
Create directory tree (idempotent, no error if exists):
mkdir -p "${DATA_ROOT}/data"
mkdir -p "${DATA_ROOT}/cache/datasheets"
mkdir -p "${DATA_ROOT}/state"
mkdir -p "${DATA_ROOT}/output"
Check for existing config.json. If present and not --reset, skip to step 5. Otherwise, proceed.
Prompt user for preferences:
=== Hardware ID Annotation Plugin — First Run Setup ===
1. Enable datasheet caching?
(Downloads and stores manufacturer datasheets locally for faster lookup.)
[y/n]:
2. Default output directory for annotated images?
(Press ENTER for default: ${DATA_ROOT}/output)
Path:
3. Default label style for annotate-board?
[minimal|detailed]: minimal
4. Enable web lookups for datasheet search?
(Requires internet; can be toggled per-skill later.)
[y/n]: y
Write config.json:
{
"plugin_version": "1.0.0",
"data_root": "${DATA_ROOT}",
"initialized_at": "ISO8601 timestamp",
"preferences": {
"datasheet_caching_enabled": true,
"default_output_dir": "${DATA_ROOT}/output",
"default_label_style": "minimal",
"default_label_mode": "number",
"color_by_default": "type",
"web_lookup_enabled": true
},
"skill_readiness": {
"identify-components": "ready",
"annotate-board": "ready (requires Pillow)",
"cross-check-specs": "ready (optional: pdfplumber)",
"generate-bom": "ready",
"prep-photo": "ready (optional: opencv-python)",
"install-deps": "ready",
"onboard": "ready"
}
}
Write to: ${DATA_ROOT}/config.json
Create a README.txt with quick-start instructions:
Hardware ID Annotation Plugin — Quick Start
Data stored in: ${DATA_ROOT}/
Skills:
- identify-components: Catalog components from a hardware photo
- annotate-board: Draw bounding boxes and labels on the photo
- cross-check-specs: Fetch manufacturer datasheets
- generate-bom: Create BOM from component list
- prep-photo: Improve photo quality before identification
- install-deps: Install Python dependencies
Next steps:
1. Run 'prep-photo' if your hardware photo is low-quality
2. Run 'identify-components' with your photo
3. Run 'annotate-board' to visualize the components
4. Run 'cross-check-specs' to verify part numbers
5. Run 'generate-bom' for a sourcing list
For details, see SKILL.md files in skills/ directory.
Write to: ${DATA_ROOT}/README.txt
Print status report:
✓ Data root: ${DATA_ROOT}
✓ Directories created: data/, cache/datasheets/, state/, output/
✓ Config written: config.json
✓ Datasheet caching: enabled
✓ Web lookups: enabled
Plugin is ready. Run 'prep-photo' or 'identify-components' to get started.
--reset.${CLAUDE_USER_DATA} with user-only access (mode 0700).install-deps to set up Python packages.What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/annotate-boardUse when you want to render an annotated overlay PNG of a circuit board with bounding boxes, labels, and a legend from a components.json list./complementary-pluginsList and install plugins that complement hardware-id-annotation: hardware-spec-assembly, procurement-tools. Use on "related plugins"./cross-check-specsUse when you have identified part numbers and want to fetch manufacturer datasheets, verify specs, and flag mismatches with the visual identification.Other plugins' skills for the same job
hardware-id-annotation@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin hardware-id-annotation