본문으로 건너뛰기
cccskills
무료GitHub에 공개

weather-svg-creator

Use this skill to render a weather SVG card and a Markdown summary after the weather-agent returns a temperature payload. Activate whenever the user asks for a weather card, weather graphic, or wants the output of /weather-orchestrator rendered to disk.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md2.5 KB
  • assets/weather-template.svg1.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Weather SVG Creator

This skill renders the final artifacts for the weather orchestration flow. The caller provides a structured payload from the weather-agent subagent. Do not refetch data — work only with what the caller gives you.

Inputs

A JSON object with:

{
  "location": "Dubai, UAE",
  "temperature": <number>,
  "unit": "C" | "F",
  "timestamp": "<ISO-8601>"
}

Outputs

Two files, always written together:

  1. orchestration-workflow/weather.svg
  2. orchestration-workflow/output.md

Workflow

1. Render the SVG card

Write orchestration-workflow/weather.svg as a 400×220 self-contained SVG:

  • Rounded rectangle background (18 px corner radius) with a linear gradient: #4285F4 → #7B68EE → #EA4335 (Google-blue → Gemini-purple → warm-orange). Overlay a white layer at 4% opacity for depth.
  • Top-left header: the location, Inter 18 px 600-weight, white 92% opacity.
  • Subheader beneath: "via Open-Meteo", 11 px, white 70% opacity.
  • Centered temperature value with °C or °F suffix based on unit: 72 px, 700-weight, white, soft drop shadow.
  • Top-right sun glyph: a 14 px yellow (#FFC107) circle with a thin white ring at 25% opacity.
  • Footer: ISO timestamp, 13 px, white 75% opacity, centered near the bottom.

See assets/weather-template.svg in this skill directory for a working template to copy and substitute values into.

2. Write the Markdown summary

Write orchestration-workflow/output.md with exactly this shape:

# Weather — <location>

- **Timestamp**: <iso-8601>
- **Location**: <location>
- **Temperature**: <temperature> °<unit>
- **Source**: [Open-Meteo](https://open-meteo.com)
- **Card**: [`weather.svg`](./weather.svg)

Run `/weather-orchestrator` inside `gemini` to regenerate.

3. Report

Reply with exactly the two paths written, nothing else:

orchestration-workflow/weather.svg
orchestration-workflow/output.md

Rules

  • Do NOT fetch weather data — the agent already did that.
  • Do NOT write to paths outside orchestration-workflow/.
  • Both files MUST be written before returning.
  • If the input payload is missing fields, stop and return {"error": "missing field: <name>"} — do not fabricate values.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고