Install UCD Context

Download the pack, drop it in your repo, and paste one prompt so your agent adds the right loader files.

Before you start

You need a project in a Git repository and a coding agent. The pack is written for projects using GOV.UK Frontend. It works best when govuk-frontend is already installed.

  1. Download and unzip.
  2. Move the ucd-context folder into the top level of your project.
  3. Open your coding agent and paste the install prompt below.

install prompt

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

Download

Free to download. Pay what you think is fair.

What the agent does

  1. It checks the folder is in the right place.
  2. It finds which coding tools the project uses.
  3. It copies one small loader file for each tool.
  4. It asks before adding a few lines to AGENTS.md.
  5. It tells you which versions of GOV.UK Frontend and MoJ Frontend it found.
  6. It does not overwrite, delete or commit anything.

Where the loader files go

Coding agentLoader file
GitHub Copilot.github/instructions/ucd-context.instructions.md
Cursor.cursor/rules/ucd-context.mdc
Claude Code.claude/rules/ucd-context.md
Other agentsa short section in AGENTS.md

Check it works

check prompt

Add a page that asks for the user's phone number.

You should see the agent check your installed versions, build a single question page with the label as the heading, and add server-side validation with an error summary. There are 9 test prompts in evals/test-prompts.md.

Other ways to install, update and remove

  • Install by hand

    Copy the loader for your tool from ucd-context/adapters/ to the location in the table above.

  • Update

    Replace the ucd-context folder with the new version and run the install prompt again.

  • Remove

    Delete the ucd-context folder and the loader files listed above.