Sounder25

Paste Sanitizer

12
3
# Install this skill:
npx skills add Sounder25/Google-Antigravity-Skills-Library --skill "Paste Sanitizer"

Install specific skill from multi-skill repository

# Description

Convert mixed terminal output and instructions into safe, paste-ready command blocks.

# 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

  1. Identify lines that match "likely command" patterns:
  2. Starts with git, dotnet, npm, python, cd, mkdir, $env:, etc.
  3. Identify and Drop lines that match "likely output" or "prompt" patterns:
  4. Starts with PS, Contains Everything up-to-date, At line:, CategoryInfo:, error:, warning:, etc.
  5. Comment Out (optional) unknown lines with # instead of deleting, to preserve context safely within a script.
  6. Wrap the cleaned commands in a labeled block: ## COPY/PASTE COMMANDS.

Trigger Phrases

  • sanitize commands
  • clean terminal output
  • make 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.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.