From ant_prompt
Remove Anthropic coding standard hooks from the current project. Cleans hook entries from .claude/settings.json and optionally deletes copied scripts. Use when the user says "remove ant hooks", "uninstall ant mode", "disable coding hooks", "remove ant prompt", or "uninstall hooks".
How this skill is triggered — by the user, by Claude, or both
Slash command
/ant_prompt:remove-ant-hooksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Cleanly removes ant-mode hook entries from `.claude/settings.json` and optionally deletes the copied hook scripts from `.claude/hooks/`.
Cleanly removes ant-mode hook entries from .claude/settings.json and optionally deletes the copied hook scripts from .claude/hooks/.
.claude/settings.jsonhooks key: report "No ant-mode hooks are installed in this project" and stopsession-start-guidance.shpost-edit-comments.shstop-verify-completion.shstop-check-length.shFor each event key (SessionStart, PostToolUse, Stop) in the hooks object:
hooks object becomes empty, remove the hooks keyjq for all JSON manipulation to ensure valid outputExample jq approach:
jq '
.hooks.SessionStart |= map(select(.hooks | all(.command | test("session-start-guidance\\.sh") | not))) |
.hooks.PostToolUse |= map(select(.hooks | all(.command | test("post-edit-comments\\.sh") | not))) |
.hooks.Stop |= map(select(.hooks | all(.command | test("stop-(verify-completion|check-length)\\.sh") | not))) |
.hooks |= with_entries(select(.value | length > 0)) |
if .hooks == {} then del(.hooks) else . end
' .claude/settings.json > /tmp/cleaned-settings.json
mv /tmp/cleaned-settings.json .claude/settings.json
.claude/hooks/?"rm -f .claude/hooks/session-start-guidance.sh
rm -f .claude/hooks/post-edit-comments.sh
rm -f .claude/hooks/stop-verify-completion.sh
rm -f .claude/hooks/stop-check-length.sh
.claude/hooks/ is now empty, remove the directory: rmdir .claude/hooks 2>/dev/nulljq . .claude/settings.json to confirm valid JSON| Do Not | Do Instead |
|---|---|
| Delete all hooks indiscriminately | Only remove entries matching ant-prompt script names |
Delete .claude/settings.json entirely | Surgically remove hook entries, preserve other settings |
| Remove hooks from global settings | Only operate on project-scoped .claude/settings.json |
| Skip JSON validation after editing | Always verify with jq . |
npx claudepluginhub touricks/fanshi_personal_skills --plugin ant_promptUninstalls Pith from Claude Code: removes hooks, slash commands (/pith, /budget, /focus), and cleans settings.json pith entries. Preserves ~/.pith/state.json unless full wipe requested.
Installs plugin hooks into a project's .claude/ directory for persistent use without the plugin loaded. Supports selective or bulk install, dry-run, and conflict resolution.
Guides development of event-driven hooks for Claude Code plugins using prompt-based and command-based configurations in hooks.json for events like PreToolUse, PostToolUse, Stop, and SessionStart to validate tools and automate workflows.