A community-maintained Hattrick.org knowledge pack for AI assistants. Drop it into Claude, ChatGPT, Gemini, or any other AI client to give it deep understanding of Hattrick game mechanics: training, match tactics, formations, economy, youth academy, cups, national teams.
This repo exists because mainstream AI assistants only know Hattrick at a surface level. With this knowledge pack in the conversation, an AI can give specific, game-aware advice on training paths, formation matchups, set-piece scoring, salary tax progression, and the other game-specific details that managers actually care about.
The repository is a Claude plugin marketplace plus a portable knowledge pack:
.claude-plugin/plugin.json plugin manifest for Claude Code / Cowork
skills/hattrick/
SKILL.md the main knowledge file
references/ deep reference material per topic
training-detail.md
tactics-detail.md
match-engine-deep.md
position-contributions.md
economy-detail.md
xp-form-loyalty.md
tournaments-cups.md
languages/
hungarian.md optional Hungarian terminology pack
The same content is consumable in several ways:
- As a Claude plugin - install this repository as a marketplace in Claude Code or Claude desktop (Cowork), the skill auto-loads when you ask Hattrick questions.
- As a standalone knowledge pack for any AI - paste
SKILL.mdand any relevantreferences/files into your AI's prompt, or upload as files. - Via Hattrick AI Context (planned) - a hosted web service that bundles this knowledge with your live CHPP team data and exports it as a single Markdown file for any AI.
In Claude Code or Cowork: Settings, Plugins, Add Marketplace, paste this repository's URL (https://github.com/rmagasi/hattrick-context-pack). Install the hattrick-context-pack plugin from the marketplace card. The skill auto-loads when you ask Hattrick-related questions.
The knowledge pack is just Markdown. Any AI tool that lets you provide a long system prompt, a project rules file, or upload a document can use it. Pick the recipe that matches your tool.
This is the cleanest option if you use ChatGPT regularly for Hattrick.
- Open https://chatgpt.com/gpts/editor and click Create.
- Give it a name (e.g. "Hattrick Coach") and a short description.
- In the Instructions field, paste the contents of
skills/hattrick/SKILL.md. - Under Knowledge, upload every
.mdfile fromskills/hattrick/references/(training-detail.md, tactics-detail.md, etc.). Upload the relevantreferences/languages/*.mdif you play Hattrick in a non-English language. - Save. The custom GPT now has the full pack and auto-loads it on every chat.
- Start a new chat.
- Drag and drop
skills/hattrick/SKILL.mdAND the references you might need into the conversation. - As your first message, say: "Use the attached Hattrick knowledge pack for everything that follows. Cite specific tables and sections when you answer."
Faster than the Custom GPT route, but you have to re-upload each conversation.
- Open https://gemini.google.com and start a new chat.
- Click the file attachment icon and upload
skills/hattrick/SKILL.mdand the relevantreferences/files. - First message: "Use the attached Hattrick knowledge pack as your authoritative reference. Cite sections when answering."
For Gemini Pro / Gemini Advanced users with Gems (custom assistants), the recipe is the same as ChatGPT's Custom GPT, paste SKILL.md into the system instructions and upload references as knowledge files.
Cursor lets you pin context files for an entire workspace.
- Clone this repo somewhere on your machine.
- In your Cursor project, open Settings → Rules.
- Reference the skill file with
@skills/hattrick/SKILL.mdor copy its contents into your project's.cursorrulesfile. - The skill is now available to Cursor's chat / inline AI within that workspace.
Same pattern works for Continue.dev, Cline, Aider, and other code-assistant tools that support a rules / context file.
Paste SKILL.md into your system prompt. For longer conversations, also include the relevant references/*.md files. Modern models (Claude 3.5+, GPT-4o, Gemini 1.5 Pro+) handle the combined ~50-100KB system prompt without trouble.
# Pseudo-code, applies to any chat completion API
system_prompt = open("skills/hattrick/SKILL.md").read()
system_prompt += "\n\n" + open("skills/hattrick/references/training-detail.md").read()
# ... include whichever references the conversation needsIf your AI tool doesn't have a structured way to load knowledge files, you can always:
-
Concatenate the files you need into one big Markdown blob:
cat skills/hattrick/SKILL.md skills/hattrick/references/*.md > hattrick-knowledge.md
-
Paste the contents at the start of your conversation, prefixed with: "Use the following Hattrick knowledge pack as authoritative reference for everything that follows:".
This works in chat-only tools, browser-based LLMs, internal chatbots, anything that accepts text input.
SKILL.md is the main file and covers 80% of common questions. The references/ files are deep dives, load them when your question touches that area:
| File | Load when asking about |
|---|---|
training-detail.md |
Training speed, skill pops, stamina tables |
tactics-detail.md |
Ratings formulas, CA/LS/AOW math, formation matchups |
match-engine-deep.md |
Special events, man marking, corners, chance distribution |
position-contributions.md |
Per-position skill contribution percentages (the Unwritten Manual tables) |
economy-detail.md |
Player wages, sponsor maths, staff costs, currency conversion |
xp-form-loyalty.md |
XP, form, loyalty contributions, TSI formula |
tournaments-cups.md |
League fixture matrix, cup prizes, NT format |
languages/hungarian.md |
Hungarian terminology (skills, moods, attributes) |
When in doubt, include them all, the total is well under any modern LLM's context window.
The knowledge pack on its own answers general Hattrick questions ("what's the LS tactic formula?", "how does formation XP work?"). The real power comes from combining it with your own team's data, which lives in HRF files (HO's local team export format).
An HRF is a plain-text INI-style snapshot of one team, full skill levels for own teams, public-visible skills for opponents, plus league standing, match history, finances (own teams only), and more. Hattrick Organizer (HO!) generates them automatically when you click File → Download for any team. Each download is a fresh point-in-time snapshot.
If you already use HO! on your desktop:
- Open HO! and log in.
- File → Download for your team. HO! fetches the latest data via CHPP and writes an HRF to its configured HRF folder.
- To scout an opponent, repeat for the opponent's team ID. HO! detects you're not the owner and writes a public-skills-only HRF.
Default HRF folder locations:
- Windows:
%APPDATA%\HO\HRF\(e.g.C:\Users\<you>\AppData\Roaming\HO\HRF\) - macOS:
~/Library/Application Support/HO/HRF/ - Linux:
~/.HO/HRF/(varies by HO! distribution)
HO!'s own settings panel shows the configured HRF path, override it there if you want them written somewhere your AI tool can read easily.
How you feed the HRF to the AI depends on the tool:
- Claude Desktop / Cowork: drag the .hrf file into the chat, or give Claude folder access via the file tool / a Filesystem MCP, then ask it to read the latest HRF.
- ChatGPT (web): drag the .hrf into the chat as an attachment, ChatGPT reads plain text files.
- Custom GPT: same as above per conversation, or pre-upload a representative HRF to the GPT's knowledge if you want it always available.
- Gemini: attach the .hrf via the upload button.
- Cursor / Continue / Cline: keep the HRFs in a folder inside your project, the agent can read them via its file tools.
Once the skill is installed AND your HRF is attached, you can ask team-specific questions:
I've attached my latest HRF for Hetvehely. Using the Hattrick context pack,
recommend a starting XI for our next league match. We're at home, weather
forecast is sunny.
Two HRFs attached, mine (Hetvehely) and the opponent's (FC Bombázók) from
this week. Scout the opponent, identify their weak sectors, and suggest
formation + tactic.
HRF attached. We just lost 0-5 and team spirit dropped from Walking on
Clouds to Irritated. What does the data say about the cause, and what
should we change for next week (training, lineup, staff)?
The skill gives the AI the rules, the HRF gives it your actual team state. Together they produce specific, game-aware advice instead of generic Hattrick wisdom.
This is a community knowledge pack. Rule changes, additions, corrections, new language packs, all welcome. See CONTRIBUTING.md for the contribution flow and style guidelines. Two important rules upfront:
- Write in your own words. Don't copy verbatim text from Hattrick.org or the official rulebook - the CHPP Product License Agreement (rule 7.2) forbids reusing Hattrick's site content without explicit permission.
- Cite sources for non-obvious factual claims (devblog post, forum thread, wiki page).
Use the GitHub Issues templates for proposing changes you don't want to write yourself, and Pull Requests for changes you want to submit directly.
The knowledge in this pack is sourced from:
- Official Hattrick rulebook: https://www.hattrick.org/Help/Rules/Complete.aspx
- The "Unwritten Manual #15" by LA-Alpa et al. (Hattrick Global English forum thread 17665541), the primary community-curated mechanics reference.
- Hattrick Developer Blog: https://devblog.hattrick.org/
- Hattrick Wiki: https://wiki.hattrick.org/
- Live-data studies by community members (nickarana, Schum, bigpapy, ciscouf, WesselV1, others)
Full source list per topic is in skills/hattrick/SKILL.md under "Sources".
Created and currently maintained by Robert Magasi (robi_ on Hattrick). Open to additional maintainers as the project grows.
MIT - see LICENSE.