Agent Preflight banner
EffortlessMetrics EffortlessMetrics

Agent Preflight

Development community

Description

--- description: Run agent preflight safety checks before making any edits --- # Agent Preflight Run the agent preflight checks to verify this worktree is safe to edit. ## Steps Run the preflight script: ```bash bash scripts/agent-preflight.sh ``` The script checks: 1. **Branch safety** — Not on `master` or `main`. Not in detached HEAD state. Exit 1 if failed. 2. **Worktree isolation** — Running inside a git worktree, not the main checkout. Exit 2 if failed. 3. **No merge conflicts** — No

Installation

Installs to ~/.claude/commands/effortlessmetrics-perl-lsp-agent-preflight.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/EffortlessMetrics/perl-lsp/HEAD/.claude/commands/agent-preflight.md -o ~/.claude/commands/effortlessmetrics-perl-lsp-agent-preflight.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository