TOTP
БесплатноЗапускает вложенные скриптыНе проверенTOTP-based OTP verification for sensitive operations (env vars, gateway restarts, backup deletions, critical config changes). Uses otplib with window:2 (1…
от diegofcornejo1 766 установок в других каталогахОб этом скилле
TOTP Verification Skill
Secure OTP verification using TOTP (Time-based One-Time Password) for sensitive operations.
Purpose
Protect access to:
.envvariablesopenclaw.jsonconfiguration- Gateway restarts
- Backup deletions
- Critical configuration changes
- External API key operations
Setup
Install dependencies:
npm installGenerate secret and QR:
npm run generateOptionally pass service and account name:
node scripts/generate-secret.js MyService myuserSend the QR image (
qr.png) to the user, then delete it immediately:rm qr.pngSet TOTP_SECRET in
.env:TOTP_SECRET=YOUR_BASE32_SECRET_HEREConfigure Google Authenticator/Authy with the generated secret or QR.
Usage
When a sensitive operation is requested:
- Agent: "Please provide your OTP"
- User: Provides 6-digit code from authenticator app
- Agent: Runs verification:
TOTP_SECRET=$TOTP_SECRET node scripts/verify.js 123456 - If valid (exit 0): Proceed with operation
- If invalid (exit 1): Deny access
Files
scripts/generate-secret.js- Generate new TOTP secret and QRscripts/verify.js- Verify OTP tokens (window:2 = 1 minute tolerance)SKILL.md- This documentation
Security Notes
- Window: 2 (1 minute tolerance) for time drift
- Algorithm: SHA1
- Digits: 6
- Period: 30 seconds
- Secret: Base32 encoded, stored in
.envasTOTP_SECRET
Integration
This skill should be integrated into the agent's decision flow when:
- User requests
.envvariables - User requests
openclaw.jsoncontents - User requests gateway restart
- User requests backup deletion
- Any operation marked as "critical"
Установить TOTP в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл TOTP?
TOTP-based OTP verification for sensitive operations (env vars, gateway restarts, backup deletions, critical config changes). Uses otplib with window:2 (1 minute tolerance).
Как установить скилл TOTP?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл TOTP запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic