CtrlK
BlogDocsLog inGet started
Tessl Logo

csrf-protection

Implements CSRF protection using synchronizer tokens, double-submit cookies, and SameSite attributes. Use when securing web forms, protecting state-changing endpoints, or implementing defense-in-depth authentication.

67

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

78%Weight 40%Scale 1-5

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

A well-organized, actionable skill body that uses tables, executable code, and a single clearly-signaled reference file for alternate-stack implementations. Minor verbosity and the absence of an explicit numbered workflow keep conciseness, actionability, and workflow clarity at 4.

Suggestions

Remove the redundant opening line ('Defend against Cross-Site Request Forgery attacks using multiple protection layers.') since the H1 already states the purpose.

Add a brief numbered implementation sequence (generate token -> store in session -> inject in form -> validate on POST) with an explicit verification checkpoint to lift workflow clarity.

Note the assumed `app`/`session` Express setup or link to a minimal bootstrap so the token example is fully copy-paste runnable.

DimensionReasoningScore

Conciseness

The body is lean — tables, code, and bullet lists with no padding about what CSRF is — but the opening line restates the title and one inline code comment slightly over-explains, keeping it just below level 5.

4 / 5

Actionability

Provides concrete, mostly copy-paste-ready Express middleware, session config, and HTML form snippets, with minor gaps (e.g. `app`/`session` setup assumed) that keep it from fully level 5.

4 / 5

Workflow Clarity

Content is logically organized (generate token -> middleware -> validate -> form integration -> best practices) with explicit validation/error handling in the token code, but lacks an explicit numbered sequence with checkpoints, so it sits below level 5.

4 / 5

Progressive Disclosure

SKILL.md is a clear overview with a well-signaled, one-level-deep reference (references/python-react.md) listed with its contents, matching the level-5 anchor for clean navigation and appropriate content split.

5 / 5

Total

17

/

20

Passed

Description

83%Weight 40%Scale 1-5

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, well-structured description that clearly states both capability and triggering contexts with concrete techniques. Minor broadening from the 'defense-in-depth' framing keeps specificity and distinctiveness just below the top anchor.

DimensionReasoningScore

Specificity

Lists three concrete techniques ('synchronizer tokens, double-submit cookies, and SameSite attributes') rather than vague language, but stops short of the comprehensive multi-action coverage of the level-5 anchor.

4 / 5

Completeness

Explicitly answers both 'what' ('Implements CSRF protection using...') and 'when' ('Use when securing web forms, protecting state-changing endpoints...') with concrete trigger phrases, matching the level-5 anchor.

5 / 5

Trigger Term Quality

Includes natural triggers like 'securing web forms' and 'protecting state-changing endpoints', though 'defense-in-depth authentication' leans toward jargon and a few common synonyms are absent.

4 / 5

Distinctiveness Conflict Risk

'CSRF protection' is a clear, distinct niche, but the 'defense-in-depth authentication' phrasing introduces minor overlap risk with general security skills, keeping it just below level 5.

4 / 5

Total

17

/

20

Passed

Validation

100%

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

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
secondsky/claude-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.