Uniapp App Generate Skill logo

Uniapp App Generate Skill

Community
jiushiwon
uniapp-app-generate-skill

UniApp 三端项目初始化技能。面向零基础小白,从想法到可上线的 uni-app + Vue3 + TypeScript + Pinia 项目,包含动态主题系统、静态资源生成、布局设计、三端差异处理(小程序/H5/App)。触发词:帮我做一个 uniapp 小程序、初始化 uniapp 项目、uniapp 三端应用、微信小程序构建、小程序生成、App 打包。

Overview

Publisherjiushiwon
Repositorywg-skills
Skill nameuniapp-app-generate-skill
Stars
123
Forks
38
Bundled files
83
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 83 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiushiwon on GitHub. Read the source before you install it.

Installation

Install the Uniapp App Generate Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/uniapp/uniapp-app-generate-skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiushiwon/wg-skills.git /tmp/wg-skills
mkdir -p .claude/skills
cp -r /tmp/wg-skills/vibeCoding/frontend/uniapp/uniapp-app-generate-skill .claude/skills/uniapp-app-generate-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Uniapp App Generate Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Uniapp App Generate Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Uniapp App Generate Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

UniApp 三端项目初始化技能

将模糊的小程序想法转化为生产级的 uni-app 项目,统一架构、设计令牌、静态资源、编码标准。

核心能力

能力说明
四阶段工作流需求 → 初始化 → 开发 → 交付
动态主题系统单色系生成 50~900 调色板
静态资源TabBar 图标 + 占位图
三端兼容小程序 / H5 / App 一套代码
平台抽象层登录/分享/图片统一封装

三端差异处理

1.1 小程序 vs H5 vs App 核心差异

维度小程序H5App
渲染方式微信WebView浏览器原生渲染
APIwx.xxxbrowser APIsplus.xxx
路由wx.navigateTohistory APInative navigation
登录wx.loginOAuthOAuth / 第三方 SDK
支付wx.requestPayment微信 JSAPI第三方 SDK
推送订阅消息Web Push推送 SDK
发布微信后台CDN应用商店

1.2 条件编译

vue
<template>
<!-- #ifdef MP-WEIXIN -->
<text>微信小程序特有</text>
<!-- #endif -->

<!-- #ifdef H5 -->
<text>H5 特有</text>
<!-- #endif -->

<!-- #ifdef APP-PLUS -->
<text>App 特有</text>
<!-- #endif -->
</template>

1.3 平台判断

typescript
// src/utils/platform.ts
export const isMpWeixin = () => {
  // #ifdef MP-WEIXIN
  return true;
  // #endif
  return false;
};

export const isH5 = () => {
  // #ifdef H5
  return true;
  // #endif
  return false;
};

export const isApp = () => {
  // #ifdef APP-PLUS
  return true;
  // #endif
  return false;
};

1.4 打包命令差异

平台开发命令打包命令
微信小程序npm run dev:mp-weixinnpm run build:mp-weixin
H5npm run dev:h5npm run build:h5
App (Android)npm run dev:app-plusnpm run build:app-plus
App (iOS)-HBuilderX 打包

工作流程

Phase 1: 需求确认

问用户 3-5 个关键问题:

  1. 小程序解决什么问题?目标用户是谁?
  2. 核心功能有哪些?列出 3-5 个核心页面
  3. 倾向哪种视觉风格?清新健康 / 极简工具 / 活泼社区 / 商务数据
  4. 底部 TabBar 需要几个入口?
  5. 是否需要用户登录?

Phase 2: 项目初始化

  1. 复制 boilerplate 模板
  2. 替换占位符(项目名、描述)
  3. 创建标准目录结构
  4. 生成 CLAUDE.md / AGENTS.md

Phase 3: 主题系统

  1. 询问主题配置(主色/成功/警告/错误色)
  2. 生成 theme.json
  3. 运行 npm run theme:sync
  4. 验证 npm run theme:check

Phase 4: 开发

  1. 布局设计(TabBar + 页面)
  2. 核心页面(首页/列表/详情/我的)
  3. 公共组件(AppButton/AppCard/AppInput 等)
  4. 状态管理(Pinia)

Phase 5: 三端适配

  1. 处理登录差异(小程序 wx.login / H5 OAuth / App 第三方)
  2. 处理分享差异(小程序 onShareAppMessage / H5 Web Share API / App plus.share)
  3. 处理支付差异
  4. 条件编译特殊逻辑

Phase 6: 交付

  1. 运行 npm run lint
  2. 验证各端打包
  3. 检查清单

触发关键词

帮我帮我做一个 uniapp 小程序
初始化 uniapp 项目
uniapp 三端应用
微信小程序构建
小程序生成
App 打包
用 uniapp 搭建一个 xxx 小程序

相关技能

  • uniapp-base-skill:基础组件库
  • uniapp-theme-skill:主题系统
  • uniapp-style-skill:样式规范
  • uniapp-auth-skill:认证模块
  • uniapp-request-skill:请求层

不做

  • 不写死平台特定代码(用条件编译)
  • 不使用 H5 标签(div/span/p 等)
  • 不使用浏览器 API(fetch/window/document)
  • 不使用 CSS 自定义属性(var())
  • 不使用 off-scale 颜色

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 23 more files.

Frequently asked questions

What does the Uniapp App Generate Skill AI skill do?

UniApp 三端项目初始化技能。面向零基础小白,从想法到可上线的 uni-app + Vue3 + TypeScript + Pinia 项目,包含动态主题系统、静态资源生成、布局设计、三端差异处理(小程序/H5/App)。触发词:帮我做一个 uniapp 小程序、初始化 uniapp 项目、uniapp 三端应用、微信小程序构建、小程序生成、App 打包。

Why use Uniapp App Generate Skill on TypingMind?

Because you install it once and use it with any model. Uniapp App Generate Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Uniapp App Generate Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/uniapp/uniapp-app-generate-skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Uniapp App Generate Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Uniapp App Generate Skill?

As many as you like. As long as a model supports skills, you can use Uniapp App Generate Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Uniapp App Generate Skill AI skill free?

Yes. It is published on GitHub by jiushiwon under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇