uniapp
uni-app
本 skill 基于 uni-app 文档生成,生成日期 2026-01-29。
uni-app 是基于 Vue 的跨平台应用开发框架,一套代码可编译到 App、H5、微信/支付宝/百度等小程序。适用于需要为 Agent 提供「如何用 uni-app 配置项目、写页面与组件、使用路由与 API、注意跨端差异」等能力说明的场景。
核心参考
| 主题 | 说明 | 参考 |
|---|---|---|
| 入口 main.js/uts | 入口文件、代码时序、插件与路由 | core-main |
| App.vue | 应用生命周期、globalData、全局样式 | core-app |
| pages.json | 页面路由、globalStyle、tabBar、easycom | core-pages |
| 页面生命周期 | onLoad、onShow、onReady、onHide、onUnload | core-lifecycle |
| manifest.json | 应用配置、版本、超时、各端配置 | core-manifest |
| 条件编译 | #ifdef/#ifndef、平台标识、多端差异化 | core-conditional-compilation |
| 样式与布局 | rpx/px 单位、预处理器、nvue 差异 | core-syntax-css |
| 分包配置 | subPackages、preloadRule、主包与分包 | core-subpackages |
More from hairyf/skills
tailwindcss
Tailwind CSS utility-first CSS framework. Use when styling web applications with utility classes, building responsive designs, or customizing design systems with theme variables.
1.7Khairy-utils
Comprehensive skills for working with @hairy/utils core utilities
891motion
Motion animation library for JavaScript, React and Vue. Use when creating animations, gestures, layout transitions, scroll-linked effects, or working with motion values and animation controls.
763next
Next.js framework for building React applications with App Router, Server Components, and optimized performance. Use when working with Next.js apps, routing, data fetching, caching, Server Actions, or building full-stack React applications.
714react-use
Collection of essential React Hooks for sensors, UI, animations, side-effects, lifecycles, and state management
692valtio
Valtio proxy state management for React and vanilla JavaScript. Use when creating reactive state, managing application state, or working with proxy-based state management.
636