SKILL.md
Dart Type Bridger
When to use
- Flutter agent needs accurate API payload shapes
- Local
openapi.json(or another OpenAPI file under the project root) - Firestore rules or schema file exists for Firebase projects
Instructions
- Ensure a local OpenAPI file at
openapi.json. Prefer the scaffolded file. If the API is running and the file is missing/stale, export to disk first (do not pass a URL into this skill):
``bash curl -fsS http://127.0.0.1:8090/openapi.json -o openapi.json ``
- FastAPI models:
python scripts/syncopenapi.py --project-root <root>: writeslib/models/apimodels.dartfrom localopenapi.jsononly (optional--openapi path/rel.json).
- Firebase:
python scripts/fetchfirestoreschema.py --project-root <root>
- Import generated models in repositories: never guess field names.