Agent skill · Audited from source
Clerk Core Workflow B
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Implement session management and middleware with Clerk.
Cite
Cite this page
ModelsAtlas. “Clerk Core Workflow B (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/clerk-core-workflow-b
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/clerk-pack/skills/clerk-core-workflow-bThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Implement session management and middleware with Clerk.
--- name: clerk-core-workflow-b description: 'Implement session management and middleware with Clerk. Use when managing user sessions, configuring route protection, or implementing token refresh and custom JWT templates. Trigger with phrases like "clerk session", "clerk middleware", "clerk route protection", "clerk token", "clerk JWT". ' allowed-tools: Read, Write, Edit, Grep version: 1.15.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - clerk - clerk-core - sessions - middleware compatibility: Designed for Claude Code --- # Clerk Core Workflow B: Session & Middleware ## Overview Implement session management and route protection with Clerk middleware. Covers `clerkMiddleware()` configuration, `auth()` patterns, custom session claims, JWT templates for external services, organization-scoped sessions, and session token v2. Use when managing user sessions, configuring route protection, or implementing token refresh and custom JWT templates. ## Prerequisites - `@clerk/nextjs` installed with ClerkProvider wrapping the app - Next.js 14+ with App Router (or adapt patterns for your stack) - Working publishable + secret Clerk keys in env ## Instructions 1. Confirm ClerkProvider and env keys are live (see `clerk-install-auth` / `clerk-hello-world`). 2. Configure `clerkMiddleware()` matcher / public routes for the routes you want open. 3. Use `auth()` / `currentUser()` on protected pages and API routes; fail closed when unauthenticated. 4. For custom claims or external JWT consumers, configure session token templates carefully (size limits). 5. For org-scoped apps, bind authorization to org id + role claims, not only user id. 6. Verify: signed-out user cannot hit protected routes; signed-in user can; org role gates hold. Deep patterns, JWT templates, and edge cases: [session-middleware-deep-dive.md](references/session-middleware-deep-dive.md). ## Output - Session/middleware configuration enforcing the requested protection rules - Documented JWT/session claim changes when customized - Verification steps for protected vs public routes ## Examples ### Protect all routes except marketing ``` User: Protect everything except /, /pricing, and Clerk sign-in routes. Skill: configures clerkMiddleware publicRoutes / matcher and verifies unauth redirect. ``` ### Custom session claim for plan tier ``` User: Put plan_tier on the session JWT for feature flags. Skill: configures session token template and validates claim size + read path. ``` ## Error Handling | Condition | Response | |---|---| | Route is accidentally public | Fail the verification gate and narrow the matcher before release. | | Session claim is absent or stale | Treat the request as unauthorized for the dependent feature and refresh through the supported path. | | JWT exceeds consumer limits | Remove nonessential claims; retrieve server-side attributes through an authorized backend. | | Organization context is missing | Deny the org-scoped operation and require explicit selection/role validation. | ## Resources - [Clerk middleware reference](https://clerk.com/docs/references/nextjs/clerk-middleware) - [Session tokens and custom claims](https://clerk.com/docs/guides/sessions/session-tokens) - [Clerk organization roles](https://clerk.com/docs/guides/organizations/roles-and-permissions)
Excerpt, first 3,352 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/clerk-core-workflow-b/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All automation skills →jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/clerk-core-workflow-b/)
<a href="https://modelsatlas.com/skills/jeremylongshore/clerk-core-workflow-b/"><img src="https://modelsatlas.com/skills/jeremylongshore/clerk-core-workflow-b/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Clerk Core Workflow B
What does the Clerk Core Workflow B skill do?
Is Clerk Core Workflow B safe to install?
What can Clerk Core Workflow B access on my machine?
What do I need installed to use Clerk Core Workflow B?
Which assistants does Clerk Core Workflow B work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Clerk Core Workflow B skill do?
- Is Clerk Core Workflow B safe to install?
- What can Clerk Core Workflow B access on my machine?