python-cybersecurity-tool-development — скилл для Claude Code
Скилл python-cybersecurity-tool-development учит агента писать Python-инструменты для пентеста: сканеры портов, перечислители, брут-форсеры с async-сетью, валидацией входа и структурированным логированием.
Apache-2.0 1 000 установок ★ 312 обновлён 2026-10-08
npx skills add Mindrally/skills --skill python-cybersecurity-tool-development -a claude-codeЧто делает python-cybersecurity-tool-development
Агент строит модульную архитектуру: папки scanners/, enumerators/, attackers/, reporting/, utils/. Внутри — чистые функции с типами, guard-клозы для проверки входа, async def для сетевых операций. Для конфигов используется Pydantic v2, для сети — aiohttp или httpx, для пакетов — scapy, для портов — python-nmap.
Все внешние данные проходят санитизацию, секреты грузятся из переменных окружения, shell-команды с пользовательскими строками запрещены. Сетевые сканы работают через пулы соединений, DNS-запросы кэшируются, таргеты обрабатываются батчами. Логи идут в JSON для SIEM. Тесты — через pytest и pytest-asyncio.
Скилл задаёт secure defaults: TLS 1.2+, сильные шифры, rate-limiting для сканирования. CLI и RESTful API собираются из одного кода, middleware централизует логи и метрики. Без cryptography, scapy или paramiko в окружении часть функций недоступна.
Какие задачи решает
- собрать async-сканер портов с лимитом запросов
- организовать модульную структуру пентест-инструмента
- написать брут-форсер SSH с санитизацией входа и guard-клозами
- логировать результаты сканирования в JSON для SIEM
- батчить большие списки целей и кэшировать DNS
Примеры запросов агенту
- Напиши async-сканер портов с пулом соединений и rate-limiting для списка IP
- Организуй структуру проекта:
scanners/,enumerators/,attackers/,reporting/,utils/— и добавь guard-клозы в каждую функцию - Сделай брут-форсер SSH через
asyncsshс санитизацией входа, JSON-логами и секретами из.env
Как установить python-cybersecurity-tool-development
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill python-cybersecurity-tool-development -a claude-code2Вручную: положить файлы
~/.claude/skills/python-cybersecurity-tool-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/python-cybersecurity-tool-development/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill python-cybersecurity-tool-development -a codex2Вручную: положить файлы
.agents/skills/python-cybersecurity-tool-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill python-cybersecurity-tool-development -a cursor2Вручную: положить файлы
.cursor/skills/python-cybersecurity-tool-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills python-cybersecurity-tool-development2Вручную: положить файлы
.github/skills/python-cybersecurity-tool-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill python-cybersecurity-tool-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path python-cybersecurity-tool-developmentВручную: положить файлы
.devin/skills/python-cybersecurity-tool-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill python-cybersecurity-tool-development -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о python-cybersecurity-tool-development
Как установить python-cybersecurity-tool-development в Claude Code?
Выполни npx skills add Mindrally/skills --skill python-cybersecurity-tool-development -a claude-code. Файл скилла окажется в ~/.claude/skills/python-cybersecurity-tool-development/SKILL.md.
Что делает скилл python-cybersecurity-tool-development?
Учит агента строить Python-инструменты для пентеста: сканеры, энумераторы, брут-форсеры. Задаёт модульную архитектуру, async-сеть, guard-клозы, санитизацию входа, JSON-логи и secure defaults.
Какие библиотеки нужны для работы скилла?
Скилл опирается на cryptography, scapy, python-nmap или libnmap, paramiko или asyncssh, aiohttp или httpx. Без них часть функций недоступна.
Исходный текст
SKILL.md · Apache-2.0
--- name: python-cybersecurity-tool-development description: Guidelines for building Python cybersecurity tools with secure coding practices, async scanning, and structured security testing. metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Python Cybersecurity Tool Development You are an expert in Python cybersecurity tool development, focusing on secure, efficient, and well-structured security testing applications. ## Key Principles - Write concise, technical responses with accurate Python examples - Use functional, declarative programming; avoid classes where possible - Prefer iteration and modularization over code duplication - Use descriptive variable names with auxiliary verbs (e.g., `is_encrypted`, `has_valid_signature`) - Use lowercase with underscores for directories and files - Follow the Receive an Object, Return an Object (RORO) pattern ## Python/Cybersecurity Guidelines - Use `def` for pure, CPU-bound routines; `async def` for network- or I/O-bound operations - Add type hints for all function signatures - Validate inputs with Pydantic v2 models where structured config is required - Organize file structure into modules: - `scanners/` (port, vulnerability, web) - `enumerators/` (dns, smb, ssh) - `attackers/` (brute_forcers, exploiters) - `reporting/` (console, HTML, JSON) - `utils/` (crypto_helpers, network_helpers) ## Error Handling and Validation - Perform error and edge-case checks at the top of each function (guard clauses) - Use early returns for invalid inputs - Log errors with structured context (module, function, parameters) - Raise custom exceptions and map them to user-friendly messages - Keep the "happy path" last in the function body ## Dependencies - `cryptography` for symmetric/asymmetric operations - `scapy` for packet crafting and sniffing - `python-nmap` or `libnmap` for port scanning - `paramiko` or `asyncssh` for SSH interactions - `aiohttp` or `httpx` (async) for HTTP-based tools ## Security-Specific Guidelines - Sanitize all external inputs; never invoke shell commands with unsanitized strings - Use secure defaults (TLSv1.2+, strong cipher suites) - Implement rate-limiting and back-off for network scans - Load secrets from secure stores or environment variables - Provide both CLI and RESTful API interfaces - Use middleware for centralized logging, metrics, and exception handling ## Performance Optimization - Utilize asyncio and connection pooling for high-throughput scanning - Batch or chunk large target lists to manage resource utilization - Cache DNS lookups and vulnerability database queries when appropriate - Lazy-load heavy modules only when needed ## Key Conventions 1. Use dependency injection for shared resources 2. Prioritize measurable security metrics (scan completion time, false-positive rate) 3. Avoid blocking operations in core scanning loops 4. Use structured logging (JSON) for easy ingestion by SIEMs 5. Automate testing with pytest and `pytest-asyncio`
© Mindrally · Apache-2.0 · Mindrally/skills