# Run1 Itinerary Generation

> How to serialize the final travel itinerary to a JSON file.

- Skill: `cxcscmu/run1-itinerary-generation` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/run1-itinerary-generation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/run1-itinerary-generation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/run1-itinerary-generation

---

# Itinerary Generation Skill
Use python's `json` module to dump the final itinerary in the required format.

```python
import json

itinerary = {
    "plan": [
        {
            "day": 1,
            "current_city": "Minneapolis",
            "transportation": "Self-driving: from Minneapolis to Cleveland",
            "breakfast": "...",
            "lunch": "...",
            "dinner": "...",
            "attraction": "...",
            "accommodation": "..."
        }
    ],
    "data_sources": [
        "accommodations/clean_accommodations_2022.csv"
    ]
}

with open('/app/output/itinerary.json', 'w') as f:
    json.dump(itinerary, f, indent=2)
```

