/logbrew:instrument-appfrom logbrew
Adds LogBrew error tracking, logging, and tracing to an app. Detects the framework, installs the correct SDK, configures the project, and verifies event delivery.
Ships in logbrew. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An accepted send is not proof. Step 6 reads the test event back from LogBrew.
browser, never a server
key or a read key.Some steps create, install, record, or change something. Those steps say Ask first. Before you do such a step, show the person the exact command or change, with every value filled in. Then wait for their yes. The request that started the task is not a yes. Without a yes, skip the step and say so in the report.
Find the runtime, framework, package manager, and entry point. Find the existing logger and error handler. Find where the deployment sets its version and environment.
Run this from the project root. It changes no files.
logbrew setup --json
Read detected (manifest, runtime, package manager). When install_plan
is not null, note install_plan.install_command for step 4, check each
item in install_plan.compatibility, and read install_plan.surfaces for
the key kind that each surface needs.
If the logbrew CLI is not installed, ask the person to install it. The
CLI guide lists the
install methods. When install_plan is null or the CLI is not installed,
select the package from references/frameworks.md.
logbrew status --json
If it reports no authentication, ask a person to run logbrew login once,
then continue. Then create a project, or a key for an existing project. The
CLI writes the key to a new owner-only file and never prints it.
Pick 1 of the 2 logbrew commands below: projects create for a new
project, or projects keys create for an existing one.
Ask first. Show the install command and the logbrew command that
you picked, with the name, runtime, and file path filled in.
install -d -m 700 "$HOME/.logbrew"
logbrew projects create "$APP_NAME" --runtime "$RUNTIME" --environment development --ingest-key-file "$HOME/.logbrew/$APP_NAME.ingest" --json
logbrew projects keys create "$PROJECT_ID" --kind server --label "$APP_NAME server" --ingest-key-file "$HOME/.logbrew/$APP_NAME.ingest" --json
Run only the command that you picked. Read project.id from the
result. The destination file must not exist. If the result is unclear, run
the same command again; the CLI reuses its pending request.
Ask first. Show the install command from step 2 and the change to each file. Run or change nothing before the person says yes.
LOGBREW_SERVER_API_KEY. Do not write it in source files.LOGBREW_SERVICE_NAME, LOGBREW_ENVIRONMENT, and LOGBREW_RELEASE. Take
the release from the deployment, such as [email protected] or a commit
SHA. Do not use latest, a branch name, or an empty value.Ask first. Say which route you will request, which message you will log, and whether you will trigger a test error.
Send the event through the real code path. Request a route that the app
already has, or log 1 info message with a unique marker, such as
setup check and the current UTC time. Keep it at info; do not make a fake
error to find it more easily. To test error capture too, trigger 1 handled
test error.
The SDK or the app reports a 2xx status. This shows only that LogBrew
accepted the request. Continue.
logbrew read logs --project "$PROJECT_ID" --search "$MARKER" --since 1h --json
logbrew read issues --project "$PROJECT_ID" --since 1h --json
With a project read key instead of account access, use it only when
LOGBREW_TOKEN already holds it, and leave out --project. Never write the
key value in a command. With the MCP server, use logs.list.v1
with project_id, search, and since.
Check that the event has the expected service, environment, and release. If the list is empty:
unauthenticated means the ingest key is
wrong; a new CLI login does not fix it.Do not report success until the read-back shows the event.
Tell the person:
LOGBREW_SERVER_API_KEY, LOGBREW_SERVICE_NAME,
LOGBREW_ENVIRONMENT, LOGBREW_RELEASE, or the names that the SDK uses);What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
logbrew, error-tracking, observability, apm, structured-logging
Other plugins' skills for the same job
4 skills in this plugin
/debug-productionFinds why production broke in an app that sends errors to LogBrew and fixes the bug. Reads the error, stack trace, logs, and trace in LogBrew, names the cause and the affected release, proposes the smallest fix, and checks after the deploy whether the error comes back. Use when someone asks why something broke in production, why checkout or login fails, what a production error or stack trace means, or to debug a production crash, exception, 500 error, or error spike. Works with the LogBrew MCP server or the logbrew CLI, or from a pasted stack trace and logs of the production failure. To decide whether to keep or roll back a release, use verify-release instead./product-analyticsAnswers questions about how people use a product from LogBrew product analytics, with the numbers and example sessions behind each answer. Shows where users come from, where they drop off in a conversion funnel, which page they open next, and whether they come back. Use when someone asks about signups, conversion, funnels, drop-off, user journeys, retention, churn, returning users, traffic sources, UTM tags, referrers, or what users do on a page, for an app that sends events to LogBrew, or asks to read LogBrew analytics. Not for analytics in other tools. Works through the logbrew CLI or MCP server.npx claudepluginhub logbrewco/observability --plugin logbrew