CommunityWriting & Editinggithub.com

sichengchen/cjk-layout-skills

Agent skills for Chinese, Japanese, and Korean text layout. 日本語組版 / 中文排版 / 한국어 텍스트 레이아웃 agent skills.

What is cjk-layout-skills?

This is a specialized skill set for AI agents (such as Claude Code, Cursor, or Codex) that assists with proper text layout and formatting for Chinese, Japanese, and Korean (CJK) languages. It is useful for developers and content creators who need to ensure correct typographic styling, line breaking, punctuation handling, and alignment in CJK text within software projects or documentation. The skill supports multiple platforms and leverages CJK layout rules derived from industry standards (e.g., JIS X 4051, Chinese Typesetting Standards, Korean Hangul rules). By integrating this skill, an AI agent can automatically detect CJK text segments, apply appropriate spacing, avoid orphan characters, and adjust for mixed-script content (e.g., Latin numbers within CJK). It works by analyzing the text's language context and applying rules from its SKILL.md documentation, which includes guidelines for font selection, ruby annotations (furigana, zhuyin), and vertical writing modes where applicable. This reduces manual layout work and ensures culturally accurate text presentation.

Works with~Claude Code~Codex CLI~Cursor
npx skills add sichengchen/cjk-layout-skills

Installed? Explore more Writing & Editing skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does cjk-layout-skills do?

Agent skills for Chinese, Japanese, and Korean text layout. 日本語組版 / 中文排版 / 한국어 텍스트 레이아웃 agent skills.

This skill provides specialized text layout capabilities for Chinese, Japanese, and Korean (CJK) languages. It handles typographic rules such as proper line breaking, punctuation handling, spacing, ruby annotations (e.g., furigana, zhuyin), and vertical text orientation.

Supported Platforms

  • Claude Code
  • Cursor
  • Codex
  • Other AI agent platforms that support custom skills

Features

  • Line Breaking Rules: Automatically apply correct line break opportunities based on CJK punctuation and character classes (e.g., no breaks before closing brackets).
  • Punctuation Handling: Place full-width breaks, hanging punctuation, and correct spacing for commas, periods, and quotation marks.
  • Ruby Annotation Support: Guidelines for adding furigana (Japanese), zhuyin (Chinese), or hangul readings to text.
  • Mixed-Script Alignment: Adjust spacing when CJK text includes Latin characters, numbers, or other scripts.
  • Vertical Writing Mode: Rules for vertical layout (tategaki in Japanese, upright Chinese text) if the output format supports it.

How to Use

When working with CJK content, invoke this skill by describing your layout task (e.g., "Apply CJK line breaking rules to this paragraph"). The agent will follow the guidelines in this skill to format the text correctly.

License

This skill is provided under the MIT License.

Related Skills