Build Prod banner
olegiv olegiv

Build Prod

Development community

Description

Build optimized production binary for the current platform. Execute the following steps: 1. Build production-optimized binary: ```bash make build-prod ``` 2. Verify the build: - Check bin/logwatch-analyzer exists - Report binary size (should be 30-40% smaller than dev build) - Show optimization flags used 3. Compare to development build if it exists: ```bash ls -lh bin/logwatch-analyzer* ``` 4. Explain the optimizations: - `-ldflags="-s -w"`: Strip symbols and

Installation

Installs to ~/.claude/commands/olegiv-logwatch-ai-go-build-prod.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/olegiv/logwatch-ai-go/HEAD/.claude/commands/build-prod.md -o ~/.claude/commands/olegiv-logwatch-ai-go-build-prod.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository