/ ディレクトリ / プレイグラウンド / skill-arkts-syntax-assistant
● コミュニティ SummerKaze ⚡ 即起動

skill-arkts-syntax-assistant

作者 SummerKaze · SummerKaze/skill-arkts-syntax-assistant

Claude Code skill for ArkTS — OpenHarmony's stricter TypeScript. Covers syntax, TS→ArkTS migration, perf patterns, and compilation errors.

ArkTS is the default language for OpenHarmony apps: TypeScript with stricter static typing and a ban on dynamic object mutation. skill-arkts-syntax-assistant teaches Claude the constraints: declarations/types/functions/classes/modules, TypeScript→ArkTS migration gotchas, performance best practices (memory, loops, arrays, exceptions), and compilation error diagnosis. Auto-activates on ArkTS-related questions.

なぜ使うのか

主な機能

ライブデモ

実際の動作

skill-arkts-syntax-assistant-skill.replay ▶ 準備完了
0/0

インストール

クライアントを選択

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "skill-arkts-syntax-assistant-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/SummerKaze/skill-arkts-syntax-assistant",
        "~/.claude/skills/skill-arkts-syntax-assistant"
      ],
      "_inferred": true
    }
  }
}

Claude Desktop → Settings → Developer → Edit Config を開く。保存後、アプリを再起動。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "skill-arkts-syntax-assistant-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/SummerKaze/skill-arkts-syntax-assistant",
        "~/.claude/skills/skill-arkts-syntax-assistant"
      ],
      "_inferred": true
    }
  }
}

Cursor は Claude Desktop と同じ mcpServers スキーマを使用。プロジェクト設定はグローバルより優先。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "skill-arkts-syntax-assistant-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/SummerKaze/skill-arkts-syntax-assistant",
        "~/.claude/skills/skill-arkts-syntax-assistant"
      ],
      "_inferred": true
    }
  }
}

Cline サイドバーの MCP Servers アイコンをクリックし、"Edit Configuration" を選択。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "skill-arkts-syntax-assistant-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/SummerKaze/skill-arkts-syntax-assistant",
        "~/.claude/skills/skill-arkts-syntax-assistant"
      ],
      "_inferred": true
    }
  }
}

Claude Desktop と同じ形式。Windsurf を再起動して反映。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "skill-arkts-syntax-assistant-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/SummerKaze/skill-arkts-syntax-assistant",
        "~/.claude/skills/skill-arkts-syntax-assistant"
      ]
    }
  ]
}

Continue はマップではなくサーバーオブジェクトの配列を使用。

~/.config/zed/settings.json
{
  "context_servers": {
    "skill-arkts-syntax-assistant-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/SummerKaze/skill-arkts-syntax-assistant",
          "~/.claude/skills/skill-arkts-syntax-assistant"
        ]
      }
    }
  }
}

context_servers に追加。保存時に Zed がホットリロード。

claude mcp add skill-arkts-syntax-assistant-skill -- git clone https://github.com/SummerKaze/skill-arkts-syntax-assistant ~/.claude/skills/skill-arkts-syntax-assistant

ワンライナー。claude mcp list で確認、claude mcp remove で削除。

ユースケース

実用的な使い方: skill-arkts-syntax-assistant

Migrate a TypeScript module to ArkTS without fighting the compiler

👤 Devs porting existing TS code to OpenHarmony ⏱ ~45 min intermediate

使うタイミング: You pasted TS into an ArkTS file and the compiler erupted.

前提条件
  • Skill cloned — git clone https://github.com/SummerKaze/skill-arkts-syntax-assistant ~/.claude/skills/skill-arkts-syntax-assistant
フロー
  1. Paste the errors
    Use skill-arkts-syntax-assistant — here's the TS file and the ArkTS compile errors. What's incompatible?✓ コピーしました
    → Errors explained with ArkTS's stricter rules, not generic TS advice
  2. Get a compliant rewrite
    Rewrite the file to be ArkTS-valid while preserving behavior.✓ コピーしました
    → Rewrite with typed declarations and no dynamic object mutations

結果: A clean ArkTS port with a note on why each change was needed.

注意点
  • Dynamic property access patterns are everywhere in the original — Skill will refactor to typed interfaces — accept the added verbosity
組み合わせ: filesystem

Diagnose a specific ArkTS compilation error

👤 HarmonyOS devs stuck on a specific error ⏱ ~10 min beginner

使うタイミング: Compiler message is cryptic and the docs don't explain.

フロー
  1. Share error + code
    skill-arkts-syntax-assistant — error: <paste>. Code: <paste>.✓ コピーしました
    → Root cause explained in ArkTS terms + correct pattern

結果: A fix plus understanding of why the rule exists.

Review a hot loop for ArkTS-specific performance issues

👤 HarmonyOS app developers tuning performance ⏱ ~20 min intermediate

使うタイミング: Component is janky; you suspect allocation or typing pitfalls.

フロー
  1. Show the code
    skill-arkts-syntax-assistant — perf review this loop. Memory and allocation patterns.✓ コピーしました
    → Specific allocations flagged + array/object alternatives

結果: A measurably faster version or a clear 'this is already fine' verdict.

組み合わせ

他のMCPと組み合わせて10倍の力を

skill-arkts-syntax-assistant-skill + filesystem

Batch-migrate a whole directory of TS files to ArkTS

For every .ts file under src/utils, apply the ArkTS migration and save as .ets.✓ コピーしました
skill-arkts-syntax-assistant-skill + github

Open a PR with migration diffs chunked by file

After migration, open a PR with one commit per migrated file.✓ コピーしました

ツール

このMCPが提供する機能

ツール入力呼び出すタイミングコスト
migrate_ts_file TS file path + compile errors Porting TS code 0
diagnose_error error text + code snippet Stuck on a specific compiler error 0
perf_review code + suspect area Tuning HarmonyOS component perf 0

コストと制限

運用コスト

APIクォータ
None
呼び出しあたりのトークン
Moderate — pattern examples loaded when needed
金額
Free — skills are local files
ヒント
Migrate file-by-file rather than whole-repo to keep context manageable.

セキュリティ

権限、シークレット、影響範囲

認証情報の保管: No credentials — pure prompts
データ送信先: None

トラブルシューティング

よくあるエラーと対処法

Skill not invoked — Claude applies generic TS fixes that fail in ArkTS

Say 'ArkTS' explicitly; 'TypeScript' alone won't activate this skill.

確認: ls ~/.claude/skills/skill-arkts-syntax-assistant/SKILL.md
SKILL.md frontmatter wrong

Re-clone; description drives auto-activation.

確認: head ~/.claude/skills/skill-arkts-syntax-assistant/SKILL.md
Wrong trigger keywords — compile error not resolved

Include the exact compiler message in the prompt, not a paraphrase.

代替案

skill-arkts-syntax-assistant 他との比較

代替案代わりに使う場面トレードオフ
Vanilla TypeScript skillsYou're not targeting HarmonyOSMisses ArkTS's stricter rules
OpenHarmony official docsYou want authoritative reference material, not a chat interfaceNo interactive diagnosis

その他

リソース

📖 GitHub の公式 README を読む

🐙 オープンな issue を見る

🔍 400以上のMCPサーバーとSkillsを見る