directus/rstore/rstore-vite-monospace
Claude Code and agent skill by directus/rstore
- community
Checking that the SKILL.md file is still in the repository.
Use when wiring Monospace into a plain Vite/Vue app with @rstore/vite-monospace, including rstoreMonospace config, remote or local OpenAPI generation, virtual:rstore-monospace modules, generated rstore-monospace.d.ts declarations, runtimeApiKey handling, primaryKeys, and store setup with the generated schema and monospacePlugin.
Install
npx vskill@latest install directus/rstore/rstore-vite-monospaceSKILL.md
Rstore Vite Monospace
Use @rstore/vite-monospace to generate Monospace-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 | Monospace API URL used for remote schema loading and runtime client code | |
workspace | Monospace workspace identifier (project is a deprecated alias) | |
schemaApiKey | Build-time key for remote schema loading (needs openApiSchema:read + dataModel:read) | |
input | Local OpenAPI JSON path, resolved from the Vite root | |
metadataInput | Local schema metadata snapshot JSON path, resolved from the Vite root | |
runtimeApiKey | Runtime API key emitted into generated client code | |
cacheControl | Cache-Control header ('no-cache' or 'no-store') sent by the generated runtime client | |
scopeId | rstore plugin scope id, defaulting to rstore-monospace | |
primaryKeys | Explicit primary key overrides by collection name | |
dts | Declaration output path, true/omitted for rstore-monospace.d.ts, or false to disable |
Virtual Modules
virtual:rstore-monospacere-exportsschema,monospace, andmonospacePlugin.virtual:rstore-monospace/schemaexports the generated rstore schema.virtual:rstore-monospace/pluginexports the Monospace REST client and rstore plugin.
Local Schema Mode
Use input plus metadataInput when the schema is checked into the project or generated separately. The metadata snapshot holds the Monospace schema meta collection items keyed by collection name; write it from loadRemoteSchemaMetadata (@rstore/monospace/schema):
With only one local file, the other schema source is loaded remotely and url/workspace are required.
Guardrails
- Keep
schemaApiKeybuild-time only; it must not appear in generated virtual modules. - Configure
runtimeApiKeyonly when the key is safe to emit into runtime/client code. - Do not hand-write replacement schema or plugin virtual modules; fix generator input/config instead.
- Use the generated
schemaandmonospacePlugintogether in the same store. - Use
rstore-monospacefor OpenAPI, REST, query, and mutation behavior. - Use
rstore-vuefor component query/form/cache patterns.
Security
- Security scanPassed, 96 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-monospace/skills/rstore-vite-monospace/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-monospace)