Skip to content
Skillv1.0.0

filesystem

FS Module Contract

by Lurek2D(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from Lurek2D/lurek_2d (src/filesystem/AGENTS.md). Install upstream with npx skills add Lurek2D/lurek_2d --skill filesystem. Copyright stays with the author.

FS Module Contract

Mission & Scope

  • Own sandboxed file access, mounts, and stream handles.
  • Keep script I/O inside controlled workspace/game paths.

Files

  • vfs.rs: Virtual roots, path checks, and file access.
  • file_data.rs, file_handle.rs: File values and open handles.
  • async_loader.rs, watcher.rs: Background loads and file watching.

Rules

  • Normalize paths before access and reject traversal outside the sandbox.
  • Keep mount precedence deterministic.
  • Do not expose host absolute paths through Lua-facing errors.

Workflow

  • Validate with cargo test --test filesystem_tests.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/lurek2d-lurek-2d-filesystem/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

lurek2d-lurek-2d-filesystem.ocm.jsonjson
{
  "ocm": "1",
  "id": "lurek2d-lurek-2d-filesystem",
  "kind": "skill",
  "name": "filesystem",
  "description": "FS Module Contract",
  "publisher": "Lurek2D",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "legal"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "FS Module Contract"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/Lurek2D/lurek_2d",
      "path": "src/filesystem/AGENTS.md",
      "ref": "5aa3adc8d81ae8f863a9533dfb4a7ac44c4b59e3",
      "url": "https://github.com/Lurek2D/lurek_2d/blob/5aa3adc8d81ae8f863a9533dfb4a7ac44c4b59e3/src/filesystem/AGENTS.md",
      "key": "Lurek2D/lurek_2d/src/filesystem/AGENTS.md"
    }
  },
  "instructions": "# FS Module Contract\n\n## Mission & Scope\n- Own sandboxed file access, mounts, and stream handles.\n- Keep script I/O inside controlled workspace/game paths.\n\n## Files\n- `vfs.rs`: Virtual roots, path checks, and file access.\n- `file_data.rs`, `file_handle.rs`: File values and open handles.\n- `async_loader.rs`, `watcher.rs`: Background loads and file watching.\n\n## Rules\n- Normalize paths before access and reject traversal outside the sandbox.\n- Keep mount precedence deterministic.\n- Do not expose host absolute paths through Lua-facing errors.\n\n## Workflow\n- Validate with `cargo test --test filesy",
  "cost": {
    "context_tokens": 153
  }
}

Fetch it by URL: GET /api/v1/registry/lurek2d-lurek-2d-filesystem/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.