Awesome-omni-skill safety
Git, command, Kubernetes, data, workspace, and temporary files safety rules. Use when committing, pushing, using kubectl, handling multi-repo workspaces, or performing destructive operations.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/safety" ~/.claude/skills/diegosouzapw-awesome-omni-skill-safety && rm -rf "$T"
manifest:
skills/development/safety/SKILL.mdsource content
Safety Rules
Git Safety
Absolute Rules (Cannot be broken)
- Do not commit unless explicitly requested
- Do not push unless explicitly requested
- Never commit to main/master branch unless explicitly requested
- Never run
without explicit user approvalgit reset --hard
Core Safety Guidelines
- Do not change git stage without being asked
- Do not make commits without reviews unless explicitly requested
- Always create feature branches for changes
- Use
command for safe branch creation/git-branch
command automatically creates feature branch when on main/master/commit- Verify branch before committing
- Never commit unstaged changes without explicit request
- Always validate conventional commit format
- Create backups before destructive operations
- Show what will be committed before execution
- Never push directly to main/master
- Always create pull requests for main branch changes
- Use
command for safe PR creation/pr-create - Verify remote branch exists before pushing
Command Safety
Shell Safety
- Prefer terminal commands over GUI operations when possible
Kubernetes Safety
- Never execute
orkubectl deletekubectl apply - Use
for safe inspection/k8s-check - Use
for manifest validation/k8s-validate - Use
for change preview/k8s-diff
Git Destructive Operations
- Never run
without explicit approvalgit reset --hard - Use
for safe reset with backup/git-reset - Always create stash before destructive operations
- Provide recovery instructions
Data Safety
- Always create backups before destructive operations
- Use git stash for uncommitted changes
- Document recovery procedures
- Test backup restoration
Workspace Safety
Multi-Repository Handling
- Always check current working directory and understand repository boundaries
- Never assume single git repository when working in multi-repo workspace
- Always verify which repository operations are targeting before execution
- When working with staged changes, identify which specific repository they belong to
- Navigate to correct repository directory before running git operations
- Treat each repository as separate entity with its own git state
Error Prevention
- Always ask for clarification when workspace structure is unclear
- Confirm target repository before running git commands
- Use non-destructive commands first (git stash, git log) to understand situation
Temporary Files Safety
- When creating temporary files, use temporary directories (
or system tmp)./tmp - Automatically clean up temporary files after use
- Never commit temporary files to version control