CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

cors-configuration

The guide presents CORS headers and configuration examples for Express, Next.js, and Fastify, plus dynamic origin validation, credentials, and companion security headers. It also includes CORS tests, common configuration patterns, best practices, and a checklist for verifying a setup.

Quality

77%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/cors-configuration/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

63%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.

The body delivers exceptionally actionable, executable CORS guidance across frameworks with tests and a checklist, but it is monolithic and redundant: five-plus full framework configurations, a duplicated headers reference, and an off-topic security-headers section inflate it to ~540 lines with no progressive disclosure into reference files. Tightening the duplication and splitting framework configs out would preserve its strengths at a fraction of the token cost.

Suggestions

Split framework-specific configurations into one-level-deep reference files (e.g., references/express.md, references/nextjs.md, references/fastify.md), keeping SKILL.md to the core workflow, headers reference, credentials rules, best practices, and output checklist with clear 'See X' links.

Eliminate redundant coverage: keep one canonical Express example (the cors library version) and drop the manual middleware and repeated header-value blocks, since the Headers Reference already enumerates the values every example repeats.

Remove or relocate the off-topic 'Security Headers Companion' section (X-Frame-Options, XSS, Referrer-Policy are not CORS) and trim comments that re-explain basics Claude already knows.

DimensionReasoningScore

Conciseness

At ~540 lines the body is noticeably padded: the same configuration is shown three ways in Express (cors library, manual middleware, route-specific) and twice in Next.js, the "CORS Headers Reference" block duplicates values present in every code example, the off-topic "Security Headers Companion" section covers X-Frame-Options/XSS basics that are not CORS, and comments re-explain basics Claude knows ("// Prevent clickjacking", "// 24 hours"). This fits anchor 2's "several unnecessary explanations or padded sections" better than anchor 3, since the redundancy spans multiple sections rather than being isolated tightenings, and the rubric explicitly says to penalize verbosity even when accurate.

2 / 5

Actionability

The content is copy-paste-ready, complete TypeScript for every common case: library-based and manual Express middleware, route-scoped CORS, Next.js middleware and per-route OPTIONS handlers, Fastify plugin config, regex/subdomain origin validation, credentialed fetch/axios clients, and supertest tests. The few undefined identifiers (publicDataHandler, processData) are obvious contextual placeholders, not missing steps, so it meets anchor 5's "fully executable... specific examples cover the common cases" rather than anchor 4's "minor gaps".

5 / 5

Workflow Clarity

The "Core Workflow" gives a clear six-step sequence ending in "6. Test configuration: Verify CORS works", backed by an executable Testing section and an "Output Checklist" — most checkpoints are present, matching anchor 4. It falls short of anchor 5 because the workflow steps are terse one-liners not tied to their sections and there is no error-recovery feedback loop (what to inspect when a preflight or origin check fails, beyond "log blocked requests").

4 / 5

Progressive Disclosure

No bundle files exist and the body is monolithic: framework-specific configurations (Express, Next.js, Fastify) that clearly belong in separate reference files are all inlined, matching anchor 3's "some structure but could be better organized; content that should be separate is inline". It is above anchor 2 because section headers (## Express.js Configuration, ## Testing CORS, etc.) make the file navigable, and below anchor 4 because nothing is split out — SKILL.md carries the entire payload.

3 / 5

Total

14

/

20

Passed

Description

82%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 description with an explicit third-person what-clause and a well-constructed "Use when" clause listing natural, CORS-specific trigger phrases. Its only weaknesses are the single-verb what-clause with mild buzzword padding ("security best practices") and a few missing high-frequency trigger terms like "CORS error" or "CORS policy".

DimensionReasoningScore

Specificity

The what-clause names the domain and concrete objects ("proper headers, preflight handling") but rests on a single verb ("Configures"), and "security best practices" is generic padding. It lists 1-2 concrete actions rather than the several distinct actions of the anchor-4 example ("Extracts text... fills forms, converts pages"), and it is clearly above anchor 2's domain-only vagueness.

3 / 5

Completeness

Explicitly answers both questions: what ("Configures Cross-Origin Resource Sharing with proper headers, preflight handling, and security best practices") and when ("Use when users request 'CORS setup', 'cross-origin requests'...") with concrete trigger phrases, exactly matching the anchor-5 example pattern. Anchor 4 would require the when-clause to be less explicit, which it is not.

5 / 5

Trigger Term Quality

Five natural trigger phrases ("CORS setup", "cross-origin requests", "preflight requests", "CORS headers") that users would genuinely say, matching anchor 4's "good keyword coverage; a few natural terms missing". Not anchor 5 because common user phrasings like "CORS error", "CORS policy", or the ubiquitous "Access-Control-Allow-Origin" error message are absent.

4 / 5

Distinctiveness Conflict Risk

CORS is a clear niche and every trigger phrase is CORS-specific, giving minimal conflict risk with other skills, matching anchor 5. The only faint overlap is "security best practices" brushing against generic web-security skills, but that phrase sits in the what-clause, not the triggers, so anchor 4's "minor overlap risk" is a worse fit.

5 / 5

Total

17

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (546 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/cors-configuration/SKILL.md

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.