mirage-vfs-authoring

mirage-vfs-authoring is a skill for Claude Code from strukto-ai/mirage. It costs 65 tokens per session (2,401 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 Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mirage plugin — 2 skills, 1 MCP server shipped together

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,950 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.

Or install mirage, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

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,401 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.02401
Opus 5.5 $0.00026 $0.00960
Sonnet 5.5 $0.00013 $0.00480
Haiku 4.5 $0.00006 $0.00240

Measured 29d ago against content hash 16f8a809c13c, 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 29d 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 · 198 lines

How it starts

The opening of the file, as written. The whole thing — 198 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 · 198 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. 29d ago Changed · +22 lines 16f8a809c13c
  2. 1mo ago Changed · -1 lines ab5d1eb1e9b3
  3. 1mo ago Changed · +3 lines 174aa7f304be
  4. 1mo ago Changed fab23bdf7c6d
  5. 1mo ago Changed 050b6eb2f758
  6. 1mo ago Changed · -2 lines c2937d2b9312
  7. 1mo ago Changed · +9 lines 495c3349d6c3
  8. 2mo ago Changed 2aed4749d557
  9. 2mo 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,950 stars, last pushed today), licensed Apache-2.0. It adds 65 tokens to every session and 2,401 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.

Related

mirage-vfs-authoring compared with skills from other repositories

mirage-vfs-authoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mirage-vfs-authoringstrukto-ai/mirageSkill4.0ktodayApache-2.0A65Claude Code
wikipediax-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex
cvex-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex
claude-apiwarpdotdev/warpSkill66ktodayAGPL-3.0A193Claude Code, Codex
api-less-websitex-cmd/x-cmdSkill4.8k7d agoApache-2.0A27Claude Code, Codex
binance-spot-openapi-skillholon-run/uxcSkill1207d agoMITA42Codex
inkbox-agent-self-signupinkbox-ai/inkboxSkill1075d agoMITA43Claude Code