Claude Ask First — Git skill for Claude Code
Claude Code mod: ask before unasked git commits, pushes, PRs and settings edits; refuse commands that remove your own SSH or sudo access.
How to install Claude Ask First
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Nasrallah-Adel/claude-ask-first and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Ask First does
Claude Code mod: ask before unasked git commits, pushes, PRs and settings edits; refuse commands that remove your own SSH or sudo access.
Alternatives in Git
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Contributing To Context-mode — This project is licensed under the Elastic License 2.0 (ELv2) and moves forward with your support 5.6k ★
- GitHub Review Comments — Use when a PR has unresolved review comments that need responses -- evaluates each comment, implements valid f 1.5k ★
README
ask-first
A Claude Code mod that makes Claude ask before doing the things you did not ask for, and refuses the few that could lock you out of your own machines.
It grew out of the corrections one developer kept typing: "why did you commit, I said don't", "why a PR from main", "every time you edit settings you disconnect yourself", and a standing rule never to drop their own SSH or sudo access on a remote box. Each of those is now a Proceed / Cancel question or a refusal, and each hold goes away the moment your prompt asks for the action.
What it does
| Call | Without you asking | After you asked (prompt or command) |
|---|---|---|
git commit, git push (force too), gh pr merge |
Proceed / Cancel question | runs |
gh pr create against a protected branch in a protected repo |
Proceed / Cancel question | runs |
Edit, Write or shell write to any .claude/settings.json / settings.local.json |
Proceed / Cancel question | runs |
Shell edit or append (sed -i, visudo, tee -a, >>) to authorized_keys, sudoers, sshd_config; ufw / iptables rules with no allow for port 22 in the same command |
Proceed / Cancel question | Proceed / Cancel question |
Delete, move or empty sudoers, authorized_keys, sshd_config (rm, mv, >, tee without -a) or the Edit / Write tool on them; deluser / userdel / gpasswd -d / usermod -G (no -a) / passwd -l / chage -E on a protected user, locally or inside ssh host '...' and bash -c '...' |
refused | refused |
"Asked" means the prompt that started the turn mentions it (commit, push, ship, make/open a PR, merge, settings/hooks/statusline/permissions) or the turn was started by one of the configured ship or settings commands. A short reply ("yes", "ok", "continue", a lettered option) keeps the previous prompt's intent. Pressing Proceed grants that action for the rest of the turn, so one question covers a commit followed by an amend.
The question shows the exact command or file
Related Skills
Setup Remote Editor
Make a worktree's branch link open in VS Code over Remote-SSH (writes env.CC_STATUSLINE_DIR_URL into user or p
Kit Doctor
Onboarding preflight — check deps (Homebrew, git, gh, jq, perl, node, pnpm), authenticate gh + add scope:proje
Hive Containers
Hierarchical Claude Code containers with one curated egress bridge: a root control plane, a sealed node tree,
Claude Code PR Watch
Claude Code mod: a live pane of the GitHub PRs a session opens or pushes to — CI, review, conflicts, merge — w
Impact Radius
A Claude Code mod that holds risky shell commands (rm -rf, git reset --hard, force pushes, migrations, global
Sublodex
Local-first desktop app on top of Claude Code. Multi-project, live file streaming, integrated terminal (local
Related Agents
PR Train Conductor
GitHub specialist for the Push Train. Commits, pushes verified branches, opens or updates pull requests, and w
Events Engineer
Use for the Orchestrator event pipeline. Claude Code hooks (install and remove in a project's .claude/settings
Cloud Troubleshooter
Use when inspecting, diagnosing, or validating the actual state of running systems — pods, services, logs, clo