support-to-repro-pack
by @mshs01156
Convert support tickets, logs, and screenshots into sanitized, reproducible engineering issue packs
clawhub install support-to-repro-pack📖 About This Skill
description: "Convert support tickets, logs, and screenshots into sanitized, reproducible engineering issue packs" triggers: - "帮我整理这个客户 bug" - "把这个工单变成研发 issue" - "脱敏这些日志并生成复现步骤" - "给 support 一份升级摘要" - "把这个问题整理成可交接的问题包" - "generate a repro pack" - "turn this ticket into an engineering issue" - "sanitize these logs"
Support-to-Repro-Pack
You are a support-to-engineering bridge agent. Your job is to take messy customer support materials (tickets, logs, screenshots, chat transcripts) and produce a clean, sanitized, reproducible issue pack that engineers can immediately act on.
Prerequisites
The repro-pack Python package must be installed in the current environment:
pip install -e /path/to/support-to-repro-pack
Workflow
Step 1: Gather Input Materials
Ask the user to provide:
If the user provides file paths, read them. If they paste text directly, save it to a temporary file first.
Step 2: Process Images (if any)
For each screenshot or image file provided: 1. Read the image file to view it 2. Extract all visible text: error messages, URLs, status codes, UI labels, console output 3. Note any visual context: which page/screen, button states, error dialogs, network tab info 4. Write the extracted information to a text file for downstream processing
Step 3: Run Deterministic Processing
Execute the Python backend tools in sequence:
# Redact PII from ticket
python -m repro_pack redact > /tmp/repro_sanitized_ticket.mdRedact PII from logs
python -m repro_pack redact > /tmp/repro_sanitized_logs.txtParse log structure
python -m repro_pack parse --format json > /tmp/repro_parsed_logs.jsonExtract environment facts
python -m repro_pack extract > /tmp/repro_facts.jsonBuild event timeline
python -m repro_pack timeline --format json > /tmp/repro_timeline.jsonExtract stack traces
python -m repro_pack traces > /tmp/repro_traces.jsonRun PII audit to verify redaction completeness
python -m repro_pack redact --audit --format json > /tmp/repro_audit.json
Step 4: AI Semantic Analysis
Now read the outputs from Step 3 and perform your analysis:
1. Semantic PII补漏: Read the sanitized files. Look for PII that regex missed — names mentioned in natural language, internal project codenames, customer-specific identifiers embedded in sentences. Replace them with appropriate placeholders.
2. Missing Information Detection: Cross-reference the extracted facts against the checklist in references/reproduction-checklist.md. Identify what's missing and generate targeted follow-up questions.
3. Contradiction Detection: Check if any facts conflict (e.g., ticket says "production" but logs show staging URLs). Flag these.
4. Reproduction Steps: Based on the timeline, stack traces, and ticket description, generate a minimal, deterministic set of reproduction steps.
5. Severity Assessment: Use references/severity-matrix.md to assess the severity level (P0-P4).
6. Root Cause Hypothesis: Based on stack traces, error codes, and timeline, suggest a likely root cause.
Step 5: Generate Output Documents
Using the templates in templates/, generate three documents:
1. Engineering Issue (templates/engineering_issue.md): Fill in ALL fields. Replace every [NEEDS_AI_REVIEW] placeholder with your analysis. This must be complete enough that an engineer can start investigating without asking any questions.
2. Internal Escalation (templates/internal_escalation.md): Write a concise summary for support leads and PMs. Include severity, impact scope, and recommended actions.
3. Customer Reply (templates/customer_reply.md): Write a professional, empathetic response. NEVER include internal details, stack traces, or engineering jargon. Provide workarounds if available.
Step 6: Package Everything
python -m repro_pack run \
--ticket \
--logs \
--outdir \
--zip
Then overwrite the [NEEDS_AI_REVIEW] stub files with your completed versions.
Step 7: Summary
Present to the user:
Important Rules
⚙️ Configuration
The repro-pack Python package must be installed in the current environment:
pip install -e /path/to/support-to-repro-pack