CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

secure-headers-csp-builder

The guide demonstrates Express security headers, report-only and enforced CSP policies, nonce handling, and a CSP violation-reporting endpoint. It also covers Helmet.js integration, common policy fixes, tests, monitoring, and a staged rollout from report-only mode to full enforcement.

Quality

78%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/secure-headers-csp-builder/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.

Highly actionable, code-first content with a clear phased report-only → enforce workflow and explicit monitoring checkpoints. Its main weaknesses are the ~400-line monolithic structure with no reference files, redundant dual header implementations (manual middleware plus Helmet), and a few undefined helper functions that keep the code from being fully copy-paste ready.

Suggestions

Remove the redundancy between the manual securityHeaders middleware and the Helmet.js Integration section — keep one primary approach and mention the other as a brief alternative to cut significant tokens.

Move the CloudWatch monitoring implementation, Helmet configuration, and full 4-week rollout plan into reference files (e.g., references/monitoring.md, references/rollout-plan.md) linked from SKILL.md, keeping the body a lean overview.

Define or explicitly stub the helper functions used in the code (trackCSPViolation, isViolationSpike, sendAlert) or note their source, so all snippets are fully copy-paste ready.

DimensionReasoningScore

Conciseness

The body is code-heavy with no concept-teaching, but the manual "securityHeaders" middleware duplicates the "Helmet.js Integration" section and the Output Checklist overlaps the rollout plan, so it includes unnecessary content that could be tightened (anchor 3). Not 2 because the code itself is tight and free of padded explanations; not 4 because the dual header implementations are a real redundancy.

3 / 5

Actionability

Mostly executable, copy-paste-ready TypeScript (middleware, CSP configs, nonce generation, Helmet setup, vitest tests), but snippets reference undefined helpers (`trackCSPViolation`, `isViolationSpike`, `sendAlert`) and the "should block inline scripts without nonce" test body is empty — concrete code with minor gaps (anchor 4). Not 5 because those undefined references keep it from fully executable; not 3 because the code is real TypeScript, not pseudocode.

4 / 5

Workflow Clarity

A clear phased sequence ("Phase 1: Report-Only Mode" → "Phase 2: Enforce Mode") with a staged "10% → 50% → 100%" rollout and checkpoints ("Monitor violation reports", "Analyze 1 week of violations", "Monitor error rates") matches anchor 4. Not 5 because error recovery is only implied — "Adjust policy if needed" with no explicit rollback/revert-to-report-only instruction; not 3 because validation checkpoints are explicitly present throughout the rollout.

4 / 5

Progressive Disclosure

Sections are well-organized and navigable, but ~400 lines are fully inlined with zero reference files — the CloudWatch monitoring implementation, Helmet configuration, and 4-week rollout plan clearly belong in separate reference files (anchor 3: content that should be separate is inline). Not 2 because the section structure is good rather than minimal; not 4 because nothing is split out despite the size.

3 / 5

Total

14

/

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 description that clearly states what the skill does and provides an explicit, quoted trigger list covering the natural terms users would say. Minor improvements are possible: make "testing" and "compatibility checks" more concrete and add synonym triggers such as the spelled-out "Content Security Policy".

DimensionReasoningScore

Specificity

Lists several specific actions — "Implements security headers and Content Security Policy", "safe rollout strategy (report-only → enforce)", "testing, and compatibility checks" — but "testing" and "compatibility checks" lack concrete objects, leaving minor gaps in coverage (anchor 4). Not 5 because the action list is not fully concrete; not 3 because it goes well beyond 1-2 actions with a specific two-phase rollout strategy.

4 / 5

Completeness

Clearly and explicitly answers both "what" ("Implements security headers and Content Security Policy with safe rollout strategy (report-only → enforce), testing, and compatibility checks") and "when" ("Use for \"security headers\", \"CSP\", \"HTTP headers\", or \"XSS protection\"") with concrete quoted trigger phrases — a direct match to anchor 5. Not 4 because the "when" clause is already explicit and specific, not merely present.

5 / 5

Trigger Term Quality

Good natural keyword coverage — "security headers", "CSP", "HTTP headers", or "XSS protection" are phrases users would actually say — but a few natural terms are missing, such as the spelled-out "Content Security Policy" in the trigger clause and "helmet" (anchor 4). Not 5 because synonym coverage stops at these four terms; not 3 because the included terms are exactly the natural phrasings, not jargon.

4 / 5

Distinctiveness Conflict Risk

A clear niche (security headers / CSP rollout) with distinct quoted triggers, but "XSS protection" could overlap with input-sanitization or XSS-audit skills — mostly distinct with minor overlap risk against closely related skills (anchor 4). Not 5 because of that overlap; not 3 because the core CSP/headers rollout focus is well differentiated from generic skills.

4 / 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

referenced_paths_exist

Referenced path issues: 1 possibly missing (scripts/styles)

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/secure-headers-csp-builder/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.