一键导入
paste-sanitizer
Convert mixed terminal output and instructions into safe, paste-ready command blocks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert mixed terminal output and instructions into safe, paste-ready command blocks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
A QA gate that validates potentially destructive or irreversible actions before execution.
Detect and prevent state-visibility violations across execution contexts within a single transaction.
Prepares isolated sub-workspaces for parallel agent execution. Copies context and generates specific mission instructions for "Worker" agents.
Structured logging and analysis of execution failures to prevent recurrence.
Detects when the agent is stuck in a reasoning loop or unproductive state by analyzing tool usage and sentiment patterns.
Generates a 'Red Team' critique of recent code or plans to identify weak assumptions and edge cases.
| name | Paste Sanitizer |
| description | Convert mixed terminal output and instructions into safe, paste-ready command blocks. |
Convert “chatty” instructions, shell prompts, and terminal output into a safe, paste-ready command block that satisfies the Pre-Action Guard (Skill-018).
This skill ensures that unintended text like PS C:\, Everything up-to-date, or error dumps are never pasted into a live terminal.
Enforce Command-Only output for all runnable steps.
git, dotnet, npm, python, cd, mkdir, $env:, etc.PS, Contains Everything up-to-date, At line:, CategoryInfo:, error:, warning:, etc.# instead of deleting, to preserve context safely within a script.## COPY/PASTE COMMANDS.sanitize commandsclean terminal outputmake paste-ready## COPY/PASTE COMMANDS
```powershell
git add .
git commit -m "fix"
git push
## Safety Constraints
- Only copy blocks labeled **COPY/PASTE COMMANDS**.
- Never copy blocks labeled **Expected Output**.
- If a line inside the command block does not start with a tool or verb, the sanitizer has failed.
## Implementation
See `scripts/paste_sanitizer.ps1`.