traduction

This commit is contained in:
2026-06-02 23:24:21 +02:00
parent 89ed5d7f86
commit e8f2b1a034
114 changed files with 17211 additions and 0 deletions
@@ -0,0 +1,29 @@
---
name: weather-svg-creator
description: Crée une carte météo SVG affichant la température actuelle de Dubaï. Écrit le SVG dans orchestration-workflow/weather.svg et met à jour orchestration-workflow/output.md.
---
# Skill Weather SVG Creator
Crée une carte météo SVG visuelle pour Dubaï, UAE, et écrit les fichiers de sortie.
## Tâche
Tu recevras une valeur de température et une unité (Celsius ou Fahrenheit) depuis le contexte appelant. Crée une carte météo SVG et écris à la fois le SVG et un résumé Markdown.
## Instructions
1. **Créer le SVG** — utilise le template SVG de [reference.md](reference.md), en remplaçant les placeholders par les valeurs réelles
2. **Écrire le fichier SVG** — lis puis écris dans `orchestration-workflow/weather.svg`
3. **Écrire le résumé** — lis puis écris dans `orchestration-workflow/output.md` avec le template Markdown de [reference.md](reference.md)
## Règles
- Utilise la valeur de température et l'unité exactes fournies — ne re-fetch pas et ne modifie pas
- Le SVG doit être autonome et valide
- Les deux fichiers de sortie vont dans le répertoire `orchestration-workflow/`
## Ressources additionnelles
- Pour le template SVG, le template de sortie et les specs de design, voir [reference.md](reference.md)
- Pour les paires exemple entrée/sortie, voir [examples.md](examples.md)
@@ -0,0 +1,79 @@
# Weather SVG Creator — Exemples
## Exemple 1 : Celsius
### Entrée
```
Temperature: 26.2°C
Unit: Celsius
```
### Sortie SVG (`orchestration-workflow/weather.svg`)
```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 160" width="300" height="160">
<rect width="300" height="160" rx="12" fill="#1a1a2e"/>
<text x="150" y="45" text-anchor="middle" fill="#8892b0" font-family="system-ui" font-size="14">Unit: Celsius</text>
<text x="150" y="100" text-anchor="middle" fill="#ccd6f6" font-family="system-ui" font-size="42" font-weight="bold">26.2°C</text>
<text x="150" y="140" text-anchor="middle" fill="#64ffda" font-family="system-ui" font-size="16">Dubai, UAE</text>
</svg>
```
### Sortie Markdown (`orchestration-workflow/output.md`)
```markdown
# Weather Result
## Temperature
26.2°C
## Location
Dubai, UAE
## Unit
Celsius
## SVG Card
![Weather Card](weather.svg)
```
---
## Exemple 2 : Fahrenheit
### Entrée
```
Temperature: 79.2°F
Unit: Fahrenheit
```
### Sortie SVG (`orchestration-workflow/weather.svg`)
```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 160" width="300" height="160">
<rect width="300" height="160" rx="12" fill="#1a1a2e"/>
<text x="150" y="45" text-anchor="middle" fill="#8892b0" font-family="system-ui" font-size="14">Unit: Fahrenheit</text>
<text x="150" y="100" text-anchor="middle" fill="#ccd6f6" font-family="system-ui" font-size="42" font-weight="bold">79.2°F</text>
<text x="150" y="140" text-anchor="middle" fill="#64ffda" font-family="system-ui" font-size="16">Dubai, UAE</text>
</svg>
```
### Sortie Markdown (`orchestration-workflow/output.md`)
```markdown
# Weather Result
## Temperature
79.2°F
## Location
Dubai, UAE
## Unit
Fahrenheit
## SVG Card
![Weather Card](weather.svg)
```
@@ -0,0 +1,62 @@
# Weather SVG Creator — Référence
## Template SVG
```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 160" width="300" height="160">
<rect width="300" height="160" rx="12" fill="#1a1a2e"/>
<text x="150" y="45" text-anchor="middle" fill="#8892b0" font-family="system-ui" font-size="14">Unit: [Celsius/Fahrenheit]</text>
<text x="150" y="100" text-anchor="middle" fill="#ccd6f6" font-family="system-ui" font-size="42" font-weight="bold">[value]°[C/F]</text>
<text x="150" y="140" text-anchor="middle" fill="#64ffda" font-family="system-ui" font-size="16">Dubai, UAE</text>
</svg>
```
### Placeholders
| Placeholder | Remplacer par | Exemple |
|-------------|---------------|---------|
| `[Celsius/Fahrenheit]` | Nom complet de l'unité depuis l'entrée | `Celsius` |
| `[value]` | Température numérique depuis l'entrée | `26.2` |
| `[C/F]` | Abréviation de l'unité | `C` ou `F` |
### Specs de design
| Propriété | Valeur |
|-----------|--------|
| Dimensions | 300 x 160 px |
| Rayon des coins | 12 px |
| Arrière-plan | `#1a1a2e` (dark navy) |
| Label d'unité | `#8892b0` (bleu atténué), 14px |
| Température | `#ccd6f6` (bleu clair), 42px bold |
| Lieu | `#64ffda` (accent teal), 16px |
| Police | `system-ui` |
| Tout le texte | Centré (`text-anchor="middle"` à x=150) |
---
## Template Markdown de sortie
```markdown
# Weather Result
## Temperature
[value]°[C/F]
## Location
Dubai, UAE
## Unit
[Celsius/Fahrenheit]
## SVG Card
![Weather Card](weather.svg)
```
---
## Chemins de sortie
| Fichier | Chemin |
|---------|--------|
| Carte SVG | `orchestration-workflow/weather.svg` |
| Résumé Markdown | `orchestration-workflow/output.md` |