Trigger Build Resolver

PostToolUse hook to trigger build/resolution steps

ClaudeSmith
Updated 11/22/2025
v1.0.0
GitHub
hooks
build
automation

Files

Toggle any file to view its contents.

.claude-plugin
hooks
scripts
README.md
# Build Resolver Trigger Hook

Triggers build processes and resolves build configurations automatically when file changes are detected.

## Description

This hook monitors file changes and automatically triggers appropriate build processes, helping keep your project in a ready-to-run state.

## Installation

1. Copy the hook script to your `.claude/hooks/` directory:
```bash
cp trigger-build-resolver.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/trigger-build-resolver.sh
```

2. Add the hook configuration to your Claude Code settings file (`.claude/settings.json` or `~/.claude/settings.json`):
```json
{
  "hooks": {
    "PostToolUse": [
      {
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/trigger-build-resolver.sh"
          }
        ]
      }
    ]
  }
}
```

## Requirements

- Claude Code
- Build tools configured in your project (npm, webpack, etc.)

## Version

1.0.0

## License

MIT

Installation

Project Level (Recommended)

1

Create the .claude directory at your project root

mkdir -p .claude
2

Create settings.json

touch .claude/settings.json
3

Add to .claude/settings.json

{
  "marketplaces": [
    "https://github.com/JNLei/claude-tools.git"
  ],
  "plugins": [
    "trigger-build-resolver@claude-tools"
  ]
}

Global Level

1

Open Claude

2

Add or update marketplace

/plugin marketplace add JNLei/claude-tools
Or if already added:
/plugin marketplace update claude-tools
3

Install plugin

/plugin install trigger-build-resolver@claude-tools