output-encoding-gate

Detect and block mojibake corruption in markdown, text and json artifacts.

3|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Dalomeve/bot-output --skill output-encoding-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: output-encoding-gate
Source: https://github.com/Dalomeve/bot-output/tree/main/skills/output-encoding-gate
Command: npx skills add https://github.com/Dalomeve/bot-output --skill output-encoding-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill ensures artifacts produced by tasks are mojibake-free; it blocks completion if corrupted markers are detected and can repair deterministically.

Core Features & Use Cases

  • Automatic detection of mojibake markers in markdown, text, and json artifacts.
  • Deterministic repair by invoking a repair script and backing up changed files.
  • Pre-delivery validation in CI gates and final task handoff.

Quick Start

Run the encoding gate on your artifact directory to verify and optionally repair mojibake-affected files.

Frequently Asked Questions about output-encoding-gate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix mojibake corruption in markdown and json artifacts?

To fix mojibake corruption in markdown and json artifacts, run an encoding gate script to automatically detect corrupted markers and deterministically repair files while backing up the originals. This ensures zero encoding markers remain in the final output.

What is mojibake detection and how does it work as a pre-delivery validation gate?

Mojibake detection scans markdown, text, and json files for corrupted character markers before task completion. Acting as a final pre-delivery validation gate, it blocks task handoff if corrupted markers are detected, ensuring artifact delivery integrity.

How do I stop mojibake characters from breaking my PowerShell automation outputs?

You can stop mojibake characters from breaking PowerShell automation outputs by applying a final encoding gate to your artifact directory. This script verifies output integrity and blocks completion if corrupted markers are detected.

Can I automatically repair mojibake in json and text artifacts without losing original data?

Yes, you can automatically repair mojibake in json and text artifacts without losing original data. The deterministic repair process enforces mandatory backups of changed files before applying fixes to ensure the original data is preserved.

Does the encoding verification gate require any specific dependencies to run?

No, the encoding verification gate requires no external dependencies to run. It operates as a standalone script component to validate project outputs and enforce zero corrupted markers before task completion.

What are the limitations of using a deterministic repair script for mojibake?

The limitation of using a deterministic repair script for mojibake is that it enforces strict zero markers after repair and requires backups. If auto-repair is not explicitly allowed, it will simply block completion upon detecting corruption.