hooks/large-edit-confirmation.ts. Options: maxLines, headless (set in user or managed settings pluginConfigs, or /config). Run claude plugin validate on the installed folder to see every event it hooks and every $ call it makes.
large-edit-confirmation
Asks the user, in the engine's own AskUserQuestion dialog, before Claude
edits or overwrites a file larger than a configurable number of lines.
A tool.call hook on Edit / Write: it reads the file through $.fs.read,
asks through $.ui.ask, then either calls next(e) or returns { deny }.
$.ui.ask rejects in a headless (claude -p) run, where nobody can answer;
the headless option decides what happens then (deny by default).
If the check itself fails before the edit runs, the edit is denied, never let through unconfirmed.
Options
maxLines: number files above this many lines need confirmation (default 1000)
headless: "deny" | "allow" what to do when there is nobody to ask (default "deny")Declared in .claude-plugin/plugin.json (userConfig). Set them in /config, in user settings (~/.claude/settings.json, not project settings), with --settings <file> or in managed settings:
{ "pluginConfigs": { "large-edit-confirmation@skills-dir": { "options": { } } } }Install
npx claude-code-templates@latest --mod security/large-edit-confirmation
claudeIt is written to .claude/skills/large-edit-confirmation/, which Claude Code auto-loads as large-edit-confirmation@skills-dir. For one session with hot reload: claude --plugin-dir .claude/skills/large-edit-confirmation. claude plugin validate .claude/skills/large-edit-confirmation prints every event it hooks and every $ call it makes.
Requirements. Mods are on by default in Claude Code 2.1.287+. Typed against Anthropic's declarations: https://github.com/anthropics/claude-code/tree/main/mods
large-edit-confirmation
Asks the user, in the engine's own AskUserQuestion dialog, before Claude
edits or overwrites a file larger than a configurable number of lines.
A tool.call hook on Edit / Write: it reads the file through $.fs.read,
asks through $.ui.ask, then either calls next(e) or returns { deny }.
$.ui.ask rejects in a headless (claude -p) run, where nobody can answer;
the headless option decides what happens then (deny by default).
If the check itself fails before the edit runs, the edit is denied, never let through unconfirmed.
Options
maxLines: number files above this many lines need confirmation (default 1000)
headless: "deny" | "allow" what to do when there is nobody to ask (default "deny")Declared in .claude-plugin/plugin.json (userConfig). Set them in /config, in user settings (~/.claude/settings.json, not project settings), with --settings <file> or in managed settings:
{ "pluginConfigs": { "large-edit-confirmation@skills-dir": { "options": { } } } }Install
npx claude-code-templates@latest --mod security/large-edit-confirmation
claudeIt is written to .claude/skills/large-edit-confirmation/, which Claude Code auto-loads as large-edit-confirmation@skills-dir. For one session with hot reload: claude --plugin-dir .claude/skills/large-edit-confirmation. claude plugin validate .claude/skills/large-edit-confirmation prints every event it hooks and every $ call it makes.
Requirements. Mods are on by default in Claude Code 2.1.287+. Typed against Anthropic's declarations: https://github.com/anthropics/claude-code/tree/main/mods
Scanned by
NVIDIA SkillSpector
Automated static analysis (no LLM) · v2.12.0 · 2026-11-19
Partial analysis: some checks could not run on this component.
3 observations in 2 categories
- Agent Snooping 2
- MCP Rug Pull 1
SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them. Open one to see the lines it points at.
Agent Config Directory AccessAgent Snooping · README.md:20
| 18 | ``` |
| 19 | |
| 20 | Declared in `.claude-plugin/plugin.json` (`userConfig`). Set them in `/config`, in user settings (`~/.claude/settings.json`, not project settings), with `--settings <file>` or in managed settings: |
| 21 | |
| 22 | ```json |
Skill EnumerationAgent Snooping · README.md:33
| 31 | ``` |
| 32 | |
| 33 | It is written to `.claude/skills/large-edit-confirmation/`, which Claude Code auto-loads as `large-edit-confirmation@skills-dir`. For one session with hot reload: `claude --plugin-dir .claude/skills/large-edit-confirmation`. `claude plugin |
| 34 | |
| 35 | **Requirements.** Mods are on by default in Claude Code 2.1.287+. Typed against Anthropic's declarations: https://github.com/anthropics/claude-code/tree/main/mods |
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.MCP Rug Pull · README.md:29
| 27 | |
| 28 | ```sh |
| 29 | npx claude-code-templates@latest --mod security/large-edit-confirmation |
| 30 | claude |
| 31 | ``` |
Learn more about NVIDIA SkillSpector or how components are reviewed.