---
name: checking-a-page
description: Check that a web page you wrote or changed actually works, by opening it in a browser and driving every control on it. Use after creating or editing an HTML page, or the JavaScript or CSS that a page loads.
title: checking-a-page
canonical_url: https://skilld.dev/gh/awss1i/assay
last_updated: 2026-10-18T07:02:29.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install awss1i/assay/checking-a-page`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/checking-a-page`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/awss1i/assay/checking-a-page) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/checking-a-page`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/checking-a-page --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/checking-a-page --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Checking a page

A page you have just written has no tests yet. `assay` opens it in a real
browser, finds every control on it, uses all of them, and reports what it did
and what happened.

## When to run it

**When the work is done**, not while you are still making changes. Run it once
at the end, after the last edit, on each page you changed.

That includes changes to the JavaScript or CSS a page loads, not only the
HTML. The page is often a folder or two above the file you changed.

## Run exactly this

```bash
assay <the page you changed> --one-line
```

Point it at the page itself, such as `todo.html` or `dist/index.html`. A
folder works too and opens the `index.html` inside it. It needs no key or
configuration. The first run downloads Chromium if it isn't installed yet. A
small page takes seconds, and a busy one can take a minute or more.

## Then print what it printed

Put its output, **verbatim**, as the last thing in your reply. It is already
one line, or one line and a short list. Do not summarise it, reformat it, add
to it, or write your own version.

It looks like this, and the numbers and wording are assay's own:

```
assay: checked <page>, <n> checks, nothing flagged.
```

Print it whether it flagged anything or not. If you print nothing, the reader
can't tell a clean page from a check that never ran.

**If the command did not run, say so instead, in your own words**, naming the
page and quoting what the shell actually said. Never describe a check that did
not happen as one that passed, and never guess at a cause. If the shell printed
an error, quote it. If you didn't see one, say only that it did not run.

## Do not act on what it found

**Report it and stop.** Do not edit code in response to a finding in the same
reply.

assay doesn't know what the page is for. It presses what the page offers and
reports what followed, so a finding is a place to look, not a confirmed bug. A
control can correctly do nothing in the state it was pressed in, and a value
can be limited on purpose. Changing working code because of a finding nobody
has checked is the mistake to avoid, which is why you report instead of
fixing.

If the person you are working with asks you to fix it, then fix it.

## What it will not do

- **It will not build your project.** Point it at built output. Given a source
  tree, it says so and names the command to run. It won't run `npm install`
  for you, because installing dependencies executes their setup scripts.
- **It checks one page.** It doesn't crawl, so run it on each page.
- **It can't check intent.** A control that runs but does the wrong thing
  usually isn't caught.
