CtrlK
BlogDocsLog inGet started
Tessl Logo

clerk-core-workflow-b

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

71

Quality

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Quality

Content

77%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, highly actionable skill with executable code and a helpful error-recovery table, but it underuses progressive disclosure: the body is a long monolith and the bundled reference file is neither signaled nor differentiated from the inline content.

Suggestions

Link references/implementation.md from the body and repurpose it as a true second-tier resource so the SKILL.md overview can stay lean.

Move detailed/duplicated code blocks (e.g. role-based navigation, the OrgSwitcher client component) into the reference file, keeping only a concise representative example inline.

Trim the body by splitting the seven full code samples into brief canonical patterns with pointers, reducing token cost without losing actionability.

DimensionReasoningScore

Conciseness

The body is code-forward with useful non-obvious notes (e.g. "auth() is free (JWT parsing)" vs "currentUser() costs a Backend API call"), but at ~327 lines across seven full code blocks it could be tightened and partially duplicates the bundled reference file.

2 / 3

Actionability

Each step provides complete, executable TypeScript with real imports and copy-paste-ready patterns for middleware, auth(), custom claims, JWT templates, and server actions.

3 / 3

Workflow Clarity

Steps 1–7 are clearly sequenced and the Error Handling table supplies explicit feedback loops for common failure modes such as redirect loops and null orgId.

3 / 3

Progressive Disclosure

The body is a monolithic inline walkthrough while the bundled references/implementation.md is never linked from the body and largely restates the same middleware, API route, and server-component code rather than extending it.

2 / 3

Total

10

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong, third-person description that names concrete capabilities, supplies explicit "Use when" guidance, and lists natural trigger phrases. It cleanly satisfies all four dimensions with no padding or over-claims.

DimensionReasoningScore

Specificity

"Implement session management and middleware with Clerk" plus "configuring route protection, or implementing token refresh and custom JWT templates" lists multiple specific concrete actions rather than vague language.

3 / 3

Completeness

It clearly states what the skill does and provides an explicit "Use when..." clause with enumerated triggers, answering both what and when.

3 / 3

Trigger Term Quality

Explicit trigger phrases "clerk session", "clerk middleware", "clerk route protection", "clerk token", "clerk JWT" give good coverage of natural terms a user would actually say.

3 / 3

Distinctiveness Conflict Risk

Scoped to Clerk session/middleware work with Clerk-prefixed triggers and a clear niche, making conflict with unrelated skills unlikely.

3 / 3

Total

12

/

12

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

14

/

16

Passed

Repository
jeremylongshore/claude-code-plugins-plus-skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.