security-requirement-extraction — скилл для Claude: требования
Превращает модель угроз и бизнес-контекст в проверяемые требования по безопасности: user stories, критерии приёмки, тест-кейсы.
/plugin marketplace add wshobson/agents
/plugin install security-scanning@claude-code-workflowsЧто делает security-requirement-extraction
Скилл берёт результаты анализа угроз и раскладывает их по трём уровням: бизнес-требование, требование безопасности, технический контроль. Например, «защитить данные клиентов» превращается в «шифровать PII при хранении», а дальше в конкретную реализацию с ротацией ключей.
Внутри — категории требований (функциональные, нефункциональные, ограничения) и набор атрибутов: трассируемость до угроз, проверяемость, приоритет, уровень риска. Шаблоны и разобранные примеры лежат в references/details.md, файл подключается по необходимости.
Скилл требует, чтобы модель угроз уже была. Если её нет, сначала придётся её построить — иначе трассировать требования будет не к чему. Ставить стоит тем, кто ведёт security-документацию и пишет критерии приёмки для команды; для быстрых правок в коде он не нужен.
Какие задачи решает
- перевести угрозы из модели в конкретные требования
- написать security user stories с критериями приёмки
- собрать тест-кейсы на проверку требований безопасности
- связать требования с пунктами комплаенс-фреймворков
- зафиксировать приоритет и уровень риска для каждого требования
Примеры запросов агенту
- Разбери мою модель угроз и выведи требования безопасности по категориям
- Сделай security user stories с acceptance criteria из этого списка угроз
- Составь тест-кейсы для проверки требований из `references/details.md`
Как установить security-requirement-extraction
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install security-scanning@claude-code-workflows2Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill security-requirement-extraction -a claude-code3Вручную: положить файлы
~/.claude/skills/security-requirement-extraction/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/security-requirement-extraction/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill security-requirement-extraction -a codex2Вручную: положить файлы
.agents/skills/security-requirement-extraction/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill security-requirement-extraction -a cursor2Вручную: положить файлы
.cursor/skills/security-requirement-extraction/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wshobson/agents security-requirement-extraction2Вручную: положить файлы
.github/skills/security-requirement-extraction/SKILL.mdКомандой платформы
gemini skills install https://github.com/wshobson/agents --path plugins/security-scanning/skills/security-requirement-extractionВручную: положить файлы
.devin/skills/security-requirement-extraction/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о security-requirement-extraction
Как установить security-requirement-extraction в Claude?
Через маркетплейс плагинов: /plugin marketplace add wshobson/agents, затем /plugin install security-scanning@claude-code-workflows. Альтернатива — npx skills add wshobson/agents --skill security-requirement-extraction -a claude-code.
Что делает security-requirement-extraction?
Переводит модель угроз и бизнес-контекст в требования по безопасности: user stories, критерии приёмки, тест-кейсы. Каждое требование привязывается к угрозе и получает приоритет с уровнем риска.
Что нужно для работы скилла?
Готовая модель угроз или хотя бы список угроз. Без неё трассировать требования не к чему, и результат будет общим.
Исходный текст
SKILL.md · MIT
---
name: security-requirement-extraction
description: Derive security requirements from threat models and business context. Use when translating threats into actionable requirements, creating security user stories, or building security test cases.
---
# Security Requirement Extraction
Transform threat analysis into actionable security requirements.
## When to Use This Skill
- Converting threat models to requirements
- Writing security user stories
- Creating security test cases
- Building security acceptance criteria
- Compliance requirement mapping
- Security architecture documentation
## Core Concepts
### 1. Requirement Categories
```
Business Requirements → Security Requirements → Technical Controls
↓ ↓ ↓
"Protect customer "Encrypt PII at rest" "AES-256 encryption
data" with KMS key rotation"
```
### 2. Security Requirement Types
| Type | Focus | Example |
| ------------------ | ----------------------- | ------------------------------------- |
| **Functional** | What system must do | "System must authenticate users" |
| **Non-functional** | How system must perform | "Authentication must complete in <2s" |
| **Constraint** | Limitations imposed | "Must use approved crypto libraries" |
### 3. Requirement Attributes
| Attribute | Description |
| ---------------- | --------------------------- |
| **Traceability** | Links to threats/compliance |
| **Testability** | Can be verified |
| **Priority** | Business importance |
| **Risk Level** | Impact if not met |
## Templates and detailed worked examples
Full template library lives in `references/details.md`. Read that file when you need concrete templates for this skill.
## Best Practices
### Do's
- **Trace to threats** - Every requirement should map to threats
- **Be specific** - Vague requirements can't be tested
- **Include acceptance criteria** - Define "done"
- **Consider compliance** - Map to frameworks early
- **Review regularly** - Requirements evolve with threats
### Don'ts
- **Don't be generic** - "Be secure" is not a requirement
- **Don't skip rationale** - Explain why it matters
- **Don't ignore priorities** - Not all requirements are equal
- **Don't forget testability** - If you can't test it, you can't verify it
- **Don't work in isolation** - Involve stakeholders
© Seth Hobson · MIT · wshobson/agents