---
name: investigating-production-issues-via-safe-read-only
description: "Investigates production incidents by inspecting server logs, processes, and configuration files and running read-only database queries, then presents findings and suggested fixes. Use when a system error or infrastructure incident needs diagnosis."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Database, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-11-13"
  source: "https://botbento.com/usecases/investigating-production-issues-via-safe-read-only/"
  kind: skill
  hermes:
    tags: ["devops", "troubleshooting", "logs", "database", "infrastructure"]
    category: ops
    requires_toolsets: ["terminal"]
---
# Troubleshooting production servers with read-only commands

Inspect logs and run safe queries, pausing for approval before changes

## When to use

Investigate server incidents and system errors by examining remote machine state. The bot inspects server logs, processes, and configuration files via constrained command-line execution and queries databases for status checks, pausing for explicit operator permission before any modifying or destructive action is considered.

## Inputs

- `incident_report`: Description of the production error or system incident to investigate.
- `target_host`: Server or environment to inspect for logs and process state.
- `log_path_or_service` (optional): Log file path or service name to examine during diagnosis.
- `database_check` (optional): Read-only status query or database check to run for diagnostics.

## Steps

1. When you ask: Receive incident report (A person reports a production incident or system error in chat)
2. Run read-only inspection commands
3. Present findings and suggested fixes

## Instructions

Connect to the host environment using restricted, read-only credentials. When diagnosing errors, use safe inspection commands such as grep, tail, and SELECT queries to gather diagnostic context. Never execute modifying, write, or delete commands (such as rm, kill, drop, or update) autonomously; present the proposed command and reason to the operator and wait for explicit approval before running any non-read-only operation.

## Approvals

- Running any modifying, write, or delete command after presenting the proposed command and reason to the operator.
- Executing any non-read-only database operation, including update or drop statements.

## Output

Diagnostic findings from read-only inspection with suggested fixes and any commands awaiting approval. (format: chat_message)

## Source

Summarized in our own words from [Ask HN: How do you safely give LLMs SSH/DB access?](https://news.ycombinator.com/item?id=46620990) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/investigating-production-issues-via-safe-read-only/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
