In short.
API Security Hardening is an assistant skill for REST API developers, but its snippets need correction and completion before deployment. It supplies validation, request limiting, security headers and TLS configuration examples. Authentication and audit logging remain checklist items, and the Express /users example falls outside the shown rate-limit prefixes. The Nginx example places limit_req_zone inside server; whether that placement needs correction remains unknown pending documentation and configuration checks. Nothing was executed; runtime behavior and security effectiveness remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected folder plugins/api-security-hardening/skills/api-security-hardening at commit 88378361314f558fb719aec0af9fd898ab36f0b2: SKILL.md and references/python-nginx.md, plus the repository-root LICENSE notice. Other repository skills, including xss-prevention, plugin manifests, dependency documentation and repository history are outside the supplied evidence. Nothing was executed. Assistant installation, application behavior, dependency compatibility, performance and production security remain unverified.
The overview
Identity
The resource is the api-security-hardening skill in secondsky/claude-skills. Its selected folder contains SKILL.md and references/python-nginx.md. The main file provides assistant instructions and Express examples; the reference adds Python and Nginx examples.
Original source: [https://github.com/secondsky/claude-skills/tree/main/plugins/api-security-hardening/skills/api-security-hardening]. The assessed contents are tied to commit 88378361314f558fb719aec0af9fd898ab36f0b2.
Assessment
The skill offers a useful starting checklist and concrete code fragments for adding several API protections. It helps identify work across application middleware, validation and reverse-proxy configuration.
The examples need engineering review before adoption. Important controls are named without implementations, and some snippets have integration or configuration gaps. No execution results, compatibility checks or security measurements are supplied.
Users
The strongest fit is a developer using an assistant to review or implement protections in an Express or FastAPI API, particularly when Nginx handles incoming traffic. Developers need enough framework and deployment knowledge to connect the fragments and assess their effects.
Beginners can use the checklist to learn which controls to investigate. They will need additional guidance for authentication, authorization, error handling and deployment because the files do not provide a complete application or a step-by-step security tutorial.
Capabilities
The Express material demonstrates Helmet, MongoDB-oriented input sanitization, route-prefix rate limiting, email and password validation, name processing and response headers. Its checklist also calls for HTTPS, protected-route authentication, restricted CORS, production error handling, audit logging and dependency updates.
The reference demonstrates FastAPI host restrictions and CORS, SlowAPI request limits, Pydantic validation, Nginx TLS settings, request-size limits, timeouts and reverse-proxy headers. Its query example accepts a scalar search term and a list of tags, returning at most five tags.
Using it
Requirements
The Express snippets assume an existing application and use helmet, express-rate-limit, express-mongo-sanitize, express-validator and escape-html. The Python examples import FastAPI, SlowAPI and Pydantic. Supported runtime and dependency versions are not specified.
The Nginx example requires a backend service, certificates and a private key. Hostnames, allowed origins, certificate paths and the backend address are placeholders requiring replacement. The supplied files do not document assistant-host compatibility, installation commands or a required model.
Mechanism
The resource supplies instructions and examples for an assistant to use when working on API security. The application gains protections only when a developer implements and connects the relevant middleware, validators and server configuration.
The proposed layers act at different points: middleware processes requests, validators check route inputs, response headers express browser policies, and Nginx controls TLS and incoming traffic. The Python limiter identifies clients using get_remote_address, so its behavior behind a proxy needs deployment-specific review.
Setup
Keep SKILL.md together with references/python-nginx.md so the relative reference remains available. Installation into a particular assistant is undocumented in these files.
Application setup requires selecting compatible dependency versions, connecting the snippets to an existing app, replacing deployment placeholders and reviewing route coverage. The FastAPI fragments need assembly with UserCreate defined before the route declaration. The example places limit_req_zone inside server. Its permitted context has not been verified against Nginx documentation, and the configuration has not been tested; check both before deployment.
Example
The Express example configures a 15-minute window with a maximum of 100 requests under /api/ and five under /api/auth/. Requests matching the authentication prefix encounter both middleware registrations.
Its separate POST /users example validates email format, requires a password of at least eight characters with an uppercase letter and digit, and trims and checks the name before HTML escaping it. Validation failures return HTTP 400 with an error array. These are source examples; no request outcomes were observed.
Assessment & evidence
Limitations
The example places limit_req_zone inside server. Its permitted context has not been verified against Nginx documentation, and the configuration has not been tested; check both before deployment. The Express POST /users route is outside both shown /api/ rate-limit prefixes, so those registrations do not cover it.
Authentication and audit logging appear only in the checklist. The FastAPI snippet does not show rate-limit exception handling, and dependency versions are unpinned. The Python password rule requires a special character while the Express rule does not, so the examples express different policies.
The parameter-pollution example truncates a tag list but does not explicitly reject repeated scalar q parameters. The claim about express-validator v7 removing .escape() is not corroborated by the supplied evidence and should be verified before relying on it. The referenced xss-prevention skill is outside the supplied scope.
Reasoning
The likely value is helping a developer examine several security layers together. Headers, validation and traffic limits address different concerns, so their presence can make a review more systematic.
That value is limited by the implementation gaps. A checklist item does not establish that a control exists, and a configured control must cover the intended routes and deployment conditions. The supplied examples therefore support targeted implementation and review, without establishing that an API is secure.
Alternatives
Within the resource, developers can follow the Express examples or the FastAPI reference according to their application stack. Nginx supplies an additional deployment layer with TLS and incoming-request controls.
The main file points to a separate xss-prevention skill for sanitization guidance, but its contents and suitability are unknown here. No comparative evidence is supplied for competing skills, security scanners or broader frameworks, so no ranking is supported.
Evidence
The source evidence comprises the complete selected SKILL.md, its Python/Nginx reference and the repository-root MIT notice at the same commit. The documents support descriptions of the instructions, code fragments and licensing terms.
They contain no test results, measured security improvements, performance benchmarks or deployment receipts. The findings about route coverage and differing password rules come from reading the supplied examples. The reference visibly places limit_req_zone inside server, but the retained evidence does not establish its permitted configuration context. That context has not been verified against Nginx documentation, and the configuration has not been tested.
Access & freshness
Costs
The MIT notice grants the software permissions free of charge. The supplied material gives no prices for assistant access, model usage, hosting, deployment or implementation work, so total operating cost is unknown.
No model, subscription tier, token budget or paid service requirement is identified.
Rights
SKILL.md declares MIT licensing, and the repository-root LICENSE grants permission to use, copy, modify, distribute, sublicense and sell the software. Copies or substantial portions must retain the copyright and permission notices. The notice names Claude Skills Maintainers and disclaims warranties.
License source: [https://raw.githubusercontent.com/secondsky/claude-skills/88378361314f558fb719aec0af9fd898ab36f0b2/LICENSE]. Licenses for the referenced third-party dependencies are not included in the supplied evidence.
Freshness
The supplied snapshot was captured on 16 November 2026 at 21:41:34.702 UTC from commit 88378361314f558fb719aec0af9fd898ab36f0b2. The capture date does not establish when the files were last maintained.
No release version or supported dependency matrix is provided. Compatibility of the Pydantic @validator examples, middleware APIs and Nginx configuration with a particular installed version is unverified. Changes after the captured commit are unknown.
Actions
Before deployment, check the permitted context of limit_req_zone against Nginx documentation and correct its placement if required. Align rate-limit prefixes with actual routes, choose a consistent password policy and replace host, origin, certificate and backend placeholders. Confirm dependency compatibility and wire the framework-specific error handling.
Implement the authentication, authorization and audit logging the application requires. Then validate the Nginx configuration and exercise allowed and blocked origins, invalid inputs, protected routes, repeated query parameters and rate-limit responses in a controlled environment. None of these verification steps has been performed here.
