Data Provider
Teaches the data provider pattern using renderless components and scoped slots. Use when you need to abstract data fetching or state management logic and expose it to child components via slots.
Install
npx skills add PatternsDev/skills --skill data-providergit clone --depth 1 https://github.com/PatternsDev/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/vue/data-provider ~/.claude/skills/data-providerPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Data Provider Pattern ## Table of Contents - [When to Use](#when-to-use) - [When NOT to Use](#when-not-to-use) - [Instructions](#instructions) - [Details](#details) - [Source](#source) In a previous article, we've come to learn how renderless components help separate the logic of a component from its presentation. This becomes useful when we need to create reusable logic that can be applied to different UI implementations. Renderless components also allow us to leverage another helpful pattern known as the **data provider pattern**. ## When to Use - Use this when multiple components need to consume the same data but display it differently - This is helpful for centralizing data-fetching logic without coupling it to specific UI components ## When NOT to Use - When composables can handle the data logic without the extra component layer (Vue 3+) - When only one component consumes the data — a composable or inline fetch is simpler - When the data-provider nesting adds indirection that makes the template harder to follow ## Instructions - Create a data provider component whose template is a single `<slot>` with scoped slot props - Pass data, loading state, and action methods as scoped slot props to child components - Use `v-slot` destructuring in the parent to access provided data - Keep child components focused purely on presentation; the data provider handles all data logic ## Details ### Data Provider Pattern
Details
- Skill name
data-provider- Repository
- PatternsDev/skills
- Path
vue/data-provider/SKILL.md- Repo updated
- 15 April 2026
FAQ
What does the Data Provider skill do?
Teaches the data provider pattern using renderless components and scoped slots. Use when you need to abstract data fetching or state management logic and expose it to child components via slots.
How do I install the Data Provider skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add PatternsDev/skills --skill data-provider. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Data Provider popular?
It lives in PatternsDev/skills, which has 259 GitHub stars and 28 forks.
Related skills
AI UI Patterns
259PatternsDev/skills
Teaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user experience in React.
Async Components
259PatternsDev/skills
Teaches async component loading in Vue for performance optimization. Use when you have heavy components that aren't needed on initial render and can be loaded on demand.
Bundle Splitting
259PatternsDev/skills
Teaches bundle splitting techniques for web performance. Use when your application has a large JavaScript bundle that affects load times or when you need to reduce FCP/LCP.
Dynamic Components
259PatternsDev/skills
Teaches dynamic component switching with Vue's <component> element. Use when you need to render different components conditionally based on runtime state using the is attribute.
Compound Pattern
259PatternsDev/skills
Teaches the compound component pattern for shared implicit state. Use when building related components like tabs, accordions, or dropdowns that need to coordinate without explicit prop passing.
Hoc Pattern
259PatternsDev/skills
Teaches the Higher-Order Component (HOC) pattern for logic reuse. Use when you need to share cross-cutting concerns like authentication, logging, or data fetching across multiple components.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.