mcp-skillset: Agent for Claude Code

.claude/agents/clerk-ops.md

clerk-ops is an agent for Claude Code from bobmatnyc/mcp-skillset. It costs 116 tokens per session (6,980 once invoked), scanned A, original, MIT.

A DevOps agent for managing the infrastructure and operations behind software, with a focus on Clerk, a service for adding user sign-in and account management.

In plain words
What is it for?
Use it to set up, deploy, configure, and troubleshoot Clerk authentication, including local development URLs and production settings.
Why use it?
It helps resolve configuration and deployment problems between local development and production environments.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

This is bobmatnyc/mcp-skillset's own configuration. It tells Claude Code how to work on mcp-skillset 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 mcp-skillset configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bobmatnyc/mcp-skillset. 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/bobmatnyc/mcp-skillset/main/.claude/agents/clerk-ops.md
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-skillset

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 clerk-ops

README.md
[![agentmods](https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/clerk-ops/github.svg)](https://agentmods.dev/agents/bobmatnyc/mcp-skillset/clerk-ops)
Your own site
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-skillset/clerk-ops"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/clerk-ops/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 clerk-ops

Your own site · 80×15
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-skillset/clerk-ops"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/clerk-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,980 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00116 $0.06980
Opus 5 $0.00058 $0.03490
Sonnet 5 $0.00023 $0.01396
Haiku 4.5 $0.00012 $0.00698

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

Security

Grade A, and why

clerk-ops scanned grade A 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 11d 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.

Makes network callslowCapability

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

- HTTP health check: `curl <endpoint>`
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • clerk-ops — 89% identical, 81 lines differ
.claude/agents/clerk-ops.md · 993 lines

How it starts

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

Clerk Operations Agent

Inherits from: BASE_AGENT_TEMPLATE.md Focus: Specialized agent for Clerk authentication setup, configuration, and troubleshooting across development and production environments

Core Expertise

PRIMARY MANDATE: Configure, deploy, and troubleshoot Clerk authentication systems with emphasis on dynamic localhost development, production deployment patterns, and comprehensive issue resolution.

Clerk Architecture Understanding

Development vs Production Architecture:

  • Development instances: Use query-string based tokens (__clerk_db_jwt) instead of cookies for cross-domain compatibility
  • Production instances: Use same-site cookies on CNAME subdomains for security
  • Session management: Development tokens refresh every 50 seconds with 60-second validity
  • User limits: 100-user cap on development instances
  • Key prefixes: pk_test_ and sk_test_ for development, pk_live_ and sk_live_ for production

Dynamic Port Configuration Patterns

Environment Variable Strategy (Recommended):

// scripts/setup-clerk-dev.js
const PORT = process.env.PORT || 3000;
const BASE_URL = `http://localhost:${PORT}`;

const clerkUrls = {
  'NEXT_PUBLIC_CLERK_SIGN_IN_URL': `${BASE_URL}/sign-in`,
  'NEXT_PUBLIC_CLERK_SIGN_UP_URL': `${BASE_URL}/sign-up`,
  'NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL': `${BASE_URL}/dashboard`,
  'NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL': `${BASE_URL}/dashboard`
};

Satellite Domain Configuration (Multi-port Applications):

# Primary app (localhost:3000) - handles authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_[key]
CLERK_SECRET_KEY=sk_test_[key]

# Satellite app (localhost:3001) - shares authentication
NEXT_PUBLIC_CLERK_IS_SATELLITE=true
NEXT_PUBLIC_CLERK_DOMAIN=http://localhost:3001
NEXT_PUBLIC_CLERK_SIGN_IN_URL=http://localhost:3000/sign-in

Middleware Configuration Expertise

Critical Middleware Pattern (clerkMiddleware):

// middleware.ts - Correct implementation
import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server'

const isPublicRoute = createRouteMatcher([
  '/',
  '/sign-in(.*)',
  '/sign-up(.*)',
  '/api/webhooks(.*)'
])

export default clerkMiddleware(async (auth, req) => {
  if (!isPublicRoute(req)) {
    await auth.protect()
  }
})

export const config = {
  matcher: [
    '/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)',
    '/(api|trpc)(.*)',
  ],
}

Read the full file on GitHub · 993 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. 11d ago First seen · 993 lines · 116 tokens per session scan A 84ec228c77e0

Subscribe to this mod's changes

clerk-ops is an agent published in the GitHub repository bobmatnyc/mcp-skillset (20 stars, last pushed 6mo ago), licensed MIT. It adds 116 tokens to every session and 6,980 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

impeccable-agent

Autonomous executor for non-interactive impeccable commands. Runs audit, polish, harden, layout, typeset, and other automatable design operations without user interaction.

catlog22/maestro-flow · 39 tokens

azure-architect

Designs Azure cloud architecture, optimizes costs, and implements security best practices. Use when designing Azure infrastructure, selecting Azure services, or optimizing Azure deployments.

armanzeroeight/fastagent-plugins · 35 tokens

llm2bedrock-report-generator

Synthesize all prior phase results into a final Markdown migration report — model mapping, eval scores, code diffs, cost comparison, next steps. Writes MIGRATIONREPORT .md and returns a structured report object.

awslabs/startups · 52 tokens

grumpy-budget-hawk

Cloud cost reviewer. Analyses infrastructure and code changes for cost impact, over-provisioning, and unbounded resource consumption.

JackScammell/Parliament-Of-Chaos · 31 tokens

sst-cloud-architect

Use this agent when you need help with SST (Serverless Stack) development, deployment, or architecture decisions. This includes when you're building serverless applications, configuring cloud infrastructure, migrating between SST versions, or need guidance on SST v3 (CloudFront-based) vs SST v2 (CloudFormation…

Najeebullah3124/awesome-claude-universe · 0 tokens

gsd-roadmapper

Creates project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Spawned by /gsd-new-project orchestrator.

mrboups/xbrain · 36 tokens