{
  "id": "uc_6c4896cdf012",
  "slug": "bug-reports-to-prs",
  "asset_type": "use_case",
  "name": "Customer Bug Report to Failing Test & Verified Fix PR Pipeline",
  "tagline": "Watches the `#bug-reports` Slack channel, correlates stack traces in Sentry, writes a failing regression test, and opens a verified GitHub fix PR.",
  "description_md": "### 1. The Workflow Bottleneck & Problem Statement\nEngineers lose flow state every time a minor UI or API bug report drops into Slack and requires context-switching to locate the offending file.\n\n### 2. Synthesized Agent Architecture & Connected Stack\n**Customer Bug Report to Failing Test & Verified Fix PR Pipeline** (`bug-reports-to-prs`) is a verified production blueprint curated from **@danpeguine**'s real-world implementation.\n\n- **Primary Capability:** Watches the `#bug-reports` Slack channel, correlates stack traces in Sentry, writes a failing regression test, and opens a verified GitHub fix PR.\n- **Connected Tool Stack:** Slack MCP, Sentry MCP, GitHub MCP, Playwright MCP\n- **Execution Governance:** `Read-Only Discovery` → `Deterministic Policy Check` → `Ask-First Human Approval`\n- **Certified Builder Source:** [@danpeguine](https://x.com/danpeguine/status/2044432954790051962)\n\n### 3. Step-by-Step Implementation Blueprint\n1. **Trigger & Data Ingestion:** Configure your agent routine to watch **Slack MCP** on a scheduled cadence or event webhook. Treat all external text as untrusted data inside XML fences.\n2. **Cross-System Enrichment & Verification:** Query **Sentry MCP** to validate live capacity, account status, or code state before generating recommendations.\n3. **Human-in-the-Loop Action Staging:** Post a structured summary card to **Playwright MCP** with 1-click approve/edit controls so your team retains full oversight.\n\n### 4. Copy-Paste System Prompt & Routine Configuration\n```text\nImplement the 'Customer Bug Report to Failing Test & Verified Fix PR Pipeline' workflow curated with @danpeguine.\n\n1. OBJECTIVE:\nWatches the `#bug-reports` Slack channel, correlates stack traces in Sentry, writes a failing regression test, and opens a verified GitHub fix PR.\n\n2. CONNECTED TOOL STACK:\nSlack MCP, Sentry MCP, GitHub MCP, Playwright MCP\n\n3. STEP-BY-STEP EXECUTION LOOP:\n- Step A (Ingest & Ground): Query live inputs from Slack MCP and cross-reference state in Sentry MCP.\n- Step B (Analyze & Validate): Apply strict filtering rules, verify schema/policy constraints, and flag any anomalies or missing fields.\n- Step C (Stage & Report): Prepare the structured output, draft replies/tickets in Playwright MCP, and request human confirmation before executing any external send or production write.\n```\n\n### 5. Measured ROI & Production Impact\n- **Verified Outcome:** Turns routine customer bug reports into tested, review-ready GitHub Pull Requests in under 8 minutes.\n- **Builder Portfolio:** [Explore all capabilities by @danpeguine →](/u/danpeguine)\n",
  "primary_category": "engineering",
  "categories_json": "[\"engineering\", \"use-cases\"]",
  "tags_json": "[\"bug-reports-to-prs\", \"use-case\", \"engineering\", \"danpeguine\", \"slack-mcp\", \"sentry-mcp\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"Slack MCP\", \"Sentry MCP\", \"GitHub MCP\", \"Playwright MCP\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @danpeguine.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate inspect bug-reports-to-prs",
  "skill_markdown": "",
  "starter_prompt": "Implement the 'Customer Bug Report to Failing Test & Verified Fix PR Pipeline' workflow curated with @danpeguine.\n\n1. OBJECTIVE:\nWatches the `#bug-reports` Slack channel, correlates stack traces in Sentry, writes a failing regression test, and opens a verified GitHub fix PR.\n\n2. CONNECTED TOOL STACK:\nSlack MCP, Sentry MCP, GitHub MCP, Playwright MCP\n\n3. STEP-BY-STEP EXECUTION LOOP:\n- Step A (Ingest & Ground): Query live inputs from Slack MCP and cross-reference state in Sentry MCP.\n- Step B (Analyze & Validate): Apply strict filtering rules, verify schema/policy constraints, and flag any anomalies or missing fields.\n- Step C (Stage & Report): Prepare the structured output, draft replies/tickets in Playwright MCP, and request human confirmation before executing any external send or production write.",
  "project_url": "https://x.com/danpeguine/status/2044432954790051962",
  "repo_url": "",
  "creator_handle": "danpeguine",
  "creator_name": "Dan Peguine (@danpeguine)",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/danpeguine",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://x.com/danpeguine/status/2044432954790051962",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 426,
  "x_bookmarks": 926,
  "x_retweets": 231,
  "x_views": 5964,
  "human_upvotes": 426,
  "human_installs": 426,
  "bot_pulls": 926,
  "pulse_score": 93,
  "gravity_rank_score": 3370.5,
  "is_featured": 1,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T20:00:00Z",
  "updated_at": "2026-10-24T20:00:00Z",
  "verified_at": null,
  "primitive": "use_case",
  "title": "Customer Bug Report to Failing Test & Verified Fix PR Pipeline",
  "description": "Watches the `#bug-reports` Slack channel, correlates stack traces in Sentry, writes a failing regression test, and opens a verified GitHub fix PR.",
  "category": "engineering",
  "tags": "[\"bug-reports-to-prs\", \"use-case\", \"engineering\", \"danpeguine\", \"slack-mcp\", \"sentry-mcp\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "danpeguine",
  "author_name": "Dan Peguine (@danpeguine)",
  "author_avatar": null,
  "source_tweet_url": "https://x.com/danpeguine/status/2044432954790051962",
  "github_url": "",
  "external_url": "https://x.com/danpeguine/status/2044432954790051962",
  "upvotes_count": 426,
  "installs_count": 426
}