uniapp-project

teachingai/full-stack-skills · updated Jun 2, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/teachingai/full-stack-skills --skill uniapp-project
0 commentsdiscussion
summary

Official uni-app components and APIs with per-item examples and cross-platform compatibility details.

  • Organized reference library covering built-in components, uni-ui components, and 11+ API categories (network, storage, device, UI, navigation, media, file, payment, share, location, and more)
  • Each component and API includes standalone example files with official documentation links and runnable code snippets
  • Platform compatibility matrix for all 9 supported platforms: H5, WeChat Mini
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)
  2. 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
  3. 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. 性能优化:合理使用组件,避免过度嵌套,注意长列表优化
how to use uniapp-project

How to use uniapp-project on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add uniapp-project
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

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

The skills CLI fetches uniapp-project from GitHub repository teachingai/full-stack-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/uniapp-project

Reload or restart Cursor to activate uniapp-project. Access the skill through slash commands (e.g., /uniapp-project) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.542 reviews
  • Sofia Iyer· Dec 24, 2024

    uniapp-project has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Aarav Wang· Dec 24, 2024

    We added uniapp-project from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Yash Thakker· Dec 4, 2024

    Keeps context tight: uniapp-project is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Dhruvi Jain· Nov 23, 2024

    Registry listing for uniapp-project matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Alexander Thomas· Nov 15, 2024

    uniapp-project fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Aanya Gupta· Nov 15, 2024

    Solid pick for teams standardizing on skills: uniapp-project is focused, and the summary matches what you get after install.

  • Harper Jackson· Nov 3, 2024

    I recommend uniapp-project for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Kiara White· Oct 22, 2024

    Useful defaults in uniapp-project — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Oshnikdeep· Oct 14, 2024

    uniapp-project reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Sofia Mensah· Oct 6, 2024

    We added uniapp-project from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

showing 1-10 of 42

1 / 5