/agent-safety-preflight:agent-safety-preflight [repo-path]from agent-safety-preflight
Inspects a local repository for risks before AI-agent edits, checking for destructive shell patterns, credential-writing automation, and uncommitted changes. Outputs a Green/Yellow/Red risk receipt.
Ships in agent-safety-preflight. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Agent Safety Preflight helps Claude inspect a local repository before making AI-agent-assisted edits. It produces a compact Green, Yellow, or Red risk receipt from local files only, with special attention to destructive shell patterns, credential-writing automation, agent authority surfaces, uncommitted changes, and unavailable git state.
The skill pairs with the /agent-preflight command in this plugin. Prefer the bundled lightweight scanner when it is available from a trusted Claude install root, then explain the decision and next safe action before editing.
agent_preflight_lite.py scanner.Do not send source, secrets, tokens, private repository contents, payment credentials, or environment variables to external services while using this skill.
Read only for local documentation or configuration files that explain the workspace; do not copy private source into the response./agent-preflight when the command is installed, or invoke the bundled scanner from a trusted Claude install root.Return a short receipt in Markdown that is safe to paste into the local work log or pull request notes:
## Agent Safety Preflight Receipt
- Decision: Green | Yellow | Red
- Repository: <path>
- Git state: clean | dirty | unavailable
- Risk buckets: <bullets>
- Evidence: <file/path markers>
- Next safe action: proceed | checkpoint | stop
.claude/, .cursor/, .github/, shell scripts, JSON/YAML/TOML config, package manifests, and environment files.User request: "Run a preflight before you update this README."
The skill runs the scanner, sees a clean git state and no high-risk automation markers, then returns Green with the repository path and evidence summary.
User request: "Check this repo before the agent refactor."
The skill detects agent hook configuration or broad tool permissions, returns Yellow, and recommends a checkpoint or narrower edit scope before continuing.
User request: "Start editing this generated-project repo."
The skill finds a destructive recursive delete pattern in an automation file, returns Red, and stops until a human reviews the workflow.
plugins/security/agent-safety-preflight/commands/agent-preflight.mdplugins/security/agent-safety-preflight/scripts/agent_preflight_lite.pyreferences/decision-rules.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin agent-safety-preflightOther plugins' skills for the same job