Taro Documentation
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user mentions "Taro" in any technical context, asks about "Taro API", "Taro components", "Taro configuration", "Taro…
Об этом скилле
Taro Documentation Skill
Overview
Taro is a comprehensive multi-platform development framework that enables building applications for multiple platforms from a single codebase. Platforms include WeChat Mini Programs, Alipay Mini Programs, Baidu Smart Programs, ByteDance Mini Apps, QQ Mini Programs, H5 (web), React Native, and Harmony OS.
Key characteristics:
- React-like syntax and component model
- Write once, run on multiple platforms
- Extensive API coverage for platform-specific features
- Rich component library
- Strong TypeScript support
- Active ecosystem with plugins and UI libraries
When to Use This Skill
Use this skill when users are:
- Developing Taro applications or mini programs
- Asking questions about Taro APIs, components, or configuration
- Troubleshooting Taro-related issues
- Seeking guidance on Taro best practices
- Converting or migrating projects to Taro
- Integrating Taro with other frameworks or libraries
Core Concepts
Framework Architecture
Taro follows a React-like architecture:
- Component-based: UI built with reusable components
- JSX syntax: Write UI declaratively using JSX/TSX
- Virtual DOM: Efficient rendering and updates
- Lifecycle methods: Component lifecycle hooks
- State management: Local state and global state solutions
Multi-Platform Compilation
Taro compiles to different platform targets:
- Compilation time: Code transforms to platform-specific syntax
- Runtime adapters: Platform API differences handled by runtime
- Conditional compilation: Platform-specific code when needed
- Unified APIs: Single API surface across platforms
Project Structure
Standard Taro project organization:
taro-project/
├── src/
│ ├── app.config.ts # Global app configuration
│ ├── app.ts # App entry point
│ ├── pages/ # Page components
│ │ ├── index/
│ │ │ ├── index.tsx
│ │ │ └── index.config.ts
│ ├── components/ # Reusable components
│ └── assets/ # Static resources
├── config/
│ ├── index.js # Build configuration
│ ├── dev.js # Development config
│ └── prod.js # Production config
└── package.json
Using Taro Documentation
Available Resources
This skill provides access to comprehensive Taro documentation organized into small topic files (all <100 KB). Choose the file prefix that matches the question:
API References (files prefixed with
apis-)- Network & routing:
apis-network*.md,apis-routing.md - Storage & UI feedback:
apis-storage*.md,apis-ui-feedback*.md,apis-ui-navigation.md - Device, sensors, connectivity:
apis-device-system.md,apis-device-sensors.md,apis-device-connectivity*.md - Media (image/video/audio):
apis-media-image.md,apis-media-video*.md,apis-media-audio*.md - Location & canvas:
apis-location*.md,apis-canvas*.md - Cloud & payment:
apis-cloud*.md,apis-payment.md - Miscellaneous APIs:
apis-other*.md - (Files with
-partNsuffix continue the same topic.)
- Network & routing:
Component References (files prefixed with
components-)- Containers and layout:
components-containers*.md - Basic content:
components-basic.md,components-other.md - Forms & inputs:
components-form*.md - Navigation:
components-navigation.md - Media & graphics:
components-media*.md,components-map-canvas.md,components-gesture.md,components-skyline.md - Open capabilities:
components-open-capability.md
- Containers and layout:
Configuration References
config-app.md– Global app configuration (app.config.ts)config-page.md– Page-level configurationconfig-build.md– Build/compiler settings and optimization
Guide References (files prefixed with
guides-)- Getting started & fundamentals:
guides-quickstart*.md,guides-basics*.md - Architecture & routing:
guides-routing.md,guides-testing.md - State & UI libraries:
guides-state.md,guides-ui-libraries.md - Platform specifics:
guides-platform-weapp.md,guides-platform-h5.md,guides-platform-rn.md,guides-platform-harmony*.md - Optimization & troubleshooting:
guides-optimization*.md,guides-troubleshooting.md,guides-community.md - Plugin development & advanced topics:
guides-plugin-dev*.md
- Getting started & fundamentals:
How to Reference Documentation
When users ask Taro-related questions:
Identify the topic: Determine which documentation area is relevant (API, component, configuration, or guide)
Load appropriate reference: Use the Read tool to access the specific topic file:
Read references/apis-network.md # Network/API calls (see apis-network-part*.md for continuation)
Read references/components-form.md # Form components and inputs
Read references/config-app.md # Global app configuration
Read references/guides-platform-weapp.md # WeChat Mini Program guides
- **Se
Установить Taro Documentation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Taro Documentation?
This skill should be used when the user mentions "Taro" in any technical context, asks about "Taro API", "Taro components", "Taro configuration", "Taro development", "Taro project", "mini program with Taro", "WeChat mini program", uses Taro methods (like "Taro.request", "Taro.navigateTo"), or discusses multi-platform development with Taro framework. Provides comprehensive Taro framework documentation including APIs, components, configuration, and development guides.
Как установить скилл Taro Documentation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Taro Documentation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic