npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

harmony-skills

v1.0.2

Published

HarmonyOS ArkTS 开发技能集合 — 复制、评分、录屏、截屏、分享等常用功能的代码模板

Downloads

472

Readme

HarmonyOS ArkTS 技能集合

Node License

HarmonyOS Next(纯血鸿蒙)ArkTS 开发的常用功能代码模板集合,包含 5 个即拿即用的技能:

| 技能 | 功能 | 核心 API | |------|------|----------| | 📋 add-copy-feature | 复制到剪贴板 | pasteboard | | ⭐ add-harmonyos-app-rate | 应用评分(双策略降级) | commentManager + Want | | 🎬 add-screen-recording | 屏幕录制 | AVScreenCaptureRecorder | | 📸 capture-snapshot | 组件截屏 | getComponentSnapshot | | 🔗 implement-share | 系统分享 | ShareController |


用法

一键安装(推荐)

npx harmony-skills

这会将全部 5 个技能下载到你当前目录的 harmony-skills/ 文件夹中。

安装指定技能

npx harmony-skills capture-snapshot
npx harmony-skills add-copy-feature add-screen-recording

查看可用技能

npx harmony-skills --list

查看帮助

npx harmony-skills --help

输出结构

运行命令后,当前目录下会生成:

harmony-skills/
├── add-copy-feature/
│   └── SKILL.md
├── add-harmonyos-app-rate/
│   └── SKILL.md
├── add-screen-recording/
│   ├── SKILL.md
│   └── references/
│       └── full-implementation.md
├── capture-snapshot/
│   └── SKILL.md
└── implement-share/
    └── SKILL.md

每个 SKILL.md 是完整的自包含文档,包含代码模板、使用步骤、注意事项。


在其他项目中使用这些代码

每个 SKILL.md 中的代码片段可以直接复制到你的 HarmonyOS 项目中使用。只需:

  1. npx harmony-skills 下载
  2. 打开对应技能的 SKILL.md
  3. 按文档中的导入声明和代码模板复制到你的项目

手动下载

你也可以直接克隆仓库:

git clone https://gitee.com/itoak/harmony-skills.git

或在浏览器中打开 Gitee 仓库 在线阅读。


许可

MIT