Skip to content
Back to skills

Stage

ASecurity

Stage files, run pre-commit, fix failures, loop until clean

  • 5 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 1, 2026
securitygogit

Security analysis

A100/100

Scanned September 1, 2026

npx -y skills add PaloAltoNetworks/shifter --skill stage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stage?

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

Security grade badge for Stage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/paloaltonetworks-stage/badge)](https://www.skillsdirectory.com/skills/paloaltonetworks-stage)

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: stage
description: Stage files, run pre-commit, fix failures, loop until clean
disable-model-invocation: true
---

# Stage Changes

## Step 1: Identify Changed Files

1. Run `git status` to see all changed and untracked files.
2. Exclude from staging: .env files, credentials, secrets, large binaries.

## Step 2: Stage Files

1. `git add` all relevant changed files.

## Step 3: Pre-commit Loop

Run up to 5 iterations:

1. Run `pre-commit run --all-files`.
2. If it passes, proceed to Step 4.
3. If it fails:
   - Read the failure output.
   - Fix the issues.
   - Re-stage any modified files with `git add`.
   - Go back to step 1.
4. If still failing after 5 attempts, report the failure details to the user and stop.

## Step 4: Report

- List what is staged: `git diff --cached --name-only`
- Confirm pre-commit passes.
- "All files staged and pre-commit clean. Ready for commit."

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.