uniapp-standard-skill

uniapp-standard-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 46 tokens per session (3,778 once invoked), scanned A, original, Apache-2.0.

A development guide for uni-app WeChat mini-program projects built with Vue 3, TypeScript, Pinia, and SCSS. It defines project structure, API conventions, state management, performance rules, and common commands.

In plain words
What is it for?
Use it when starting or maintaining a uni-app project, especially for setting up folders, requests, state, routing, performance checks, and linting.
Why use it?
It gives a shared set of rules for organizing code and avoiding common implementation and performance problems.

Skill for Claude CodeCodex

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

Good fit Use it when starting or maintaining a uni-app project, especially for setting up folders, requests, state, routing, performance checks, and linting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/uniapp-standard-skill
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 jiushiwon/wg-skills --skill uniapp-standard-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-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-standard-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-standard-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-standard-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-standard-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-standard-skill/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-standard-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-standard-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-standard-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,778 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 384
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Tool Misuse · line 178
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
  • medium Tool Misuse · line 252
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
How audits are shown
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.00046 $0.03778
Opus 5.5 $0.00018 $0.01511
Sonnet 5.5 $0.00009 $0.00756
Haiku 4.5 $0.00005 $0.00378

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

Security

Grade A, and why

uniapp-standard-skill 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.

The scan reads SKILL.md. This mod also ships 3 executable files (templates/env.d.ts, templates/main.ts, templates/vite.config.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

frontend/uniapp/uniapp-standard-skill/SKILL.md · 410 lines

How it starts

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

uniapp 开发通用规范 Skill

Overview

本 skill 提供 uniapp 微信小程序项目的通用开发规范,不包含业务逻辑,只涵盖技术框架层面的最佳实践。

技术栈:uni-app + Vue3 + TypeScript + Pinia + SCSS

配套技能:

When to Use

  • "uniapp 开发规范"
  • "小程序规范"
  • "接口怎么写"
  • "uniapp 项目结构怎么组织"
  • "状态管理"
  • "路由规范"
  • "性能优化"

快速索引

规范主题 位置 说明
红线规则 #一-核心红线规则 20 条强制规范
目录结构 #二-目录结构规范 通用项目结构
接口规范 #三-接口规范 通用请求封装架构
性能规范 #四-性能优化规范 渲染、加载、内存
常用命令 #五-常用命令 开发、构建命令
项目模板 #六-项目模板 配置模板文件

一、核心红线规则

违反以下任意规则即视为不符合规范

编号 规则 说明
R01 禁止嵌套 v-for 单个页面 v-for 层数 ≤ 1
R02 data 只存视图数据 过滤接口原始数据
R03 优先使用 uni.xxx 禁止私有 API
R04 DOM 节点数限制 详见性能规范
R05 长列表必须分页 懒加载 + 分页
R06 setData 数据量限制 详见性能规范
R07 禁止 eval/new Function 危险方法
R08 禁止硬编码 配置项放 config 目录
R09 请求防抖节流 同一接口 1 秒内禁止重复
R10 失败必须弹提示 所有失败场景必须向用户暴露错误
R11 AI 生成后必须 lint npm run lint
R12 提交前必须 lint 通过后才能提交
R13 commit 必须用中文 禁止纯英文
R14 commit 长度限制 subject ≤ 50 字
R15 SCSS 必须用 Token 详见 uniapp-style-skill
R16 Mock 放 mocks/ 禁止写在 API 文件或页面中
R17 请求只传业务路径 传 /user/info 不传 /api/v1/user/info,prefix 从 @/config 导入
R18 屏幕适配走规范 详见 uniapp-style-skill
R19 鸿蒙降级规范 详见 uniapp-style-skill
R20 认证服务收口 详见 uniapp-auth-skill

二、目录结构规范

2.1 通用项目结构

uniapp-project/
├── src/
│   ├── api/                      # 接口封装(不含具体业务模块)
│   │   ├── _mocks_/             # Mock 数据字典
│   │   ├── request.ts            # 统一请求封装
│   │   └── index.ts             # 导出入口
│   ├── components/               # 公共组件
│   │   ├── common/              # 通用组件
│   │   │   ├── Button/          # 按钮组件
│   │   │   ├── Card/           # 卡片组件
│   │   │   └── Loading/         # 加载组件
│   │   └── index.ts             # 组件导出(easycom 模式下可选)
│   ├── pages/                   # 业务页面
│   ├── stores/                  # Pinia 状态管理
│   │   ├── index.ts            # store 入口
│   │   └── user.ts             # 示例用户状态(需替换)
│   ├── services/                 # 业务服务层
│   │   ├── auth.service.ts     # 认证服务(详见 uniapp-auth-skill)
│   │   └── index.ts           # 服务导出
│   ├── utils/                   # 工具函数
│   │   ├── auth.ts             # 鉴权工具(详见 uniapp-auth-skill)
│   │   ├── toast.ts           # 提示工具
│   │   ├── storage.ts          # 存储工具
│   │   ├── platform.ts         # 平台判断
│   │   └── index.ts           # 工具导出
│   ├── config/                  # 应用配置
│   │   ├── env.config.ts       # 环境配置
│   │   ├── api.config.ts       # API 配置
│   │   └── index.ts           # 配置导出
│   ├── constants/              # 常量
│   │   ├── storage.ts         # 存储 Key
│   │   ├── enums.ts          # 枚举
│   │   └── index.ts          # 常量导出
│   ├── types/                  # TypeScript 类型
│   │   └── index.d.ts        # 全局类型
│   ├── styles/                 # SCSS 样式系统(详见 uniapp-style-skill)
│   │   ├── config/           # 主题配置
│   │   │   └── _theme-config.scss  # 唯一人工配置
│   │   ├── tokens/           # Token 定义
│   │   │   ├── _primitive.scss     # 基础色板
│   │   │   └── _semantic.scss     # 语义变量
│   │   ├── _functions.scss   # SCSS 函数
│   │   ├── _mixins.scss     # 混入
│   │   └── variables.scss   # 统一出口
│   ├── composables/           # 组合式函数
│   ├── App.vue               # 根组件
│   ├── main.ts               # 入口
│   └── pages.json           # 页面路由
├── static/                   # 静态资源
├── package.json
├── vite.config.ts
└── tsconfig.json

Read the full file on GitHub · 410 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 Changed ddcf25c3bc27
  2. 2mo ago Changed e7353576b48b
  3. 2mo ago First seen · 410 lines · 46 tokens per session scan A 35be00f0f211

Subscribe to this mod's changes

uniapp-standard-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 46 tokens to every session and 3,778 once invoked, about $0.0002 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-09-03.

Related

uniapp-standard-skill compared with skills from other repositories

uniapp-standard-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uniapp-standard-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A46Claude Code, Codex
orca-emulator-androidstablyai/orcaSkill147ktodayMITA102Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill11k7d agoApache-2.0A56Claude Code
android-tombstone-symbolicationdotnet/skillsSkill6.4ktodayMITA176Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
winapp-mauimicrosoft/winappCliSkill1.4ktodayMITA68Claude Code
flutter-devMiniMax-AI/skillsSkill14k20d agoMITA83Claude Code