Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问clear审计通过

uniapp-project联合应用程序项目

Agent Skill

uniapp-project 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

17,626

周安装

720

GitHub Stars

341

下载量

5,702
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:uniapp-project(联合应用程序项目)
来源仓库:https://github.com/teachingai/full-stack-skills
仓库路径:skills/uniapp-project
安装命令:
npx skills add https://github.com/teachingai/full-stack-skills --skill uniapp-project
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill uniapp-project

简介

官方 uni-app 组件和 API,包含每个项目的示例和跨平台兼容性详细信息。

  • 整理的参考库涵盖内置组件、uni-ui 组件和 11+ API 类别(网络、存储、设备、UI、导航、媒体、文件、支付、共享、位置等)
  • 每个组件和 API 都包含独立的示例文件,其中包含官方文档链接和可运行的代码片段
  • H5、微信小程序、支付宝、百度、字节跳动、QQ、快手、App(iOS/Android)、快应用9个支持平台的平台兼容性矩阵
  • 条件编译、本机组件分层、生命周期管理和响应单元 (rpx) 的最佳实践

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Use any uni-app built-in component or uni-ui component
  • Use any uni-app API (network, storage, device, UI, navigation, media, etc.)
  • Access per-component or per-API examples with official doc links
  • Check platform compatibility for components and APIs
  • Build cross-platform uni-app applications with official patterns

How to use this skill

This skill is organized to match the official uni-app components and API documentation:

  1. Choose component or API category:

- Components → examples/components/built-in/ and examples/uni-ui/ - APIs → examples/api/ (categorized by domain)

  1. Open the matching example file:

- Each component or API has its own example file - Each example includes the official documentation URL - Examples mirror the official documentation examples

  1. Use references when you need full specs:

- references/components/built-in/ for built-in components - references/components/uni-ui/ for uni-ui components - references/api/ for API parameter/return/compatibility details

Examples and References

Components (Built-in)

Components (uni-ui)

APIs

Best Practices

  1. One file per component/API: Each component and API has an independent example file with official doc link.
  2. Follow platform compatibility: Check the compatibility section in each example/reference.
  3. Use conditional compilation: Use #ifdef/#endif for platform-specific logic.
  4. Keep examples aligned: Use the official documentation examples as the source of truth.
  5. Prefer references for specs: Use references/ for full parameter tables and compatibility.

Resources

Keywords

uniapp, uni-app, components, api, built-in components, uni-ui, examples, references, pages.json, manifest.json, H5, App, mini program, 跨平台, 组件, API, 官方文档

  • examples/api/network/ - 网络请求 API 示例
  • examples/api/storage/ - 数据存储 API 示例
  • examples/api/device/ - 设备信息 API 示例
  • examples/api/ui/ - 界面交互 API 示例
  • examples/api/location/ - 位置服务 API 示例
  • examples/api/media/ - 媒体处理 API 示例
  • examples/api/navigation/ - 页面路由 API 示例
  • examples/api/file/ - 文件操作 API 示例
  • examples/api/payment/ - 支付 API 示例
  • examples/api/share/ - 分享 API 示例
  • examples/api/other/ - 其他 API 示例
  • examples/uni-ui/ - uni-ui 组件的完整示例代码(每个组件一个独立的.vue 文件)

使用场景:当需要查看组件或 API 的完整使用示例时,参考此目录下的示例文件。每个示例文件包含官网展示的所有示例场景,可直接复制使用。

注意

  • references/ 和 examples/ 职责不同,不应合并。references/ 提供文档说明,examples/ 提供可运行代码。
  • 每个组件和 API 都有独立的示例文件,包含原文档地址和官网全部示例
  • 内置组件的示例代码在 examples/components/built-in/ 目录
  • API 的示例代码在 examples/api/ 目录,按分类组织
  • uni-ui 组件的完整示例代码在 examples/uni-ui/ 目录

平台支持

uni-app 支持以下平台:

  • H5:Web 浏览器
  • 微信小程序:WeChat Mini Program
  • 支付宝小程序:Alipay Mini Program
  • 百度小程序:Baidu Smart Program
  • 字节跳动小程序:ByteDance Mini Program
  • QQ 小程序:QQ Mini Program
  • 快手小程序:Kuaishou Mini Program
  • App:iOS、Android(nvue、vue)
  • 快应用:Quick App

每个组件和 API 的详细平台支持情况见对应文档。

参考资源

使用示例

组件使用示例

基础组件使用示例:

<template>
  <view class="container">
    <text>{{ message }}</text>
    <button @click="handleClick">点击按钮</button>
    <image :src="imageUrl" mode="aspectFit"></image>
  </view>
</template>

<script>
export default {
  data() {
    return {
      message: 'Hello UniApp',
      imageUrl: '/static/logo.png'
    }
  },
  methods: {
    handleClick() {
      uni.showToast({
        title: '按钮被点击',
        icon: 'success'
      })
    }
  }
}
</script>

更多组件示例

  • 内置组件示例:请参考官方文档references/components/built-in/ 目录下的组件文档
  • uni-ui 组件完整示例:见 examples/uni-ui/ 目录(每个组件都有独立的.vue 示例文件)
  • 组件详细文档:见 references/components/built-in/references/components/uni-ui/ 目录(每个组件都有独立的文档文件,包含属性、事件、平台兼容性、使用示例)

API 使用示例

// 网络请求
uni.request({
  url: 'https://api.example.com/data',
  method: 'GET',
  success: (res) => {
    console.log(res.data)
  },
  fail: (err) => {
    console.error(err)
  }
})

// 数据存储
uni.setStorage({
  key: 'userInfo',
  data: { name: 'John', age: 30 },
  success: () => {
    console.log('存储成功')
  }
})

// 页面跳转
uni.navigateTo({
  url: '/pages/detail/detail?id=123'
})

更多 API 示例:见 references/api/ 目录中的详细文档

注意事项

  1. 组件层级:原生组件(如 video、map)层级高于普通组件,需要使用 cover-view 覆盖
  2. 条件编译:使用 #ifdef#endif 处理平台差异
  3. 生命周期:注意 uni-app 的页面生命周期和组件生命周期
  4. 样式单位:推荐使用 rpx 作为响应式单位
  5. 性能优化:合理使用组件,避免过度嵌套,注意长列表优化

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.51%
按下载量换算1,740

OpenCode

22.13%
按下载量换算1,262

Antigravity

19.85%
按下载量换算1,132

trae

13.89%
按下载量换算792

Cursor

7.5%
按下载量换算428

Gemini CLI

3.24%
按下载量换算185

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills