用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tradingstrategy-ai/web3-ethereum-defi --skill post-process-logo命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Categorise a DeFi vault's investment strategy from its address, link, name, and published strategy context. Use when adding or reviewing StrategyTag classifications for VaultBase adapters or native perpetual DEX vault exports, including their maintained tags.py mappings.
Add support for a new ERC-4626 vault protocol. Use when the user wants to integrate a new vault protocol like IPOR, Plutus, Morpho, etc. Requires vault smart contract address, protocol name, and protocol slug as inputs.
Add a new vault curator to feed metadata and curator detection. Use when the user wants to add a verified curator, protocol-managed curator, or curator alias discovered from vault data.
基于 SOC 职业分类
正在显示 SKILL.md
| name | post-process-logo |
| description | Post-process original logos into standardised 256x256 PNG format |
This skill transforms original logo images into standardised 256x256 PNG format suitable for vault protocol metadata. It automatically selects the most square variant from available logos and applies padding if needed to create a perfect square output.
Before starting, gather the following from the user:
eth_defi/data/vaults/original_logos/protocol-name/)eth_defi/data/vaults/formatted_logos/)generic, light, dark, or allIf any required input is missing, ask the user before proceeding.
Ensure the following are available:
poetry install --with devPython Pillow is installed for detecting image format, dimensions, and transparency.
There is no universal standard how artist name their logo files for dark and light variants. In our case, we always say
light: light (white) text on dark or transparent backgrounddark: dark (black) text on white or transparent backgroundFollowing vocabulary is used:
List all image files in the input folder and classify them:
{slug}.generic.{ext} - Generic/default theme{slug}.light.{ext} - Light background theme (dark logo){slug}.dark.{ext} - Dark background theme (light logo)Process the selected logo variant. The script will automatically add padding to non-square logos to make them square before scaling.
export INPUT_IMAGE=/path/to/original/logo.png
export OUTPUT_IMAGE=/path/to/output/logo.generic.png
poetry run python scripts/logos/post-process-logo.py
The script will:
Provide the user with:
Output files should follow this naming pattern:
{protocol-slug}/light.png - For light backgrounds{protocol-slug}/dark.png - For dark backgroundsIf SVG conversion fails:
If the background isn't removed properly: