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

FPL Data Model is a free AI agent skill on Agensi by Shreedhar Pandey, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Shreedhar Pandey](https://www.agensi.io/creators/shreedhar-pandey)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/fpl-data-model
- Tags: coding, data-analysis

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

## Requires

Nothing beyond your AI agent.

## Known limitations

Opinionated toward Postgres; the table set is a reference design, not a drop-in migration. Does not include sync code.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the FPL Data Model skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does FPL Data Model do?

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.

### Which AI agents support FPL Data Model?

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.

### How do I use FPL Data Model?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
