CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

api-security-hardener

This skill presents a security workflow and TypeScript examples for hardening production APIs, including validation schemas, middleware, parameterized SQL queries, and output sanitization. It also covers security logging, safe error responses, recommended practices, and an implementation checklist.

Quality

75%

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

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/api-security-hardener/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

57%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, copy-paste-ready security code that is well organized by section, but it is a monolithic ~590-line file that inlines implementations Claude largely already knows, with a topic-list workflow lacking validation checkpoints. Splitting reference implementations into bundle files and tightening the redundant prose would lift the weakest dimensions.

Suggestions

Move the full middleware implementations (auth, authorization, security headers, logging, error handling) into references/ files (e.g. references/middleware.md) and keep SKILL.md as an overview with one key snippet per section, fixing the progressive_disclosure and conciseness gaps.

Replace the 'Best Practices' bullet list, which restates what the code already demonstrates, with only project-specific guidance Claude would not infer on its own.

Turn the 'Core Workflow' topic list into a sequenced process with explicit validation checkpoints (e.g. verify rate limiting with a test request, confirm headers with a curl -I check) before the final output checklist.

DimensionReasoningScore

Conciseness

Roughly 550 lines of standard middleware (JWT verification, helmet configuration, Express error handling) largely restate patterns Claude already knows, and the "Best Practices" bullets ("Validate everything", "Use parameterized queries") duplicate what the code sections show. Prose is lean rather than padded, keeping it above anchor 2, but the volume and redundancy prevent a 4.

3 / 5

Actionability

Complete, executable TypeScript throughout — Zod schemas, express-rate-limit configs, JWT middleware — with concrete usage examples like "router.post('/users', validate({ body: createUserSchema }), createUserHandler)". Minor gaps hold it below anchor 5: CORS appears only in the output checklist with no implementation, and the cost-limiter example mutates req.rateLimit.current in a way that will not work as written.

4 / 5

Workflow Clarity

"Core Workflow" is a numbered list of six topic areas rather than a sequenced process, with no validation checkpoints along the way — the only verification is the terminal "Output Checklist". Sequence is present and maps to sections (above anchor 2), but checkpoints are implicit (anchor 3, not 4).

3 / 5

Progressive Disclosure

Sections are clearly headed and navigable, but the entire middleware library is inlined in a single ~590-line SKILL.md with no references/ bundle, so content that clearly belongs in separate files (full middleware implementations) is inline. Good headers keep it above anchor 2's buried/structureless case, but the monolithic placement caps it at anchor 3.

3 / 5

Total

13

/

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: third-person voice, concrete capability list, and an explicit 'Use when...' clause with natural quoted trigger phrases. The only weaknesses are a slightly generic trailing action ("protection against common attacks") and a few missing natural trigger synonyms.

DimensionReasoningScore

Specificity

Lists three concrete actions ("rate limiting, input validation, authentication") alongside the generic "protection against common attacks". It exceeds anchor 3's '1-2 concrete actions' but the fourth action is non-specific, so it falls short of anchor 5's comprehensive concrete coverage.

4 / 5

Completeness

Explicitly answers both what ("Hardens API security with rate limiting, input validation, authentication...") and when ("Use when users request 'API security', 'secure API', ...") with concrete quoted trigger phrases, matching the anchor-5 example structure. Neither component is missing or vague.

5 / 5

Trigger Term Quality

The quoted triggers "API security", "secure API", "rate limiting", "input validation", and "API protection" are phrases users would naturally say, giving good keyword coverage. Not a 5 because common variations like "authentication", "XSS", "SQL injection", or "API hardening" are absent.

4 / 5

Distinctiveness Conflict Risk

The API-security hardening niche is clear and mostly distinct, but triggers like "rate limiting" and "input validation" could overlap with single-purpose validation or rate-limiting skills. Minor overlap risk keeps it below anchor 5, well above the broad overlap of anchor 3.

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

skill_md_line_count

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

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/api-security-hardener/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.