What the scanner reads whole
Last updated 28 November 2026
A scan can only judge what it reads, and a scan that did not read everything must not look like one that did. This guide sets out what the scanner reads of a skill in a repository: the skill's own folder, the links inside it, the bounds on what it reads, the time a scan has, and what an incomplete scan means. It describes scanner 1.28.0.
A skill is read from its own folder
When Spellwarden scans a skill in a repository, it reads the named folder, never the rest of the repository. The hosted import has done this since 1.10.0: the repository's archive is downloaded, but only the files under the skill's folder are read, and a large repository, or a link elsewhere in it, no longer stops the scan of one skill. What is read equals what you get by copying the skill's folder into a coding agent's skills directory.
The command reads a skill in place, where it sits in its repository. spellwarden scan . therefore reads a link to a file elsewhere in the repository at its target, as it did before. The hosted scan judges a copy of the skill's folder alone, where the same link names nothing, so the same skill can read whole in its repository and end incomplete in the hosted scan. To read what the hosted scan reads, make the skill's folder the scan root: spellwarden scan path/to/skill.
Links inside the folder
A symbolic link inside the skill's folder that names a file inside the folder is read at its target: the link's path holds the target's bytes, and the target's size counts again towards the size bound.
Every other link is not followed. The scan says which link it was and why, and ends incomplete. The reason is the same for each case: a copy of the folder would not hold what the link names, so what the scan read would differ from what someone gets by copying the skill. The hosted scan names the case:
| A link | Why it is not read, and the way out |
|---|---|
| to a place outside the folder | The folder alone would not hold what the link names, even when the target is elsewhere in the same repository or the path comes back into the folder. Copy the file into the folder, or point the link at a file inside it. |
| to nothing | There is no file to read. Remove the link, or make it name a file. |
| to another link | A link is read only when it names a file itself. Point it at that file. |
| to a folder | A link is read as one file. Replace it with the files the folder holds that the skill needs. |
| through another link | A path that passes through a link is never read. Use the real path. |
| with a target the scanner refuses | A target the scanner refuses to accept from the link's text alone. Use a relative link to a file inside the folder, or the file itself. |
| a device or another special file | Only regular files are read. Replace it with the file the skill needs. |
The command
Since 1.23.0, a symbolic link inside a skill or a local plugin directory whose target leaves the scan root is the error unsafe_path and the scan ends incomplete, with exit code 2. With --follow-links, a linked instruction folder whose target leaves the scan root is the same error. spellwarden lock writes no lock while such a link is there, and scan --locked exits with code 2 for a lock written with one. The way out: replace the link with the file it names (for a folder, with the files it should hold), or leave it out with exclude in .spellwarden/config.yml. Before 1.23.0 it was the notice symlink_skipped and the scan could pass.
One link stays as it was: an instruction file (CLAUDE.md, AGENTS.md, a rule file) that is itself a link the scan cannot follow stays the notice symlink_skipped, and the scan can pass with that file unread. A link inside a skill to a file elsewhere inside the scan root is still read at its target.
The bounds of what is read
The archive reader, which the hosted scan uses, bounds what it reads under a named folder, and the whole archive. Each bound reached is an error, never a pass.
| Bound | Value | Where it applies |
|---|---|---|
| Files in a skill | 2,000 | The files under the skill's folder; the command bounds a skill at the same number. |
| All files of a skill, unpacked | 50 MiB | The files under the skill's folder, with a read link's target counted again. |
| One file | 10 MiB | Every file the scanner reads, in an archive or in place. |
| A path, measured inside the archive's top directory | 255 characters | The path in the repository. Since 1.23.0 the top directory the forge adds to every name is not counted; before, it was. |
| Entries in a repository's archive | 100,000 | The whole archive, counted from its list of entries before any entry is read. Since 1.23.0. |
| A repository's archive, zipped, for the git skill import | 50 MiB | The archive of a repository read under a named folder. Since 1.23.0. |
| A repository's archive, zipped, for the free scan | 20 MiB | The free scan keeps the default. |
| The time a scan has | Set for each hosted scan; no limit for the command by default | Every hosted scan, and the command when it is given --time-limit. Each limit and what happens when a scan reaches it are in the time a scan has. |
The time a scan has
A scan also has a time limit. A skill is judged whole or not at all, so a scan that runs out of time never passes the skill it had not finished. The hosted scan stops itself before the platform would, and says so:
| Scan | Time it has | What the figure is |
|---|---|---|
| A skill scanned for an organisation (upload, repository or Agent Space) | Up to 232 seconds, less what the download and unpacking used | The hosted function has 300 seconds, with 60 for writing the result and 8 for stopping. |
| The free scan | 270 seconds | The whole time the free scan has. |
| Checking a rule against a stored skill | 18 seconds | The time a check of a rule has against a skill the organisation already stores. |
The scan ends incomplete with the code time_limit, and names the skill, the limit and, where it is known, the file being read. No rule judged the skill. Findings from earlier scans stay, but nothing counts as clean, and the skill cannot be marked Curated or admitted until a complete scan. A connected pipeline that sets --time-limit uploads the same result, with exit code 2. Make the skill smaller, or leave large files out of it, then scan or upload it again.
The command
Since 1.24.0, spellwarden scan --time-limit SECONDS limits the reading of skills and instruction files to SECONDS, counted from the start of the scan. The default is no limit, and there is no environment variable or settings key, so a file in the repository cannot raise or remove it. A skill or instruction file the scanner had not finished is the error time_limit and is not judged: a package is judged whole or not at all. Every skill and instruction file after it is named by an error of its own, so nothing unread goes unnamed. The packages judged before the limit keep their findings, and the scan is incomplete, with exit code 2, so no check passes on it. The way out: split the content, leave a file out with exclude in .spellwarden/config.yml, or raise the limit.
The limit covers the reading of skills and instruction files. The other steps of a scan have their own bounds and still run. spellwarden scan --user takes no limit.
Large skills are read faster
Scanner 1.24.0 also reads large skills faster. The worst case measured for the release, a skill of 50 MiB made of 5 files of about 10 MiB, took 126.82 seconds before and 103.20 seconds after on the same machine, about a fifth less, with normalisation on. Findings are unchanged, byte for byte.
What incomplete means
A scan that could not read what it should is incomplete: no rule judged what was not read, so the scan does not count as clean: no check passes on it, the skill cannot be admitted or marked Curated until a complete scan, and with the command the exit code is 2. Findings from earlier scans stay visible. Content a skill holds is never skipped on the scanner's own choice; the one link the command keeps as a notice is an instruction file that is itself a link, described above.
Each case says what stopped the scan, and has its own way out:
| Case | What the scan says | The way out |
|---|---|---|
| More files than the scanner reads | The scan ends incomplete with the code too_many_files, and names the number of files as the limit that was reached. | Split the skill so each part is under the bound, or leave files out of the scan: with the command, with exclude in .spellwarden/config.yml; with the hosted scan, upload a zip of the skill's folder without the files the skill does not need. |
| An archive of more than 100,000 entries | The scan ends incomplete with the code too_many_files, and says the repository's archive holds more than 100,000 entries, the most the scanner lists. | A repository this large cannot be listed from its address. Zip the skill's folder and upload it, or run the open-source scanner on a clone. |
| A skill or an archive past a size bound | The package is larger than the limit. | Make the skill smaller, or leave out what is not part of it. With the command, a file of agent content over the file bound is the error unreadable, and exclude in .spellwarden/config.yml is the way out. |
| A path past 255 characters | The archive contains a path Spellwarden refuses. | Shorten the name of the file or its folders in the repository. |
| A link that is not followed | The link is named, and the scan ends incomplete. | Replace the link with the file it names, or point it at a file inside the folder. With the command, exclude in .spellwarden/config.yml also leaves it out. |
| A file that cannot be read | The file is named as unreadable. | Make the file readable, or leave it out of the skill. |
| A scan that runs out of time | The scan ends incomplete with the code time_limit, and names the skill, the limit and, where it is known, the file being read. | Make the skill smaller, or leave large files out of it, then scan or upload it again. With the command, split the content, leave a file out with exclude in .spellwarden/config.yml, or raise the limit. |
Measured on the catalog
39 of 160 entries (24.4%) could not be scanned whole in the first round of the catalog, on 6 and 7 November 2026. Measured again: 0 of 160 on 24 November 2026, with scanner 1.23.0.
35 of the 39 were read whole once a skill was read from its own folder (since 1.10.0), and scanner 1.23.0 closed the last 4: a long name measured inside the archive's top directory, and an archive of 24.8 MiB zipped read under the 50 MiB bound. The figures are in MCP server security, November 2026.