FPL Data Model

    by Shreedhar Pandey

    1

    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

    Security scanned

    Works with the AI Agents you already use

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Listed15 days ago

    What's inside

    Creator

    Shreedhar Pandey

    Shreedhar Pandey

    4 skills on Agensi

    Frequently Asked Questions

    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.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use FPL Data Model on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    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.

    Free