One command to add a complete Linear feedback system to any Next.js project.
curl -fsSL https://raw.githubusercontent.com/agentik-os/linear-feedback-setup/main/install.sh | bashOpen Claude Code in any Next.js project and run:
/linear-setup
That's it. Claude handles everything:
- Asks for your Linear API key
- Connects to Linear, finds/creates team + project + labels
- Installs dependencies (
@linear/sdk,html2canvas-pro,@anthropic-ai/sdk,sonner) - Creates the feedback widget component
- Creates API routes (authenticated + public)
- Configures MCP + Vercel env vars
- Element targeting — click Feedback button, crosshair appears, click any element
- Dual screenshots — global page (JPEG 0.6, max 1MB) + targeted element (JPEG 0.7, max 500KB)
- Console error capture — last 10
console.errorcalls attached automatically - AI description improvement — "Improve with AI" button rewrites feedback for clarity
- Auto-improve on submit — if user didn't manually improve, auto-runs before submit
- Collapsible sections — screenshots and element info tucked away, expandable
- Fullscreen preview — click any screenshot to view full-size
- User Agent + URL — sent with every submission
- Floating pill — bottom-left corner, same targeting flow
- Honeypot anti-spam — hidden input field, bots get fake success
- IP tracking — logged for abuse prevention
- No auth required — works for anonymous visitors
- Issues created with proper labels (
Bug,Feature,Improvement) - Source labels (
Source: User FeedbackvsSource: Public Feedback) - Screenshots uploaded via
linear.fileUpload()as separate comments - Priority mapping (bugs = high, features = normal, questions = low)
User submits feedback
→ Issue created in Backlog
→ AI agent works on it → moves to In Progress
→ Fix complete → moves to Review
→ Human validates → marks Done
| Command | What it does |
|---|---|
/linear-setup |
Full setup (all phases) |
/linear-setup widget |
Only the feedback widget component |
/linear-setup api |
Only the API routes |
/linear-setup public |
Only the public feedback button + route |
/linear-setup mcp |
Only MCP configuration |
- Claude Code (CLI)
- Next.js project with App Router
- shadcn/ui (Dialog, Button, Textarea, Badge components)
- Linear account with API key
The setup auto-detects your auth provider:
- Clerk (
@clerk/nextjs) - Better Auth (
better-auth) - Auth.js (
next-auth) - None (public-only mode)
| Stack | Supported |
|---|---|
| Next.js (App Router) | Yes |
| Clerk | Yes |
| Better Auth | Yes |
| Convex | Yes |
| Supabase | Yes |
| Prisma | Yes |
| Vercel | Yes (auto-configures env vars) |
Re-run the install script:
curl -fsSL https://raw.githubusercontent.com/agentik-os/linear-feedback-setup/main/install.sh | bashMIT
Built by Agentik OS