Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By liasicav1.1.0MITIn 1 marketplace
Lets AI coding assistants look up HarmonyOS NEXT APIs and guides in an offline copy of Huawei's official docs. The docs are in Chinese, and the bundled MCP server runs locally and needs uv.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Of the plugin's README
Chinese
1 marketplace, most starred first
harmonyos, harmonyos-next, arkts, arkui, offline-docs, api-reference, huawei, mobile-development ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
让 AI 编程助手写鸿蒙代码时有据可查——16800+ 篇华为官方文档的离线镜像。
HarmonyOS NEXT 离线参考库 + 采集脚本,供 AI 编程助手(Claude Code、Gemini CLI、Codex / Copilot 等)按需查阅华为开发者官方文档。
文档由
scraper/子项目从 https://developer.huawei.com/consumer/cn/doc/ 自动采集。
.
├── harmonyos/ ← AI Skill:本仓库的对外契约
│ ├── SKILL.md ← Skill 入口(含 frontmatter)
│ ├── rules/ ← ArkTS / ArkUI 编码强制规则、在线兜底说明
│ └── references/ ← 全部 Markdown 文档(采集产物,入库)
│ ├── INDEX.md
│ ├── harmonyos-releases/INDEX.md + *.md
│ ├── harmonyos-guides/INDEX.md + *.md
│ ├── harmonyos-references/INDEX.md + *.md
│ ├── best-practices/INDEX.md + *.md
│ ├── harmonyos-faqs/INDEX.md + *.md
│ └── harmonyos-roadmap/INDEX.md + *.md
├── scraper/ ← 采集脚本(独立 Python 项目)
│ ├── pyproject.toml
│ ├── sync.sh ← 一键同步
│ ├── config/ ← 白名单 + 选择器
│ ├── scripts/ ← discover / fetch / converter / sync
│ └── tests/
├── mcp/server.py ← MCP 服务(stdio),把离线库与在线接口暴露为工具
├── .claude-plugin/ ← Claude Code plugin 与 marketplace 清单
├── .codex-plugin/ ← Codex plugin 清单
├── .github/workflows/ ← 每日自动采集并发布 Release
├── install.sh ← 多 AI CLI 一键安装
├── SECURITY.md ← 权限边界与漏洞报告方式
├── LICENSE ← 采集脚本与配套代码的许可
└── README.md ← 本文件
harmonyos/ 入库;scraper/data/(manifest、logs、discovery 缓存)不入库。
最后一次完整同步:2026-12-05
| 分类 | 数量 | 入口 |
|---|---|---|
版本说明 (harmonyos-releases) | 1317 | INDEX.md |
指南 (harmonyos-guides) | 5597 | INDEX.md |
API 参考 (harmonyos-references) | 4851 | INDEX.md |
最佳实践 (best-practices) | 489 | INDEX.md |
FAQ (harmonyos-faqs) | 4426 | INDEX.md |
变更预告 (harmonyos-roadmap) | 13 | INDEX.md |
| 合计 | 16693 | INDEX.md |
会自动 clone 仓库到 ~/.local/share/harmonyos-skills,并把 harmonyos/ symlink 到当前机器上检测到的所有 AI CLI 的 skills 目录(Claude Code / Gemini / Codex / Copilot / Cursor / OpenCode)。
curl -fsSL https://raw.githubusercontent.com/liasica/harmonyos-skills/master/install.sh | bash
或先 clone 再本地执行:
git clone https://github.com/liasica/harmonyos-skills.git
cd harmonyos-skills
bash install.sh
环境变量 HARMONYOS_SKILLS_DIR 可自定义 clone 位置(默认 ~/.local/share/harmonyos-skills)。
| CLI | 命令 |
|---|---|
| Claude Code(添加 marketplace) | /plugin marketplace add liasica/harmonyos-skills然后 /plugin install harmonyos-skills@harmonyos-skills-dev |
| Claude Code(手动 symlink) | ln -s <repo>/harmonyos ~/.claude/skills/harmonyos |
| Gemini CLI | ln -s <repo>/harmonyos ~/.gemini/skills/harmonyos |
| OpenAI Codex CLI | ln -s <repo>/harmonyos ~/.codex/skills/harmonyos |
| GitHub Copilot CLI | ln -s <repo>/harmonyos ~/.copilot/skills/harmonyos |
| Cursor | ln -s <repo>/harmonyos ~/.cursor/skills/harmonyos |
| OpenCode | 在 ~/.config/opencode/opencode.json 加 "skills": ["<repo>/harmonyos"] |
| 安装方式 | 更新命令 |
|---|---|
| 一键脚本 | cd ~/.local/share/harmonyos-skills && git pull |
| 手动 symlink | 在 clone 的 repo 目录执行 git pull(symlink 自动指向最新内容) |
| Claude Code plugin | /plugin update harmonyos-skills |
让 AI 助手回答一个鸿蒙问题,例如:"UIAbility 的生命周期回调有哪些?"。助手应:
grep harmonyos/references/INDEX.md 找到 ability 相关路径Read 命中的 .md 文件url 作为出处# 移除各 CLI 的 symlink
rm -f ~/.claude/skills/harmonyos ~/.codex/skills/harmonyos \
~/.copilot/skills/harmonyos ~/.cursor/skills/harmonyos \
~/.gemini/skills/harmonyos
# 移除 clone
rm -rf ~/.local/share/harmonyos-skills
mcp/server.py 是一个 stdio 传输的 MCP server,把本仓库暴露为工具,适合不方便直接读文件的客户端,或希望用结构化检索代替 grep 的场景。运行只依赖 uv:依赖由脚本内的 PEP 723 元数据声明,首次运行时 uv 自动准备隔离环境(不会动 scraper/ 的虚拟环境)。
| 工具 | 作用 |
|---|---|
list_categories | 五个分类的标识、中文名与篇数 |
search_docs(query, category?, limit?, fulltext?) | 默认按标题 / 路径匹配多个关键词;fulltext=true 用 rg(或 grep)做短语全文检索 |
read_doc(path, offset?, max_chars?) | 按 search_docs 返回的相对路径或华为文档 URL 读正文与元信息,超长时分页 |
coding_rules() | 返回 harmonyos/rules/arkts-coding-rules.md |
fetch_online(url_or_object_id) | 调华为 documentPortal 接口拉最新正文并转 Markdown,本地没有或过旧时兜底 |
Claude Code:以 plugin 方式安装后自动启用(plugin.json 已注册 mcpServers)。用 symlink 方式安装的按下面手动配置。
其他 MCP 客户端(Claude Desktop、Cursor、Gemini CLI 的 settings.json 等 JSON 配置):
7-day copy clicks
npx claudepluginhub liasica/harmonyos-skills --plugin harmonyos-skillsPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.