Skip to content
TriedPrompts

More in Research tools & tests.

Make a UK tax research agent from a folder of HMRC manuals with Claude Code

Claude Code answered a UK tax exam question from scraped HMRC manuals in about 5 minutes, scoring about 2.5 of 3 by the author's grading.

Result: WorkedTool: Claude CodeLevel: Advanced

Copy the prompt

Outcome

Using scraped HMRC manuals and legislation plus a CLAUDE.md that launches parallel subagents, Claude Code answered an ATT exam question in about 5 minutes, earning roughly 2.5 of 3 marks by the author's grading. Claude Code first wrote a scraper in a few minutes that downloaded the tax legislation and HMRC's Corporation Tax and Personal Tax manuals, and the CLAUDE.md was refined over a few rounds of chatting with Claude Code itself. The lost half mark came from missing the "UK or EEA state" part of a company residency rule; by comparison, the author says, even Opus used on its own got the first question completely wrong.

Evidence: Screenshots or logsThe source shows screenshots, a transcript or the AI's output.

WorkedEvidence: Screenshots or logsPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Recreated prompt

The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.

What the prompt labels mean

The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Answer this UK tax question using the tax laws and HMRC manuals in this folder.

Check with me first: What's the question, and do I want a short answer or a full working?

What I'll give you:
- The question
- A folder with the UK tax legislation and HMRC manuals
- Instructions for how you should work (for example a CLAUDE.md file)

Rules:
- Search the documents in the folder and base the answer on them.
- Split the research across parallel helpers, for example corporate, personal tax, current rates and anti-avoidance.
- If something is missing or unclear, ask me instead of guessing.
- Cite the sections you rely on. This is research, not professional advice.

Output: A structured answer with calculations and references to the sources.

You'll know it worked when: the answer is backed by specific sections I can check.

Try this in:

Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Answer a UK tax question using only the legislation and HMRC manuals in this folder, with citations a professional could check.

Quick check first: tell me if anything below is missing or unclear.

Inputs (fill in or confirm):
- The question, with the facts (dates, amounts, residency)
- The folder of legislation and HMRC manuals
- Short answer or full working
- Tax year(s) involved

Rules:
- Search the folder first; cite the exact Act section or manual reference (e.g. a BIM or CG paragraph) for every step.
- Separate what the law says from HMRC's interpretation in the manuals.
- State assumptions about missing facts and how the answer changes if they're wrong.
- Don't rely on memory for rates or thresholds; take them from the folder for the right tax year.
- Flag areas where professional advice is needed.

If you get stuck: If the folder doesn't cover the point, say so plainly instead of filling the gap from general knowledge. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Re-open each cited paragraph and confirm it says what you quote.

Output: Answer first (2–3 sentences), then the working with citations, then assumptions and open questions.

Done when: every conclusion traces to a cited paragraph in the folder.

AI tool

Claude Code

Source

Posted
by Martin Alderson
Last checked
Method:
How we verify

https://martinalderson.com/posts/building-a-tax-agent-with-claude-code/

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Research tools & tests

More in ResearchRandom case in Research