- Home
- Skills
- Research & Analysis
- FPL Data Model
FPL Data Model
How to store Fantasy Premier League data in Postgres: the snapshot-vs-history split, a reference table set, idempotent syncs, money in tenths, and the indexes that matter.
Free
FPL Data Model
Example session with this skill installed
Design the tables I need to track FPL player prices over the season.
- Read your context and instructions
- Compiled the fpl data model
A players snapshot table upserted on fpl_id with now_cost as an integer in tenths, plus an append-only player_price_history table keyed unique (player_id, recorded_at), written on each sync only when the price changed, with an index on (player_id, recorded_at DESC) for the price chart.
Connects securely to your tools. The creator never sees your data.
About this skill
A schema design guide for anyone building on Fantasy Premier League data. The FPL API serves current state only — no price history, no ownership history, one request per player for gameweek stats — so any serious tool needs its own store. This skill teaches your agent how to build it right the first time.
The core idea is the snapshot/history split: upserted mirror tables for teams, players, fixtures and gameweeks; append-only history tables for per-fixture stats, prices, ownership, projections, optimizer runs and sync runs. Plus the conventions that prevent silent bugs (upstream ids never as primary keys, money as integer tenths, decimals not floats, UTC, idempotent syncs) and the exact indexes each read path needs.
Opinionated toward Postgres; the table set is a reference design, not a drop-in migration. Does not include sync code.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 15 days ago
- Free with an Agensi account
Requires
Nothing to install.
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Research & Analysis
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.