skills/react-component/SKILL.md
Use when writing or editing a React component. Covers preferred patterns for functional components, prop types, and styling.
npx skillsauth add LandonSchropp/agent-toolkit react-componentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
export function ComponentName (named export, not default, not arrow)type ComponentNameProps = { ... }clsx only when combining dynamic classesimport clsx from "clsx";
type UserAvatarProps = {
/** The URL of the user's avatar image. */
imageUrl: string;
/** The user's full name, used as the alt text. */
name: string;
/** The size of the avatar. */
size?: "small" | "medium" | "large";
};
export function UserAvatar({ imageUrl, name, size = "medium" }: UserAvatarProps) {
return (
<img
src={imageUrl}
alt={name}
className={clsx(
"rounded-full",
size === "small" && "h-8 w-8",
size === "medium" && "h-12 w-12",
size === "large" && "h-16 w-16",
)}
/>
);
}
tools
Use when working with a stack of GitHub pull requests — creating branches, keeping the stack in sync, or merging in order. Covers Git Town setup, PR targeting, rebasing, and landing the stack.
tools
Use when writing or modifying tests in a Bun project
tools
Use when publishing or releasing a new version of an npm/pnpm/yarn/bun package to the registry. Covers package-manager detection, semver bump selection, tagging, pushing, scoped-package access, authentication, and one-time passwords (OTP).
tools
Use when a finished worktree's branch has been reviewed and committed and needs to land. Rebases onto the latest default branch, then either fast-forwards it into the default branch (personal direct-to-main repos) or pushes it for a pull request (shared feature-branch repos).