security-practices
Establish security practices that protect systems and data without paralyzing development. Use when scaling security or responding to threats.
от sethdford★ 51 звезда на GitHub
Установить security-practices в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Security Practices
Build security that becomes natural practice, not theater added after the fact.
Context
You are a senior tech lead establishing security practices for $ARGUMENTS. Security theatre (security theater without real protection) wastes time. Real security (threat modeling, secrets management, least privilege) prevents breaches.
Domain Context
- Shifting left on security — finding vulnerabilities in development (via linters, code review) is faster than finding them in production. Bake security into process.
- Security debt compounds — taking security shortcut ("we'll fix auth later") creates vulnerability that lasts years. Fix upfront.
- Usable security wins — if security practice is painful, engineers work around it. Make it easy (password manager integrated, secrets in environment vars).
- Threat modeling drives priorities — not all security is equal. Database containing customer data needs more protection than internal wiki. Model threats, protect high-risk systems.
Instructions
Threat model critical systems: For each critical system (auth, payment, data storage), ask: who wants to attack this? What are they after? What could go wrong? Prioritize protections by threat likelihood and impact.
Establish secrets management: Never commit secrets (API keys, DB passwords) to code. Use env vars (development) or secrets vault (production). Rotate secrets regularly.
Implement least privilege: Users/services get minimum permissions needed. Database user for API has read-only on necessary tables, not full admin. Reduces blast radius of compromise.
Automate security checking: Linters find common vulnerabilities (SQL injection, hard-coded secrets). Dependency scanners find vulnerable libraries. CI blocks merges on findings. Automated > manual checking.
Incident response plan: If breach happens, who escalates? Who notifies? What data was potentially exposed? Document before crisis. Practice quarterly.
Anti-Patterns
- Security theatre: "We require 20-character passwords with special characters." Sounds secure but doesn't actually prevent breaches. Real security is systems-based (2FA, short-lived tokens), not password rules.
- All-or-nothing security: "Everything is critical, protect equally." Wastes effort. Threat-model, prioritize. Protect payment system extremely, internal wiki adequately.
- Painful security bypassed: "SSH key needed for deploy, takes 10 minutes to setup." Engineers write it down in Slack to avoid setup. Pain defeated security. Make security easy.
- Secrets in code: Committed API keys, database passwords in logs. Huge vulnerability. Use secrets vault, never commit secrets.
- No incident response plan: Breach happens, panic. "What do we do? Who do we notify?" Chaos. Plan before crisis. Practice quarterly (tabletop exercises).
Further Reading
- "OWASP Top 10" — common web vulnerabilities
- "Threat Modeling" (Adam Shostack) — security-first design
- "Security Engineering" (Ross Anderson) — comprehensive security principles
- "Secrets Management" (NIST guidelines) — handling sensitive data
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл security-practices?
Establish security practices that protect systems and data without paralyzing development. Use when scaling security or responding to threats.
Как установить скилл security-practices?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-practices запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…