# Respect The Guard

> When blocked by a safety guard (push-to-main protection, destructive-command confirm, permission boundary, failed eval gate), uses the legitimate path instead of bypassing — and surfaces exactly how the operator relaxes the guard if desired. Use when a guard stops the fast path, when tempted to use --no-verify or --force, when a deploy script offers only an exec variant, or when input/API limits apply.

- Skill: `jcdavis131/respect-the-guard` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add jcdavis131/respect-the-guard`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jcdavis131/respect-the-guard/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: jcdavis131 (https://skillmd.com/u/jcdavis131)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/jcdavis131/respect-the-guard

---


# Respect The Guard

A guard blocking the fast path is doing its job. Bypassing it is faster and wrong. Use the legitimate path, finish the work, and tell the operator how to relax the guard if they want to.

## The move

1. **Don't bypass.** No `--no-verify`, no `--force` to main, no manual confirmation override, no `--amend` to skip a hook, no renaming a command to dodge a pattern match.
2. **Use the legitimate path.**
   - Push-to-main blocked → branch + PR (`logical-commit-split`).
   - Destructive command needs confirm → ask, then proceed (`shell-confirm-hygiene`).
   - Tool missing (e.g. `gh`) → produce the manual alternative (compare URL) in one step.
   - Permission denied → surface it; don't retry with a workaround.
3. **Surface the relaxation; don't take it.** Tell the operator exactly how to relax the guard; they ratify, you never apply it unilaterally.
4. **Finish via the legitimate path.** Branch pushed, PR URL produced, manual step is one click — work done; bypass skipped.

## When to ask the operator to relax a guard

- Guard is over-broad for this repo (solo owner, PRs are theater).
- Legitimate path is genuinely impractical.
- Propose relaxation, get yes, document it — not silent.

## Anti-patterns

- `--no-verify` to skip a failing hook — fix the issue.
- `--force` to main — one-way door.
- Renaming a command to dodge a deny pattern.
- Applying a relaxation silently.
- Failing the task because of the guard — legitimate path completes the task.

## Extended patterns

Credential scope, stored-credential reuse, copy guardrails, API input limits, `:exec` script pairs, non-overridable gates: [reference.md](reference.md)

## Pair with

- `shell-confirm-hygiene` · `logical-commit-split` · `pre-commit-hygiene` · `readiness-report` · `validate-gate`

