Skip to content
f avatar

Widget Generator

Scaffolds sponsor and promotional widget plugins for the prompts.chat feed with standard or custom React rendering.

CCM score
71 of 100
skills.sh installs
322
GitHub stars
178.8K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full widget workflow: gather configuration, create the widget file, register it, and add sponsor assets
  • Includes configuration schemas for basic info, content, categorization, action buttons, sponsors, positioning, and injection logic
  • Provides positioning modes (once and repeat) and shouldInject examples keyed to feed filters such as search query, category, and item count
  • Designed for developers adding sponsored or custom interactive cards to the prompts.chat feed system

Install

$ npx -y skills add f/prompts.chat --skill widget-generator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Widget Generator Skill

This skill guides creation of widget plugins for prompts.chat. Widgets are injected into prompt feeds to display promotional content, sponsor cards, or custom interactive components.

Overview

Widgets support two rendering modes:

  1. Standard prompt widget - Uses default PromptCard styling (like coderabbit.ts)
  2. Custom render widget - Full custom React component (like book.tsx)

Prerequisites

Before creating a widget, gather from the user:

ParameterRequiredDescription
Widget ID✅Unique identifier (kebab-case, e.g., my-sponsor)
Widget Name✅Display name for the plugin
Rendering Mode✅standard or custom
Sponsor Info❌Name, logo, logoDark, URL (for sponsored widgets)

Step 1: Gather Widget Configuration

Ask the user for the following configuration options:

Basic Info

- id: string (unique, kebab-case)
- name: string (display name)
- slug: string (URL-friendly identifier)
- title: string (card title)
- description: string (card description)

Details

Repository
github.com/f/prompts.chat
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the widget-generator skill do?

The widget-generator skill guides an agent through creating widget plugins for the prompts.chat feed system. Widgets are injected into prompt feeds to show promotional content, sponsor cards, or custom interactive components.

How do I install the widget-generator skill?

Run npx -y skills add f/prompts.chat --skill widget-generator -y in your project to install it. Once installed, the agent can walk you through creating a standard prompt widget or a custom React render widget.

Which widget rendering modes does the skill support?

The skill supports two modes: a standard prompt widget that uses the default PromptCard styling, and a custom render widget that is a full React component. You choose the mode in the configuration step, and the skill then writes the matching widget file.

What inputs does the skill ask for when generating a widget?

The skill asks for a widget ID, a display name and a rendering mode, which are required. It also collects optional sponsor details such as name, logo and URL, along with positioning rules and an injection condition that decides when the widget appears in the feed.

Where does the widget-generator skill sit in its category?

The skill is listed in Frontend and UI Code on Claude Marketplaces, alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. It stands apart by focusing on building plugin widgets for the prompts.chat feed rather than general interface guidance.

More from f/prompts.chat

All 4

Similar to Widget Generator

More Frontend & UI Code