uniapp-native-plugin
When to use this skill
Use this skill whenever the user wants to:
- Develop native Android plugins
- Develop native iOS plugins
- Integrate native functionality into uni-app
- Create custom native modules
- Extend uni-app with native capabilities
- Handle native plugin communication
- Package and distribute native plugins
How to use this skill
To develop native plugins:
-
Identify the platform from the user's request:
- Android → Use Android plugin examples
- iOS → Use iOS plugin examples
-
Load the appropriate example file from the
examples/directory:examples/guide/- Native plugin development guideexamples/android-plugin/- Android plugin examplesexamples/ios-plugin/- iOS plugin examples
-
Load the appropriate template from the
templates/directory:templates/plugin-template.md- Plugin development templates
-
Follow the specific instructions in those files for development
Examples and Templates
Examples
Located in examples/:
- guide/ - Native plugin development guide
- android-plugin/ - Android plugin development examples
- ios-plugin/ - iOS plugin development examples
Templates
Located in templates/:
- plugin-template.md - Plugin development templates
Best Practices
- Follow platform guidelines: Adhere to Android and iOS development standards
- Error handling: Implement proper error handling and logging
- Documentation: Provide clear documentation for plugin usage
- Testing: Test plugins thoroughly on real devices
Resources
- Official Documentation: https://nativesupport.dcloud.net.cn/NativePlugin/
Keywords
native plugin, 原生插件, Android插件, iOS插件, plugin development, native module
More from teachingai/agent-skills
element-plus-vue3
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
9vue2
Provides comprehensive guidance for Vue 2.x development including Options API, components, directives, lifecycle hooks, computed properties, watchers, Vuex state management, and Vue Router. Use when the user asks about Vue 2, needs to create Vue 2 components, implement reactive data binding, handle component communication, or work with Vue 2 ecosystem tools.
8cypress
Provides comprehensive guidance for Cypress end-to-end testing including commands, assertions, component testing, CI/CD integration, and best practices. Use when the user asks about Cypress, needs to write E2E tests, component tests, or configure Cypress for testing.
8cocos2d-x
Provides comprehensive guidance for Cocos2d-x v4 game engine including scene graph, nodes, sprites, actions, animations, physics, rendering, shaders, and platform deployment. Use when the user asks about Cocos2d-x, needs to create games, implement game features, set up development environments, or deploy games to multiple platforms.
7dalle
Provides comprehensive guidance for DALL-E AI image generation including prompt creation, image generation, variations, and editing. Use when the user asks about DALL-E, needs to generate AI images, create image variations, or work with DALL-E API.
6canvas-design
Creates museum-quality visual art as .png or .pdf by first generating a design philosophy manifesto, then expressing it on canvas with precise composition, color palettes, and typography. Use when the user asks to create a poster, art piece, visual design, or static creative piece. Outputs original designs using design-forward principles.
6