About backend-type-bridger
A development skill that generates TypeScript API types from a local OpenAPI file and can fetch Firebase schema information. It is intended for frontend work that needs accurate backend payload shapes instead of guessed field names.
Key features
- 01Generate TypeScript types from OpenAPI
- 02Read OpenAPI files from the project
- 03Fetch Firebase Firestore schema
- 04Support FastAPI type synchronization
Use cases
- 01Creating frontend types from a local API specification
- 02Checking payload shapes while implementing API calls
- 03Retrieving Firebase schema for frontend development
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ heyeddi-com/ heyeddi-skills --skill backend-type-bridgerAfter installing, type/backend-type-bridgerin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
manifest.jsoncontext/ANTI_PATTERNS.mdEXAMPLES.mdPROSE_ANTI_SLOP.mdVOCABULARY.mdscripts/_skill_cli.pyfetch_firestore_schema.pysync_openapi.pyDetails
From the project READMEBackend Type Bridger
When to use
- Frontend 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(project root). 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):curl -fsS http://127.0.0.1:8090/openapi.json -o openapi.json -
FastAPI types:
python scripts/sync_openapi.py --project-root <root>: writessrc/types/api.tsfrom localopenapi.jsononly (optional--openapi path/rel.json). -
Firebase:
python scripts/fetch_firestore_schema.py --project-root <root> -
Import generated types in composables: never guess field names. Refine generated interfaces if OpenAPI uses
$refheavily.