Install UCD Context
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.
Install
- Download and unzip.
- Move the ucd-context folder into the top level of your project.
- Open your coding agent and paste the prompt below.
install prompt
Read ucd-context/INSTALL.md and install it.What the agent does
- It checks the folder is in the right place.
- It finds which coding tools the project uses.
- It copies one small loader file for each tool.
- It asks before adding a few lines to AGENTS.md.
- It tells you which versions of GOV.UK Frontend and MoJ Frontend it found.
- It does not overwrite, delete or commit anything.
Where the loader files go
| Coding agent | Loader file |
|---|---|
| GitHub Copilot | .github/instructions/ucd-context.instructions.md |
| Cursor | .cursor/rules/ucd-context.mdc |
| Claude Code | .claude/rules/ucd-context.md |
| Other agents | a 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.
Install by hand
If you would rather not let an agent do it, 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.
Free to download. Pay what you think is fair.