CtrlK
BlogDocsLog inGet started
Tessl Logo

clerk-sdk-patterns

Common Clerk SDK patterns and best practices. Use when implementing authentication flows, accessing user data, or integrating Clerk SDK methods in your application. Trigger with phrases like "clerk SDK", "clerk patterns", "clerk best practices", "clerk API usage".

80

Quality

77%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./plugins/saas-packs/clerk-pack/skills/clerk-sdk-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Discovery

89%

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

This is a solid skill description that clearly identifies its niche (Clerk SDK), provides explicit trigger guidance, and answers both what and when. Its main weakness is that the capability descriptions are somewhat general—mentioning 'authentication flows' and 'accessing user data' without listing more specific concrete actions like session management, middleware configuration, or webhook handling.

Suggestions

Add more specific concrete actions such as 'configure Clerk middleware, manage session tokens, handle webhooks, set up sign-in/sign-up flows' to improve specificity.

DimensionReasoningScore

Specificity

Names the domain (Clerk SDK) and mentions some actions like 'implementing authentication flows, accessing user data, integrating Clerk SDK methods,' but these are somewhat general and don't list truly concrete specific actions (e.g., 'create session tokens, manage user sign-up/sign-in, configure middleware').

2 / 3

Completeness

Clearly answers both 'what' (common Clerk SDK patterns and best practices for auth flows, user data, SDK integration) and 'when' (explicit 'Use when' clause and 'Trigger with phrases' section providing clear activation guidance).

3 / 3

Trigger Term Quality

Includes natural keywords users would say: 'clerk SDK', 'clerk patterns', 'clerk best practices', 'clerk API usage', 'authentication flows', 'user data'. Good coverage of terms a developer would naturally use when seeking Clerk help.

3 / 3

Distinctiveness Conflict Risk

Clerk SDK is a specific product/library, making this highly distinctive. The trigger terms are narrowly scoped to Clerk specifically, so it's unlikely to conflict with generic authentication or other SDK skills.

3 / 3

Total

11

/

12

Passed

Implementation

64%

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

This is a solid reference skill with excellent, executable code examples covering the most common Clerk SDK patterns. Its main weaknesses are moderate verbosity (unnecessary sections like Prerequisites, Output, and overview text that Claude doesn't need) and a lack of validation/verification steps within the patterns. The content would benefit from trimming boilerplate sections and potentially splitting into a concise overview with linked pattern files.

Suggestions

Remove the 'Prerequisites', 'Output', and 'Overview' sections — Claude already knows what Clerk is and these add no actionable value.

Add brief validation steps to patterns, e.g., 'Verify middleware is active by checking auth() returns userId on a protected route' to improve workflow clarity.

Consider splitting the five patterns into separate referenced files (e.g., patterns/server-auth.md, patterns/middleware.md) with SKILL.md serving as a concise index.

DimensionReasoningScore

Conciseness

The content is mostly efficient with good code examples, but includes unnecessary sections like 'Prerequisites' (Claude knows what Clerk needs), 'Output' (just restates what the patterns do), and some filler text. The overview paragraph and 'Next Steps' add little value.

2 / 3

Actionability

All five patterns provide fully executable TypeScript code that is copy-paste ready. The examples cover server components, client hooks, middleware, org-aware queries, and JWT templates with concrete, complete implementations including imports.

3 / 3

Workflow Clarity

The patterns are presented as independent recipes rather than a sequenced workflow, which is appropriate for a reference skill. However, there are no validation checkpoints or feedback loops — e.g., no guidance on verifying auth is working, testing middleware configuration, or debugging JWT template setup beyond the error table.

2 / 3

Progressive Disclosure

The content includes external resource links and a reference to 'clerk-core-workflow-a', but the main file is quite long (~150 lines of patterns) that could benefit from splitting patterns into separate files. The error handling table and examples section are well-structured but everything is inline in one monolithic file.

2 / 3

Total

9

/

12

Passed

Validation

81%

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

Validation9 / 11 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

9

/

11

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.