directus_io
Installation
SKILL.md
Directus Skill
Directus is an open-source headless CMS and backend-as-a-service that wraps any SQL database with instant REST and GraphQL APIs, plus a no-code Data Studio for content management. It's built with Node.js and Vue.js, supports PostgreSQL, MySQL, SQLite, MariaDB, MS-SQL, OracleDB, and CockroachDB, and is fully extensible.
How to Use This Skill
This skill is organized into focused reference files. Read the relevant reference before answering:
| Topic | Reference File | When to Read |
|---|---|---|
| SDK & API Basics | references/sdk-and-api.md |
Any question about the JS/TS SDK, REST API, GraphQL, authentication, CRUD operations, filtering, or real-time subscriptions |
| Astro Integration | references/astro-integration.md |
Integrating Directus with Astro — fetching data, dynamic routes, SSG/SSR, live preview, authentication, visual editing |
| TypeScript Patterns | references/typescript-patterns.md |
Schema typing, type generation, advanced generics, type-safe SDK usage |
| Flows & Automation | references/flows-and-automation.md |
Directus Flows, triggers, operations, scheduled tasks, AI content generation, webhook integrations |
| Extensions | references/extensions.md |
Custom endpoints, hooks, interfaces, layouts, displays, modules, operations, panels, themes |
| Data Modeling & Admin | references/data-modeling.md |
Collections, fields, relations (M2O, O2M, M2M, M2A), singletons, permissions, roles, file management, environment config |
| Troubleshooting | references/troubleshooting.md |
Common errors, debugging, CORS issues, Docker problems, migration headaches, performance tips |
Always read the relevant reference file before generating code or instructions. For complex questions spanning multiple topics, read multiple references.