convex-file-storage

convex-file-storage is a skill for Claude Code, Codex from waynesutton/convexskills. It costs 32 tokens per session (2,892 once invoked), scanned B, original, Apache-2.0.

File-storage guidance for Convex applications, which use Convex as a backend service. It covers uploading files, serving them through URLs, saving files generated by backend actions, deleting them, and reading their metadata.

In plain words
What is it for?
Use it to handle images, documents, videos, and generated files, including upload URLs, downloads, deletion, and file information stored in Convex's system table.
Why use it?
It provides the established patterns for moving files between an application and Convex storage, instead of requiring developers to design those flows from scratch.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { api } from "../convex/_generated/api";.

Part of the convexskills plugin — 14 skills shipped together

Good fit Use it to handle images, documents, videos, and generated files, including upload URLs, downloads, deletion, and file information stored in Convex's system table.

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/waynesutton/convexskills
agentmods
npx agentmods add skills/waynesutton/convexskills/convex-file-storage

Made for: Claude Code, Codex.

Or install convexskills, the plugin that ships this one along with the rest of its 14 skills.

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 convex-file-storage

README.md
[![agentmods](https://agentmods.dev/badge/skills/waynesutton/convexskills/convex-file-storage/github.svg)](https://agentmods.dev/skills/waynesutton/convexskills/convex-file-storage)
Your own site
<a href="https://agentmods.dev/skills/waynesutton/convexskills/convex-file-storage"><img src="https://agentmods.dev/badge/skills/waynesutton/convexskills/convex-file-storage/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 convex-file-storage

Your own site · 80×15
<a href="https://agentmods.dev/skills/waynesutton/convexskills/convex-file-storage"><img src="https://agentmods.dev/badge/skills/waynesutton/convexskills/convex-file-storage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,892 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk warn 17 Feb 2026
How audits are shown
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.00032 $0.02892
Opus 5 $0.00016 $0.01446
Sonnet 5 $0.00006 $0.00578
Haiku 4.5 $0.00003 $0.00289

Measured 12d ago against content hash ef3af41fb2a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

convex-file-storage scanned grade B with 2 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 12d ago.

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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const response = await fetch("https://api.example.com/generate", { method: "POST",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const result = await fetch(uploadUrl, {
Origin

Copies of this mod

3 near-identical copies found in the catalogue:

skills/convex-file-storage/SKILL.md · 468 lines

How it starts

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

Convex File Storage

Handle file uploads, storage, serving, and management in Convex applications with proper patterns for images, documents, and generated files.

Documentation Sources

Before implementing, do not assume; fetch the latest documentation:

Instructions

File Storage Overview

Convex provides built-in file storage with:

  • Automatic URL generation for serving files
  • Support for any file type (images, PDFs, videos, etc.)
  • File metadata via the _storage system table
  • Integration with mutations and actions

Generating Upload URLs

// convex/files.ts
import { mutation } from "./_generated/server";
import { v } from "convex/values";

export const generateUploadUrl = mutation({
  args: {},
  returns: v.string(),
  handler: async (ctx) => {
    return await ctx.storage.generateUploadUrl();
  },
});

Client-Side Upload

// React component
import { useMutation } from "convex/react";
import { api } from "../convex/_generated/api";
import { useState } from "react";

function FileUploader() {
  const generateUploadUrl = useMutation(api.files.generateUploadUrl);
  const saveFile = useMutation(api.files.saveFile);
  const [uploading, setUploading] = useState(false);

  const handleUpload = async (e: React.ChangeEvent<HTMLInputElement>) => {
    const file = e.target.files?.[0];
    if (!file) return;

    setUploading(true);
    try {
      // Step 1: Get upload URL
      const uploadUrl = await generateUploadUrl();

      // Step 2: Upload file to storage
      const result = await fetch(uploadUrl, {
        method: "POST",
        headers: { "Content-Type": file.type },
        body: file,
      });

      const { storageId } = await result.json();

      // Step 3: Save file reference to database
      await saveFile({
        storageId,
        fileName: file.name,
        fileType: file.type,
        fileSize: file.size,
      });
    } finally {
      setUploading(false);
    }
  };

  return (
    <div>
      <input
        type="file"
        onChange={handleUpload}
        disabled={uploading}
      />
      {uploading && <p>Uploading...</p>}
    </div>
  );
}

Read the full file on GitHub · 468 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. 12d ago First seen · 468 lines · 32 tokens per session scan B ef3af41fb2a8

Subscribe to this mod's changes

convex-file-storage is a skill published in the GitHub repository waynesutton/convexskills (404 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 2,892 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

convex-file-storage

Complete file handling including upload flows, serving files via URL, storing generated files from actions, deletion, and accessing file metadata from system tables.

igor9silva/meseeks · 32 tokens

convex-file-storage

Complete file handling including upload flows, serving files via URL, storing generated files from actions, deletion, and accessing file metadata from system tables.

J-StaR-Films-Studios/VibeCode-Protocol-Suite · 32 tokens

use-si-coder

Legacy one-shot full-stack auto-deploy monolith. Runs scripts/deploy.js to create a GitHub repo, push local code via SSH, set up a Dokploy project, configure self-hosted Convex (Docker Compose) + Next.js, wire Hostinger DNS, and trigger + poll the deployment — zero human steps. Superseded by the modular /sc- skills…

rahmanef63/si-coder-agent · 90 tokens

sc-n8n

Drive a user-configured self-hosted or cloud n8n instance through the official @n8n/cli. List, inspect, create, update, activate, and verify workflows; inspect executions; manage projects, tags, variables, data tables, and packages without assuming a specific server, deployment platform, or account.

rahmanef63/si-coder-agent · 70 tokens

sc-stripe

(STUB / NOT IMPLEMENTED YET) Stripe payments setup — create products/prices, webhook endpoint registration, customer portal config, restricted API keys. Pairs with sc-convex for payments table mutations and HTTP webhook routes.

rahmanef63/si-coder-agent · 52 tokens

sc-supabase

(STUB / NOT IMPLEMENTED YET) Supabase backend as an alternative to self-hosted Convex. Create project, apply migrations from supabase/migrations, deploy Edge Functions, generate types. For projects where Postgres + Row-Level-Security is a better fit than Convex's reactive query model.

rahmanef63/si-coder-agent · 67 tokens