Skip to content
Back to skills

1 Always Check Before Operating

ASecurity

Sub-skill of git-sync-manager: 1. Always Check Before Operating (+4).

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datagobashgit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 1-always-check-before-operating --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1 Always Check Before Operating?

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

Security grade badge for 1 Always Check Before Operating
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-1-always-check-before-operating/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-1-always-check-before-operating)

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: git-sync-manager-1-always-check-before-operating
description: 'Sub-skill of git-sync-manager: 1. Always Check Before Operating (+4).'
version: 1.0.0
category: _core
type: reference
scripts_exempt: true
---

# 1. Always Check Before Operating (+4)

## 1. Always Check Before Operating

```bash
# Check for uncommitted changes before destructive operations
if ! git diff --quiet; then
    echo "Error: uncommitted changes"
    exit 1
fi
```


## 2. Use --no-verify for Batch Commits

```bash
# Skip hooks in batch operations for speed
git commit -m "message" --no-verify
```


## 3. Handle Offline/Network Errors Gracefully

```bash
# Suppress errors and provide fallback
if ! git pull --quiet 2>/dev/null; then
    echo "Warning: could not pull (offline?)"
fi
```


## 4. Track Operation Statistics

```bash
# Always maintain counters for summary
SUCCESS=0; FAILED=0; SKIPPED=0
# Update appropriately in each operation
```


## 5. Validate Git Repositories

```bash
# Always check .git directory exists
[[ -d "$repo/.git" ]] || continue
```

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.