用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fjania/fjania.com --skill add-bit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-bit |
| description | Add a router bit to the inventory by SKU — resolves vendor, fetches specs and image, creates a YAML data file. |
| allowed-tools | Read, Write, Bash, Grep, Glob, WebFetch, WebSearch, Skill |
| argument-hint | <SKU> [--status backorder|shipped|ordered] [--status-date DATE] |
Given a product SKU, resolve the vendor and product page, extract specs, fetch a clean image, and create a YAML data file in the Astro content collection.
Paths: the content collection lives at
src/content/bits/and images atpublic/bit-images/(both at the repo root — there is noworkshop/prefix). The trim/isolate helper scripts live inworkshop/router-bits/.
If the SKU is a multi-piece set (e.g. ...-7PC, ...-SET, "X-Piece Set"), do NOT create one card for the set. Explode it into one YAML file + one image per individual bit it contains. Inventory is tracked at the individual-bit level, so a set card hides the real contents and can't reflect per-bit status, specs, or images.
To explode a set:
{SKU}.yml, its own trimmed {SKU}.jpg.--status/--status-date to every individual bit.$ARGUMENTS should contain:
--status backorder|shipped|ordered (optional) — sets the order status--status-date DATE (optional) — date for the status stamp (e.g. 2026-03-15)Normalize the SKU to uppercase. Extract optional --status and --status-date values.
Check if a YAML file already exists in src/content/bits/ for this SKU. If the bit already exists, report it and stop — do not add a duplicate.
Determine the vendor from the SKU pattern and find the product page:
| SKU pattern | Vendor | How to find product page |
|---|---|---|
Starts with US | Woodpeckers | WebFetch https://woodpeck.com/catalogsearch/result/?q={SKU} and find the product link in the results |
Numeric only (e.g. 2702) | Whiteside | URL is https://whitesiderouterbits.com/products/{SKU} |
| Other | Bits&Bits | Search https://www.bitsandbits.com — image filename convention is W-{SKU}.jpg |
If the SKU doesn't match any pattern, WebSearch the approved domains (woodpeck.com, bitsandbits.com, whitesiderouterbits.com) for the SKU. If still ambiguous, ask the user.
Never use Amazon. Only use approved sources per CLAUDE.md.
WebFetch the product URL. Extract these specs from the page content:
Use both SKU suffix conventions and product name keywords to classify the bit:
SKU suffix → type mapping:
| Suffix | Type |
|---|---|
| CSP, PLT | pattern |
| FT, FTC | flush-trim |
| RO | roundover |
| C, CM | compression |
| TD, TU | spiral |
| VG, FGV | vgroove |
| CH | chamfer |
| BD | bowl |
| BNU | ballnose |
| JG | groove |
| SF | spoilboard |
| RBT | rabbeting |
Product name keywords (fallback): "pattern", "flush trim", "roundover", "compression", "spiral", "v-groove", "chamfer", "bowl", "ball nose", "groove", "spoilboard", "rabbet"
If the type is ambiguous after checking both, ask the user.
Invoke the fetch-bit-image skill to download and trim the product image:
/fetch-bit-image {product-url} {SKU}.jpg
This chains into trim-bit-image automatically.
Determine the filename:
{SKU}.ymlW-{SKU}.ymlCMT_{SKU}.yml (replace spaces with underscores)Create src/content/bits/{filename} with this structure:
model: {SKU}
name: "{product name}"
types:
- {type}
brand: {wp|ws|cmt}
shank: '{shank}"'
max_rpm: {rpm or null}
image: {SKU}.jpg
url: "{product-url}"
qty: 1
status: {status or in-stock}
status_date: {date or null}
specs:
- label: Diameter
value: '{value}"'
- label: Cut Length
value: '{value}"'
Match the format of existing YAML files in src/content/bits/. Quote strings that contain special YAML characters.
Copy the trimmed image to public/bit-images/{SKU}.jpg.
Display the YAML file content and the trimmed image for the user to verify. Report what was added.
Do NOT commit, push, or deploy — let the user review first.