directus/rstore/rstore-vite-directus
Claude Code and agent skill by directus/rstore
- community
Checking that the SKILL.md file is still in the repository.
Use when wiring Directus into a plain Vite/Vue app with @rstore/vite-directus, including rstoreDirectus config, virtual:rstore-directus modules, generated rstore-directus.d.ts declarations, build-time Directus introspection, and store setup with the generated schema and directusPlugin. Pair with rstore-directus for shared Directus adapter behavior and rstore-vue for collection/query/form usage.
Install
npx vskill@latest install directus/rstore/rstore-vite-directusSKILL.md
Rstore Vite Directus
Use @rstore/vite-directus to generate Directus-backed rstore schema and plugin modules in a non-Nuxt Vite app.
Setup
Register the Vite plugin in vite.config.ts:
Then create the store from the generated virtual module:
Options
| Option | Purpose | |
|---|---|---|
url | Directus API URL used for schema loading and runtime client code | |
adminToken | Build-time Directus admin token for introspection | |
scopeId | rstore plugin scope id, defaulting to rstore-directus | |
dts | Declaration output path, true/omitted for rstore-directus.d.ts, or false to disable |
Virtual Modules
virtual:rstore-directusre-exportsschema,directus, anddirectusPlugin.virtual:rstore-directus/schemaexports the generated rstore schema.virtual:rstore-directus/pluginexports the Directus SDK client and rstore plugin.
Generated Declarations
- The plugin writes
rstore-directus.d.tsin the Vite root by default. - Use
dts: 'src/rstore-directus.d.ts'to choose another output. - Use
dts: falseonly when the app provides compatible virtual module declarations another way.
Guardrails
- Keep
adminTokenserver-side/build-time. The Vite plugin should not emit it into generated modules. - Do not hand-write replacement schema or plugin virtual modules; fix generator input/config instead.
- Use the generated
schemaanddirectusPlugintogether in the same store. - Use
rstore-directusfor Directus query, schema, singleton, and mutation behavior. - Use
rstore-vuefor component query/form/cache patterns.
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/vite-directus/skills/rstore-vite-directus/SKILL.md
Popularity
- Repository stars
- 433
- Repository forks
- 20
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/directus/rstore/rstore-vite-directus)