SkillAgentSearch skills...

harmony-cursor-rules

🎯 基于AI技术自动提取华为HarmonyOS官方最佳实践,生成专业的CursorRules规则文件。解决主流AI模型缺乏HarmonyOS语料的痛点,为开发者提供准确的智能代码提示。

Install / Use

npx skills add skindhu/harmony-cursor-rules

Installs into whichever agent you are using.

About this skill
📐

.cursorrules

Cursor IDE rules (legacy)

Quality Score

65/100

Supported Platforms

Cursor

Our assessment of harmony-cursor-rules

harmony-cursor-rules scores 65/100 on our quality scale, 3944th of 4,617 Development & Engineering skills we index.

Its .cursorrules is 2.2 KB long, well organised into 15 sections with 4 code examples: moderately detailed.

It has 104 GitHub stars, a meaningful sign that others use it.

Substance
20/30
Structure
20/20
Description
12/15
Adoption
9/20
Freshness
5/15

Maintenance, license and trust

  • The repository was last updated about 16 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
  • Our last check on 2026-10-21 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 71/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

harmony-cursor-rules compared with similar skills

All 4 of these similar skills score higher than harmony-cursor-rules; compare them before choosing.

SkillScoreStarsUpdatedFormat
harmony-cursor-rules (this skill)by skindhu6510416mo ago.cursorrules
taste-skillby Leonxlnx100110.6ktodayCLAUDE.md
ai-job-searchby ai-job-search-dev10069.8ktodayCLAUDE.md
claude-howtoby luongnv8910046.6k2d agoCLAUDE.md
algorithmic-artby anthropics100177.9k44d agoSKILL.md

Frequently asked questions

How do I install harmony-cursor-rules?
Run npx skills add skindhu/harmony-cursor-rules. The install tabs above show the steps for each supported agent.
Which AI agents does harmony-cursor-rules work with?
It is written for Cursor, as a .cursorrules file. Other agents that read the same format can often use it too.
Is harmony-cursor-rules safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 71/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is harmony-cursor-rules still maintained?
The repository was last updated about 16 months ago. Expect some instructions to reference tool versions or APIs that have since changed.

HarmonyOS 开发规则生成器

📖 项目背景

HarmonyOS作为新兴的移动操作系统,由于发展历史相对较短,主流AI模型在预训练阶段缺乏充足的HarmonyOS开发语料。这导致Cursor等AI开发工具在生成HarmonyOS相关代码时效果不佳,开发者难以获得准确的开发建议。

本项目旨在解决这一痛点,通过智能爬取华为官方HarmonyOS开发文档,自动提取最佳实践并生成符合Cursor IDE规范的开发规则文件,为开发者提供专业、准确的HarmonyOS开发指导。

详细讲解请阅读文章:https://mp.weixin.qq.com/s/gLgP7gGU0pmGc2x1hS-0UQ

🚀 核心功能

  • 📋 智能文档爬取: 自动爬取华为官方HarmonyOS最佳实践文档,支持SPA页面解析
  • 📝 UI开发规范生成: 基于Gemini AI智能提取界面开发最佳实践,生成结构化的开发规范
  • 🔧 ArkTS迁移规则: 自动提取TypeScript到ArkTS迁移过程中的Lint规则和语法约束

📁 harmony_cursor_rules 说明

项目运行后会生成 harmony_cursor_rules 目录,包含按模块分类的开发规范文件。具体涉及的模块配置可查看 harmony_modules_config.json 文件:

目录结构

harmony_cursor_rules/
├── component_encapsulation_reuse/    # 组件封装与复用
├── layout_dialog/                    # 布局与弹窗
├── animation_transition/             # 动画与转场
├── performance_optimization/         # 性能优化
├── ...                              # 其他模块
└── final_cursor_rules/              # 最终整合的规则文件
    ├── component_encapsulation_reuse.cursorrules.md
    ├── layout_dialog.cursorrules.md
    ├── arkts-lint-rules.md           # ArkTS迁移规则
    └── ...

💡 快速使用: 开发者只需将 final_cursor_rules 目录下的规则文件配置到Cursor IDE中即可获得专业的HarmonyOS开发提示。如果需要生成更多的规则文件,可在harmony_modules_config.json追加配置。

参考文档

生成的开发规则均基于华为官方权威文档:

🛠️ 使用方式

环境准备

  1. 安装依赖
pip install -r Requirements.txt
  1. 配置API密钥
# 设置Gemini API密钥
export GEMINI_API_KEY="your-gemini-api-key"

# 可选:设置自定义API端点(如使用代理或自定义服务)
export GEMINI_BASE_URL="https://your-custom-api-endpoint.com"

运行程序

# 标准运行
python main.py

# 调试模式(保存HTML文件)
python main.py --debug

使用生成的规则

  1. 在你的HarmonyOS项目根目录创建 .cursorrules 文件
  2. 将 final_cursor_rules 目录中相关 .md 文件的内容复制到 .cursorrules 文件中

📊 输出示例

生成的开发规则文件结构完整,包含:

  • 核心原则: HarmonyOS开发的基础设计理念和架构原则
  • 推荐做法: 经过验证的最佳实践和标准代码模式
  • 禁止做法: 需要避免的错误写法和反模式
  • 代码示例: 正确与错误写法的对比演示
  • 注意事项: 关键的开发要点和性能优化建议

本项目基于AI技术自动化提取华为官方权威文档,为HarmonyOS开发者提供专业、标准的开发规范指导

Related Skills

View on GitHub
GitHub Stars104
CategoryDevelopment
Updated1y ago
Forks19

Languages

Python

Trust signals

71/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

2 medium1 low
harmony-cursor-rules — .cursorrules: Install & Safety Check | SkillAgent