From partme-ai-full-stack-skills
Provides per-component and per-API examples with cross-platform compatibility details for uni-app built-in components, uni-ui, and APIs (network, storage, device, UI, navigation, media). Use for official patterns, doc links, and compatibility checks.
npx claudepluginhub partme-ai/full-stack-skills --plugin t2ui-skillsThis skill uses the workspace's default tool permissions.
Use this skill whenever the user wants to:
CHECKLIST.mdLICENSE.txtUPDATE_PLAN.mdexamples/api/device/get-battery-info.mdexamples/api/device/get-network-type.mdexamples/api/device/get-screen-brightness.mdexamples/api/device/get-system-info.mdexamples/api/device/set-screen-brightness.mdexamples/api/file/get-file-info.mdexamples/api/file/get-saved-file-list.mdexamples/api/file/save-file.mdexamples/api/location/choose-location.mdexamples/api/location/get-location.mdexamples/api/location/open-location.mdexamples/api/media/choose-image.mdexamples/api/media/choose-media.mdexamples/api/media/choose-video.mdexamples/api/media/get-image-info.mdexamples/api/media/preview-image.mdexamples/api/media/save-image-to-photos-album.mdCreates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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 处理平台差异