Community程式設計與開發github.com

JamalMohafil/claude-skills

一鍵設定「Claude 阿拉伯語終端機」— 讓 Claude Code 在 VS Code 中正確渲染阿拉伯語、波斯語、希伯來語和烏爾都語(連接字母、從右到左順序),支援 macOS 與 Windows。

claude-skills 是什麼?

這個技能專為需要在 VS Code 終端機內正確顯示從右到左(RTL)腳本的開發者設計,例如阿拉伯語、波斯語、希伯來語或烏爾都語。由於 VS Code 內建的 xterm.js 終端機無法正確處理 RTL 文本,導致字母斷開、順序錯亂,這個技能透過安裝一個專用 VS Code 擴充功能來解決問題。該擴充功能在偽終端機中執行 Claude Code,然後以 HTML 形式渲染輸出,利用瀏覽器引擎進行阿拉伯語字型連接和雙向文字(bidi)排版,就如同 claude.ai 的體驗。安裝腳本支援 macOS 和 Windows,只需執行一條指令即可自動完成:克隆倉庫、安裝依賴、連結擴充功能、並新增 `arabic` 啟動器。安裝完成後,使用者只需執行 `arabic claude`(可附加任何 Claude Code 旗標),即可在 VS 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,將畫面保留在無頭終端機模擬器中,然後以 HTML 形式在 VS Code 內部渲染——這樣瀏覽器引擎就能處理阿拉伯語的字型連接和雙向文字(bidi)排版,效果與 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 Code 終端機區域內開啟,並在啟動該指令的資料夾中執行。

故障排除

症狀解決方法
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".

相關技能