ask-first

by Nasrallah Adel · ★ 1 · updated 9 days ago

Status lineGuardsCommandsPromptvalidates

0

Holds git commit, push, PR merge and PR creation against protected branches, and edits to .claude/settings*.json, behind a Proceed / Cancel question unless your prompt or slash command asked for them; refuses deleting sudoers, authorized_keys or sshd_config and account changes that remove your own access.

install ask-first

Install

/plugin marketplace add Nasrallah-Adel/claude-ask-first
/plugin install ask-first@nasrallah-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runprompt.submittool.call
API calls
$.command.register$.env.get$.fs.stat$.session.repo$.state.get$.state.set$.store.get$.store.set$.ui.ask$.ui.log$.ui.status$.ui.toast
Can see
every promptBash callsEdit callsWrite calls
Reach
level 1 of 3 reads filesreads env varsreads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Nasrallah-Adel/claude-ask-first
Path in repo
repository root
Source commit
1b98a3b the exact code the scan read
Author
Nasrallah Adel @Nasrallah-Adel
License
Apache-2.0
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.