Agent Skillsaresbit/MateBot › arkts-skill

arkts-skill

GitHub

基于ArkTS规范提供语法、类型系统及迁移适配指导,支持编译器错误诊断与代码现代化建议。

skills/arkts-agent-skill/SKILL.md aresbit/MateBot

Trigger Scenarios

ArkTS语法查询 TypeScript转ArkTS迁移 编译器类型错误排查 HarmonyOS代码合规检查

Install

npx skills add aresbit/MateBot --skill arkts-skill -g -y
More Options

Use without installing

npx skills use aresbit/MateBot@arkts-skill

指定 Agent (Claude Code)

npx skills add aresbit/MateBot --skill arkts-skill -a claude-code -g -y

安装 repo 全部 skill

npx skills add aresbit/MateBot --all -g -y

预览 repo 内 skill

npx skills add aresbit/MateBot --list

SKILL.md

Frontmatter
{
    "name": "arkts-skill",
    "description": "ArkTS language specification guidance for syntax, types, semantics, and diagnostics based on ArkTS Specification 1.2.0. Use when handling ArkTS grammar questions, compiler\/type errors, feature compliance checks, TypeScript-to-ArkTS adaptation, or HarmonyOS ArkTS code modernization."
}

ArkTS Skill

Use this skill to answer ArkTS language and type-system questions with spec-backed guidance.

Workflow

  1. Read the user problem and classify it as one of: syntax, type system, declarations, expressions/statements, classes/interfaces, or migration/compatibility.
  2. If the question is TypeScript-to-ArkTS migration related (especially "why not supported", including destructuring-assignment concerns), read references/huawei-migration-priority.md first.
  3. For migration questions, use local files in references/huawei-migration/*.md first (local-first).
  4. If local migration files are stale or insufficient, refresh them via bash scripts/fetch_huawei_migration_refs.sh.
  5. Search chapter files, then open only the matched files.
  6. Cite the exact section/topic names in your answer.
  7. Prefer minimal, directly compilable ArkTS examples.
  8. Keep recommendations simple and deterministic. If multiple options exist, present the simplest compliant one first.

Fast Search Patterns

Use targeted search on the chapter directory:

  • bash scripts/search_chapters.sh "union|narrow|keyof"
  • rg -n "type|union|interface|class|function|async|decorator|generic" references/chapters
  • rg -n "assignment|narrow|overload|extends|implements|readonly|tuple|array|literal" references/chapters
  • rg -n "error|diagnostic|restriction|forbidden|not allowed|shall|must" references/chapters

Maintenance

  • Rebuild chapter split from full OCR markdown:
    • python3 scripts/rebuild_chapters.py
  • Refresh migration local references:
    • bash scripts/fetch_huawei_migration_refs.sh
  • Keep references/CHAPTER_INDEX.md in sync with chapter files after rebuild.

Output Rules

  • Prefer short explanations with one concrete fix.
  • For compiler/type errors, include:
    • Root cause in one sentence.
    • Smallest valid code change.
    • Why this matches spec behavior.
  • For migration questions, produce a before/after snippet and list breaking points.

Reference

  • Full OCR markdown: arktsspecification_ocr_full.md
  • Chapter index: references/CHAPTER_INDEX.md
  • OCR chapter files: references/chapters/*.md
  • Migration-first references: references/huawei-migration-priority.md
  • Migration local files: references/huawei-migration/*.md

Version History

  • 2328a17 Current 2026-08-20 10:30

Same Skill Collection

matecode/SKILL.md
skills/3d-cad-skill/SKILL.md
skills/agent-browser/SKILL.md
skills/autoresearch-skill/SKILL.md
skills/baoyu-post-to-wechat/SKILL.md
skills/blogwatcher/SKILL.md
skills/c-skill/SKILL.md
skills/chrome-cdp/SKILL.md
skills/claudeception/.claude/skills/continuous-learning/SKILL.md
skills/claudeception/examples/nextjs-server-side-error-debugging/SKILL.md
skills/claudeception/examples/prisma-connection-pool-exhaustion/SKILL.md
skills/claudeception/examples/typescript-circular-dependency/SKILL.md
skills/claudeception/SKILL.md
skills/clawdhub/SKILL.md
skills/coding-agent/SKILL.md
skills/docx/SKILL.md
skills/ebook/book-architect/SKILL.md
skills/ebook/book-idea-validator/SKILL.md
skills/ebook/book-ideation/SKILL.md
skills/ebook/book-market-research/SKILL.md
skills/ebook/chapter-architect/SKILL.md
skills/elf-patcher/SKILL.md
skills/excalidraw-diagram-skill/SKILL.md
skills/frontend-slides/SKILL.md
skills/gemini/SKILL.md
skills/gifgrep/SKILL.md
skills/git-wt/SKILL.md
skills/github/SKILL.md
skills/harmonyos-code-review/SKILL.md
skills/harmonyos-linux-cli-dev/SKILL.md
skills/harmonyos-skills/skills/harmonyos-game-generator/SKILL.md
skills/harmonyos-skills/skills/harmonyos-test-cases/SKILL.md
skills/harmonyos-skills/skills/harmonyos-ui-automator/SKILL.md
skills/harmonyos-skills/skills/ohos-app-build-debug/SKILL.md
skills/hm-fetch-skill/SKILL.md
skills/hm-framework-skill/SKILL.md
skills/humanizer/SKILL.md
skills/ian-gemini-web/SKILL.md
skills/kernel-dev-skill/SKILL.md
skills/kimi/docx_SKILL.md
skills/kimi/pdf_SKILL.md
skills/kimi/SKILL.md
skills/kimi/webapp-building_SKILL.md
skills/lecture-skill/SKILL.md
skills/macos-menubar-tuist-app/SKILL.md
skills/macos2linuxapp/SKILL.md
skills/matecode/SKILL.md
skills/medialibrary-ut-generator/SKILL.md
skills/mermaid-validator/SKILL.md

Metadata

Files
0
Version
2328a17
Hash
aae9238f
Indexed
2026-08-20 10:30

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 05:49
浙ICP备14020137号-1 $방문자$