/ Annuaire / Playground / skill-arkts-syntax-assistant
● Communauté SummerKaze ⚡ Instantané

skill-arkts-syntax-assistant

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

skill-arkts-syntax-assistant-skill.replay ▶ prêt
0/0

Installer

Choisissez votre client

~/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
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

~/.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 utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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
    }
  }
}

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "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
    }
  }
}

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

~/.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 utilise un tableau d'objets serveur plutôt qu'une map.

~/.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"
        ]
      }
    }
  }
}

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : skill-arkts-syntax-assistant

Migrate a TypeScript module to ArkTS without fighting the compiler

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

Quand l'utiliser : You pasted TS into an ArkTS file and the compiler erupted.

Prérequis
  • Skill cloned — git clone https://github.com/SummerKaze/skill-arkts-syntax-assistant ~/.claude/skills/skill-arkts-syntax-assistant
Déroulement
  1. Paste the errors
    Use skill-arkts-syntax-assistant — here's the TS file and the ArkTS compile errors. What's incompatible?✓ Copié
    → 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.✓ Copié
    → Rewrite with typed declarations and no dynamic object mutations

Résultat : A clean ArkTS port with a note on why each change was needed.

Pièges
  • Dynamic property access patterns are everywhere in the original — Skill will refactor to typed interfaces — accept the added verbosity
Combiner avec : filesystem

Diagnose a specific ArkTS compilation error

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

Quand l'utiliser : Compiler message is cryptic and the docs don't explain.

Déroulement
  1. Share error + code
    skill-arkts-syntax-assistant — error: <paste>. Code: <paste>.✓ Copié
    → Root cause explained in ArkTS terms + correct pattern

Résultat : 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

Quand l'utiliser : Component is janky; you suspect allocation or typing pitfalls.

Déroulement
  1. Show the code
    skill-arkts-syntax-assistant — perf review this loop. Memory and allocation patterns.✓ Copié
    → Specific allocations flagged + array/object alternatives

Résultat : A measurably faster version or a clear 'this is already fine' verdict.

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

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.✓ Copié
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.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
None
Tokens par appel
Moderate — pattern examples loaded when needed
Monétaire
Free — skills are local files
Astuce
Migrate file-by-file rather than whole-repo to keep context manageable.

Sécurité

Permissions, secrets, portée

Stockage des identifiants : No credentials — pure prompts
Sortie de données : None

Dépannage

Erreurs courantes et correctifs

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

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

Vérifier : ls ~/.claude/skills/skill-arkts-syntax-assistant/SKILL.md
SKILL.md frontmatter wrong

Re-clone; description drives auto-activation.

Vérifier : 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.

Alternatives

skill-arkts-syntax-assistant vs autres

AlternativeQuand l'utiliserCompromis
Vanilla TypeScript skillsYou're not targeting HarmonyOSMisses ArkTS's stricter rules
OpenHarmony official docsYou want authoritative reference material, not a chat interfaceNo interactive diagnosis

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills