Skip to main content

create-item

Create a new item in a Directus collection Arguments: <collection> <field=value> [field=value...].

Source facts

Repository
Agents-Store/codex-plugins
Last source activity
November 1, 2026 at 02:46
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
create-item
description
Create a new item in a Directus collection Arguments: <collection> <field=value> [field=value...].
# Create Item Follow the `item-operations` skill (`${CLAUDE_PLUGIN_ROOT}/skills/item-operations/SKILL.md`) for the query syntax, filters and batch rules; read it before the first call. ## Arguments - `collection` (required) — Collection name - `field=value` pairs — Field values for the new item ## Process 1. Parse collection name and field=value pairs from input 2. Call `schema` tool with `keys: ["<collection>"]` to check required fields 3. Warn if any required fields are missing from the input 4. Build data object from field=value pairs 5. Call `items` tool with: ```json { "action": "create", "collection": "<collection>", "data": [{ "field1": "value1", "field2": "value2" }] } ``` **Remember: data is ALWAYS an array** 6. Display the created item with its ID 7. Suggest viewing the item or creating more ## Example Input: `posts title="My New Post" status=draft content="Post content here"` ```json { "action": "create", "collection": "posts", "data": [{ "title": "My New Post", "status": "draft", "content": "Post content here" }] } ```
View on GitHub