Skip to content
Back to skills

L0 Preflight Guard

ASecurity

Developer pre-commit and authoring aid. Checks a draft task prompt for credentials and PII before you submit it to Cezar. NOT a runtime gate - the fail-closed gate is deterministic TypeScript in the host process (see ADR).

  • 1,217 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentstypescriptgitapi

Works with

  • api

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add open-mercato/cezar --skill l0-preflight-guard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of L0 Preflight Guard?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for L0 Preflight Guard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/open-mercato-l0-preflight-guard/badge)](https://www.skillsdirectory.com/skills/open-mercato-l0-preflight-guard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: l0-preflight-guard
description: Developer pre-commit and authoring aid. Checks a draft task prompt for credentials and PII before you submit it to Cezar. NOT a runtime gate - the fail-closed gate is deterministic TypeScript in the host process (see ADR).
---

# L0 Preflight Guard (Developer Aid)

> **Scope.** This skill helps a human or agent author clean prompts *before* dispatch.
> It is advisory. The enforcing gate runs as TypeScript in the Cezar host process
> before any task is sent to a vendor runner. Passing this skill does not bypass that gate.

## Policy: reject, never mask

A prompt is either 100% clean or rejected. Do not substitute placeholders
(`EMAIL_001`, `PHONE_001`, `[REDACTED]`): this destroys command semantics
(e.g. `git log --author=EMAIL_001`) and makes the agent fail in confusing ways.

## Procedure

1. Scan the draft against the canonical credential patterns (`TOKEN_PATTERNS`
   in `packages/cezar/src/core/secret-redaction.ts`): API keys, JWTs, private key blocks, etc.
2. If `CEZ_REDACT_PII=1` is set in the target environment, also scan for e-mail
   addresses and phone numbers.
3. On any match: STOP, report the match type and location (not the value), and ask the
   author to remove or reference the data indirectly (env var name, file path).
4. No match: the draft is safe to submit.

Do not use entropy heuristics. Lockfile hashes, base64 fixtures and minified bundles
cause false rejections in a dev repository.

## Truth table

| Secret match | PII match | `CEZ_REDACT_PII` | Result |
|---|---|---|---|
| Yes | any | any | **REJECT** (unconditional) |
| No | Yes | 1 | **REJECT** |
| No | Yes | unset / 0 | ALLOW |
| No | No | any | ALLOW |

`CEZ_REDACT_SECRETS` is irrelevant to this table. It only controls on-disk transcript
redaction (`runs/store.ts`) and never permits sending a credential to a cloud model.

## Output format

```
VERDICT: REJECT | ALLOW
FINDINGS: <type> at line <n> (no raw values)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.