/uniapp-skills:uniapp-projectfrom uniapp-skills
Provides guidance on uni-app built-in components, uni-ui components, and APIs with per-component examples and platform compatibility details.
Ships in uniapp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill whenever the user wants to:
This skill is organized to match the official uni-app components and API documentation:
Choose component or API category:
examples/components/built-in/ and examples/uni-ui/examples/api/ (categorized by domain)Open the matching example file:
Use references when you need full specs:
references/components/built-in/ for built-in componentsreferences/components/uni-ui/ for uni-ui componentsreferences/api/ for API parameter/return/compatibility detailsexamples/components/built-in/*.mdreferences/components/built-in/*.mdexamples/uni-ui/*.vue and examples/uni-ui/README.mdreferences/components/uni-ui/*.mdexamples/api/{category}/*.mdreferences/api/*.md#ifdef/#endif for platform-specific logic.references/ for full parameter tables and compatibility.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 的完整使用示例时,参考此目录下的示例文件。每个示例文件包含官网展示的所有示例场景,可直接复制使用。
注意:
examples/components/built-in/ 目录examples/api/ 目录,按分类组织examples/uni-ui/ 目录uni-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/ 目录下的组件文档examples/uni-ui/ 目录(每个组件都有独立的 .vue 示例文件)references/components/built-in/ 和 references/components/uni-ui/ 目录(每个组件都有独立的文档文件,包含属性、事件、平台兼容性、使用示例)// 网络请求
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/ 目录中的详细文档
#ifdef、#endif 处理平台差异CHECKLIST.md (opens in a new tab)LICENSE.txt (opens in a new tab)UPDATE_PLAN.md (opens in a new tab)agents/openai.yaml (opens in a new tab)examples/api/device/get-battery-info.md (opens in a new tab)examples/api/device/get-network-type.md (opens in a new tab)examples/api/device/get-screen-brightness.md (opens in a new tab)examples/api/device/get-system-info.md (opens in a new tab)examples/api/device/set-screen-brightness.md (opens in a new tab)examples/api/file/get-file-info.md (opens in a new tab)examples/api/file/get-saved-file-list.md (opens in a new tab)examples/api/file/save-file.md (opens in a new tab)examples/api/location/choose-location.md (opens in a new tab)examples/api/location/get-location.md (opens in a new tab)examples/api/location/open-location.md (opens in a new tab)examples/api/media/choose-image.md (opens in a new tab)examples/api/media/choose-media.md (opens in a new tab)examples/api/media/choose-video.md (opens in a new tab)examples/api/media/get-image-info.md (opens in a new tab)examples/api/media/preview-image.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/uniapp-adA comprehensive skill for uni-ad monetization in uni-app. Use this skill to integrate ads, configure ad types, handle ad events, and follow official uni-ad documentation./uniapp-cloudA comprehensive skill for uniCloud cloud development in the uni-app ecosystem. Use this skill when you need uniCloud project setup, cloud database CRUD, cloud functions, storage, or datacom components, following official uniCloud documentation./uniapp-miniA comprehensive skill for uni-app mini program development. Use when building uni-app mini programs, configuring mini program settings, or working with mini program components and APIs based on the official native support docs.Generated from the plugin's indexed repository (full-stack-skills/uniapp-skills) — no native marketplace selected
npx claudepluginhub p/full-stack-skills-uniapp-skillsOther plugins' skills for the same job