prh-hyphen-regex-escape

Community

Prevent hyphen regex traps in prh dictionaries.

Authorshimo4228
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Node.js 20+ Unicode regex handling can error when prh dictionaries include hyphen-containing patterns. This guide explains the root cause and how to avoid hyphen-based pitfalls in prh spell dictionaries used with textlint-rule-prh.

Core Features & Use Cases

  • Explains why hyphen-containing patterns (e.g., Claude-first) cause SyntaxError and how to avoid them.
  • Recommends using hyphen-free variants for dictionary entries and provides editorial guidance for hyphenated terms.
  • Applies to maintenance of prh dictionaries in Node.js 20+ environments and textlint workflows.

Quick Start

Update your prh dictionary to include only hyphen-free patterns and review hyphenated terms manually.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prh-hyphen-regex-escape
Download link: https://github.com/shimo4228/claude-code-learned-skills/archive/main.zip#prh-hyphen-regex-escape

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.