Stop writing reusable Compose components that take `title: String, subtitle: String?, leadingIcon: ImageVector?, showSwitch: Boolean`. The moment you enumerate content shapes as primitives, the next caller needs a parameter you don't have. This skill teaches the slot API pattern: replace primitive content parameters with composable lambda slots, let the component own layout structure while callers own what goes in each region. It's how Material 3's ListItem handles every list shape without ever growing new parameters. Covers when to use receiver scopes, nullable versus empty defaults, and the XxxDefaults pattern for common slot content. If your component has more than one call site and boolean flags that toggle content modes, you need this.
npx -y skills add chrisbanes/skills --skill compose-slot-api-pattern --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
prisma/skills
firebase/agent-skills
wordpress/agent-skills
Dexploarer/hyper-forge
prisma/skills