The model-assisted analyzer
Last updated 20 November 2026
The model-assisted analyzer asks an AI model to read a skill's SKILL.md and scripts and say, for each of eight categories, whether it sees an issue, how sure it is and which lines show it. It runs in two places: in Spellwarden after a skill's scan, paid through your organisation's AI gateway or with credits, and in the open-source scanner with --analyze, against an endpoint and a key of your own (since 1.17.0). It is off by default in both.
The analyzer is advisory everywhere. Its verdicts never quarantine a skill, never fail a scan or a CI job, and never change a score. The scanner's rules still judge every skill; the analyzer adds a second reading that a person can weigh.
Plans: Team and Enterprise
What the analyzer reads and returns
It reads SKILL.md first, then the skill's scripts in path order: the files under scripts/, the files with an executable mode, and the files ending in .py, .sh, .bash, .js, .mjs, .ts, .ps1, .rb or .pl. It reads only the files the skill's package hash covers, so a nested skill is left out. Each file's text is masked before it is sent, as Spellwarden masks every text it sends to a model: a value that looks like a credential is cut to its first characters.
The model gets the files inside a block marked with a random boundary, an instruction that the block is data and that an instruction inside it is evidence, and a one-time value its answer must repeat. A skill that tells the model to report nothing cannot produce a clean result that way: an answer that does not follow the instructions is not a verdict.
The answer covers every one of the eight categories:
instruction_overridedata_exfiltrationcredential_accessdestructive_actionremote_codeobfuscationdeceptive_descriptionexcessive_permission
For each category the result holds a verdict (issue or none), a confidence (low, medium or high), a summary of at most 300 characters and at most five quoted spans of at most 200 characters, each with its file and line. Every span is checked against the masked source before it is kept: a span shorter than eight characters, or one that is not at the line it names, makes the answer no_verdict.
The analyzer in Spellwarden
- An owner or manager opens Settings, AI models and chooses Turn on the analyzer. It needs a paid Team or Enterprise plan and a way to pay: your organisation's AI gateway or credits.
- After each skill scan, Spellwarden looks for a stored result for the same package, analyzer version and model. When it finds one, it copies it with no new call and no charge.
- Otherwise it starts one analysis, paid the organisation's way. The scan never waits for it, and the scan's result never depends on it.
- The skill page shows the result as the fact Model-assisted review: the status, each category with its confidence and spans, the model, and the line: Advisory: does not change the score or block anything.
Analyse now, on the skill page, runs the analysis for a person, for example after a result without a verdict. Owners, managers and members can use it. Skills of the public catalog are not analysed.
| Status | What it means |
|---|---|
analyzed | The model answered in the required form. The strongest wording a category gets is: No issue found by the model (advisory). |
no_verdict | The answer was not usable: not the schema, a category or the one-time value missing, or a span that is not in the source. It is never shown as clean; run it again with Analyse now. |
incomplete | The skill was not sent because of a limit (see Limits). Nothing was charged. |
not_analyzed | No analysis was started, with the reason: the balance, the monthly limit, the monthly cap, too many at once, paused, no gateway, or a model without a price. |
running | The analysis has started and has not ended yet. |
When the rules found an open issue in a category in the same scan and the model did not, the page never says the model found nothing there. It says: Rules found an issue; the model did not.
An organisation can run 2,000 analyses a UTC month and 20 at once. Past the month's cap a skill is not analysed and the page says: Your organisation has used its 2,000 analyses for this month. When the organisation pays with credits, analyses after scans count against its monthly credit limit, as a member's jobs do.
During the 14-day trial the analyzer stays off and its settings are shown read-only. A read-only organisation runs no analysis.
Who pays, and which model answers
- With credits, the model is the one Spellwarden uses as the grader of its evals, Claude Sonnet 5.5 today, on Amazon Bedrock in the EU. The call is priced at the credits price list; see Credits for model-assisted features.
- With your AI gateway, the model is the one you configured, and the result names it as configured in your gateway: Spellwarden cannot see which model a gateway really serves. See Pay with your own AI gateway.
- An analysis never falls back to another model. A busy model is asked again, so the model a result names is the one that answered.
The analyzer on the command line
SPELLWARDEN_MODEL_KEY=... spellwarden scan . --analyze --model-endpoint https://llm.example.com/v1 --model NAME
[--analyze-max-bytes N] [--analyze-cache DIR]--model-endpointis the base URL of an OpenAI-compatible API; the request goes to<base>/chat/completions.--modelis the model name the endpoint expects.- The key comes from the environment variable
SPELLWARDEN_MODEL_KEYonly, never a flag, so it stays out of shell history and CI logs. It is sent asAuthorization: Bearer; without it no such header is sent, for a local server that needs none. The key is never written to a report, a log line, the cache or an error message. httpsfor any host,httponly for a loopback address. The endpoint may be a private address, such as a model server on your own machine, but never a link-local address such as a cloud metadata service. No redirect is followed and no proxy is used.- Nothing goes to Spellwarden: the files go only to the endpoint you name.
The JSON report gains analysis, one entry per skill, with the fields above and rules_found for each category. The text and Markdown reports show each skill, and SARIF lists each category with an issue as a result of level note with properties.model_assisted: true. The GitLab Code Quality report, the CycloneDX document and the upload of connected mode carry none of it, and --analyze cannot be used with --user.
--analyze-cache DIR keeps each result in a directory, one file per package hash, analyzer version and model, and reuses it. A cached file holds the categories only, never the key or what was sent. Keep the directory outside the scanned repository, where a change to the repository cannot plant a file.
The GitHub Action and the GitLab component take the inputs analyze, model-endpoint and model. No input takes the key: set SPELLWARDEN_MODEL_KEY as a secret on the step, or as a masked CI/CD variable. Scan in CI with GitHub or GitLab shows both.
Limits
- One skill sends at most 120,000 bytes of masked text, SKILL.md and scripts together, all or nothing. A skill past it, or one whose SKILL.md or a script is not UTF-8 text, is not analysed: it is
incompletewith the limit (too_largewith the bytes and the bound, ornot_textwith the file), and it is never shown as analysed or clean. In Spellwarden the skill page says, for example: Not analysed: SKILL.md and scripts are 183,402 bytes, more than the 120,000 the analyzer reads. Split the skill, or run the scanner's analyzer on your own machine with a larger bound. - The way out is to split the skill, or, on the command line, to raise the bound with
--analyze-max-bytes(at most 10,000,000). For a file that is not text, make it UTF-8 text or move it out of the script selection. - A skill with a SKILL.md or script that the scan itself did not read is
incompletetoo, and nothing is sent for it: for example a file that cannot be read or, under--staged, a path with an unresolved merge conflict, where the notice says that the file was not read. Since 1.19.0 the same holds for a skill whose front matter, in its SKILL.md or in a Markdown file of itscommands/oragents/folder, is past one of the scanner's front-matter limits. - Only the analysis is incomplete: the scan's own result and the scanner's exit code stay as the rules left them, so a CI job that runs with
--analyzestays green on a large skill. - Each request asks for an answer of at most 4,096 tokens. An answer cut there is not one whole JSON object, so it is
no_verdictwith the reasonnot_json. - An answer off the schema, one that lacks a category or the one-time value, or one that quotes a span that is not at the line it names is
no_verdictwith its reason. - On the command line, an answer over 1 MiB, an endpoint that does not answer in time, and any other error of the endpoint (an error status, a redirect, an address that cannot be reached, or an answer that is not a chat completion) make the skill
not_analyzedwith the reasonendpoint_errorand the endpoint's code, such asanswer_too_largeortimeout. - None of these is ever shown as clean, and none changes what the rules found. The way out is to analyse again, or, for an answer cut at the token limit, to analyse a smaller skill, whose answer needs fewer tokens.
- A category keeps at most five spans; the count left out is shown, and every span was checked before the cap.
Measured rates: none published yet
No detection rates are published for analyzer version 1 yet. So every result carries the label Unmeasured model, in Spellwarden and on the command line, whichever model answered. For a model named <model> the label reads: Unmeasured model: no detection rates are published for analyzer version 1 yet, so the results of <model> are not measured.
The detection and false-positive rates will be measured on fresh held-out skills and published with a later release of the scanner. This guide then gains them, with the measured model and the number of skills they were measured on, and from then on only a result from another model carries the label.
Until then no measured figure says how often the analyzer finds an issue, or reports one that is not there. Read each verdict with the lines it quotes, as one model's reading of the files.
Advisory, always
An analysis is never a finding. Its verdicts never change the scanner's exit code, a rule count, what --fail-on decides or what the baseline accepts. In Spellwarden they never quarantine a skill, never change its curation score, the Curated badge or the trust score, and never reach the findings list, alerts, the private registry, the CI registry check, the audit evidence pack, the AI bill of materials or the audit feed. No setting turns an analysis into a block.
What is sent, and what is kept
In Spellwarden, the masked SKILL.md and scripts go to your organisation's AI gateway, or, when it pays with credits, to AI models on Amazon Bedrock in the EU. Spellwarden keeps the result with the skill while it exists, the stored result for reuse for 400 days after its last use, and the copy of the text sent and the model's answer for 30 days. The privacy policy is the binding text. On the command line nothing is kept by Spellwarden.