/shipwithai-starter:add-hook [hook type: PreToolUse|PostToolUse|Stop] [tool: Edit|Write|Bash|*]from shipwithai-starter
Adds a single hook to .claude/settings.json with guided setup, checking a catalog of common patterns and preventing duplicates.
Ships in shipwithai-starter. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Add a single hook to the .claude/settings.json hooks section. Stateless.
Check the plugin's hooks-catalog.json
(located at skills/setup-hooks/hooks-catalog.json in the plugin directory)
for a matching common pattern.
*.ts, *.py, *.go?Show preview before confirming:
This hook will run `[command]` every time Claude uses the [tool] tool
[on files matching [pattern]].
Preview:
{
"PostToolUse": [{
"matcher": "Edit",
"hooks": [{"type": "command", "command": "[command]"}]
}]
}
Check for duplicate: if an identical hook already exists in settings.json, skip.
If .claude/settings.json does not exist: create it with { "hooks": {} }.
Confirm → merge into .claude/settings.json hooks section.
Do not overwrite the permissions section.
Update **Last updated:** date in the Harness config section of CLAUDE.md if the file exists.
7-day visitors to each command page
4 commands in this plugin
/add-adrCreate a new Architecture Decision Record in docs/adr/. Quick operation. Trigger phrases: "create ADR", "document decision", "record architecture choice", "add ADR", "document this decision".
/add-agentCreate a new agent in .claude/agents/. Quick operation, no full interview needed. Trigger phrases: "add agent", "create agent", "add [name] agent".
/add-mcpAdd a new MCP server to .mcp.json. Quick operation, no full interview needed. Trigger phrases: "add MCP", "connect to [service]", "configure [service] MCP".
npx claudepluginhub shipwithai/shipwithai-plugins --plugin shipwithai-starterOther plugins' commands for the same job