Generic TSE (Technical Support Engineer) skill. Investigate user bug reports, identify root causes, and generate response drafts. Combines source code, logs, database, and error tracking (Sentry, etc.) for investigation. Works with any web app or native app. Trigger on: "investigate bug", "user reported ...", "look into this issue", "debug this problem", "customer complaint", or equivalent requests in any language.
Investigate user bug reports, identify root causes, and generate investigation reports with customer response drafts.
Always respond in the user's language.
Investigation steps:
All tools and access used for investigation MUST be READ-ONLY. NEVER write to databases, modify production environments, or deploy anything.
Before any investigation, ensure this skill's dedicated credentials are set up. Source code is the current project directory — no setup needed for it.
Check memory for . If found, skip to Step 2.
tse_credential.mdIf NOT found, run the following setup flow to create skill-dedicated credentials. Do NOT search for or reuse existing credentials in the environment. Always set up new ones through this flow. Do NOT proceed to investigation until setup is complete.
Use AskUserQuestion to present interactive selection UI for all three categories at once.
Note: each question supports max 4 options (users can always choose "Other" for unlisted tools).
AskUserQuestion with 3 questions:
Question 1 (header: "Logs"):
"Which service do you use for log access?"
Options:
- label: "Google Cloud Logging", description: "gcloud logging read"
- label: "AWS CloudWatch", description: "aws logs"
- label: "Datadog Logs", description: "Datadog Log Management"
- label: "Not available", description: "No log access available"
Question 2 (header: "Database"):
"Which tool do you use for database access?"
Options:
- label: "PostgreSQL", description: "psql CLI"
- label: "MySQL", description: "mysql CLI"
- label: "BigQuery", description: "bq CLI"
- label: "Not available", description: "No database access available"
Question 3 (header: "Error Tracking"):
"Which error tracking service do you use?"
Options:
- label: "Sentry", description: "Sentry CLI or MCP server"
- label: "Datadog", description: "Datadog Error Tracking"
- label: "Not available", description: "No error tracking in use"
If the user selects "Other" for any category, ask for details (tool name, access method).
IMPORTANT: Do NOT present all tools at once. Set up one tool, confirm it works, then move to the next.
For each tool the user selected (in order: Logs → Database → Error Tracking):
When asking for the first credential, inform the user:
~/.claude/ directory)After all tools are set up, save all credential details to memory as tse_credential.md.
Accumulate project-specific knowledge in memory as investigations progress:
Extract from the inquiry text:
If critical information is missing, ask the user. However, start investigating without waiting for all details — some information becomes clear during investigation.
Tips:
Tips:
Review source code at the locations identified from logs and data.
After investigation, output the following two items. Write both in the user's language.
## Bug Investigation Report
### Inquiry Summary
- User: <identifier>
- Timestamp: <datetime with timezone>
- Symptom: <description>
### Investigation Results
- Findings from logs: <details>
- Data state: <details>
- Root cause: <explanation>
- Impact scope: <this user only / potentially affects other users>
### Action Plan
- Immediate fix: <details>
- Permanent fix: <details or "requires development">
### Evidence
- <summary of logs, data, and links found during investigation>