Xpersona
W

Wx Miniprogram Ci

CLAWHUB · Unverified

为微信小程序项目开发提供预览、上传、构建 npm、云函数上传、云存储上传等能力。 Skill: Wx Miniprogram Ci Owner: super9du Summary: 为微信小程序项目开发提供预览、上传、构建 npm、云函数上传、云存储上传等能力。 Tags: ci:1.0.1, latest:1.2.1, miniprogram:1.0.1, weixin:1.0.1 Version history: v1.2.1 | 2026-05-19T11:39:12.427Z | auto - 优化 SKILL.md 说明,简化描述和结构,强调各命令功能及用法,一致对齐表格,提升可读性。 - 保持命令、参数、配置和多项目管理能力,无功能变化,仅文档重构与精简。 v1.2.0 | 2026-05-19T10:57:14.077Z | auto wx-miniprogram-ci v1.2.0 - Added an example configuration: examples/config.exampl

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ccn81eyq7syt95t6aehy6bx846xsp:wx-miniprogram-ci
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-super9du-wx-miniprogram-ci/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

44,059 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: wx-miniprogram-ci
description: 为微信小程序项目开发提供预览、上传、构建 npm、云函数上传、云存储上传等能力。
---

# wx-miniprogram-skill

为微信小程序项目提供预览、上传、构建 npm、云函数上传、云存储上传等能力的技能,基于微信官方的 npm 命令 [miniprogram-ci](https://www.npmjs.com/package/miniprogram-ci) 创建。

## 快速开始

> ⚠️ **注意**:脚本位于 `scripts/wx-miniprogram-ci.js`,可从仓库根目录直接运行:
> ```bash
> node scripts/wx-miniprogram-ci.js <command> [options]
> ```

### 1. 初始化环境

```bash
node wx-miniprogram-ci.js init
```

### 2. 配置

使用 `config --set` 命令配置(自动持久化到 `~/.wxmini-ci.config.js`),或手动创建配置文件。

### 3. 使用

```bash
node wx-miniprogram-ci.js check          # 检查配置
node wx-miniprogram-ci.js preview ...    # 预览
node wx-miniprogram-ci.js upload ...     # 上传
```

## 命令行使用

```bash
node wx-miniprogram-ci.js <command> [options]
```

### 可用命令

| 命令 | 说明 |
|------|------|
| init | 初始化环境(检查/安装全局 miniprogram-ci) |
| config | 查看/修改配置 |
| check | 检查配置是否完整 |
| preview | 预览(生成二维码) |
| upload | 上传代码 |
| build-npm | 构建 npm |
| upload-function | 上传云函数 |
| upload-storage | 上传云存储 |
| get-sourcemap | 获取 sourceMap |

### 全局选项

| 选项 | 说明 |
|------|------|
| `--config-dir` | 指定配置目录(默认 ~/.wxmini-ci.config.js) |
| `--appid` | 小程序 appid |
| `--private-key` | 私钥文件路径 |
| `--project-path` | 项目路径 |
| `--type` | 项目类型(默认 miniProgram) |
| `--output-dir` | 输出目录 |
| `--project` | 从 projects 映射中选择项目 |

### 输出目录默认值

| 平台 | 默认输出目录 |
|------|-------------|
| 所有平台 | `./wx-miniprogram-ci`(当前工作目录下) |

## 命令详解

### init - 初始化环境

```bash
node wx-miniprogram-ci.js init
```

初始化环境:
1. 检查是否已全局安装 `miniprogram-ci`
2. 如果未安装则执行 `npm install -g miniprogram-ci`
3. 保持当前脚本作为配置管理和全局 CLI 调用层

---

### config - 查看/修改配置

```bash
# 查看当前配置(所有项目)
node wx-miniprogram-ci.js config

# 列出所有项目
node wx-miniprogram-ci.js config --list

# 获取全局配置(--get 无参数时显示全局配置概览)
node wx-miniprogram-ci.js config --get

# 获取指定配置项
node wx-miniprogram-ci.js config --get appid

# 设置全局配置项(自动持久化到 ~/.wxmini-ci.config.js,格式:key=value)
node wx-miniprogram-ci.js config --set appid=YOUR_APPID
node wx-miniprogram-ci.js config --set privateKeyPath=~/.credentials/private.YOUR_APPID.key
# ⚠️ 注意:config --set 不带参数会报错(必须指定 key=value)

# 获取项目配置
node wx-miniprogram-ci.js config --project myapp --get appid

# 切换默认项目
node wx-miniprogram-ci.js config --switch myapp

# 设置项目配置(自动持久化到 ~/.wxmini-ci.config.js,格式:key=value)
node wx-miniprogram-ci.js config --project myapp --set appid=YOUR_APPID
node wx-miniprogram-ci.js config --project myapp --set privateKeyPath=~/.credentials/private.YOUR_APPID.key
```

---

### check - 配置检查

```bash
node wx-miniprogram-ci.js check --appid <appid> --private-key <keypath> --project-path <path>
```

检查:AppID、私钥文件、项目目录、project.config.json 是否存在。

---

### preview - 预览

```bash
node wx-miniprogram-ci.js preview \
  --appid YOUR_APPID \
  --private-key ~/.credentials/private.YOUR_APPID.key \
  --project-path /path/to/your/project \
  --desc "预览描述" \
  --qrcode-format terminal \
  -

_meta.json

{
  "ownerId": "kn79ztatdkr1ja2bcyyfer0fm5828mx6",
  "slug": "wx-miniprogram-ci",
  "version": "1.2.1",
  "publishedAt": 1779190752427
}

skill-card.md

## Description:

Helps developers preview, upload, build npm, upload cloud functions, and upload cloud storage for WeChat Mini Program projects.

This skill is ready for commercial/non-commercial use.

## Publisher:

[super9du](https://clawhub.ai/user/super9du)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers maintaining WeChat Mini Program projects use this skill to configure and run miniprogram-ci operations, including preview, upload, npm build, cloud function and cloud storage upload, and source map retrieval.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can upload code and cloud assets to WeChat services.

Mitigation: Review generated commands before execution and use least-privilege WeChat CI credentials in a dedicated project environment.

Risk: The skill uses WeChat CI private key paths and may persist configuration in the user's home directory.

Mitigation: Store private keys securely, avoid sharing config files, and prefer project-specific configuration paths when appropriate.

Risk: The init flow may install global tooling with npm install -g miniprogram-ci.

Mitigation: Preinstall and pin an approved miniprogram-ci version before using the skill in controlled environments.

## Reference(s):

- [miniprogram-ci package](https://www.npmjs.com/package/miniprogram-ci)
- [WeChat Mini Program CI documentation](https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html#%E6%A6%82%E8%BF%B0)
- [Wx Miniprogram Ci on ClawHub](https://clawhub.ai/super9du/skills/wx-miniprogram-ci)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with inline shell commands and JavaScript configuration examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Commands may create local output files and may persist WeChat Mini Program CI configuration when executed.]

## Skill Version(s):

1.2.1 (source: release evidence and script constant)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Wx Miniprogram Ci and adjacent AI workflows.