dr
БесплатноБез исполняемых скриптовНе проверенAlias skill that invokes /dry-run with all arguments passed through. Provides shorthand for dry-run mode. Triggers on keywords: dr, dry run shorthand, alias
от majiayu000★ 31 звезда на GitHubОб этом скилле
Dry Run Skill
Executes any command or skill in simulation mode, preventing all file modifications except session state.
Usage
/dry-run <any command or prompt>
Examples:
/dry-run /po_spec path/to/spec.md- Preview full spec workflow/dry-run /spec IMPLEMENT path/to/spec.md- Test implementation without changes/dry-run why did you implement X this way?- Normal chat (no files affected)
Workflow
Step 1: Initialize Session Status
Find the Claude Code PID and create session directory:
pgrep -x claude | head -1 || echo "shared"
Use the output as CLAUDE_PID. Then create the session directory:
mkdir -p outputs/session/<CLAUDE_PID>
Check if outputs/session/<CLAUDE_PID>/status.yml exists. If not, create with initial schema:
dry_run: false
Step 2: Set Dry-Run Mode
Update outputs/session/<CLAUDE_PID>/status.yml:
dry_run: true
This signals to THIS session's file operations that writes are prohibited. Other Claude sessions (different PIDs) are not affected.
Step 3: Execute Delegated Command
Execute the provided command/prompt EXACTLY as given. All behavior remains normal EXCEPT:
CRITICAL CONSTRAINTS:
- NO file modifications allowed (Read, Grep, Glob, LSP, Bash read-only commands OK)
- ONLY exception:
outputs/session/<CLAUDE_PID>/status.ymlcan be modified - If command requires file writes, DESCRIBE what WOULD be changed instead
- For chat-only prompts (no file operations needed), respond normally
Step 4: Reset Dry-Run Mode
After execution completes (success or failure), reset state in outputs/session/<CLAUDE_PID>/status.yml:
dry_run: false
Step 5: Report Results
Provide summary:
- What was executed
- What file changes WOULD have occurred (if any)
- Verification that dry_run mode is reset
Implementation Notes
The skill acts as a wrapper:
- It does NOT interpret or execute the delegated work itself
- It sets the flag, then lets normal AI behavior handle the prompt
- The dry_run flag is checked by pretooluse hook (hard enforcement at tool level)
- After completion, it ensures cleanup
State Schema
outputs/session/<claude_pid>/status.yml:
dry_run: bool # true = prevent file writes, false = normal mode
Session isolation by Claude PID ensures parallel agents don't interfere with each other. Future extensions may add additional session state fields.
Установить dr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dr?
Alias skill that invokes /dry-run with all arguments passed through. Provides shorthand for dry-run mode. Triggers on keywords: dr, dry run shorthand, alias
Как установить скилл dr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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