Skill Details
Runtime
(gpt-5.5)
Example user message
[userMessage]: Harden my Express API before I deploy it.
Example agent response
Project Detected:
Node.js Express API with JWT authentication
---
Security Risks Found:
- CORS allows requests from every origin
- Production error responses expose internal error details
- JWT secret configuration is not validated at startup
- Security headers are not configured
---
Security Fixes Applied:
- Restricted CORS origins through environment-based configuration
- Added production-safe error responses
- Added startup validation for JWT_SECRET
- Added secure HTTP headers using existing Express middleware patterns
---
Files Modified:
- src/app.js
- src/middleware/errorHandler.js
- src/config/env.js
- .env.example
- package.json
---
Commands Executed:
- npm audit
- npm test
- npm run lint
---
Validation Result:
Tests and linting passed successfully. The dependency audit reported one moderate development-only issue that was not automatically upgraded.
---
Remaining Risks:
- Rate limiting is not yet configured on the login endpoint
- Production proxy and HTTPS settings should be verified on the hosting platform
---
Recommended Next Step:
Add rate limiting to authentication routes before public deployment.
Or get it with Select10 Select prompts/mo — under $2 each
Learn moreBy purchasing this skill, you agree to our terms of service
GPT-5.5
Automatically find and fix common security weaknesses in existing projects.
This skill inspects source code, dependencies, configuration, authentication, input handling, and secret management, then applies safe security improvements and validates the result.
✔ Detect common security risks
✔ Fix unsafe configuration
✔ Improve input validation
✔ Protect secrets and sensitive data
✔ Run safe audits and tests
Perfect for SaaS apps, APIs, dashboards, and production-ready projects.
...more
Added 1 week ago
