home / skills / partme-ai / full-stack-skills / uniapp-mini

uniapp-mini skill

/skills/uniapp-mini

This skill helps you build uni-app mini programs and configure settings by guiding component usage, API references, and platform compatibility.

npx playbooks add skill partme-ai/full-stack-skills --skill uniapp-mini

Review the files below or copy the command above to add this skill to your agents.

Files (6)
SKILL.md
1.5 KB
---
name: uniapp-mini-guide
description: A 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.
license: Complete terms in LICENSE.txt
---

## When to use this skill

Use this skill whenever the user wants to:
- Build uni-app mini programs
- Configure mini program settings and capabilities
- Use mini program components and APIs within uni-app
- Understand native mini program limitations and compatibility

## How to use this skill

1. **Start with the overview**:
   - `examples/guide/intro.md`

2. **Configure mini program settings**:
   - `examples/guide/config.md`

3. **Check component and API references**:
   - `examples/components/overview.md`
   - `examples/api/overview.md`

## Examples and Templates

- `examples/guide/intro.md` - Mini program overview
- `examples/guide/config.md` - Configuration and capability setup
- `examples/components/overview.md` - Component references and usage
- `examples/api/overview.md` - API references and usage

## Best Practices

1. Follow mini program platform requirements and audits
2. Keep package size small and optimize assets
3. Validate API compatibility per platform
4. Use conditional compilation for platform-specific code

## Resources

- https://nativesupport.dcloud.net.cn/

## Keywords

uniapp, uni-app, mini program, 小程序, native support, components, api, 平台兼容

Overview

This skill provides a comprehensive guide for building uni-app mini programs, covering configuration, components, and platform API compatibility. It is designed to speed up development and reduce platform-specific issues by consolidating official native support guidance into practical recommendations. Use it to make reliable, small, and audit-ready mini programs across multiple platforms.

How this skill works

The skill inspects common mini program development areas: project configuration, capability declarations, component usage, and API compatibility across target platforms. It maps recommended settings and conditional compilation strategies to minimize platform-specific bugs and package size. The output includes concise configuration steps, component usage patterns, and API checks to validate native support and limitations.

When to use it

  • Starting a new uni-app mini program project and defining platform targets
  • Configuring mini program capabilities, permissions, and build settings
  • Implementing or adapting components and APIs with platform differences
  • Optimizing package size and assets for app store audits
  • Troubleshooting compatibility issues or planning conditional compilation

Best practices

  • Follow each platform's audit and submission requirements before release
  • Keep package size minimal: compress assets, lazy-load modules, and tree-shake code
  • Validate native API support per platform and provide fallbacks when needed
  • Use conditional compilation to isolate platform-specific code paths
  • Document component behavior and edge cases tied to specific platforms

Example use cases

  • Creating a new mini program with unified configuration across WeChat, Alipay, and others
  • Adapting a web component to a mini program component while handling lifecycle differences
  • Checking and replacing unsupported native APIs with cross-platform alternatives
  • Preparing a release build that meets size and permission guidelines for app store audits
  • Setting up conditional code so a single codebase runs correctly on multiple mini program platforms

FAQ

Does this skill cover platform-specific API differences?

Yes. It highlights native API limitations per platform and recommends compatibility checks and fallbacks.

Can I use one codebase for multiple mini program platforms?

Yes. The skill promotes conditional compilation and platform-aware configuration so a single uni-app codebase can target multiple mini program platforms.