Foi Data Request logo

Foi Data Request

Community
ur-grue
foi-data-request

Drafts a Freedom of Information request specifically targeting datasets, databases, or digital records — written to maximise the chance of receiving complete, machine-readable data rather than summary PDFs or partial tables.

Overview

Publisherur-grue
Repositoryautopunk-media-skills
Skill namefoi-data-request
Stars
45
Forks
3
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ur-grue on GitHub. Read the source before you install it.

Installation

Install the Foi Data Request AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ur-grue/autopunk-media-skills/tree/main/skills/data-journalism/investigation/foi-data-request
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ur-grue/autopunk-media-skills.git /tmp/autopunk-media-skills
mkdir -p .claude/skills
cp -r /tmp/autopunk-media-skills/skills/data-journalism/investigation/foi-data-request .claude/skills/foi-data-request
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Foi Data Request in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Foi Data Request on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Foi Data Request is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

FOI Data Request

What This Skill Does

Drafts a Freedom of Information request specifically targeting datasets, databases, or digital records — written to maximise the chance of receiving complete, machine-readable data rather than summary PDFs or partial tables.

When To Use This Skill

  • You want to obtain a specific dataset held by a public body and need the request worded precisely enough to prevent a narrow interpretation
  • You have already received an FOI response containing a summary table and want to re-request the underlying data in full
  • You want to include specific clauses requesting machine-readable format, codebooks, and data dictionaries alongside the data
  • You need to ask for multiple related datasets in a single, clearly organised request

What You Need To Provide

Required: The name of the public body you are submitting to. A description of the data you believe they hold — what it records, the approximate time period, and what you have found in published reports or previous FOIs that suggests it exists. Your name (or a publication name if submitting formally). Optional: Specific columns or fields you know exist; the file format you want the data in (CSV, Excel, database export); any known previous FOI that touched the same data; jurisdiction (to ensure correct statutory references are used).

How the Assistant Approaches This

  1. Structures the request around the specific data sought — naming fields, date ranges, and systems where known — rather than using vague language that invites partial disclosure.
  2. Includes standard data-journalist clauses: requesting machine-readable format, a data dictionary or codebook if one exists, and any published schema or data model.
  3. Adds standard scaffolding: statutory basis for the request, a deadline note, a request for notification if the request is likely to be refused in part, and contact information.

Output Format

A formal letter in three sections: (1) Purpose and identification — who you are and why you are making the request (brief, neutral, no obligation to explain). (2) The request — specific numbered items, each naming the data sought with as much precision as possible. (3) Format and process — your preferred format, a request for the data dictionary, and a note on partial disclosure. Approximately 350–600 words. Formal register throughout.

Quality Criteria

  • Each requested item is a specific, numbered ask — not a single broad request
  • A machine-readable format is explicitly requested
  • A data dictionary or schema is requested alongside the data
  • The request does not over-explain the journalistic purpose (which could invite unnecessary review)
  • The statutory basis for the request is cited correctly for the jurisdiction
  • A partial disclosure clause is included

Example

Input

Public body: National Infrastructure Agency Data sought: I believe they hold a central database of all infrastructure contracts awarded since 2018, including contractor names, contract values, award dates, tender outcomes (whether competitive or sole-sourced), and registered company addresses. I've seen summary tables in their annual reports but never the underlying data. Jurisdiction: EU member state with national FOI legislation My name: [Journalist name, publication name]

Output

[Journalist name] [Publication name] [Address / email] [Date]

Freedom of Information Request National Infrastructure Agency [Address]


Dear Freedom of Information Officer,

I am writing to request access to information held by the National Infrastructure Agency under [national FOI statute, e.g. Freedom of Information Act / Accesso ai Documenti Amministrativi / applicable national law]. I am a journalist at [publication name].

The request

I request the following information in relation to infrastructure contracts awarded by or administered through the National Infrastructure Agency:

  1. Full contracts database, 2018–present: All records in the National Infrastructure Agency's central contracts register (or equivalent system) covering the period January 2018 to the date of this request. For each contract record, I request all fields held, including but not limited to: contract identifier, contractor name, contractor registered address and company registration number, contract value, contract award date, contract start and end dates, tender type (open competitive / restricted / negotiated / sole-source / framework call-off), and procurement category or classification code.

  2. Data dictionary or codebook: If the database or system described above has a data dictionary, schema document, data model, or any document explaining what each field contains and how it is coded, I request a copy of this alongside the data.

  3. Redaction log: If any fields are withheld in part or full, I request a log identifying which fields have been withheld and the exemption relied upon for each.

Format

I request the data in a machine-readable, structured format — preferably CSV or XLSX. I do not require a summary table, PDF report, or printed document; I specifically request the underlying row-level data.

Partial disclosure

If any part of this request is refused, I request that the remainder be disclosed. Please notify me before refusing any component so that I may consider narrowing the scope if that would facilitate disclosure.

Clarification

I am happy to discuss the scope of this request if that would assist you in responding. I can be reached at [email address].

I expect a response within the statutory timeframe applicable under [national FOI statute]. If you require clarification to process this request, please contact me within five working days so as not to delay the response clock.

Yours faithfully, [Journalist name] [Publication name] [Contact details]

Known Limitations

  • This skill produces a general-purpose FOI letter. Specific jurisdictions have different statutes, different exemptions, different statutory response times, and different tribunals for appeals. Always verify the correct statute name and response deadline for the specific country or territory before sending.
  • The letter does not address commercial sensitivity exemptions, which public bodies frequently use to withhold procurement data. If the request is refused on this basis, a separate appeal letter will be needed.
  • Some public bodies classify contract databases as operational IT systems and argue they are not "held" in a form accessible under FOI. This request anticipates that objection by asking for a data export rather than direct system access, but it may not prevent the objection.

Related Skills

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Foi Data Request AI skill do?

Drafts a Freedom of Information request specifically targeting datasets, databases, or digital records — written to maximise the chance of receiving complete, machine-readable data rather than summary PDFs or partial tables.

Why use Foi Data Request on TypingMind?

Because you install it once and use it with any model. Foi Data Request is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Foi Data Request in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ur-grue/autopunk-media-skills/tree/main/skills/data-journalism/investigation/foi-data-request. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Foi Data Request?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Foi Data Request?

As many as you like. As long as a model supports skills, you can use Foi Data Request with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Foi Data Request AI skill free?

Yes. It is published on GitHub by ur-grue under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇