23 paste sanitizer

From Sounder25/Foundational-Agent-Skills · View interactive version

23 paste sanitizer is an AI agent skill from the GitHub repository Sounder25/Foundational-Agent-Skills. Convert mixed terminal output and instructions into safe, paste-ready command blocks.

How to use this skill

Skill file

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:
  1. Identify and Drop lines that match "likely output" or "prompt" patterns:
  1. Comment Out (optional) unknown lines with # instead of deleting, to preserve context safely within a script.
  2. Wrap the cleaned commands in a labeled block: ## COPY/PASTE COMMANDS.

Trigger Phrases

Expected Output Format

## COPY/PASTE COMMANDS

git add .

git commit -m "fix"

git push

Safety Constraints

Implementation

See scripts/paste_sanitizer.ps1.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.