protect-with-password — скилл для Claude Code
Скилл protect-with-password для Claude Code генерирует надёжный пароль и шифрует указанные файлы алгоритмом AES-256. Включается по запросу защитить документы перед передачей.
MIT 115 установок ★ 632 обновлён 2026-07-29
npx skills add transilienceai/communitytools --skill protect-with-password -a claude-codeЧто делает protect-with-password
Скилл запускает скрипт tools/protect_with_password.py, создавая защищённые копии файлов рядом с оригиналами или в каталоге --out-dir. Исходные файлы остаются нетронутыми. Пароль генерируется автоматически длиной 24 символа либо задаётся вручную ключом --password.
Файлы .pdf получают нативное шифрование AES-256 через qpdf с откатом на pypdf, превращаясь в <name>-protected.pdf. Документы Word, Excel, PowerPoint и прочие типы скрипт упаковывает в архивы <name>.7z через 7-Zip с параметром -mhe=on для скрытия имён файлов. Если инструментов для AES-256 в системе нет, процесс завершается с ошибкой без отката на слабые алгоритмы ZipCrypto или RC4.
Пароль записывается в файл PROTECT-PASSWORD.txt с правами доступа 600, выводится в консоль и дублируется в структуре JSON. Для работы скрипту требуется Python 3 и установленные утилиты шифрования.
Какие задачи решает
- зашифровать PDF нативным алгоритмом AES-256
- упаковать документы Office в защищённый архив 7z с шифрованием имён
- сгенерировать стойкий пароль на 24 символа для группы файлов
- защитить артефакты перед отправкой без изменения оригиналов
Примеры запросов агенту
- Установи пароль на
report.pdfиbudget.xlsxперед отправкой клиенту - Защити файлы из папки
dist/единым паролем черезprotect-with-password - Зашифруй
presentation.pptxс помощью AES-256 и задай пароль вручную
Как установить protect-with-password
1Через Skills CLI (Vercel)
npx skills add transilienceai/communitytools --skill protect-with-password -a claude-code2Вручную: положить файлы
~/.claude/skills/protect-with-password/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/protect-with-password/
1Через Skills CLI (Vercel)
npx skills add transilienceai/communitytools --skill protect-with-password -a codex2Вручную: положить файлы
.agents/skills/protect-with-password/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add transilienceai/communitytools --skill protect-with-password -a cursor2Вручную: положить файлы
.cursor/skills/protect-with-password/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install transilienceai/communitytools skills/protect-with-password2Вручную: положить файлы
.github/skills/protect-with-password/SKILL.md1Через Skills CLI (Vercel)
npx skills add transilienceai/communitytools --skill protect-with-password -a gemini-cli2Командой платформы
gemini skills install https://github.com/transilienceai/communitytools --path skills/protect-with-passwordВручную: положить файлы
.devin/skills/protect-with-password/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add transilienceai/communitytools --skill protect-with-password -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о protect-with-password
Как установить protect-with-password в Claude Code?
Выполните команду npx skills add transilienceai/communitytools --skill protect-with-password -a claude-code.
Что делает protect-with-password?
Скрипт шифрует переданные файлы одним паролем с использованием AES-256: для PDF создаётся защищённая копия, а документы Office и другие форматы упаковываются в архив .7z.
Что нужно для работы protect-with-password?
Требуются Python 3, утилита qpdf или библиотека pypdf для файлов PDF, а также архиватор 7-Zip для остальных типов файлов.
Исходный текст
SKILL.md · MIT
---
name: protect-with-password
description: Generate ONE strong password and apply it to each referenced file (PDF, Word, Excel, PowerPoint, or any type). Use when asked to password-protect / encrypt / lock one or more deliverable files with a single password before sharing.
---
# Protect With Password
Mint a single strong password and password-protect every referenced file with it, "accordingly" per file type. Deterministic, non-destructive (originals are never touched), AES-256 or nothing.
## Run it
```
python3 tools/protect_with_password.py FILE [FILE ...] \
[--password PW] [--length 24] [--out-dir DIR] \
[--password-file PATH | --no-password-file]
```
- Pass every file the user referenced as positional arguments.
- By default a strong password is generated (`--password` overrides to reuse one).
- Protected copies are written alongside each input, or into `--out-dir`.
- The tool prints a JSON summary on stdout and a password banner on stderr, and (unless `--no-password-file`) writes the password to a chmod-600 `PROTECT-PASSWORD.txt`.
## How each type is protected
| File | Protection | Result |
|------|-----------|--------|
| `.pdf` | Native AES-256 (qpdf → pypdf fallback) | `<name>-protected.pdf` — recipient is prompted for the password on open |
| `.docx/.xlsx/.pptx`, `.doc/.xls/.ppt`, images, anything else | AES-256 7-Zip archive (`-mhe=on`, filenames encrypted) | `<name>.7z` — recipient extracts with the password (7-Zip / Keka / WinRAR) |
Native in-file Office (MS-OFFCRYPTO "agile") encryption needs LibreOffice or a dedicated encryptor that is not bundled here, so Office files are wrapped in a strong AES-256 archive instead. If no AES-256 tool is available for a file, it is reported as a failure — never downgraded to weak ZipCrypto/RC4 (no false assurance).
## After running
Relay the password to the user and remind them to **share it OUT-OF-BAND** — never in the same channel/email as the protected files — and to delete `PROTECT-PASSWORD.txt` once handed over. Exit code is 0 only if every file was protected; 1 if any failed (check `results[].reason`).
Related: [`tools/protect_deliverable.py`](../../tools/protect_deliverable.py) does the engagement-wide variant (one protected PDF + an AES-256 deliverable zip); this skill protects an arbitrary set of individual files.
© transilienceai · MIT · transilienceai/communitytools