Skip to content
Back to skills

Gate

ASecurity

Run the full local verification gate for jsbeautify before committing: rustfmt --check, clippy with pedantic/nursery as hard errors, and the integration test suite. Reports pass/fail per stage and exits non-zero if any stage fails. Use before committing or opening a PR, or when asked to "run the gate", "verify", or "check everything passes".

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmentrustgobash

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add coleleavitt/jsbeautify --skill gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gate?

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

Security grade badge for Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/coleleavitt-gate/badge)](https://www.skillsdirectory.com/skills/coleleavitt-gate)

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: gate
description: >-
  Run the full local verification gate for jsbeautify before committing:
  rustfmt --check, clippy with pedantic/nursery as hard errors, and the
  integration test suite. Reports pass/fail per stage and exits non-zero if any
  stage fails. Use before committing or opening a PR, or when asked to "run the
  gate", "verify", or "check everything passes".
disable-model-invocation: true
---

# gate — full pre-commit verification

Run every stage, continue through failures, and report a per-stage summary. This is
the same bar CI should enforce (the repo currently has no CI, so this is the gate).

## How to run

Execute the bundled script from the repo root:

```bash
bash .claude/skills/gate/gate.sh
```

It runs, in order (continuing past failures so you see every problem at once):

1. `cargo fmt --all -- --check` — formatting matches `rustfmt.toml` (style_edition 2024)
2. `cargo clippy --all-targets -- -D warnings` — pedantic + nursery lints as **errors**
3. `cargo test` — the `integration` test target plus unit tests

Exit code is non-zero if any stage failed; the final line is `GATE PASSED ✓` or
`GATE FAILED ✗`.

## When a stage fails

- **fmt**: run `cargo fmt --all` to auto-fix, then re-run the gate.
- **clippy**: fix the lints (this crate runs `pedantic` + `nursery`; some are noisy —
  prefer fixing over `#[allow]`, and if you must allow, scope it as narrowly as possible).
- **tests**: read the failure; if it's a deobfuscation pass, consider routing the change
  through the `deobf-soundness-reviewer` subagent before re-running.

## Notes

- The default toolchain is `rustc-master` (a nightly). Run plain `cargo`; do not pass
  `+nightly`, because no `nightly` toolchain is installed.
- clippy compiles `--all-targets` (incl. tests) and may be slow on a cold cache; warm
  builds are fast.

Files in this skill

  • SKILL.md1.8 KB
  • gate.sh928 B

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 development →

Comments

Loading comments…

Newsletter

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