Skip to content
Back to skills

Preflight

ASecurity

Run llmshim's pre-commit / pre-PR checks — the exact fmt, clippy, and test trio that CI enforces. Use before committing, opening a PR, or tagging a release to catch failures locally instead of in the release workflow.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsgobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add sanjay920/llmshim --skill preflight --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Preflight?

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

Security grade badge for Preflight
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sanjay920-preflight/badge)](https://www.skillsdirectory.com/skills/sanjay920-preflight)

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: preflight
description: Run llmshim's pre-commit / pre-PR checks — the exact fmt, clippy, and test trio that CI enforces. Use before committing, opening a PR, or tagging a release to catch failures locally instead of in the release workflow.
allowed-tools: Bash(cargo fmt*), Bash(cargo clippy*), Bash(cargo test*)
---

# Preflight checks

These are the exact checks the `test` job in `.github/workflows/release.yml` runs. The release pipeline (crates.io publish, GitHub release, Homebrew tap) is gated on them, so a failure here means a broken release. Run all three and report results.

## Checks

```!
cargo fmt --check
cargo clippy --features proxy -- -D warnings
cargo test --features proxy --tests
```

## Interpreting results

- **`cargo fmt --check`** — non-zero exit means formatting drift. Fix with `cargo fmt` (no `--check`).
- **`cargo clippy ... -D warnings`** — every warning is an error in CI. Fix the lint; do not blanket-`#[allow]` unless there's a clear reason.
- **`cargo test --features proxy --tests`** — runs ~370 unit tests including the proxy. `--tests` skips doctests; `--features proxy` is required or proxy tests won't compile. Integration tests (`#[ignore]`, need API keys) are not part of preflight — run `cargo test -- --ignored` separately when you have keys.

Report each check's pass/fail plainly. If anything fails, show the relevant output and fix it before proceeding — do not report success on a failing tree.

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.

Comments

Loading comments…