claude-handoff
MAmattpocock/skills337k近 7 天新增 4,978 个 star
Fetch brand info (name, description, logos, industry) from brand.dev API and save logos locally. Use when the user asks to look up a brand, fetch a logo, get brand info, or add a company with its logo.
Fetch brand data from the brand.dev API and save logos locally for serving.
Extract the target domain from the user's input. Strip protocol and trailing slashes (e.g., "https://example.com/" -> "example.com").
# BRANDDEV_API_KEY must be set in your environment
curl -s "https://api.brand.dev/v1/brand/retrieve?domain=${DOMAIN}" \
-H "Authorization: Bearer ${BRANDDEV_API_KEY}" \
-H "Content-Type: application/json"
Extract from the response:
.brand.title or .brand.name).brand.description).brand.logos[]) — prefer icon/square logos for card layouts, full logos for headersALWAYS download logos locally for serving. Never reference external media.brand.dev URLs in production code — they can change or go down.
The save location depends on the project. Look for existing patterns:
public/logos/<context>/ (served as /logos/<context>/)static/, assets/, images/, or public/ directorieslogos/ directory under the project's static asset root<brand-slug>.<ext> where:
<brand-slug> is the lowercase brand name, spaces replaced by hyphens (e.g., miss-a not miss_a)<ext> matches the original file extension (png, webp, jpg, svg)partners/, customers/) if the project has multiple logo collectionsmkdir -p <logo-dir>
curl -sL "<logo-url>" -o "<logo-dir>/<brand-slug>.<ext>"
ls -la <logo-dir>/<brand-slug>.<ext>
Provide the user with:
media.brand.dev URLs directly in production code.MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
DIDietrichGebert/ponytail203k近 7 天新增 4,904 个 star