uniapp-helper

uniapp-helper is a skill for Claude Code, Codex from guyulong/cn-agent-skills. It costs 10 tokens per session (705 once invoked), scanned A, original, MIT.

A development guide for uni-app, a framework for building applications that share code across platforms such as web pages, mobile apps, and mini-programs.

In plain words
What is it for?
Organising pages, components, state, APIs, and assets; writing platform-specific code; and mapping common navigation, request, storage, image, and notification APIs.
Why use it?
It gives developers a common project structure and platform-specific patterns instead of requiring separate implementations for every target.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Organising pages, components, state, APIs, and assets; writing platform-specific code; and mapping common navigation, request, storage, image, and notification APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guyulong/cn-agent-skills/uniapp-helper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add guyulong/cn-agent-skills --skill uniapp-helper
Clone the repo
git clone --depth 1 https://github.com/guyulong/cn-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for uniapp-helper

README.md
[![agentmods](https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/uniapp-helper/github.svg)](https://agentmods.dev/skills/guyulong/cn-agent-skills/uniapp-helper)
Your own site
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/uniapp-helper"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/uniapp-helper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for uniapp-helper

Your own site · 80×15
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/uniapp-helper"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/uniapp-helper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 705 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00705
Opus 5.5 $0.00004 $0.00282
Sonnet 5.5 $0.00002 $0.00141
Haiku 4.5 $0.00001 $0.00071

Measured 1mo ago against content hash 20a66521db7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

uniapp-helper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/uniapp-helper/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

uni-app 跨端开发助手

使用场景

uni-app项目开发中的常见问题和最佳实践。

项目结构

├── pages/              # 页面
│   ├── index/
│   │   └── index.vue
│   └── user/
│       └── index.vue
├── components/         # 组件
├── store/              # Vuex/Pinia
├── api/                # 接口封装
├── utils/              # 工具函数
├── static/             # 静态资源
├── pages.json          # 页面配置
├── manifest.json       # 应用配置
└── uni.scss            # 全局样式

条件编译

// #ifdef MP-WEIXIN
console.log('微信小程序环境');
// #endif

// #ifdef H5
console.log('H5环境');
// #endif

// #ifdef APP-PLUS
console.log('App环境');
// #endif

// 平台列表
// MP-WEIXIN  微信小程序
// MP-ALIPAY  支付宝小程序
// MP-BAIDU   百度小程序
// MP-TOUTIAO 抖音小程序
// MP         所有小程序
// H5         H5
// APP-PLUS   App

常用API对照

功能 uni-app 微信小程序
路由跳转 uni.navigateTo() wx.navigateTo()
请求 uni.request() wx.request()
存储 uni.setStorageSync() wx.setStorageSync()
提示 uni.showToast() wx.showToast()
选择图片 uni.chooseImage() wx.chooseImage()

接口封装

// api/request.js
const BASE_URL = 'https://api.example.com';

export const request = (options) => {
    return new Promise((resolve, reject) => {
        uni.request({
            url: BASE_URL + options.url,
            method: options.method || 'GET',
            data: options.data,
            header: {
                'Authorization': uni.getStorageSync('token'),
                'Content-Type': 'application/json'
            },
            success: (res) => {
                if (res.statusCode === 200) {
                    resolve(res.data);
                } else if (res.statusCode === 401) {
                    uni.navigateTo({ url: '/pages/login/index' });
                    reject(new Error('未登录'));
                } else {
                    reject(new Error(res.data.message || '请求失败'));
                }
            },
            fail: (err) => {
                reject(err);
            }
        });
    });
};

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 106 lines · 10 tokens per session scan A 20a66521db7a

Subscribe to this mod's changes

uniapp-helper is a skill published in the GitHub repository guyulong/cn-agent-skills (3 stars, last pushed 4mo ago), licensed MIT. It adds 10 tokens to every session and 705 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.