sc-clerk
Skill13 starsChanged 2 months agoMITView on GitHub
(STUB / NOT IMPLEMENTED YET) Clerk auth setup for projects that explicitly use Clerk instead of @convex-dev/auth. Configures instance, sets allowed origins, creates JWT template for Convex integration. Pairs with Clerk MCP (clerk @ mcp.clerk.com/mcp) for SDK snippet generation.
- Reads credentials
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- si-coderSkill
- sc-allSkill
- sc-axSkill
- sc-buildSkill
- sc-cfSkill
- sc-convex-cloudSkill
- sc-convexSkill
- sc-dokploySkill
- sc-dokuSkill
- sc-dxSkill
- sc-feSkill
- sc-gitSkill
- sc-helpSkill
- sc-installSkill
- sc-n8nSkill
- sc-onboardingSkill
- sc-providerSkill
- sc-resendSkill
- scSkill
- sc-skillSkill
- sc-stripeSkill
- sc-supabaseSkill
- sc-syncSkill
- sc-uiSkill
- sc-uxSkill
- sc-vercelSkill
- use-si-coderSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Read Clerk instance from CLERK_SECRET_KEY (Backend API).
- Very specific: line 27
Create a JWT template named convex with the correct issuer claim so Convex can verify.
- Very specific: line 28
Write NEXT_PUBLIC_CLERK_FRONTEND_API_URL + publishable key to project .env.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/sc-clerk — Clerk auth (STUB)
Status: boilerplate only. Use only when a project explicitly chooses Clerk over
@convex-dev/auth.
When to use
By default /sc-all and /sc-convex use @convex-dev/auth. Use /sc-clerk only when:
- The user explicitly requests Clerk.
- An existing project already uses Clerk and is being migrated/maintained.
- You want a managed auth UI without running self-hosted JWKS.
Scope when implemented
- Read Clerk instance from
CLERK_SECRET_KEY(Backend API). - Configure allowed origins (
NEXT_PUBLIC_<app-url>+ dev origin). - Create a JWT template named
convexwith the correct issuer claim so Convex can verify. - Write
NEXT_PUBLIC_CLERK_FRONTEND_API_URL+ publishable key to project.env. - Set up Convex
auth.config.tswithproviders: [{ domain: <clerk-issuer>, applicationID: 'convex' }].
Env vars
| Var | Purpose |
CLERK_SECRET_KEY | sk_test_ or sk_live_ Backend API key |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY | pk_test_ or pk_live_ Frontend key |
NEXT_PUBLIC_CLERK_FRONTEND_API_URL | https://<issuer-domain> |
Suggested file layout
sc-clerk/
├── SKILL.md
└── scripts/
├── instance.js # read instance config + origins
├── set-origins.js # update allowed origins
├── jwt-template.js # create the 'convex' JWT template
└── sync-convex-auth-config.js # write auth.config.ts in projectNote on Clerk MCP
Once clerk MCP is installed (https://mcp.clerk.com/mcp), prefer it for SDK snippet generation, integration patterns, and SDK-version-specific advice. /sc-clerk handles provisioning (origins, JWT template, env setup); Clerk MCP handles code patterns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

