api-security-best-practices
Implement secure API design patterns including authentication, authorization, input validation, rate limiting, and protection against common API vulnerabilities
от Dokhacgiakhoa★ 513 звёзд на GitHub
Установить api-security-best-practices в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
API Security Best Practices
Overview
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.
When to Use This Skill
- Use when designing new API endpoints
- Use when securing existing APIs
- Use when implementing authentication and authorization
- Use when protecting against API attacks (injection, DDoS, etc.)
- Use when conducting API security reviews
- Use when preparing for security audits
- Use when implementing rate limiting and throttling
- Use when handling sensitive data in APIs
How It Works
🧠 Knowledge Modules (Fractal Skills)
1. Step 1: Authentication & Authorization
2. Step 2: Input Validation & Sanitization
3. Step 3: Rate Limiting & Throttling
4. Step 4: Data Protection
5. Step 5: API Security Testing
6. Example 1: Implementing JWT Authentication
7. Authentication Flow
8. Implementation
9. Security Best Practices
10. Example 2: Input Validation and SQL Injection Prevention
11. The Problem
12. The Solution
13. Validation Checklist
14. Example 3: Rate Limiting and DDoS Protection
15. Why Rate Limiting?
16. Implementation with Express Rate Limit
17. Advanced: Per-User Rate Limiting
18. DDoS Protection with Helmet
19. Rate Limit Response Headers
20. ✅ Do This
21. ❌ Don't Do This
22. Problem: JWT Secret Exposed in Code
23. Problem: Weak Password Requirements
24. Problem: Missing Authorization Checks
25. Problem: Verbose Error Messages
26. Authentication & Authorization
27. Input Validation
28. Rate Limiting & DDoS Protection
29. Data Protection
30. Monitoring & Logging
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- sub-skills/advanced-per-user-rate-limiting.md
- sub-skills/authentication-authorization.md
- sub-skills/authentication-flow.md
- sub-skills/data-protection.md
- sub-skills/ddos-protection-with-helmet.md
- sub-skills/do-this.md
- sub-skills/dont-do-this.md
- sub-skills/example-1-implementing-jwt-authentication.md
- sub-skills/example-2-input-validation-and-sql-injection-prevention.md
- sub-skills/example-3-rate-limiting-and-ddos-protection.md
- sub-skills/implementation-with-express-rate-limit.md
- sub-skills/implementation.md
- sub-skills/input-validation.md
- sub-skills/monitoring-logging.md
- sub-skills/problem-jwt-secret-exposed-in-code.md
- sub-skills/problem-missing-authorization-checks.md
- sub-skills/problem-verbose-error-messages.md
- sub-skills/problem-weak-password-requirements.md
- sub-skills/rate-limit-response-headers.md
- sub-skills/rate-limiting-ddos-protection.md
- sub-skills/security-best-practices.md
- sub-skills/step-1-authentication-authorization.md
- sub-skills/step-2-input-validation-sanitization.md
- sub-skills/step-3-rate-limiting-throttling.md
- sub-skills/step-4-data-protection.md
- sub-skills/step-5-api-security-testing.md
- sub-skills/the-problem.md
- sub-skills/the-solution.md
- sub-skills/validation-checklist.md
- sub-skills/why-rate-limiting.md
FAQ
Что делает скилл api-security-best-practices?
Implement secure API design patterns including authentication, authorization, input validation, rate limiting, and protection against common API vulnerabilities
Как установить скилл api-security-best-practices?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-security-best-practices запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…