the-controller-feedback-widget

the-controller-feedback-widget is a skill for Claude Code from kwannoel/the-controller. It costs 40 tokens per session (7,275 once invoked), scanned A, original, MIT.

A setup process for adding an in-app feedback button to a Next.js application. Users can capture a screenshot, draw annotations such as arrows or rectangles, crop it, and submit the report as a GitHub issue.

In plain words
What is it for?
Use it to add screenshot-based bug reporting to a Next.js App Router project that uses shadcn/ui and lucide-react.
Why use it?
It gives users a way to report a visual problem with the relevant screen included, instead of describing it separately or leaving the application.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to add screenshot-based bug reporting to a Next.js App Router project that uses shadcn/ui and lucide-react.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kwannoel/the-controller/the-controller-feedback-widget
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kwannoel/the-controller --skill the-controller-feedback-widget
Clone the repo
git clone --depth 1 https://github.com/kwannoel/the-controller

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for the-controller-feedback-widget

README.md
[![agentmods](https://agentmods.dev/badge/skills/kwannoel/the-controller/the-controller-feedback-widget/github.svg)](https://agentmods.dev/skills/kwannoel/the-controller/the-controller-feedback-widget)
Your own site
<a href="https://agentmods.dev/skills/kwannoel/the-controller/the-controller-feedback-widget"><img src="https://agentmods.dev/badge/skills/kwannoel/the-controller/the-controller-feedback-widget/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for the-controller-feedback-widget

Your own site · 80×15
<a href="https://agentmods.dev/skills/kwannoel/the-controller/the-controller-feedback-widget"><img src="https://agentmods.dev/badge/skills/kwannoel/the-controller/the-controller-feedback-widget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,275 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.07275
Opus 5.5 $0.00016 $0.02910
Sonnet 5.5 $0.00008 $0.01455
Haiku 4.5 $0.00004 $0.00728

Measured 1mo ago against content hash 91f89f21e65c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

the-controller-feedback-widget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/the-controller-feedback-widget/SKILL.md · 944 lines

How it starts

The opening of the file, as written. The whole thing — 944 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Feedback Widget

Set up a floating feedback button that lets users capture a screenshot, annotate it (freehand draw, arrows, rectangles, crop), and submit it as a GitHub issue — all without leaving the app.

Prerequisites

  • Next.js App Router project (13+)
  • shadcn/ui installed (Button, Sheet components)
  • lucide-react installed

Setup Steps

1. Understand the target project

Before writing any code, determine:

  • Auth system: How does the project authenticate users? (Supabase, NextAuth, Clerk, custom JWT, none)
  • UI components path: Where are shadcn components? (usually src/components/ui/ or components/ui/)
  • App metadata: What project-specific context should be captured with feedback? (current page URL is always captured; additional context like selected items, user settings, etc. is project-specific)

2. Install dependencies

npm install html2canvas-pro
# or: pnpm add html2canvas-pro / bun add html2canvas-pro

Ensure these shadcn components are installed:

npx shadcn@latest add button sheet

3. Create the AnnotationEditor component

Create annotation-editor.tsx in the project's component directory.

This component is fully portable — copy it verbatim from ## AnnotationEditor Reference below. It has no project-specific dependencies beyond shadcn Button and lucide icons.

Key features:

  • Dual-canvas architecture (base image + draw overlay) for efficient rendering
  • Tools: freehand draw, arrow, rectangle, crop
  • Undo/clear via ImageData history stack
  • Retina display support via devicePixelRatio
  • Outputs a single composited PNG data URL on "Done"

4. Create the FeedbackButton component

Create feedback-button.tsx in the project's component directory. This needs project-specific adaptation:

Auth gating: Replace the auth check with the project's auth system:

// Supabase example
const supabase = createClient();
const { data: { user } } = await supabase.auth.getUser();
setIsAuthenticated(!!user);

// NextAuth example
const { data: session } = useSession();
setIsAuthenticated(!!session);

// Clerk example
const { isSignedIn } = useUser();
setIsAuthenticated(isSignedIn ?? false);

// No auth (always show)
setIsAuthenticated(true);

Read the full file on GitHub · 944 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 944 lines · 40 tokens per session scan A 91f89f21e65c

Subscribe to this mod's changes

the-controller-feedback-widget is a skill published in the GitHub repository kwannoel/the-controller (13 stars, last pushed 6mo ago), licensed MIT. It adds 40 tokens to every session and 7,275 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

the-controller-feedback-widget compared with skills from other repositories

the-controller-feedback-widget next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
the-controller-feedback-widgetkwannoel/the-controllerSkill136mo agoMITA40Claude Code
imagegenopenai/codexSkill135ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill316k8d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code