원클릭으로
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 직업 분류 기준
| 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
}
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.