Home / Claude Code mods / Security / preflight-guard

preflight-guard

preflight-guard is a Claude Code mod by ferranserv that warns when a session starts on main, with uncommitted changes, or beside another working session; offers a worktree, a commit checkpoint, and a click to commit what another session already.

Updated 2026-10-26

What is preflight-guard?

preflight-guard is a Claude Code mod by ferranserv that warns when a session starts on main, with uncommitted changes, or beside another working session; offers a worktree, a commit checkpoint, and a click to commit what another session already. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorferranserv
Repositoryferranserv/claude-mods
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (68/100)
Rank#5,923 of 9,397 Claude Code mods; #655 in Security
Last commit2026-10-26
Hooks7 events
Seesevery tool call
Draws onAbovePrompt

Is preflight-guard safe to install?

preflight-guard scores 68/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.prompt.submitdrives Claude
$.session.cwd
$.session.id
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.copydraws interface
$.ui.resolvedraws interface

How do I install preflight-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/ferranserv/claude-mods
    claude plugin validate ./claude-mods/archive/preflight-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/ferranserv/claude-mods && claude --plugin-dir ./claude-mods/archive/preflight-guard

Or ask Claude to set it up

Paste this into Claude Code and it installs preflight-guard for you:

Install the "preflight-guard" Claude Code mod from https://github.com/ferranserv/claude-mods/tree/main/archive/preflight-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from ferranserv/claude-mods

This repository has 7 Claude Code mods on MCPMods.

  • meters: Context window, 5-hour, weekly usage and the prompt cache countdown as compact meters in one band above the prompt or a (High risk)
  • mods-manager: Keeps your mods current: pulls the mods folder from GitHub at session start (/updatemods to do it now), and a skill that (Low risk)
  • plan-progress: Panel above the prompt for multi-step work and /goal: goal, phase, task checklist, progress bar, elapsed time, and a chi (High risk)
  • prompt-enhancer: A sparkle Enhance button and hotkey that rewrites your draft prompt in place: fitting skills, project details, decisions (Review before installing)
  • saver: Sends easy prompts to Haiku 5.5 while context is under 100K. A strip above the prompt (hidden unless saver just routed a (Low risk)
  • cockpit: One band above the prompt with Clawd, the Claude Code mascot (35 animated states), who reacts to what is happening, and (High risk)