ferix: Skill for Claude Code

.claude/skills/Convex Functions/SKILL.md

Convex Functions is a skill for Claude Code from charlietlamb/ferix. It costs 28 tokens per session (2,744 once invoked), scanned B, a copy of convex-functions, MIT.

Backend functions for Convex, a platform that runs application code and stores data. They cover read-only queries, data-changing mutations, actions, and HTTP endpoints.

In plain words
What is it for?
Use them to fetch or change database records, call outside services, expose webhooks or APIs, and structure Convex server code.
Why use it?
They help keep data access and updates predictable by validating inputs and handling errors in the right kind of function.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is charlietlamb/ferix's own configuration. It tells Claude Code how to work on ferix itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ferix configures →

Reuse

Borrowing it

Nothing to install: this file belongs to charlietlamb/ferix. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/charlietlamb/ferix/main/.claude/skills/Convex Functions/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/charlietlamb/ferix

Made for: Claude Code.

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 Functions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/charlietlamb/ferix/convex-functions"><img src="https://agentmods.dev/badge/skills/charlietlamb/ferix/convex-functions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,744 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod 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.00028 $0.02744
Opus 5 $0.00014 $0.01372
Sonnet 5 $0.00006 $0.00549
Haiku 4.5 $0.00003 $0.00274

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

Security

Grade B, and why

Convex Functions scanned grade B with 1 finding 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 9d 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.email.com/send", { method: "POST",
Origin

This is a copy

94% identical to convex-functions — 65 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/Convex Functions/SKILL.md · 442 lines

How it starts

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

Convex Functions

Master Convex functions including queries, mutations, actions, and HTTP endpoints with proper validation, error handling, and runtime considerations.

Documentation Sources

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

Instructions

Function Types Overview

Type Database Access External APIs Caching Use Case
Query Read-only No Yes, reactive Fetching data
Mutation Read/Write No No Modifying data
Action Via runQuery/runMutation Yes No External integrations
HTTP Action Via runQuery/runMutation Yes No Webhooks, APIs

Queries

Queries are reactive, cached, and read-only:

import { query } from "./_generated/server";
import { v } from "convex/values";

export const getUser = query({
  args: { userId: v.id("users") },
  returns: v.union(
    v.object({
      _id: v.id("users"),
      _creationTime: v.number(),
      name: v.string(),
      email: v.string(),
    }),
    v.null()
  ),
  handler: async (ctx, args) => {
    return await ctx.db.get(args.userId);
  },
});

// Query with index
export const listUserTasks = query({
  args: { userId: v.id("users") },
  returns: v.array(v.object({
    _id: v.id("tasks"),
    _creationTime: v.number(),
    title: v.string(),
    completed: v.boolean(),
  })),
  handler: async (ctx, args) => {
    return await ctx.db
      .query("tasks")
      .withIndex("by_user", (q) => q.eq("userId", args.userId))
      .order("desc")
      .collect();
  },
});

Mutations

Mutations modify the database and are transactional:

Read the full file on GitHub · 442 lines

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. 9d ago First seen · 442 lines · 28 tokens per session scan B 0aedfc07ddda

Subscribe to this mod's changes

Convex Functions is a skill published in the GitHub repository charlietlamb/ferix (10 stars, last pushed 6mo ago), licensed MIT. It adds 28 tokens to every session and 2,744 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). It is 94% identical to convex-functions, differing in 65 lines, and is treated as a copy.