mirage-vfs-authoring

mirage-vfs-authoring is a skill for Claude Code, Codex from strukto-ai/mirage. It costs 65 tokens per session (2,111 once invoked), scanned A, original, Apache-2.0.

A guide for building a custom Mirage VFS adapter that connects an API, database, object store, or application data to a filesystem-like interface. It covers generating a starter adapter, replacing its test fixture, configuring a mount, and testing filesystem behavior.

In plain words
What is it for?
For adding a new backend resource, creating a mount configuration, and testing reads and shell-style filesystem access.
Why use it?
It provides a repeatable way to expose a new data source through Mirage without modifying Mirage itself.

Skill for Claude CodeCodex

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

Good fit For adding a new backend resource, creating a mount configuration, and testing reads and shell-style filesystem access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/strukto-ai/mirage/mirage-vfs-authoring
About the project

Mirage is a virtual terminal for AI agents that presents files, command-line tools, and configurable runtimes through one interface. It helps agents access data and run computations across services with controlled visibility and actions, and the catalogue entries provide related integrations.

strukto-ai/mirage · 3,691 stars · on GitHub · strukto.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add strukto-ai/mirage --skill mirage-vfs-authoring
Clone the repo
git clone --depth 1 https://github.com/strukto-ai/mirage

Made for: Claude Code, Codex.

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 mirage-vfs-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/strukto-ai/mirage/mirage-vfs-authoring/github.svg)](https://agentmods.dev/skills/strukto-ai/mirage/mirage-vfs-authoring)
Your own site
<a href="https://agentmods.dev/skills/strukto-ai/mirage/mirage-vfs-authoring"><img src="https://agentmods.dev/badge/skills/strukto-ai/mirage/mirage-vfs-authoring/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 mirage-vfs-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/strukto-ai/mirage/mirage-vfs-authoring"><img src="https://agentmods.dev/badge/skills/strukto-ai/mirage/mirage-vfs-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,111 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.00065 $0.02111
Opus 5.5 $0.00026 $0.00844
Sonnet 5.5 $0.00013 $0.00422
Haiku 4.5 $0.00006 $0.00211

Measured 5d ago against content hash c2937d2b9312, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mirage-vfs-authoring 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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/adapter.py, assets/adapter.ts, scripts/new_adapter.py), 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.

plugins/mirage/skills/mirage-vfs-authoring/SKILL.md · 174 lines

How it starts

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

Author a Mirage VFS

Deliver an adapter in the user's project, a working mount configuration, and tests of its filesystem behavior. Subclass BaseVFS and define the functions the resource supports. A normal custom backend needs no Mirage fork.

Start from the bundled adapter

For a new backend, run python scripts/new_adapter.py --language python --output <project>/resource.py from this skill directory, or select typescript and a .ts output. The script refuses to overwrite an existing file. The generated adapter uses only an in-memory fixture and includes a read-contract check plus a mounted shell smoke test. Run Python with the project's Mirage environment, or TypeScript with its tsx runner and @struktoai/mirage-node dependency.

Replace the fixture client with the resource API, then update the fixture paths and expected bytes. Keep credentials in the application's configuration. The self-contained templates are Python and TypeScript; no repository checkout is needed to scaffold.

Establish the resource contract

Inspect the project's Mirage version, language, runtime, and existing client. Use the installed API and matching source or documentation; the interface is still evolving. Ask only for missing decisions that affect the implementation: which resources are visible, the mount prefix, credentials, and required writes.

Reuse a builtin VFS when it already represents the resource. For a new adapter, define a small example tree and what each leaf renders before implementing it. Separate stored bytes from rendered records, and distinguish a complete directory from a paginated or time-windowed view. Use stable resource identities when display names can collide or change.

Consult the relevant language's guide and runnable example, using the revision matching the target Mirage package:

Read the full file on GitHub · 174 lines

Files

What ships with it

3 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. 5d ago Changed · -2 lines c2937d2b9312
  2. 7d ago Changed · +9 lines 495c3349d6c3
  3. 15d ago Changed 2aed4749d557
  4. 21d ago First seen · 167 lines · 65 tokens per session scan A 5343f98a36d7

Subscribe to this mod's changes

mirage-vfs-authoring is a skill published in the GitHub repository strukto-ai/mirage (3,691 stars, last pushed today), licensed Apache-2.0. It adds 65 tokens to every session and 2,111 once invoked, about $0.0003 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-09-25.