Build to GOV.UK standardswithout the design team

A folder of plain text files that gives GitHub Copilot, Cursor and Claude Code the standards a government design team works to.Free to download. Pay what you think is fair.

Works in GitHub Copilot, Cursor and Claude CodePlain MarkdownNothing to host

Covers the GOV.UK Design System, the MoJ Design System, GOV.UK content style and WCAG 2.2 AA.

Vijay Kandhalu

Agents write pages that look right and are wrong

What agents get wrong

  • 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

What your agent does with UCD Context

Eight things your agent does differently.

  • 01

    Uses the right component.

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

  • 02

    Checks your installed version.

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

  • 03

    Asks one thing per page.

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

  • 04

    Handles errors properly.

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

  • 05

    Writes like GOV.UK.

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

  • 06

    Checks against WCAG 2.2 AA.

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

  • 07

    Pushes back.

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

  • 08

    Tells you what it could not check.

    Every task ends with what still needs a human.

What is in the pack

One folder of Markdown: standards, playbooks, examples and agent loaders. You can read it, change it, and review it like any other text in your repo.

Files
26
Folders
6
Words
25,000
Format
Markdown
Full folder listing
  • adapters/
    • agents-md/
      • SNIPPET.md 495 bytes
    • claude/
      • ucd-context.md 625 bytes
    • copilot/
      • ucd-context.instructions.md 689 bytes
    • cursor/
      • ucd-context.mdc 765 bytes
  • evals/
    • test-prompts.md 6.2 KB
  • examples/
    • question-page.md 6.9 KB
  • playbooks/
    • build-a-form-page.md 12 KB
    • choose-a-component.md 5.6 KB
    • design-a-journey.md 6.6 KB
    • needs-a-human.md 5.6 KB
    • review-before-merge.md 5.3 KB
    • write-page-content.md 5.7 KB
  • stacks/
    • nunjucks-express.md 5.8 KB
    • plain-html.md 5.7 KB
  • standards/
    • accessibility-wcag-2.2-aa.md 9.5 KB
    • govuk-components.md 12 KB
    • govuk-content-style.md 7.7 KB
    • govuk-design-system-foundations.md 6.0 KB
    • govuk-patterns.md 6.7 KB
    • govuk-service-standard.md 4.6 KB
    • moj-components-and-patterns.md 7.1 KB
  • ATTRIBUTION.md 4.0 KB
  • INSTALL.md 4.8 KB
  • README.md 7.3 KB
  • START-HERE.md 5.4 KB
  • VERSIONS.md 1.5 KB
  • The entry point: 10 rules and a guide to which file to read for each task.

  • standards/

    7 files

    Seven references: Service Standard, Design System foundations, GOV.UK components and patterns, MoJ, accessibility, and content style.

  • playbooks/

    6 files

    Six task guides: journeys, forms, content, components, review before merge, and what needs a human.

  • examples/

    1 file

    A worked question page, good and bad, with every difference explained.

  • evals/

    1 file

    Nine prompts to check the pack is working in your project.

  • adapters/

    4 files

    Loader files for Copilot, Cursor, Claude Code, and a snippet for AGENTS.md.

  • stacks/

    2 files

    Stack notes for Node.js with Nunjucks and for plain HTML.

  • How to add the folder to a repo and point your agent at it.

  • README.md

    7.3 KB

    What the pack is, what it covers, and how the folders fit together.

  • GOV.UK Frontend and Design System versions checked when the pack was written.

  • The sources the pack is based on, and their licences.

Browse all files

How it is designed

Six choices that keep the pack small in context, safe beside your own agent rules, and honest when guidance conflicts.

  • 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

Download the pack, drop it in your repo, and let your agent wire up the loader.

  1. Step 1

    Download and unzip the pack.

    Get the zip from Gumroad and unzip it.

  2. Step 2

    Move ucd-context into your project.

    Place the folder at the top level of your repository, next to your app code.

  3. Step 3

    Paste the install prompt in your agent.

    Your agent adds a small loader for your tool. It asks before changing AGENTS.md.

install prompt

Read ucd-context/INSTALL.md and install it.

What it does not do

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

  • Research

    It does not do user research.

  • Testing

    It does not test with screen readers, voice control or magnification.

  • Accuracy

    It does not review your content for accuracy.

  • Assessment

    It does not make a service compliant or pass a service assessment.

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 and engineers on UK government services who need usable pages without a specialist on every change.

  • Developers

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

  • Backend Engineers

    asked to build a frontend on their own.

  • Small teams

    shipping changes with no specialist to review each one.

  • Tech leads

    who want pull requests that need less correction.

What it is checked against

UCD Context

1.0.0

Last checked against official sources

25 November 2026

  • GOV.UK Frontend

    v6.1.0 (released 2 March 2026). The current major version is 6

  • GOV.UK Design System

    37 components and 30 patterns listed on the date above

  • MoJ Design System

    38 components and 6 patterns listed on the date above

  • MoJ Frontend

    Not pinned. Check the installed version and its supported GOV.UK Frontend version

  • WCAG

    2.2, level AA

  • Service Standard

    14 points

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

Get the pack

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 is through Gumroad. Use the pack in any number of projects, change it, and commit it to your repository, including public ones. See the licence.