Loading...
Loading...
Add an in-app feedback and bug-report loop that captures a screenshot plus network/console logs, emails the reporter, launches a Cursor Cloud Agent with autoCreatePr, and emails again when the PR opens and when it merges. Use when asked to add feedback, bug reporting, user reports that open PRs, Cursor automation for feedback, or a feedback-to-PR workflow.
npx skill4agent add benlaval23/feedback-to-pr feedback-to-prPOST /api/feedbackautoCreatePr: truepr_openmergedsubmitted → agent_running → pr_open → mergedfailed| Piece | Role |
|---|---|
| Shared types | |
| Network recorder | Patch |
| Screenshot | DOM capture (e.g. |
| Widget | Client provider + dialog; snapshot page on open; |
| Submit route | Auth required; Zod-validate body; rate-limit (~5/hr); persist row; emit job event |
| Feedback table | message, pageUrl, userAgent, screenshot (+ dims), networkLogs, consoleLogs, cursorAgentId, branchName, prUrl, status |
| Job | (1) confirmation email, (2) create Cursor agent with prompt + screenshot, (3) store agent id → |
| Cursor client | |
| Cursor webhook | Verify HMAC over raw body; on |
| GitHub webhook | |
| HMAC helper | SHA-256 hex, optional |
apps/web| Var | Notes |
|---|---|
| Cursor Dashboard → API Keys |
| |
| |
| invent it; same value in the GitHub webhook form |
| verified domain |
| public tunnel in dev; falls back to app public URL in prod |
App public URL (e.g. | browser-facing origin — not the tunnel |
GET https://api.cursor.com/v0/repositories${WEBHOOK_PUBLIC_URL}/api/webhooks/githubGITHUB_WEBHOOK_SECRETWEBHOOK_PUBLIC_URLWEBHOOK_PUBLIC_URL{ feedbackId }await req.text()WHERE status IN (...)FINISHEDprUrlfailedagent_runningpr_openmergedreferences/architecture.md