monospace

monospace is a skill for Claude Code, Codex from directus/monospace-agent-skills. It costs 54 tokens per session (1,980 once invoked), scanned A, original, MIT.

A skill for working with data in a Monospace instance through its REST API or typed software library. An API is an interface that lets programs read and change data.

In plain words
What is it for?
Use it to query, filter, sort, paginate, create, update, or delete Monospace data, or generate a client that matches the instance.
Why use it?
It reduces errors caused by guessing the API's collections, fields, endpoints, or data types by checking the running instance first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is npx monospace sdk init --url https://YOUR_HOST --workspace YOUR_WORKSPACE --dir ./src/generated/monospace.

Good fit Use it to query, filter, sort, paginate, create, update, or delete Monospace data, or generate a client that matches the instance.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/directus/monospace-agent-skills
agentmods
npx agentmods add skills/directus/monospace-agent-skills/monospace

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin monospace — /plugin install monospace after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for monospace

README.md
[![agentmods](https://agentmods.dev/badge/skills/directus/monospace-agent-skills/monospace/github.svg)](https://agentmods.dev/skills/directus/monospace-agent-skills/monospace)
Your own site
<a href="https://agentmods.dev/skills/directus/monospace-agent-skills/monospace"><img src="https://agentmods.dev/badge/skills/directus/monospace-agent-skills/monospace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for monospace

Your own site · 80×15
<a href="https://agentmods.dev/skills/directus/monospace-agent-skills/monospace"><img src="https://agentmods.dev/badge/skills/directus/monospace-agent-skills/monospace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,980 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01980
Opus 5.5 $0.00022 $0.00792
Sonnet 5.5 $0.00011 $0.00396
Haiku 4.5 $0.00005 $0.00198

Measured 1mo ago against content hash 91405659c40b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

monospace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/schema-view.mjs, tests/schema-view.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/monospace/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Monospace

Work with a Monospace instance: query and mutate data through the REST API or the typed SDK, generate instance-specific types, bootstrap workspaces and discover schema, and use the per-workspace MCP server. Read the traps below, then load the reference that matches the task.

Verified against engine source 4f6f48c (reports 0.7.0) with @monospace/sdk 0.8.0 and @monospace/cli 0.1.0 from continuous build 31d52d0. Monospace is in early access. If an instance behaves differently, trust the instance and its error messages.

Principles

  1. Don't guess the API. Monospace has a different API and SDK from Directus. The sources of truth are the types generated from the instance (monospace sdk generate), the instance's own responses and error messages, and these references. The workspace OpenAPI document describes item routes (use it for payload shapes and codegen). It is not a complete or fully correct catalog of management and schema routes, so use bootstrap-and-schema.md for those.
  2. Generate types, then write against them. Examples here use illustrative collection and field names, so adapt names and types to the generated schema.
  3. Inspect, write, verify. Read the schema and existing rows before writing. Send an explicit fields selection on item reads and writes. Afterwards, read back using the same key or the user's exact filter.
  4. Recover, don't loop. Read the error body, including its nested source chain. After 2–3 failed attempts, re-check the schema, permissions, and license instead of retrying.

Critical traps

  • Envelopes depend on the endpoint. Item and most management responses are { data } (plus meta when requested). JSON login, /api/system/info, the /schema manifest, and OpenAPI are bare. A raw item POST returns a data array even for one object. The SDK unwraps only the top level. Nested to-many relations stay relation.data, and to-one relations are direct.
  • Deletes need a selection. Use deleteOne({ key, fields: ['id'] }) / deleteMany({ filter, fields: ['id'] }) / DELETE …?fields=id. Without one, the engine returns 422 and the row remains. Confirm with a read-back.
  • SDK call shape: method(parameters, options?). The first argument is an object ({ key, data, fields, include, filter, sort, limit, offset, meta }), never a positional id. The optional second argument is { unwrapEnvelope: false }, needed to keep meta.totalCount. Collections are cased as named (client.Articles).
  • fields selects scalars, include selects relations. Example: fields: ['id'], include: { author: { fields: ['name'] } }. Don't use dotted paths, nested objects in fields, or deep. Inside include, arguments are filter/sort/limit/offset (no underscore), and operators keep underscores (_eq).
  • Filters use underscore operators (_eq, _in, _null), combined with _and/_or/_not, and _some/_every/_none on to-many relations. The full operator table is in the REST reference. _null works only on nullable fields. Field and connector capabilities decide what is filterable, sortable, and writable.
  • Sort uses the object form sort: [{ field: { direction: 'desc' } }]. -field is rejected.
  • No search, no page or cursor, no aggregates. Use limit (default 100) + offset + a stable sort, and meta for totalCount. Unknown parameters can be silently ignored with a 200, so a success status doesn't prove a parameter was applied.
  • 64-bit integers are strings on output. Input accepts string | number, but values outside the safe integer range can round before transmission, so pass large integers as strings. Decimals are strings too. Don't convert money through floats.
  • Built-in SDK transport errors: only 401 (MonospaceAuthError) and 403 (MonospacePermissionError) get subclasses. Validation failures (400/422), 402 license limits, and 404s arrive as base MonospaceError, so branch on .status. MonospaceValidationError is not currently thrown.
  • One credential per request. A bearer token plus a stale session cookie returns 400. API keys act as their subject user, with no per-key scope. Creating another key for the same user doesn't change what it can do.
  • Check the license before designing access control. The keyless Starter profile allows 0 custom roles, 0 custom policies, 0 service accounts, and 1 workspace (402 otherwise). Client-side filtering with administrator credentials is not tenant isolation.

Read the full file on GitHub · 73 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -20 lines · -88 tokens per session 91405659c40b
  2. 1mo ago Changed · +2 lines b125330c11d0
  3. 2mo ago First seen · 91 lines · 142 tokens per session scan A 8beec0aebd6b

Subscribe to this mod's changes

monospace is a skill published in the GitHub repository directus/monospace-agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 1,980 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

agui-dotnet-protobuf

Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…

ag-ui-protocol/ag-ui · 162 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

microsoft/skills · 46 tokens

api-design

Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is fastapi/nestjs/go/nodejs), NOT auth hardening (that is secure-coding), NOT…

ericrisco/rsc-harness · 105 tokens

migrate-segw-to-rap

Reverse-engineer a SEGW-built OData V2 service (MPC/DPC/MPCEXT/DPCEXT) into a modern RAP V4 service — tables, CDS views (interface + projection), behavior definitions, draft entities, service definition + binding. Use when asked to "migrate this SEGW service to RAP", "convert OData V2 to V4 RAP", "modernize this…

arc-mcp/arc-1 · 106 tokens