← Commit history

Publish 0.1.0

Ray ·a678ed2746 · ·parent be2321f
6 files changed +145
SKILL.mdadded+44
@@ -0,0 +1,44 @@+---+name: adom-chip-laser+description: Laser-etch a component's MPN into its CAD at the STEP layer — a callable HTTP service with STEP output. Use when the user wants a part number marked on a chip's die in its STEP or 3D model, or asks to "laser-etch the MPN", "mark the part number", "add the MPN to my Fusion/STEP export", or "etch the die".+---++# adom-chip-laser++Laser-etch a component's **MPN into its CAD at the STEP layer**. Use this when the+user wants a part number marked on a chip's die in its STEP / 3D model — e.g.+"laser-etch the MPN", "mark the part number on the chip", "add the MPN to my+Fusion / STEP export", "etch the die".++## Use it++**HTTP service** (no local cadquery needed — any container can call it):++```bash+curl -X POST "https://laserchip-6dn1tl7vjz5u.adom.cloud/etch?mpn=<MPN>" \+     --data-binary @chip.step -o etched.step+```++**Client CLI** (installed by this package — a thin wrapper over the service):++```bash+adom-chip-laser etch <chip.step> <MPN> [out.step] [frac]+adom-chip-laser health+```++- **Input:** a component's chip STEP + its MPN. **Output:** an etched STEP (Fusion-ready).+- `frac` (default `0.55`) = mark size as a fraction of the die; smaller = subtler.+  Single subtle line, MPN-only, auto-fit to the package.+- `GET /health` → `{"ok":true,"version":"…"}`. Override the service with+  `ADOM_CHIP_LASER_URL`.++For the **full 3D deliverables** (etched chip GLB with real materials + animated+board GLB with a toggleable `laser_etch` layer), use the Python `board` command in+the source repo `adom-inc/adom-chip-laser` (needs cadquery + the `step2glb` service).++## Why STEP-layer++Fusion imports a library via the **STEP**, not a GLB — and a laser mark on black+epoxy is a **color change** (a light-grey inlay body), not a groove. So the mark+rides into the STEP download, the Fusion import, *and* the derived 3D model. Proven+across LQFP / QFN / TQFP / LGA packages. First live on `adom/stm32f103c8t6`.
client/adom-chip-laseradded+26
@@ -0,0 +1,26 @@+#!/usr/bin/env bash+# adom-chip-laser — lightweight client for the Adom Chip Laser service.+# Etches a component's MPN into its STEP at the STEP layer. No cadquery needed+# locally; this just calls the shared service.+set -uo pipefail+SVC="${ADOM_CHIP_LASER_URL:-https://laserchip-6dn1tl7vjz5u.adom.cloud}"+VERSION="0.1.0"++case "${1:-}" in+  etch)   # adom-chip-laser etch <chip.step> <MPN> [out.step] [frac]+    step="${2:-}"; mpn="${3:-}"; out="${4:-etched.step}"; frac="${5:-0.55}"+    [ -f "$step" ] && [ -n "$mpn" ] || { echo "usage: adom-chip-laser etch <chip.step> <MPN> [out.step] [frac]"; exit 1; }+    if curl -sf -X POST "$SVC/etch?mpn=$mpn&frac=$frac" --data-binary @"$step" -o "$out"; then+      echo "etched $mpn -> $out"+    else+      echo "etch failed (service: $SVC)"; exit 1+    fi ;;+  health)  curl -s "$SVC/health"; echo ;;+  url)     echo "$SVC" ;;+  version|--version) echo "adom-chip-laser $VERSION" ;;+  *) echo "adom-chip-laser $VERSION — laser-etch an MPN into a component's STEP"+     echo "usage:"+     echo "  adom-chip-laser etch <chip.step> <MPN> [out.step] [frac]"+     echo "  adom-chip-laser health | url | version"+     echo "  (override the service with ADOM_CHIP_LASER_URL)"; exit 1 ;;+esac
install.shadded+7
@@ -0,0 +1,7 @@+#!/usr/bin/env bash+# Install the lightweight adom-chip-laser client (calls the shared service).+set -euo pipefail+DIR="$(cd "$(dirname "$0")" && pwd)"+mkdir -p "$HOME/.local/bin"+install -m0755 "$DIR/client/adom-chip-laser" "$HOME/.local/bin/adom-chip-laser"+echo "adom-chip-laser client installed. Try:  adom-chip-laser health"
package.jsonadded+64
@@ -0,0 +1,64 @@+{+  "slug": "adom-chip-laser",+  "version": "0.1.0",+  "type": "app",+  "description": "Laser-etch a component's MPN into its CAD at the STEP layer \u2014 a callable HTTP service with STEP output, so the download, the Fusion import, and the 3D model all carry the part number on the die.",+  "dependencies": {},+  "license": "MIT",+  "needs_sudo": false,+  "files": [+    "page.json",+    "README.md",+    "screenshots/**",+    "client/**",+    "install.sh",+    "uninstall.sh",+    "package.json",+    "SKILL.md"+  ],+  "tags": [+    "laser-etch",+    "step",+    "cad",+    "fusion",+    "kicad",+    "mpn",+    "3d",+    "marking",+    "service",+    "electronics"+  ],+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "discovery_triggers": [+    "laser etch",+    "laser-etch step",+    "etch mpn",+    "chip marking",+    "laser mark step",+    "part number on chip",+    "fusion step etch",+    "step laser etch",+    "die marking"+  ],+  "discovery_pitch": "Laser-etch a component's MPN into its CAD at the STEP layer \u2014 a callable HTTP service with STEP output, so the download, the Fusion import, and the 3D model all carry the part number on the die.",+  "sample_prompts": [+    {+      "label": "Etch MPN into STEP",+      "prompt": "laser-etch the MPN into this chip's STEP"+    },+    {+      "label": "Mark Fusion export",+      "prompt": "add the part number to my Fusion STEP export"+    },+    {+      "label": "Etch the die",+      "prompt": "etch STM32F103C8T6 onto the die in the 3D model"+    }+  ],+  "hero": {+    "path": "screenshots/hero.png"+  }+}\ No newline at end of file
screenshots/hero.pngadded
⋯ 1 unchanged line ⋯
uninstall.shadded+4
@@ -0,0 +1,4 @@+#!/usr/bin/env bash+set -uo pipefail+rm -f "$HOME/.local/bin/adom-chip-laser"+echo "adom-chip-laser client removed"