一键导入
add-partner
Add a new community partner to the WTM Madrid website. Appends an entry to the partners JSON data file and guides logo image placement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a new community partner to the WTM Madrid website. Appends an entry to the partners JSON data file and guides logo image placement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new team member to the WTM Madrid website. Creates the markdown data file in the content collection and guides image placement.
Add a new sponsor to the WTM Madrid website. Appends an entry to the sponsors JSON data file and guides logo image placement.
| name | add-partner |
| description | Add a new community partner to the WTM Madrid website. Appends an entry to the partners JSON data file and guides logo image placement. |
| license | MIT |
| metadata | {"authors":"WTM Madrid","version":"1.0.0"} |
You are helping add a new community partner to the Women Techmakers Madrid website.
Community partners are stored as a JSON array in src/data/partners.json, loaded via Astro's Content Layer API (file() loader). The homepage fetches them with getCollection('partner') and displays them in a carousel (ImageCarousel.astro) under the "Comunidades amigas" section.
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/partners/<file>) | yes |
image.alt | string | yes |
url | URL string | yes |
order | number | no (defaults to 99 in sort) |
iwdPartner | boolean | no (defaults to false) |
Note:
iwdPartner: truemakes the partner appear in the IWD event page (src/pages/iwd.astro). New partners should default tofalse.
Ask the user for the following if not already provided:
nueva-comunidad.png) — or generate from name if not givenRead src/data/partners.json to:
order value → new entry gets order = highest + 1id slug from the name: lowercase, spaces → hyphens, remove special chars (e.g. "Nueva Comunidad Tech" → nueva-comunidad-tech)id is not already in the fileEdit src/data/partners.json by appending a new object to the array:
{
"id": "<slug>",
"name": "<Community Name>",
"image": {
"src": "~/assets/images/partners/<logo-filename>",
"alt": "<Community Name> logo"
},
"url": "<url>",
"order": <number>,
"iwdPartner": false
}
Important rules:
image.src path must start with ~/assets/images/partners/.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 partner's logo at:
src/assets/images/partners/<logo-filename>Supported formats:
.jpg,.jpeg,.png,.svg,.webpRecommended: transparent background (PNG or SVG preferred), minimum 300×300 px.
Run npm run check:astro to confirm the updated JSON passes schema validation.
Appended to src/data/partners.json:
{
"id": "tech-diversa",
"name": "Tech Diversa",
"image": {
"src": "~/assets/images/partners/tech-diversa.png",
"alt": "Tech Diversa logo"
},
"url": "https://www.linkedin.com/company/tech-diversa/",
"order": 6,
"iwdPartner": false
}