lov-maintain-partners
БесплатноЗапускает вложенные скриптыНе проверенMaintain the Skill Publisher website's partners section AND align partner logo rows on event posters / hero strips: reuse lov-find-logo for brand logo…
от lovstudio★ 72 звезды на GitHubОб этом скилле
伙伴名录 · Partner Directory
Maintains the configured website repo. Resolve the path from --repo,
SKILL_MAINTAIN_PARTNERS_SITE_ROOT, or the shared user profile. The partners
strip usually lives in app/(main)/(home)/PartnersGrid.tsx as a PARTNERS: Partner[] array; older sites may still keep it in
app/(main)/(home)/WorkshopDispatch.tsx. Logos live in
public/partners/<slug>/logo.png; taglines in
src/i18n/messages/{zh-CN,en,ja,th}.json under dispatch.partner*Tagline.
User Configuration
Before touching files, resolve:
SKILL_ROOT="${SKILL_SKILLS_INSTALL_DIR:?Set SKILL_SKILLS_INSTALL_DIR}"
SKILL_DIR="${SKILL_DIR:-$SKILL_ROOT/lov-maintain-partners}"
WEB_ROOT="${SKILL_MAINTAIN_PARTNERS_SITE_ROOT:?Set this or pass --repo}"
PARTNERS_TSX="${SKILL_MAINTAIN_PARTNERS_FILE:-app/(main)/(home)/PartnersGrid.tsx}"
Use this precedence for the website root:
- Explicit
--repo <path>onadd_partner.py/audit_partners.py. SKILL_MAINTAIN_PARTNERS_SITE_ROOT.- Shared profile JSON at
${SKILL_PROFILE_PATH:-$HOME/.lovstudio/skills/profile.json}.
SKILL_WEB_ROOT and PARTNERS_SITE_ROOT are accepted as legacy aliases,
but should not be the public contract for reusable skills.
Use this precedence for the partners TSX file:
- Explicit
--partners-file <path>. SKILL_MAINTAIN_PARTNERS_FILE.- Shared profile keys
sites.partners_file,lovstudio.partners_file,partners.file, orworkspace.partners_file. app/(main)/(home)/PartnersGrid.tsx, then legacyapp/(main)/(home)/WorkshopDispatch.tsx.
SKILL_PARTNERS_FILE and PARTNERS_FILE are accepted as legacy aliases,
but should not be the public contract for reusable skills.
For details and supported profile keys, read references/user-config.md.
Skill Dependencies
lov-find-logois required for all logo discovery. This skill must not scrape homepages itself or keep a separate fallback crawler.- Use the
depends_onfrontmatter field to declare skill-level dependencies. This mirrors thedepends_onfield inlov-general-skills/skills.yaml; unknown frontmatter keys are expected to be ignored by agents that do not consume dependency metadata.
When to Use
- User asks to add one or more new partners (with or without a logo URL).
- User asks to standardize / normalize a logo (sizing wrong, white-on-white, etc.).
- User provides a local file and asks to replace an existing partner's logo.
- User asks to audit the partners section before a release.
Standards
- Logo canvas: 80px content height for the website partners strip
(light grayscale, CSS
height: 32px≈ 2.5× density, sharp enough), 240px for event posters or any retina export atscale: 2or higher. - For white-on-transparent logos: invert (full or selective) so they show on the light grayscale strip.
- For icon-only logos < ~40px wide after normalization: pass
--show-namewhen adding so the brand name renders next to the icon. - Tagline format:
<品牌名> · <一句话定位>in Chinese; mirror style in en/ja/th.
Workflow
Op 1: Add a new partner
- Ask the user for the brand name + homepage URL via
AskUserQuestion. - Collect the logo with
lov-find-logo:
Use the archived primary asset underpython3 "$SKILL_ROOT/lov-find-logo/scripts/find_logo.py" \ --name "<显示名>" --url <URL> --slug <slug> --json~/.lovstudio/logo-collection/<slug>/logo.<ext>. Iffind_logo.pyreturns no candidates, stop and ask the user for a better official URL / press-kit URL, then rerunfind_logo.py. Do not call a local scraper from this skill. - Visually verify the archived primary asset before normalizing.
- If the primary asset is SVG, rasterize it before normalization:
Use the rasterizedrsvg-convert -h 240 ~/.lovstudio/logo-collection/<slug>/logo.svg \ -o /tmp/<slug>-raw.png/tmp/<slug>-raw.pngas--src. For non-SVG sources, use the archived primary asset directly. - Normalize:
python3 "$SKILL_DIR/scripts/normalize_logo.py" \ --src <archived-or-rasterized-logo> \ --dst "$WEB_ROOT/public/partners/<slug>/logo.png" \ --invert auto - Read the normalized PNG to confirm it's visible (not white-on-white).
- Append to PARTNERS + all 4 locale JSONs:
python3 "$SKILL_DIR/scripts/add_partner.py" \ --repo "$WEB_ROOT" \ --partners-file "$PARTNERS_TSX" \ --name "<显示名>" --href "<URL>" \ --logo "/partners/<slug>/logo.png" \ --key partner<Slug>Tagline \ --category community \ --zh "..." --en "..." --ja "..." --th "..." \ [--show-name]
Op 2: Normalize an existing logo
python3 "$SKILL_DIR/scripts/normalize_logo.py" \
--src public/partners/<slug>/logo.png \
--dst public/partners/<slug>/logo.png \
--invert auto
Re-read after to verify.
Op 3: Replace logo from a user-provided file
Ask for the source file path directly, or read it from th
Установить lov-maintain-partners в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lov-maintain-partners?
Maintain the Skill Publisher website's partners section AND align partner logo rows on event posters / hero strips: reuse lov-find-logo for brand logo discovery, normalize collected logos to a 240px-tall content canvas (retina-ready), rasterize SVGs via rsvg-convert before normalizing (so SVG viewBox padding gets cropped), strip embedded background rects from icon-style SVGs, composite icon + wordmark when only an icon is available (using brand fonts), wrap logos in a fixed-size grid box (96×30 with subtle border) for stable matrix layouts, replace existing logos with user-provided files, append new partners to the PARTNERS array with i18n taglines across zh-CN/en/ja/th, and audit the section for dead URLs / missing files / missing translations. Also handles cross-asset visual height parity (multi-logo strips on dark backgrounds, "logo 不等高", unified-color filter recipe). Trigger when the user mentions "合作伙伴", "partners", "trusted by", "新增 logo", "标准化 logo", "替换 logo", "审计合作伙伴", "维护合作伙伴", "logo 不一样高", "logo 对齐", "logo 大小不一致", "logo 颜色不统一", "logo 不清晰", "logo 糊了", "矩阵格子", "等宽 box", "图标加文字", "compose wordmark".
Как установить скилл lov-maintain-partners?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lov-maintain-partners запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic