docs
Links that reach their files, anchors, and sites, and paths and commands that exist. Level all requires a README in every scope and a LICENSE at the root.
Selected when
Section titled “Selected when”Always.
Checks
Section titled “Checks”lychee
Section titled “lychee”Checks that local documentation links reach existing files and valid anchor or text fragments.
Runs at the commit stage.
A dead link inside the repository breaks silently, and readers hit it first.
What to do
Section titled “What to do”Point the link at the file or heading that exists, or delete it. A link that starts with / starts at the repository root.
Example
Section titled “Example”The link [Setup](missing.md) reports a broken link when no missing.md exists. Point it at the setup guide, or add that file.
Turn it off
Section titled “Turn it off”gspot ignore docs/lychee --paths "<path>" --reason "<why>"gspot ignore docs/lychee --rule <rule> --reason "<why>"lychee-external
Section titled “lychee-external”Checks every external link over the network.
Runs only when gspot check --only docs/lychee-external names it, and needs network access.
A site that moves or closes breaks a link with no change in the repository.
What to do
Section titled “What to do”Update or remove the link, or exclude the URL pattern with a reason under docs.allowed_urls.
Example
Section titled “Example”A link that returns HTTP 404 reports a broken destination. Replace the URL with a current one, or remove the link.
Turn it off
Section titled “Turn it off”gspot ignore docs/lychee-external --paths "<path>" --reason "<why>"gspot ignore docs/lychee-external --rule <rule> --reason "<why>"missing-paths
Section titled “missing-paths”Checks that documented paths point to tracked files, and that each documented run command of mise or a package manager names a task or script.
Runs at the commit stage, once for the repository.
A stale path in the docs sends the reader to a deleted file.
What to do
Section titled “What to do”Fix the path or the task name. To keep an example out, write it in a fence with title=.
Example
Section titled “Example”A path in the docs that points to a deleted file reports a stale reference. Update the path and any command that uses it.
Lint rules
Section titled “Lint rules”| Rule | What it checks | What to do |
|---|---|---|
missing-path |
Each path in Markdown prose or in a shell code block leads to a tracked file or folder. | Correct the path, or put example paths in a code block with a title= attribute. |
missing-task |
Each mise run, npm run, pnpm run, yarn run, or bun run runs a task that exists. |
Correct the task name, or add the task. |
Turn it off
Section titled “Turn it off”gspot ignore docs/missing-paths --paths "<path>" --reason "<why>"gspot ignore docs/missing-paths --rule missing-path --reason "<why>"version-strings
Section titled “version-strings”Reports the version of a package manifest of the scope in Markdown and test files, except changelogs.
Runs at the commit stage, only at the all level, once per scope.
A copied version goes stale at the next release.
What to do
Section titled “What to do”Delete the version, or read it from the package manifest.
Example
Section titled “Example”npm install example@1.2.3 in a README of a package at version 1.2.3 reports version-string. Write npm install example.
Turn it off
Section titled “Turn it off”gspot ignore docs/version-strings --paths "<path>" --reason "<why>"Settings
Section titled “Settings”| Setting | What it sets |
|---|---|
docs.allowed_urls |
URL patterns that the link check skips; additions need a reason for the whole list. |
Rules for coding agents
Section titled “Rules for coding agents”| Rule file | Installed when |
|---|---|
.gspot/rules/DOCS.md |
Always |
Tools and versions
Section titled “Tools and versions”| Tool | Version |
|---|---|
| lychee | 0.24.2 |
Files gspot writes
Section titled “Files gspot writes”.gspot/configurations/docs/lychee.toml