用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fjania/fjania.com --skill fetch-bit-image命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | fetch-bit-image |
| description | Fetch the cleanest product image from a router bit product page, save it, and pass it to the trim skill. |
| allowed-tools | Read, Bash, WebFetch, Skill |
| argument-hint | <product-url> <output-filename> |
Given a product page URL and a target filename, find the best product image (clean, white/light background, bit clearly visible) and save it ready for trimming.
$ARGUMENTS should contain:
2703.jpg — it will be saved to workshop/public/bit-images/). Note: isolate-objects.py and trim-image.sh live in workshop/router-bits/.Fetch the product page using WebFetch. Ask it to extract ALL product image URLs from the page — every img src, data-src, data-zoom-image, or gallery/thumbnail URL that looks like a product photo. Exclude icons, logos, UI chrome, and SVGs.
Deduplicate the images. Product pages often serve the same image at multiple sizes via different cache paths or query strings. Group URLs by their base filename (the last path segment, ignoring cache/resize directories). Pick the largest version of each unique image. Important: After downloading each candidate, check its actual pixel dimensions with sips -g pixelWidth -g pixelHeight — some cache paths serve thumbnails (e.g. 75x75) even though the URL looks similar. If a candidate is tiny, try alternate cache paths for the same filename to find the full-size version.
Download all unique images to /tmp/bit-fetch-candidates/ (create the directory first, clearing any previous contents). Name them candidate-1.jpg, candidate-2.jpg, etc.
Visually inspect each candidate using the Read tool. Score each image on these criteria (best to worst):
Also prefer images where:
Select the best image. Copy it to workshop/public/bit-images/<output-filename>.
Invoke the trim-bit-image skill on the saved image:
/trim-bit-image workshop/public/bit-images/<output-filename>
Show the final result by reading the trimmed image so the user can verify it.
Add a router bit to the inventory by SKU — resolves vendor, fetches specs and image, creates a YAML data file.
Visually inspect a router bit image, determine the bounding box of the bit, crop to that region, and resize for the inventory page.
Add a wood species sheet — researches the species online, creates a YAML data file, finds and downloads images, and builds the site.
基于 SOC 职业分类