Your coding agent, taught to build for GOV.UK

UCD Context is a folder of plain text files you drop into your repository. It gives GitHub Copilot, Cursor and Claude Code the standards a government design team works to: the GOV.UK Design System, the MoJ Design System, GOV.UK content style and WCAG 2.2 AA.

Download free

Free to download. Pay what you think is fair.

See what is inside

Works with GitHub Copilot, Cursor, Claude Code and any agent that reads AGENTS.md

Agents write pages that look right and are wrong

Ask a coding agent for a GOV.UK form and you get something that looks the part. Look closer and the details are off.

  • Several questions on one page
  • Dropdowns, tooltips and disabled buttons
  • Placeholder text instead of hints
  • Browser validation instead of an error summary
  • Title Case Headings and "Please enter a valid value"
  • Inputs with no label
  • Markup from the wrong version of GOV.UK Frontend

Each one is a small thing. Together they are the difference between a service people can use and one that fails an accessibility audit.

What your agent does with UCD Context

Uses the right component.

GOV.UK first, MoJ second, custom last, and it tells you when it builds something custom.

Checks your installed version.

It takes markup from your own node_modules, so it matches the GOV.UK Frontend you actually have.

Asks one thing per page.

It plans journeys with filter questions, check answers and a confirmation page.

Handles errors properly.

Server-side validation, an error summary, and standard GOV.UK error messages.

Writes like GOV.UK.

Plain English, sentence case, no jargon, and it will not invent facts it was not given.

Checks against WCAG 2.2 AA.

Including the criteria added in 2.2 that older code and older training data miss.

Pushes back.

Ask for a modal or a tooltip and it explains the problem and offers the standard alternative.

Tells you what it could not check.

Every task ends with what still needs a human.

See the difference

The same request, "add a page that asks for an email address", without the pack and with it. This is an illustrative example from the pack, not a benchmark.

[CONTENT NEEDED: content/ucd-context/examples/question-page.md was not supplied, so the before and after samples cannot be shown.]

What is in the pack

One folder, 26 files, about 24,000 words. Everything is Markdown, so you can read it, change it and review it in a pull request.

[CONTENT NEEDED: the ucd-context pack was not in the workspace, so this tree cannot be generated from content/ucd-context/.]

Read START-HERE.md, the first file your agent reads

How it is designed

One folder.

Everything lives in ucd-context/. It does not touch your own agent instructions, and it does not ship an AGENTS.md that could overwrite yours.

Loaded only when needed.

A small loader applies to templates, styles, routes and content files. The agent reads one entry file, then one or two files for the task. It does not fill the context window.

Tasks, not job titles.

Each playbook combines what an interaction designer, a content designer and an accessibility specialist would check for that task.

Version-safe.

The pack tells the agent to take markup from your installed package, so it does not go stale with every release.

Your instructions win.

What you ask for and your project's conventions come first. The agent tells you when a request conflicts with a standard.

Official sources win.

Every file links to the guidance it summarises. Where the pack and the official source differ, the official source is right.

Install in three steps

  1. Download and unzip.
  2. Move the ucd-context folder into the top level of your project.
  3. Open your coding agent and paste: Read ucd-context/INSTALL.md and install it.

Your agent adds a small loader file for the tool you use. It does not overwrite anything, and it asks before adding a few lines to AGENTS.md.

Full install guide

What it does not do

UCD Context helps one developer and one agent build to the standard. It does not replace a design team.

  • It does not do user research.
  • It does not test with screen readers, voice control or magnification.
  • It does not review your content for accuracy.
  • It does not make a service compliant or pass a service assessment.

It makes good code more likely, and it tells you what still needs a person.

UCD Context is an independent product. It is not published or endorsed by the Government Digital Service, the Ministry of Justice or any government department.

Who it is for

Developers on government services

who want their agent to get GOV.UK right the first time.

Backend engineers

asked to build a frontend without a designer.

Teams between designers

or with one designer across several squads.

Suppliers and contractors

new to GOV.UK standards.

Designers

who want pull requests that need less correction.

What it is checked against

[CONTENT NEEDED: content/ucd-context/VERSIONS.md was not supplied, so the versions table cannot be built.]

Version 1 is written for Node.js with Nunjucks, and for plain HTML. The standards and playbooks apply to any stack.

Free to download

UCD Context is free. If it saves you or your team time, pay what you think is fair when you download it. Paying is optional and does not change what you are allowed to do.

Download free

Download is through Gumroad. You can use the pack in any number of projects, change it, and commit it to your repository, including public ones. See the licence.

Want agents that do more than follow standards?

UCD Context is passive: it gives any coding agent the standards. AI Force is a set of role agents for user-centred design teams, with approval gates at each stage.

See AI Force