> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decimal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Fixing a blocked publish

> Every reason SkillSafety can refuse a publish, what each one means, the fix, and how to catch it before you publish.

You tried to publish a skill and the registry refused. That's **SkillSafety**: the review that sets a skill's [public safety band](https://docs.decimal.ai/guides/trust-safety/how-skills-are-vetted.md#what-the-band-means) also gates the publish. A refused skill isn't published. It stays as it was and you can edit it. Every refusal but one is fixable.

## The order the gates run

Publishing runs [a series of checks in order](https://docs.decimal.ai/guides/publish-a-skill.md#the-checks-in-order), and the first failure is the reason you see. Permissions, the name and the benchmark come first. The last three are SkillSafety:

```mermaid theme={null}
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#f5f5f4','primaryBorderColor':'#a8a29e','primaryTextColor':'#44403c','lineColor':'#a8a29e'}}}%%
flowchart LR
  A["Benchmark<br/>presence"] --> B["Tier-1<br/>static scan"]
  B --> C["Tier-2<br/>AI security review"]
  C --> D["Tier-3<br/>content safety"]
  D --> E["Published"]
```

| Gate | Refusal reason |
| - | - |
| **Tier 1**: static scan (no LLM, free, instant) | `safety_blocked` |
| **Tier 2**: AI security review | `intent_rejected` |
| **Tier 3**: content-safety review | `content_blocked`, `content_removed`, `content_unverified` |

> [!NOTE]
>
> A publish attempt is **always free**. You never spend quota on one, however many times you retry.

## Reason → meaning → fix

| Reason | Band | What it means | How to fix |
| - | - | - | - |
| `safety_blocked` | **Blocked** | Tier 1 found a **critical** pattern in the skill's text or its bundled files: a live secret, a remote-code-execution or reverse-shell instruction, a data-exfiltration step, a request to a cloud metadata service, a download-and-run from a hidden URL, or bidirectional override characters. | Each finding names the check, the line, the evidence and a fix. Apply them, then click **Re-run checks & retry**. |
| `intent_rejected` | **Blocked** | Tier 2 read the skill as a whole and concluded its *purpose* is to get an agent to do something unsafe. | Read the summary and the flags, remove the instruction that steers the agent, and publish again. |
| `content_blocked` | **Blocked** | Tier 3 found prohibited text in a category you can fix: hate, graphic violence, sexual content, self-harm, illegal goods or doxxing. | Remove or rewrite the text. Any example must be **synthetic**. Publish again. |
| `content_removed` | **Blocked**, final | Tier 3 matched **CSAM or a credible threat**. | None. This category isn't eligible for a fix. Contact support if you believe it's an error. |
| `content_unverified` | **Caution**, held | Tier 3 ran but couldn't confirm the text is safe. It may sit close to a prohibited category. | Revise the text and publish again, or contact support if you believe it's a mistake. |

> [!WARNING]
>
> `content_removed` is the one final outcome. There is no fix-and-retry loop for CSAM or credible threats.

> [!NOTE]
>
> A reviewer outage is not a refusal. If Tier 2 or Tier 3 can't run at all, the skill publishes, shows **Not yet reviewed**, and the review is retried on a schedule.

## `safety_blocked`: Tier-1 static scan

Tier 1 is pure text analysis, run instantly and free on every publish. Only a critical finding refuses a publish. Warnings are recorded and pull the band to **Caution**, and the skill still publishes. [The full list of checks](https://docs.decimal.ai/guides/trust-safety/how-skills-are-vetted.md#what-the-static-scan-looks-for), with what each one does, is on How skills are vetted.

After a refusal, the skill's page shows a **Blocked by the safety scan** panel. Each critical finding lists:

* **Check**: which rule fired, such as *Data exfiltration*
* **Line**: where it matched
* **Evidence**: the offending snippet, with any **secret redacted**
* **Fix**: the change that clears it

> [!TIP]
>
> Tier 1 is **context-aware**. When the prose around a match plainly teaches about the pattern rather than instructing it, the finding drops to a warning. That's what lets a secret-scanner or injection-resistance skill publish, so write the prose next to a payload to say what it is. A `security` category won't clear one of these findings on its own, and nothing clears a bidirectional override or a request to a metadata service.

## `intent_rejected`: Tier-2 AI security review

Tier 2 reads **intent**. An LLM judge decides what the skill is trying to make an agent do and returns `safe`, `review` or `reject`. Only `reject` refuses the publish. `review` publishes under a **Caution** band.

It exists to catch what a pattern can't: a friendly **"Prerequisites"** section telling the agent to fetch a script and run it before doing anything useful. Every line looks harmless, but the purpose is to run someone else's code. Four flags always mean `reject`: `fake_prerequisites`, `remote_execution_intent`, `exfiltration_intent` and `credential_request`.

The refusal lists the flags with a fix for each. Cut the instruction it names and publish again. If the skill is real security tooling, make the framing explicit: say what the payload is and why you're showing it, right where you show it.

## `content_blocked` / `content_removed` / `content_unverified`: Tier-3 content safety

Tier 3 asks a different question: not *is this skill dangerous to run*, but *does the published text carry prohibited content*. The [content policy](https://docs.decimal.ai/guides/trust-safety/content-policy.md) lists the eight categories.

1. **Examples must be synthetic.** If your skill needs a sample email, sample personal data or a sample abusive message, make one up. Real personal data trips the doxxing check.
2. **Two categories are final.** CSAM and credible threats produce `content_removed`. Every other category can be fixed by editing the text.

`content_unverified` is a real verdict, not an outage: the reviewer read the text and couldn't clear it. The publish is refused until you revise it, or until support overrides a false positive.

## The remediation loop

Every refusal comes with its own fix per finding, flag or category.

**1. Fix the skill**

Remove the secret, rewrite the manipulative step, replace real data with synthetic data, and make the prose around any payload say what it is.

**2. Re-run checks (free, Tier 1 only)**

**Re-run checks**, in the SkillSafety panel on any skill you own, repeats the static scan with no publish and no quota. Use it to confirm a `safety_blocked` finding is gone.

**3. Publish again (runs all three tiers)**

Publishing runs Tiers 1, 2 and 3 in order. **Re-run checks & retry**, on the refusal panel, does the scan and the publish in one click.

## Scan before you publish

Two commands run the checks ahead of time:

| Command | What it runs | Needs | Cost |
| - | - | - | - |
| `decimalai skills scan` | Tier 1, on your machine | Nothing: no key, no network, and nothing leaves your machine | Free |
| `decimalai skills review <name>` | Tiers 1, 2 and 3, on DecimalAI | An API key, and the skill synced to your organization | One [deep review](#deep-review-clear-the-llm-tiers-before-your-launch) |

`decimalai skills scan` comes with `pip install decimalai`. Point it at a file, a skill folder or a tree of them. With no path, it scans `./skills`.

```bash theme={null}
# Every SKILL.md under ./skills. Exit 1 if any is blocked
decimalai skills scan ./skills

# Fail on Caution too
decimalai skills scan ./skills --fail-on flagged

# Findings for a script
decimalai skills scan ./skills --format json
```

If you don't use the SDK, `skillevaluation scan` from the [open runner](https://docs.decimal.ai/guides/skillevaluation.md) does the same, with the `text`, `json` and `sarif` formats.

`--fail-on` takes exactly three values. The band is called Caution, but the value is `flagged`: `--fail-on caution` is a usage error.

| `--fail-on` | Exits 1 when any skill is |
| - | - |
| `blocked` (default) | Blocked |
| `flagged` | Blocked or Caution |
| `never` | Never: report only |

| Exit | Meaning |
| :-: | - |
| `0` | Nothing reached the `--fail-on` level |
| `1` | A skill reached it, or the path holds no `SKILL.md` |
| `2` | Usage error: the path doesn't exist, or a flag or value is invalid |

`--format` changes only the output:

| `--format` | Output | Use it for |
| - | - | - |
| `text` (default) | Findings per skill, with a fix for each | A terminal |
| `json` | Findings per skill | A script or a custom gate |
| `github` | `::error` and `::warning` annotations | Inline findings on a pull request |
| `sarif` | SARIF 2.1.0 | GitHub code scanning, or any SARIF viewer |

> [!WARNING]
>
> **A clean local scan doesn't promise a clean publish.** Tier 2 and Tier 3 run only on DecimalAI. The local scan reads `SKILL.md` alone, while the gate also scans the skill's bundled files, so a secret in `scripts/run.sh` passes locally and blocks at publish. The scanner is also a separate copy that ships in the `skillevaluation` package and can lag the gate's rules: `--format json` shows the `scanner_version` it ran.
>
> It can be stricter too. Without a security `category` in your frontmatter, a skill can read Caution locally and pass the gate.

### In GitHub Actions

This job annotates pull requests and fails on a Blocked skill. It needs no secrets, because the scan stays on the runner.

```yaml theme={null}
# .github/workflows/skill-scan.yml
name: Skill safety scan
on: pull_request
permissions:
  contents: read
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - run: pip install decimalai
      - run: decimalai skills scan ./skills --format github --fail-on blocked
```

For tracked code-scanning alerts, add a step that runs `decimalai skills scan ./skills --format sarif --fail-on never > skills.sarif` and uploads the file with `github/codeql-action/upload-sarif@v3`, which needs the `security-events: write` permission. `--fail-on never` keeps that step from stopping the job before the file is written.

## Deep review: clear the LLM tiers before your launch

The publish gate runs Tiers 2 and 3 at the moment you publish. To find an `intent_rejected` or `content_blocked` on your own schedule, run them on a private draft with a **deep review**: click **Run deep review** in the skill's SkillSafety panel, or use the command line.

```bash theme={null}
decimalai skills sync                # send ./skills to your organization, unpublished
decimalai skills review my-skill     # review its latest version on DecimalAI
```

It prints the band, each tier's status and any findings, for example:

```text theme={null}
  ⚠ my-skill: SkillSafety caution
      safety=clean  intent=review  content=clean
```

It exits `1` when the band is Blocked or the request fails, which includes being over quota.

Each review counts against a monthly quota: Free 10, Core 100, Pro 1,000, Enterprise 5,000. If no reviewer could run, the review isn't charged. The publish gate and **Re-run checks** never touch this quota.

> [!NOTE]
>
> A deep review's verdict counts. It's recorded on that version, and on a skill that's already published, a bad verdict takes effect at once, as it would at the gate.

## When a live skill goes bad

Review doesn't stop at publish. Every version carries its own scan and verdict history, and each new version of a published skill is checked again. What a worse result does depends on the tier:

* **Tier 1 blocked or Tier 2 rejected:** the skill stays listed with a **Blocked** chip, but it can't be installed, forked or loaded, and its file answers 410.
* **Tier 3 blocked or removed:** the skill is hidden from browse and every other public surface.
* **Tier 3 couldn't confirm:** the skill is held out of public listings until it clears. Anyone who already has it linked keeps it.

When a new version or a review makes the band worse, your organization's owner gets an **email**, and the `skill.safety_status_changed` webhook fires. A registry-wide re-scan after a change to the scanner's rules can also move your band, but it doesn't email you, so check the SkillSafety panel if a skill's band looks different.

## Related

> [card] [Publish a skill](https://docs.decimal.ai/guides/publish-a-skill.md)
>
> The Publish dialog, every check in order, and updating a live skill.

> [card] [SkillScore](https://docs.decimal.ai/guides/skillscore.md)
>
> The effectiveness score that sits beside SkillSafety on every skill.

> [card] [skillevaluation](https://docs.decimal.ai/guides/skillevaluation.md)
>
> The package that ships the `scan` command and the A/B benchmark.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.