Community编程与开发github.com

JamalMohafil/claude-skills

一键设置“Claude 阿拉伯语终端”——让 Claude Code 在 VS Code 中正确渲染阿拉伯语/波斯语/希伯来语/乌尔都语(连接字母、从右到左顺序),支持 macOS 和 Windows。安装一个 VS Code 扩展和一个 `arabic` 启动器,用户运行 `arabic claude`(可附加任何 Claude 标志)即可在 VS Code 终端区域获得支持阿拉伯语的 Claude 面板。当用户提及“Claude 阿拉伯语”、“终端中阿拉伯语显示断裂/反向/不连续”、“安装 Claude 阿拉伯语”、“VS Code 终端中的 RTL”或希望 Claude Code 在 VS Code 中正确显示阿拉伯语时使用。

claude-skills 是什么?

此技能(Github 仓库:JamalMohafil/claude-skills)旨在解决 VS Code 终端(基于 xterm.js)无法正确渲染从右到左(RTL)脚本的根本问题。特别适用于阿拉伯语、波斯语、希伯来语和乌尔都语,这些语言在默认情况下会出现字符断开和单词顺序颠倒的现象。该技能通过安装一个定制的 VS Code 扩展和一个名为 `arabic` 的命令行启动器,其核心原理是利用一个伪终端在后台运行 Claude Code,然后将输出渲染为 HTML 嵌入 VS Code 界面,从而利用浏览器的引擎进行正确的阿拉伯语字形连接和双向文本排序。此方法类似于 claude.ai 网站的渲染方式,无需更改 VS Code 的任何内置设置。安装过程完全自动化(通过 curl 或 PowerShell 脚本),支持的平台包括 macOS 和 Windows。安装后,用户只需在 VS Code 终端中运行 `arabic claude` 命令(可附带任何 Claude Code 的标志,如 `--dangerously-skip-permissions`),即可获得一个完全支持 RTL 脚本的 Claude Code 交互面板。该技能对于使用阿拉伯语及相关语言进行开发、需要 Claude Code 输出正确显示这些语言的用户来说非常实用。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JamalMohafil/claude-skills/tree/HEAD/claude-arabic

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Claude 阿拉伯语终端

VS Code 的终端(xterm.js)无法渲染从右到左的脚本:阿拉伯语会显示为字符断开、单词顺序颠倒,并且任何设置都无法修复。 此技能会安装一个小的 VS Code 扩展,该扩展在伪终端中运行 Claude Code,在无头终端模拟器中保持屏幕内容,并在 VS Code 内部将其渲染为 HTML——这样浏览器引擎就能负责阿拉伯语的字形连接和双向文本排序,效果与 claude.ai 完全一致。

仓库地址:https://github.com/JamalMohafil/claude-arabic-terminal

你的任务

为用户的操作系统运行安装程序,验证安装成功,最后告诉他们今后需要使用的唯一命令:arabic claude。

步骤

1. 检查先决条件(如果缺失则停止并告知用户)

  • git、node(18+)、npm——运行 git --version、node -v、npm -v
  • Claude Code CLI——运行 claude --version
  • 带有 code CLI 的 VS Code——运行 code --version (如果在 macOS 上 code 缺失:VS Code → Cmd+Shift+P → “Shell Command: Install 'code' command in PATH”)

2. 运行安装程序

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/JamalMohafil/claude-arabic-terminal/main/install.sh | bash

Windows(PowerShell):

irm https://raw.githubusercontent.com/JamalMohafil/claude-arabic-terminal/main/install.ps1 | iex

安装程序会将仓库克隆到 ~/.claude-arabic-terminal,运行 npm install,将扩展链接到 ~/.vscode/extensions/,并将 arabic 启动器放入 ~/.local/bin(如需则会添加到 PATH)。重新运行可更新现有安装。

如果 curl/irm 被阻止,可以手动克隆仓库,然后在仓库内部运行 ./install.sh 或 . install.ps1。

3. 验证

  • ls ~/.vscode/extensions | grep claude-arabic(Windows:dir $env:USERPROFILE\.vscode\extensions)应显示 jamal.claude-arabic-terminal-<version>
  • command -v arabic(Windows:Get-Command arabic)应解析成功——如果不成功,用户必须打开一个新终端以便 PATH 刷新
  • ls ~/.claude-arabic-terminal/node_modules/node-pty/prebuilds 应列出 darwin-* / win32-*

4. 明确告知用户以下内容

  1. 重新加载 VS Code:Cmd/Ctrl+Shift+P → “Developer: Reload Window”

  2. 从现在开始,在任何 VS Code 终端中,运行:

    arabic claude
    

    所有 Claude Code 标志均原样传递: arabic claude --dangerously-skip-permissions、arabic claude --resume、arabic claude --model opus

  3. 首次启动时会显示“允许 'Claude Arabic Terminal' 打开此 URI?”——勾选**“不再询问此扩展”并点击打开**。

Claude Code 将在 VS 终端区域内打开一个支持阿拉伯语的面板,并在启动命令所在的文件夹中运行。

故障排除

症状解决方法
arabic: command not found打开一个新终端(PATH 刚被更新),或运行 ~/.local/bin/arabic claude
出现 URI 对话框但无任何反应安装后 VS Code 尚未重新加载——执行 Developer: Reload Window
立即显示“claude exited with code 1”先在普通终端中运行 claude 以完成登录/信任该文件夹
macOS 上扩展无法加载(posix_spawnp failed)chmod +x ~/.claude-arabic-terminal/node_modules/node-pty/prebuilds/*/spawn-helper
希望在编辑器标签页而不是终端区域中打开命令面板 → “Claude Arabic Terminal: Open in Editor Tab”

卸载

rm -rf ~/.claude-arabic-terminal ~/.vscode/extensions/jamal.claude-arabic-terminal-* ~/.local/bin/arabic

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

JamalMohafil/claude-skills

One-command setup for a new AI coding agent. Installs the essential starter skills (find-skills, agent-browser, karpathy-guidelines, ui-ux-pro-max, caveman, arabic-design, design-taste-frontend, remotion-best-practices) across 70+ agents, plus the core Claude Code plugins/MCPs (frontend-design, superpowers, code-review, playwright, github, claude-md-management). Use when the user is setting up a new project or a fresh agent and asks for "the skills/MCPs I should start with", a "starter pack", or "set up my agent".

JamalMohafil/claude-skills

Build a local AI "content operating system" for one business or many isolated businesses (an agency's clients). One Next.js engine plus one folder per business, with an owner-approved brand kit, an approve-before-generate idea store, a grounded trend radar, competitor tracking, HTML→PNG export, optional AI image/video/animation, a chat assistant with memory, owner-confirmed publishing, a CRM and an optional knowledge-vault graph. Every spawned AI agent is confined (no shell, no access to other businesses). Works with any coding agent (Claude Code, Codex, Cursor, Kimi…). It ALWAYS interviews first, starting with "one business or several isolated ones?", then builds. Use when someone wants a system to run their or their clients' content ("build me a content OS", "something like my friend's content OS", "a dashboard to run my content", "a system to run my clients' content", "an AI content OS for my agency"), even if they never say "content OS".

相关技能