ferix: Skill for Claude Code

.claude/skills/Convex Best Practices/SKILL.md

Convex Best Practices is a skill for Claude Code from charlietlamb/ferix. It costs 38 tokens per session (2,169 once invoked), scanned A, a copy of convex-best-practices, MIT.

Guidelines for building Convex applications, where Convex is a backend platform for data, server functions, caching, and real-time updates.

In plain words
What is it for?
They cover function organization, database schemas, queries and mutations, validation, TypeScript usage, query patterns, optimization, and error handling.
Why use it?
They help keep Convex code organized, validated, type-safe, and consistent as an application grows.

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 Best Practices/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 Best Practices

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/charlietlamb/ferix/convex-best-practices"><img src="https://agentmods.dev/badge/skills/charlietlamb/ferix/convex-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,169 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 88% 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.00038 $0.02169
Opus 5.5 $0.00015 $0.00868
Sonnet 5.5 $0.00008 $0.00434
Haiku 4.5 $0.00004 $0.00217

Measured 1mo ago against content hash 438c7fa56560, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Convex Best Practices 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 1mo 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.

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.

Origin

This is a copy

88% identical to convex-best-practices — 104 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 Best Practices/SKILL.md · 334 lines

How it starts

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

Convex Best Practices

Build production-ready Convex applications by following established patterns for function organization, query optimization, validation, TypeScript usage, and error handling.

Documentation Sources

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

Instructions

The Zen of Convex

  1. Convex manages the hard parts - Let Convex handle caching, real-time sync, and consistency
  2. Functions are the API - Design your functions as your application's interface
  3. Schema is truth - Define your data model explicitly in schema.ts
  4. TypeScript everywhere - Leverage end-to-end type safety
  5. Queries are reactive - Think in terms of subscriptions, not requests

Function Organization

Organize your Convex functions by domain:

// convex/users.ts - User-related functions
import { query, mutation } from "./_generated/server";
import { v } from "convex/values";

export const get = 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);
  },
});

Argument and Return Validation

Always define validators for arguments AND return types:

export const createTask = mutation({
  args: {
    title: v.string(),
    description: v.optional(v.string()),
    priority: v.union(v.literal("low"), v.literal("medium"), v.literal("high")),
  },
  returns: v.id("tasks"),
  handler: async (ctx, args) => {
    return await ctx.db.insert("tasks", {
      title: args.title,
      description: args.description,
      priority: args.priority,
      completed: false,
      createdAt: Date.now(),
    });
  },
});

Read the full file on GitHub · 334 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. 1mo ago First seen · 334 lines · 38 tokens per session scan A 438c7fa56560

Subscribe to this mod's changes

Convex Best Practices is a skill published in the GitHub repository charlietlamb/ferix (10 stars, last pushed 7mo ago), licensed MIT. It adds 38 tokens to every session and 2,169 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to convex-best-practices, differing in 104 lines, and is treated as a copy.

Related

Other skills, from other repositories

add-endpoint

Add a new API endpoint following the project's layered architecture.

gruberb/bulletproof-rust-web · 0 tokens

angular-http-client

Integrate HttpClient, Interceptors, and API interactions in Angular. Use when integrating HttpClient, writing interceptors, or handling API calls in Angular.

HoangNguyen0403/agent-skills-standard · 35 tokens

error-handling

Use when designing the reaction to a class of failures — typed error taxonomies, retry/backoff/timeout policy, circuit breakers, React/Next error boundaries, and the user-message vs operator-log split. NOT diagnosing one specific crash (that is debug), NOT logs/metrics/traces (that is observability), NOT the wire…

ericrisco/rsc-harness · 78 tokens

nodejs

Use when building or operating a plain Node.js / Express 5 backend service: project layout, async correctness, central error middleware, fail-fast config, graceful shutdown on SIGTERM. NOT DI modules/providers/guards (that is nestjs), NOT the type system or tsconfig (that is typescript), NOT REST contract design (that…

ericrisco/rsc-harness · 77 tokens

system-design-methodology

Facilitate system design by classifying mode, depth, and surface independently; scoping journeys; estimating only decision-relevant quantities; tracing logical flows before physical binding; and selecting risk-driven views and deep dives. Use for system design sessions and reviews.

HoangNguyen0403/agent-skills-standard · 56 tokens

system-design-review

Audit an existing or proposed architecture and return a scored verdict across nine axes, from requirements and capacity evidence to observability and rollout, then convert gaps into a prioritized roadmap. Use when reviewing a design doc, auditing a running system, or gating a design.

HoangNguyen0403/agent-skills-standard · 55 tokens