agentleFS
rahmanef63rahmanef63/si-coder-agent/skills/sc-clerk/SKILL.md

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

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
  1. Very specific:

    Read Clerk instance from CLERK_SECRET_KEY (Backend API).

    line 25
  2. Very specific:

    Create a JWT template named convex with the correct issuer claim so Convex can verify.

    line 27
  3. Very specific:

    Write NEXT_PUBLIC_CLERK_FRONTEND_API_URL + publishable key to project .env.

    line 28

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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 convex with 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.ts with providers: [{ domain: <clerk-issuer>, applicationID: 'convex' }].

Env vars

VarPurpose
CLERK_SECRET_KEYsk_test_ or sk_live_ Backend API key
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYpk_test_ or pk_live_ Frontend key
NEXT_PUBLIC_CLERK_FRONTEND_API_URLhttps://<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 project

Note 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.