/ Directorio / Playground / skill-arkts-syntax-assistant
● Comunidad SummerKaze ⚡ Instantáneo

skill-arkts-syntax-assistant

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

Por qué usarlo

Características clave

Demo en vivo

Cómo se ve en la práctica

skill-arkts-syntax-assistant-skill.replay ▶ listo
0/0

Instalar

Elige tu cliente

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

Abre Claude Desktop → Settings → Developer → Edit Config. Reinicia después de guardar.

~/.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 usa el mismo esquema mcpServers que Claude Desktop. La configuración del proyecto prevalece sobre la global.

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

Haz clic en el icono MCP Servers de la barra lateral de Cline y luego en "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
    }
  }
}

Mismo formato que Claude Desktop. Reinicia Windsurf para aplicar.

~/.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 usa un array de objetos de servidor en lugar de un mapa.

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

Añádelo a context_servers. Zed recarga en caliente al guardar.

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

Un solo comando. Verifica con claude mcp list. Quita con claude mcp remove.

Casos de uso

Usos del mundo real: skill-arkts-syntax-assistant

Migrate a TypeScript module to ArkTS without fighting the compiler

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

Cuándo usarlo: You pasted TS into an ArkTS file and the compiler erupted.

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

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

Errores comunes
  • Dynamic property access patterns are everywhere in the original — Skill will refactor to typed interfaces — accept the added verbosity
Combinar con: filesystem

Diagnose a specific ArkTS compilation error

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

Cuándo usarlo: Compiler message is cryptic and the docs don't explain.

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

Resultado: 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

Cuándo usarlo: Component is janky; you suspect allocation or typing pitfalls.

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

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

Combinaciones

Combínalo con otros MCPs para multiplicar por 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.✓ Copiado
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.✓ Copiado

Herramientas

Lo que expone este MCP

HerramientaEntradasCuándo llamarCoste
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

Coste y límites

Lo que cuesta ejecutarlo

Cuota de API
None
Tokens por llamada
Moderate — pattern examples loaded when needed
Monetario
Free — skills are local files
Consejo
Migrate file-by-file rather than whole-repo to keep context manageable.

Seguridad

Permisos, secretos, alcance

Almacenamiento de credenciales: No credentials — pure prompts
Salida de datos: None

Resolución de problemas

Errores comunes y soluciones

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

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

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

Re-clone; description drives auto-activation.

Verificar: 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.

Alternativas

skill-arkts-syntax-assistant vs otros

AlternativaCuándo usarlaContrapartida
Vanilla TypeScript skillsYou're not targeting HarmonyOSMisses ArkTS's stricter rules
OpenHarmony official docsYou want authoritative reference material, not a chat interfaceNo interactive diagnosis

Más

Recursos

📖 Lee el README oficial en GitHub

🐙 Ver issues abiertas

🔍 Ver todos los 400+ servidores MCP y Skills