Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

whincот whinc★ 15 звёзд на GitHub5 установок в других каталогах

Об этом скилле

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:

  1. 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 -partN suffix continue the same topic.)
  2. 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
  3. Configuration References

    • config-app.md – Global app configuration (app.config.ts)
    • config-page.md – Page-level configuration
    • config-build.md – Build/compiler settings and optimization
  4. 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

How to Reference Documentation

When users ask Taro-related questions:

  1. Identify the topic: Determine which documentation area is relevant (API, component, configuration, or guide)

  2. 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
  1. **Se
Полный SKILL.md на GitHub

Установить Taro Documentation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/apis-canvas-part2.mdreferences/apis-canvas-part3.mdreferences/apis-canvas-part4.mdreferences/apis-canvas.mdreferences/apis-cloud-part2.mdreferences/apis-cloud-part3.mdreferences/apis-cloud-part4.mdreferences/apis-cloud.mdreferences/apis-device-connectivity-part2.mdreferences/apis-device-connectivity-part3.mdreferences/apis-device-connectivity-part4.mdreferences/apis-device-connectivity.mdreferences/apis-device-sensors.mdreferences/apis-device-system.mdreferences/apis-location-part2.mdreferences/apis-location.mdreferences/apis-media-audio-part2.mdreferences/apis-media-audio-part3.mdreferences/apis-media-audio.mdreferences/apis-media-image.mdreferences/apis-media-video-part2.mdreferences/apis-media-video.mdreferences/apis-network-part2.mdreferences/apis-network.mdreferences/apis-other-part10.mdreferences/apis-other-part11.mdreferences/apis-other-part2.mdreferences/apis-other-part3.mdreferences/apis-other-part4.mdreferences/apis-other-part5.mdreferences/apis-other-part6.mdreferences/apis-other-part7.mdreferences/apis-other-part8.mdreferences/apis-other-part9.mdreferences/apis-other.mdreferences/apis-payment.mdreferences/apis-routing.mdreferences/apis-storage-part2.mdreferences/apis-storage-part3.mdreferences/apis-storage.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить Taro Documentation с