wl-encoding-and-regex

Validate Unicode escapes and RegularExpression patterns in Wolfram Language files.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/transreal/claudecode --skill wl-encoding-and-regex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wl-encoding-and-regex
Source: https://github.com/transreal/claudecode/tree/main/Claude%20Directives/skills/wl-encoding-and-regex
Command: npx skills add https://github.com/transreal/claudecode --skill wl-encoding-and-regex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents Wolfram Language (.wl/.m) editing and generation from breaking due to Unicode escape misuse, double-escaped RegularExpression patterns, and Windows Mathematica ShiftJIS/CP932 encoding issues, which can lead to garbled Japanese text or syntax/runtime errors.

Core Features & Use Cases

  • Unicode escape validation: Detects prohibited \uXXXX and \xNN patterns in notebook-generated Mathematica code blocks and enforces correct handling for Japanese text and .wl package editing rules.
  • RegularExpression double-escape verification: Ensures escape sequences inside RegularExpression strings are not over-escaped or mis-escaped so patterns match as intended.
  • Windows HTTP/API encoding safety: Enforces safe request/response encoding for HTTP bodies by using ByteArray paths to avoid implicit system-encoding corruption.

Quick Start

Ask your AI to verify that the generated .wl/.m content contains no prohibited Unicode escapes and that RegularExpression strings are correctly escaped for Wolfram Language.

Frequently Asked Questions about wl-encoding-and-regex

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

FAQPage Schema
Why does Japanese text get garbled in Wolfram Language .wl files on Windows?

Japanese text in Wolfram Language .wl files gets garbled on Windows because system encodings like ShiftJIS or CP932 can distort UTF-8 content. Enforcing literal UTF-8 Japanese strings in notebook code blocks prevents this encoding corruption.

How do I fix RegularExpression escape sequence errors in Wolfram Language?

To fix RegularExpression escape sequence errors in Wolfram Language, verify double-escape correctness within RegularExpression strings so patterns are not over-escaped or mis-escaped, ensuring regex patterns match as intended.

How do I send UTF-8 JSON over HTTP in Mathematica without encoding corruption?

Send UTF-8 JSON over HTTP in Mathematica safely by using ByteArray-based HTTP Body or BodyByteArray handling with RawJSON parsing, bypassing implicit system-encoding corruption that affects HTTP API communication.

What Unicode escape patterns should I avoid in Mathematica notebook code blocks?

Avoid prohibited \uXXXX and \xNN Unicode escape patterns in Mathematica notebook-generated code blocks, validating them to enforce correct handling for Japanese text and .wl package editing rules.

Does Windows Mathematica support safe UTF-8 encoding for HTTP API communication?

Windows Mathematica supports safe UTF-8 encoding for HTTP API communication by enforcing ByteArray paths for HTTP bodies, avoiding the implicit system-encoding corruption that distorts UTF-8 during requests and responses.

What is the best way to prevent regex mishandling and encoding bugs in Wolfram files?

The best way to prevent regex mishandling and encoding bugs in Wolfram files is validating \u/\x escape patterns, checking double-escape correctness in RegularExpression, and enforcing literal UTF-8 strings in notebook code blocks.