
paste-sanitizer
by Sounder25
Operational capabilities for high-leverage AI coding agents. Features deterministic execution, 100% tested safety gates, impasse detection, and adversarial review. Includes 'Gold Standard' meta-skills like Pre-Action Guard and Failure Postmortem to prevent loops and data loss.
SKILL.md
name: Paste Sanitizer description: Convert mixed terminal output and instructions into safe, paste-ready command blocks.
SKILL-023: Paste Sanitizer
Purpose
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.
Goal
Enforce Command-Only output for all runnable steps.
Algorithm
- Identify lines that match "likely command" patterns:
- Starts with
git,dotnet,npm,python,cd,mkdir,$env:, etc.
- Starts with
- Identify and Drop lines that match "likely output" or "prompt" patterns:
- Starts with
PS, ContainsEverything up-to-date,At line:,CategoryInfo:,error:,warning:, etc.
- Starts with
- Comment Out (optional) unknown lines with
#instead of deleting, to preserve context safely within a script. - Wrap the cleaned commands in a labeled block:
## COPY/PASTE COMMANDS.
Trigger Phrases
sanitize commandsclean terminal outputmake paste-ready
Expected Output Format
## 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`.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon