Convex Agents Files
Handles file uploads, image attachments, and media processing in agent conversations. Use this when agents analyze images, process documents, or generate files.
npx skills add majiayu000/claude-skill-registry --skill convex-agents-files-abrahamx3-hivio --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## Purpose Files and images let agents understand and generate visual content. Covers uploading, storing, attaching to messages, and managing file lifecycle. ## When to Use This Skill - Users upload images for agent analysis - Agents need to process documents or files - Agents generate images with DALL-E - Building file-based workflows - Implementing file cleanup and tracking ## Upload and Store a File ```typescript import { storeFile } from "@convex-dev/agent"; export const uploadFile = action({ args: { fileData: v.string(), filename: v.string(), mimeType: v.string() }, handler: async (ctx, { fileData, filename, mimeType }) => { const bytes = Buffer.from(fileData, "base64"); const { file } = await storeFile( ctx, components.agent, new Blob([bytes], { type: mimeType }), { filename, sha256: "hash" } ); return { fileId: file.fileId, url: file.url, storageId: file.storageId, }; }, }); ``` ## Send File with Message (2-Step) Upload first, then send message with attachment: ```typescript import { saveMessage, getFile } from "@convex-dev/agent"; // Step 1: Save message with file export const submitFileQuestion = mutation({ args: { threadId: v.string(), fileId: v.string(), question: v.stri
- Purpose
- When to Use This Skill
- Upload and Store a File
- Send File with Message (2-Step)
- Inline File Saving (Action Only)
- Generate and Save Images
- Key Principles
- Next Steps
What does the Convex Agents Files skill do?
Handles file uploads, image attachments, and media processing in agent conversations. Use this when agents analyze images, process documents, or generate files.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill convex-agents-files-abrahamx3-hivio --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
