Guide

Start here

From nothing to your first report in about ten minutes.

Before you start

You need three things. A project that uses GOV.UK Frontend, which is the coded version of the GOV.UK Design System. One of GitHub Copilot, Claude Code or Cursor. And the GitHub CLI, the gh program that installs the skill.

UCD Check is a skill: a folder of Markdown the tool can load. The folder is named ucd. If the project does not look like a GOV.UK service, UCD Check says so and stops. It does not run the checks.

Open a terminal

A terminal is the text window where you type commands.

  • On macOS, open Terminal from Applications, or press Command and space, type Terminal, and press Return.
  • On Windows, open Terminal from the Start menu.
  • In VS Code or Cursor, open the Terminal menu and choose New Terminal.

You should see a blinking cursor and a prompt, ready for a command.

Check the GitHub CLI

Type this in the terminal and press Return.

Check the GitHub CLI version

gh --version

You should see a version number. It must be 2.90.0 or later. gh skill, the command that installs skills, is in public preview and needs that version.

If the command is missing, or the number is older, install or update the GitHub CLI from the GitHub CLI site, then run the command again.

Go to your project folder

cd means change directory: it moves the terminal into a folder. Replace the path below with your project, then press Return.

Go to your project folder

cd path/to/your-project

You should see the prompt waiting in that folder. Later commands install into it.

Pick your tool

Run one install command. The first command is for this project. The second installs the skill for every project on your machine. You only need one of them.

GitHub Copilot

Install for this project. Type the command in the terminal and press Return.

GitHub Copilot install for this project

gh skill install ucdservices/ucd-check ucd --agent github-copilot --scope project

You should see the command finish without an error. The files land in .agents/skills/ucd/.

Or install for every project on your machine.

GitHub Copilot install for every project

gh skill install ucdservices/ucd-check ucd --agent github-copilot --scope user

The files land in ~/.copilot/skills/ucd/.

Claude Code

Install for this project. Type the command in the terminal and press Return.

Claude Code install for this project

gh skill install ucdservices/ucd-check ucd --agent claude-code --scope project

You should see the command finish without an error. The files land in .claude/skills/ucd/.

Or install for every project on your machine.

Claude Code install for every project

gh skill install ucdservices/ucd-check ucd --agent claude-code --scope user

The files land in ~/.claude/skills/ucd/.

Cursor

Install for this project. Type the command in the terminal and press Return.

Cursor install for this project

gh skill install ucdservices/ucd-check ucd --agent cursor --scope project

You should see the command finish without an error. The files land in .agents/skills/ucd/.

Or install for every project on your machine.

Cursor install for every project

gh skill install ucdservices/ucd-check ucd --agent cursor --scope user

The files land in ~/.cursor/skills/ucd/.

No terminal? Copy the folder

Download the repository as a zip from GitHub, unzip it, and copy the folder skills/ucd/ into the folder for your tool. The folder must stay named ucd.

Download the zip

GitHub Copilot

Project: .github/skills/ucd/, .agents/skills/ucd/ or .claude/skills/ucd/

Personal: ~/.copilot/skills/ucd/ or ~/.agents/skills/ucd/

Claude Code

Project: .claude/skills/ucd/

Personal: ~/.claude/skills/ucd/

Cursor

Project: .agents/skills/ucd/ or .cursor/skills/ucd/

Personal: ~/.agents/skills/ucd/ or ~/.cursor/skills/ucd/

After the copy, the tool should list a skill named ucd.

Run your first check

A slash command is a message that starts with /. /ucd loads this skill.

  • In VS Code Copilot chat, type /ucd.
  • In Copilot CLI, write the line below and press Return. Add the path you want checked.
  • In Claude Code, type /ucd.
  • In Cursor, type / in Agent chat and choose ucd.

Ask Copilot CLI to use the skill

Use the /ucd skill to check path/to/file

On its own, /ucd checks the current diff (the lines that changed), the pull request, or the open file. A pull request is a proposal to merge a branch. Add a path when you want one file.

Check the current diff, pull request or open file

/ucd

Check a path

/ucd path/to/file

You should see a report with five parts: Scope, Checks run and checks skipped, Findings, What still needs a human, and Next step.

Read the report

Use the example on the home page, for the file browser-only.njk, as the shape.

  1. Scope. The paths that were checked, the template language, and whether GOV.UK Frontend is installed.
  2. Checks run and checks skipped. One line for each of the six checks. A skipped check says why. In the example, journey is skipped because the file is one question page.
  3. Findings. The most serious first. Each one names the file, what is wrong, the standard, and a proposed fix.
  4. What still needs a human. Work the skill cannot do, such as confirming the wording or testing with assistive technology.
  5. Next step. It asks which findings to fix.

must fix means it stops some people completing the task, or it breaks a legal requirement. Do these first.

should fix means it is harder to use, or it does not match the Design System.

consider means an improvement that needs a person to decide. It is not a fault on its own.

WCAG is the Web Content Accessibility Guidelines. The accessibility check looks for issues at version 2.2, level AA, that can be seen by reading the code.

Fix things

Reply with all, or name the findings you want fixed. Nothing changes until you do. It then runs the affected checks again and reports what changed.

Use it on pull requests

gh skill install does not write to .github/skills/. Copilot code review reads skills from the pull request's head branch, the branch that holds the change. Copy the skill to .github/skills/ucd/ in the repository and commit that copy on the head branch.

It posts findings as review comments with suggested changes. It does not edit files, commit or push.

Update it

If you installed with gh skill, type this in the project folder and press Return.

Update UCD Check

gh skill update ucd

You should see gh replace the installed folder with the current copy.

To update every skill installed this way, use this instead.

Update every installed skill

gh skill update --all

If you copied the folder by hand, copy skills/ucd/ over the installed folder again. gh skill update skips a copy that has no GitHub metadata in the frontmatter.

If something goes wrong

gh skill is not recognised

The GitHub CLI is missing or older than 2.90.0. Install or update it from the GitHub CLI site, then run gh --version again.

/ucd does not appear

The folder is in the wrong place, or it was renamed. Put it back in the folder for your tool, from the list above, and keep the name ucd.

It says this does not look like a GOV.UK service

GOV.UK Frontend is not a dependency, and the files do not use its classes or macros. Open a project that uses it, then run /ucd again.

It asks which files to check

It could not see a diff, a pull request or an open file. Name a path, for example /ucd path/to/file.

Copilot review does not use it

The skill is not in .github/skills/ucd/ on the pull request's head branch. Copy it there and commit it on that branch.

Words explained

Skill
A folder of Markdown that a coding agent can load. UCD Check is the skill named ucd.
Slash command
A message that starts with /, such as /ucd. It tells the tool which skill to use.
Terminal
The text window where you type commands. macOS calls it Terminal. Windows has Terminal too. VS Code and Cursor have one built in.
GitHub CLI
The gh program. This install uses it to copy the skill from GitHub. It is separate from the GitHub website.
Repository
The project folder that Git tracks, and the copy of that project on GitHub.
Pull request
A proposal to merge one branch into another. People review the change there. The head branch is the one that holds the change.
Diff
The lines that changed. /ucd can check that change when a diff is already open.
GOV.UK Frontend
The npm package govuk-frontend. It is the coded GOV.UK Design System. UCD Check stops if the project does not use it and the files do not use its classes or macros.
WCAG
The Web Content Accessibility Guidelines. The skill checks issues at version 2.2, level AA, that can be seen by reading the code.

Next step

Get it on GitHub. Then, if you want the standards in the agent while it builds, read UCD Context. If you want agents that do the design work, see AI Force.

Read the six checks