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.

73

Quality

89%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Quality

Content

79%

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

This is a well-crafted CSRF protection skill with excellent conciseness and actionability—executable code examples cover the core implementation patterns without unnecessary explanation. The main weaknesses are the lack of an explicit implementation workflow with verification steps (e.g., how to test that CSRF protection is actually working) and an unverifiable external reference. For a security-focused skill, a testing/validation checkpoint would significantly improve reliability.

Suggestions

Add an explicit implementation sequence with a verification step, e.g., 'After setup, test by submitting a form without the token and confirming a 403 response'

Provide the referenced python-react.md bundle file or remove the reference if it doesn't exist

DimensionReasoningScore

Conciseness

The content is lean and efficient. The comparison table is a great use of space, code examples are minimal but complete, and the best practices/common mistakes sections are terse bullet points without unnecessary explanation. No concepts are over-explained.

3 / 3

Actionability

Provides fully executable Express.js middleware code with token generation, validation using timing-safe comparison, session cookie configuration, and HTML form integration. All code is copy-paste ready and covers the complete implementation flow.

3 / 3

Workflow Clarity

The skill presents individual components (middleware, validation, form integration, cookies) but doesn't explicitly sequence them into a clear implementation workflow. There's no validation/verification step to confirm CSRF protection is working correctly after setup, which matters for a security-critical feature.

2 / 3

Progressive Disclosure

References python-react.md for additional implementations which is good structure, but no bundle files are provided to verify the reference exists. The main content is well-organized with clear sections, though the best practices and common mistakes sections could potentially be in a reference file to keep the main skill leaner.

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.

This is a strong skill description that follows best practices. It uses third-person voice, lists specific concrete techniques, includes an explicit 'Use when...' clause with natural trigger terms, and occupies a clearly distinct niche in web security. The description is concise yet comprehensive enough for accurate skill selection.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: 'synchronizer tokens, double-submit cookies, and SameSite attributes' are all distinct, well-defined techniques. The description clearly names the domain (CSRF protection) and enumerates specific implementation approaches.

3 / 3

Completeness

Clearly answers both 'what' (implements CSRF protection using synchronizer tokens, double-submit cookies, and SameSite attributes) and 'when' (Use when securing web forms, protecting state-changing endpoints, or implementing defense-in-depth authentication) with an explicit 'Use when...' clause.

3 / 3

Trigger Term Quality

Includes strong natural keywords users would say: 'CSRF protection', 'web forms', 'state-changing endpoints', 'authentication', 'synchronizer tokens', 'double-submit cookies', 'SameSite', and 'defense-in-depth'. These cover both technical and conceptual terms a developer would naturally use.

3 / 3

Distinctiveness Conflict Risk

CSRF protection is a well-defined, narrow security niche. The specific techniques mentioned (synchronizer tokens, double-submit cookies, SameSite attributes) clearly distinguish this from general web security, authentication, or other security skills. Unlikely to conflict with other skills.

3 / 3

Total

12

/

12

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.

Validation11 / 11 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.