share-react

Converts a React component into a social media card with preview, code, and props table.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/shawn-sandy/agentics-kit --skill share-react-shawn-sandy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: share-react
Source: https://github.com/shawn-sandy/agentics-kit/tree/main/kit/plugins/social-media-tools/skills/share-react
Command: npx skills add https://github.com/shawn-sandy/agentics-kit --skill share-react-shawn-sandy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Sharing a React component on social media normally requires manually writing platform-specific copy, building a visual preview, and formatting a props reference. This Skill automates that entire pipeline from a single component file, selection, or pasted code. ## Core Features & Use Cases - Component Capture: Accepts a .tsx/.jsx file path, an IDE selection, or pasted code, and derives the component name, framework badge, and source path automatically. - Static Preview Card: Hand-builds a safe static HTML/CSS approximation of the rendered component (up to 3 prop-driven states) without executing any user code, then screenshots it via Playwright. - Props Table Extraction: Generates a full props table from TypeScript interfaces, inline types, React.FC generics, or propTypes, with an inference fallback for untyped JSX. - Security Gate: Runs a security-scrub check on component source before publishing and stops on any blocked or unrecognized gate result. - Use Case: Point the Skill at Button.tsx and receive platform-aware social copy plus a dark-mode PNG card showing the preview, source code, and props table, saved to docs/media/social/. ## Quick Start Share the React component at src/components/Button.tsx as a social card for Twitter.

Frequently Asked Questions about share-react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share a React component as a social media card?▼

Provide a .tsx or .jsx file path, an IDE selection, or pasted code, and the Skill builds a dark-mode card with a static preview, the component source, and a props table. It then drafts platform-aware copy and screenshots the card via Playwright.

How are React props extracted for the props table?▼

Props are read from TypeScript interfaces, type aliases, inline signature annotations, React.FC generics, or propTypes, in that priority order. For untyped JSX, types are inferred from destructured props and usage, with required cells marked as undetermined.

Does the skill execute my React component code?▼

No. The preview is a hand-built static HTML/CSS approximation authored from the component's structure, with no bundler, no React runtime, and no execution of user code. User source is only displayed as escaped text.

Can I share a component that is not a standalone React component?▼

Files like tests, Storybook stories, hooks-only modules, or JSX fragments are handed off to the share-selection skill, which produces a generic snippet card instead. The Skill tells you what was captured before handing off.

What happens if the component source contains secrets?▼

The source is written to a temp file and scanned by the security-scrub skill before publishing. If the gate returns BLOCKED, CANCELLED, or an unrecognized result, the workflow stops immediately and nothing is rendered or shared.