Skip to main content
Back to registry

api-security-best-practices

sickn33/antigravity-awesome-skills

Guide developers in building secure APIs by implementing authentication, authorization, input validation, rate limiting, and protection against common vulnerabilities. This skill covers security patterns for REST, GraphQL, and WebSocket APIs.

Installs2
Install command
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill api-security-best-practices
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Guide developers in building secure APIs by implementing authentication, authorization, input validation, rate limiting, and protection against common vulnerabilities. This skill covers security patterns for REST, GraphQL, and WebSocket APIs. I'll help you implement secure authentication: Protect against injection attacks: Prevent abuse and DDoS attacks: Secure sensitive data: Verify security implementation: Symptoms: JWT secret hardcoded or committed to Git Solution: ```javascript // ❌ Bad const JWT_SECRET = 'my-secret-key'; // ✅ Good const JWT_SECRET = process.env.JWT_SECRET; if (!JWT_SECRET) { throw new Error('JWT_SECRET environment variable is required'); } // Generate strong secret // node -e "console.log(require('crypto').randomBytes(64).toString('hex'))" ``` Symptoms: Users can set weak passwords like "password123" Solution: ```javascript const passwordSchema = z.string() .min(12, 'Password must be at least 12 characters') .regex(/[A-Z]/, 'Must contain uppercase letter') .regex(/[a-z]/, 'Must contain lowercase letter') .regex(/[0-9]/, 'Must contain number') .regex(/[^A-Za-z0-9]/, 'Must contain special character'); // Or use a password strength library const zxcvbn = require('zxcvbn'); const result = zxcvbn(password); if (result.score { await prisma.post.delete({ where: { id: req.params.id } }); res.json({ success: true }); }); // ✅ Good: Checks both authentication and...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does api-security-best-practices do?

Guide developers in building secure APIs by implementing authentication, authorization, input validation, rate limiting, and protection against common vulnerabilities. This skill covers security patterns for REST, GraphQL, and WebSocket APIs.

Is api-security-best-practices good?

api-security-best-practices does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does api-security-best-practices work with?

api-security-best-practices currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to api-security-best-practices?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install api-security-best-practices?

npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill api-security-best-practices

Related skills

More from sickn33/antigravity-awesome-skills

Related skills

Alternatives in Software Engineering