Agent skill

Huawei PR

by xiasi0 in xiasi0/ha-huawei-smarthome

Standardize pull request titles and descriptions for the ha-huawei-smarthome repository.

GPL-3.0Auto-check passedDevelopment

Install Huawei PR

skills CLI
$ npx skills add xiasi0/ha-huawei-smarthome --skill huawei-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xiasi0/ha-huawei-smarthome huawei-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xiasi0/ha-huawei-smarthome.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/huawei-pr .claude/skills/huawei-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
huawei-pr
GitHub stars
135
Token cost
~501 tokens
SKILL.md length
96 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
GPL-3.0

At a glance

Standardize pull request titles and descriptions for the ha-huawei-smarthome repository.

  • Updating a PR for this project
  • SKILL.md covers 标题, 正文, 产品实现边界 and 功能覆盖取舍, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Pull requests

What it does

Huawei PR is an agent skill from xiasi0/ha-huawei-smarthome. Standardize pull request titles and descriptions for the ha-huawei-smarthome repository. Use when preparing, opening, or updating a PR for this project.

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. It works with Home Assistant. The repository describes itself as: 适用于华为智慧生活设备的 Home Assistant 自定义集成。 The licence is GPL-3.0.

When your agent uses it

  • Updating a PR for this project
  • Tasks that involve Pull requests

Example prompts

  • “/huawei-pr”

What it can do on your machine

Read from SKILL.md and the folder at commit e7a5333. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Huawei PR loads about 501 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 96 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~501

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xiasi0/ha-huawei-smarthome at commit e7a5333, republished under its GPL-3.0 licence (© xiasi0). 96 words, ~501 tokens.

Download SKILL.mdSave it as .claude/skills/huawei-pr/SKILL.md (or your agent's skills folder).
name
huawei-pr
description
Standardize pull request titles and descriptions for the ha-huawei-smarthome repository. Use when preparing, opening, or updating a PR for this project.
metadata.short-description
Huawei SmartHome PR format and checks

Huawei SmartHome PR 规范

用于在本仓库创建或更新 PR,统一标题、正文和验证信息。先检查 PR 实际 diff,再按变更类型填写;不要声称未执行的验证,也不要为满足格式要求而扩大代码改动。

标题

使用 Conventional Commit 前缀:

text
<type>(可选范围): <简短摘要>

常用类型:feat、fix、docs、refactor、test、chore。范围可用产品 ID 或代码层,例如 fix(100z): ...、feat(mqtt): ...。摘要使用中文或英文均可,保持简短、具体;不要使用含糊标题、emoji、机器人名称或把多个无关事项塞进一个标题。

正文

正文使用中文,通常按以下结构编写:

markdown
## 变更内容
- 说明改了什么以及解决什么问题。

## 验证
- 写明实际运行的命令和结果;未运行时说明原因。

## 关联
- Closes #123

关联 仅在该 PR 完整解决问题时使用 Closes #123;若只是相关或部分处理,写 Related to #123。没有关联 issue 时省略该节。

按需添加 兼容性影响,说明实体变化、平台行为、配置或存储迁移等实际影响。没有影响时省略,不要填充泛化的“无影响”。

产品实现边界

  • 单品的服务映射、字段解释、枚举、缩放、命令 payload 和状态行为必须写在该产品自己的 device_adapters/prod_<prodId>.py 中。不要把单品行为放进框架层、实体工厂或跨产品共享模块。
  • 相似的型号、服务名或字段不代表协议行为相同。本项目要求每个 prodId 独立实现并硬编码,不接受为了相似单品提取公共产品行为、基类或自动推断规则。可以使用框架已有的中性接口,但不能借此合并单品协议逻辑。
  • 只有框架缺少真正通用的基础能力时才修改框架。如果某个单品因此无法实现,将框架能力和该单品适配拆成不同 PR;在适配器 PR 中关联框架 PR,并说明依赖关系与合并顺序。不要把框架改造和单品适配混在一个 PR。

功能覆盖取舍

  • 不要求完整复刻产品的所有功能;应尽可能覆盖该单品在 Home Assistant 中有实际价值的基本能力。
  • 按用户可见价值和协议语义选择实体,不以 Profile 服务数量或实体数量作为覆盖目标。优先处理设备的主要控制和核心状态。
  • 不建议加入重复表达同一能力、纯内部信息、冗余管理项或对日常使用没有实际价值的功能。遇到语义不确定或缺少可靠证据的字段时,不猜测投影;必要时在 PR 中简要说明未纳入的主要功能及原因。
  • PR 正文概述已实现的基本能力即可,不宣称功能完整,也不需要逐项罗列所有未实现的 Profile 服务。

产品适配器变更

适配器 PR 需增加设备验证信息,便于维护者区分实测与推断:

markdown
## 设备验证
- prodId / 型号:
- 状态读取:已实测 / 未实测(简述范围)
- 控制命令:已实测 / 未实测(简述范围)
- 尚未验证:

只陈述实际完成的设备验证。依据 Profile 或相似产品推断的行为应明确标为未实测;不适用的项目可省略。新适配器还需同步更新 docs/supported-devices.md。不要在 PR 正文粘贴完整 Profile、原始日志、账号凭据、令牌或设备隐私标识。

提交前核对

  • PR 目标分支为 master,标题符合上述格式。
  • Diff 聚焦于一个逻辑变更;正文与实际 diff 一致。
  • 验证信息如实,包括未运行验证及原因;本规范不要求仅为 PR 格式额外新增测试文件。
  • 涉及新产品适配时,列明 prodId、真机验证状态,并更新支持设备清单。
  • 没有混入凭据、个人数据、完整 Profile 或未脱敏日志。

创建 PR 前确认用户已要求推送或开 PR;本技能只规范内容,不授予额外的提交、推送或发布权限。

© xiasi0, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/huawei-pr of xiasi0/ha-huawei-smarthome.

Open the folder on GitHubat commit e7a5333

Compare with similar skills

Huawei PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Huawei PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Huawei PR this skillxiasi0/ha-huawei-smarthome135—~501Automated safety check: PassGPL-3.0
Community Triageroryeckel/wyoming_openai219—~2.9kAutomated safety check: PassApache-2.0
simon42 Dashboard Strategy Dev GuideTheRealSimon42/simon42-dashboard-strategy265—~3.6kAutomated safety check: PassCustom licence
PR Descriptiongduteil/cozytouch128—~539Automated safety check: PassNone
PR Bodyandrew-blake/melcloudhome142—~4.5kAutomated safety check: PassMIT
PRjtenniswood/espcontrol1.1k—~1.4kAutomated safety check: PassCustom licence

Similar skills

  • Community Triage

    roryeckel/wyoming_openai

    GitHub issues, pull requests, bug reports, scope questions, and support threads.

    219 GitHub stars~2.9k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • simon42 Dashboard Strategy Dev Guide

    TheRealSimon42/simon42-dashboard-strategy

    Working rules for developing the simon42 Home Assistant dashboard strategy: verify before assuming, protect existing behavior, test on a real system and handle community PRs with care.

    265 GitHub stars~3.6k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • PR Description

    gduteil/cozytouch

    Write or rewrite a pull request description so it is short and actually readable.

    128 GitHub stars~539 tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • PR Body

    andrew-blake/melcloudhome

    A skill your agent uses when composing or revising a pull request description in this repo, including PRs that sit in a stack.

    142 GitHub stars~4.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • PR

    jtenniswood/espcontrol

    Review a new or open pull request for this repository with an adversarial security and quality lens.

    1.1k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Verify Cozytouch

    gduteil/cozytouch

    Prove a change to the Cozytouch Home Assistant integration in a real Home Assistant — a throwaway instance against a fake Atlantic cloud served from a diagnostics dump (a fixture or a reporter's)…

    128 GitHub stars~2.2k tokensUpdated 3 days ago
    DevelopmentAuto-check passed

More from xiasi0/ha-huawei-smarthome

  • Huawei Hilink Adapter

    xiasi0/ha-huawei-smarthome

    Analyze and assemble Huawei HiLink MQTT commands and device state synchronization for community adapters.

    135 GitHub stars~933 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Huawei PR

What does Huawei PR do?

Standardize pull request titles and descriptions for the ha-huawei-smarthome repository. Huawei PR is an agent skill from xiasi0/ha-huawei-smarthome. Standardize pull request titles and descriptions for the ha-huawei-smarthome repository.

When should I use Huawei PR?

Huawei PR fits situations like: updating a PR for this project; tasks that involve Pull requests.

How do I install Huawei PR in Claude Code?

Run `npx skills add xiasi0/ha-huawei-smarthome --skill huawei-pr -a claude-code`. Or copy the skill folder (.claude/skills/huawei-pr in xiasi0/ha-huawei-smarthome) into .claude/skills/huawei-pr in your project. Claude Code loads it when a task matches its description.

How do I install Huawei PR in Codex?

Run `npx skills add xiasi0/ha-huawei-smarthome --skill huawei-pr -a codex`. Or copy the skill folder (.claude/skills/huawei-pr in xiasi0/ha-huawei-smarthome) into .agents/skills/huawei-pr in your project. Codex loads it when a task matches its description.

Can I use Huawei PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xiasi0/ha-huawei-smarthome --skill huawei-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/huawei-pr, .gemini/skills/huawei-pr, .github/skills/huawei-pr and .opencode/skills/huawei-pr in your project.

What does Huawei PR need to run?

SKILL.md names no scripts, command-line tools or credentials: Huawei PR is instructions for the agent only.

Does Huawei PR access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Huawei PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Huawei PR use?

Huawei PR is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Huawei PR use?

About 501 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Huawei PR?

Skills that share tags, products or a category with Huawei PR: Community Triage (roryeckel/wyoming_openai, 219 stars), simon42 Dashboard Strategy Dev Guide (TheRealSimon42/simon42-dashboard-strategy, 265 stars), PR Description (gduteil/cozytouch, 128 stars) and PR Body (andrew-blake/melcloudhome, 142 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Huawei PR?

xiasi0 (a GitHub user) maintains it in xiasi0/ha-huawei-smarthome, which has 135 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 10, 2026.

Source: xiasi0/ha-huawei-smarthome on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.