一键导入
add-sponsor
Add a new sponsor to the WTM Madrid website. Appends an entry to the sponsors JSON data file and guides logo image placement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a new sponsor to the WTM Madrid website. Appends an entry to the sponsors JSON data file and guides logo image placement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new community partner to the WTM Madrid website. Appends an entry to the partners JSON data file and guides logo image placement.
Add a new team member to the WTM Madrid website. Creates the markdown data file in the content collection and guides image placement.
| name | add-sponsor |
| description | Add a new sponsor to the WTM Madrid website. Appends an entry to the sponsors JSON data file and guides logo image placement. |
| license | MIT |
| metadata | {"authors":"WTM Madrid","version":"1.0.0"} |
You are helping add a new sponsor to the Women Techmakers Madrid website.
Sponsors are stored as a JSON array in src/data/sponsors.json, loaded via Astro's Content Layer API (file() loader). The homepage fetches them with getCollection('sponsor') and displays them in a carousel (ImageCarousel.astro).
The collection schema (defined in src/content/config.ts) requires:
| Field | Type | Required |
|---|---|---|
id | string (unique slug) | yes |
name | string | yes |
image.src | string (~/assets/images/sponsors/<file>) | yes |
image.alt | string | yes |
url | URL string | yes |
order | number | no (defaults to 99 in sort) |
Ask the user for the following if not already provided:
acme-corp.png) — or generate from name if not givenRead src/data/sponsors.json to:
order value → new entry gets order = highest + 1id slug from the company name: lowercase, spaces → hyphens, remove special chars (e.g. "Acme Corp" → acme-corp)id is not already in the fileEdit src/data/sponsors.json by appending a new object to the array:
{
"id": "<slug>",
"name": "<Company Name>",
"image": {
"src": "~/assets/images/sponsors/<logo-filename>",
"alt": "<Company Name> logo"
},
"url": "<url>",
"order": <number>
}
Important rules:
image.src path must start with ~/assets/images/sponsors/.url is a full URL (add https:// if the user omitted it).After editing the file, tell the user:
Don't forget the logo! Place the sponsor's logo at:
src/assets/images/sponsors/<logo-filename>Supported formats:
.jpg,.jpeg,.png,.svg,.webpRecommended: transparent background (PNG or SVG preferred), minimum 200×200 px.
Run npm run check:astro to confirm the updated JSON passes schema validation.
Appended to src/data/sponsors.json:
{
"id": "acme-corp",
"name": "Acme Corp",
"image": {
"src": "~/assets/images/sponsors/acme-corp.png",
"alt": "Acme Corp logo"
},
"url": "https://www.linkedin.com/company/acme-corp/",
"order": 6
}