Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

taro-documentation芋头文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

15,697

周安装

614

GitHub Stars

13

下载量

6,040
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:taro-documentation(芋头文档)
来源仓库:https://github.com/whinc/my-claude-plugins
仓库路径:skills/taro-documentation
安装命令:
npx skills add https://github.com/whinc/my-claude-plugins --skill 'Taro Documentation'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/whinc/my-claude-plugins --skill 'Taro Documentation'

简介

该技能提供了全面的 Taro 框架文档来支持多平台应用程序的开发。根据用户问题参考整理好的文档文件,将文档知识与实践指导相结合,帮助用户构建有效的 Taro 应用程序。

  • 专注于提供准确、上下文相关且可操作的信息,帮助用户解决特定的 Taro 开发挑战。
  • 每周安装量
  • 存储库
  • whinc/我的克劳德插件
  • GitHub 之星
  • 13
  • 第一次看到
  • 安全审计
  • Gen Agent Trust Hub 通行证
  • 套接字通行证
  • 斯尼克通行证

SKILL.md

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.)

  1. 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

  1. 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

  1. 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. Search within files: Use Grep with wildcards to scan the relevant file family:
Grep pattern:"Taro\.request" path:"references/apis-network*.md"
Grep pattern:"Button component" path:"references/components-form*.md"
  1. Provide contextual answers: Combine documentation with understanding of user's context to give relevant, actionable guidance

Common Development Scenarios

API Usage

When users ask about Taro APIs:

  • Reference the relevant references/apis-*.md file (for example, apis-network*.md for network calls or apis-device-system.md for device info)
  • Provide code examples showing API usage
  • Note platform compatibility if relevant
  • Mention common gotchas or best practices

Example: For "How do I make a network request?", reference Taro.request API documentation and provide example with error handling.

Component Usage

When users ask about Taro components:

  • Reference the appropriate references/components-*.md file (for example, components-form*.md or components-media*.md)
  • Show component props and event handlers
  • Provide JSX usage examples
  • Note styling approaches and platform differences

Example: For "How do I create a scrollable list?", reference ScrollView component documentation and demonstrate with sample code.

Configuration

When users ask about project setup or configuration:

  • Reference references/config-app.md, config-page.md, or config-build.md depending on scope
  • Explain configuration options and their effects
  • Show configuration file examples
  • Address build and compilation settings

Example: For "How do I configure page routing?", reference app.config.ts page configuration and demonstrate route setup.

Development Guides

When users need broader guidance or best practices:

  • Reference the matching references/guides-*.md file (for example, guides-platform-weapp.md or guides-state.md)
  • Provide step-by-step guidance for complex tasks
  • Share best practices and common patterns
  • Link related APIs and components

Example: For "How do I integrate Redux?", reference state management guide and show integration steps.

Platform Considerations

Platform-Specific Features

Taro supports multiple platforms with varying capabilities:

  • Some APIs/components are platform-specific
  • Check platform support tables in documentation
  • Use conditional compilation when needed
  • Test on target platforms

Conditional Compilation

For platform-specific code:

// Example of conditional compilation
if (process.env.TARO_ENV === 'weapp') {
  // WeChat Mini Program specific code
}

if (process.env.TARO_ENV === 'h5') {
  // H5 specific code
}

API Compatibility

Check API support across platforms:

  • Documentation includes platform support matrices
  • Some APIs may have limited support on certain platforms
  • Provide fallbacks or alternatives when needed

Best Practices

Code Organization

  • Separation of concerns: Separate UI, logic, and data layers
  • Reusable components: Create generic components for common UI patterns
  • Type safety: Use TypeScript for better development experience
  • Configuration externalization: Keep configuration separate from code

Performance Optimization

  • List rendering: Use virtual lists for long lists
  • Image optimization: Compress images and use lazy loading
  • Code splitting: Split code by routes or features
  • Avoid unnecessary renders: Use React.memo, useMemo, useCallback appropriately

Development Workflow

  • Start with templates: Use official templates for project scaffolding
  • Follow conventions: Adhere to Taro naming and structure conventions
  • Test on multiple platforms: Regularly test on target platforms during development
  • Use developer tools: Leverage Taro DevTools and platform-specific debugging tools

Troubleshooting Approach

When users encounter issues:

  1. Identify the problem area: API, component, configuration, or build issue
  2. Check documentation: Reference relevant documentation section
  3. Verify platform compatibility: Ensure feature is supported on target platform
  4. Review configuration: Check if configuration is correct
  5. Consult guides: Look for similar issues in troubleshooting guides
  6. Provide solutions: Offer concrete fixes or workarounds

Additional Resources

Reference Files

For detailed documentation, consult these topic-specific files (all <100 KB unless noted):

  • **API shards (references/apis-*.md)** – 40+ files covering network, routing, storage, device, media, location, canvas, cloud, payment, and miscellaneous APIs. Files with -partN suffix continue the same topic sequentially.
  • **Component shards (references/components-*.md)** – Containers, basic content, form controls, gestures, skyline rendering, navigation, media, map/canvas, and open capability components.
  • **Configuration files (references/config-*.md)** – config-app.md, config-page.md, and config-build.md for their respective scopes.
  • **Guide shards (references/guides-*.md)** – Quickstart, fundamentals, routing, testing, state, UI libraries, platform-specific guides, optimization, troubleshooting, plugin development, and community resources.
  • references/taro-docs.xml (3.9 MB, 92,568 lines) – Original Repomix bundle retained as a fallback reference when you need the complete archive.
  • ***.original backups** – The previous monolithic files renamed with .original for historical reference; avoid loading them unless necessary.

Search Patterns

When searching within reference files, use glob patterns to cover all shards in a family:

For APIs:

Grep pattern:"Taro\.[APIName]" path:"references/apis-*.md"

For components:

Grep pattern:"<ComponentName" path:"references/components-*.md"

For configuration:

Grep pattern:"config\.(option)" path:"references/config-*.md"

For guides:

Grep pattern:"specific topic" path:"references/guides-*.md"

Working with This Skill

Approach

  1. Listen for Taro mentions: Activate when user mentions Taro-related topics
  2. Assess question type: Determine if question is about API, component, config, or general guidance
  3. Load relevant documentation: Read appropriate reference file or search within it
  4. Provide contextual answer: Combine documentation with user's specific context
  5. Include code examples: Show practical usage when relevant
  6. Note platform considerations: Mention compatibility if relevant

Response Format

Structure responses with:

  • Direct answer to user's question
  • Relevant code examples
  • Links to specific documentation sections (file path and topic)
  • Platform considerations if applicable
  • Related resources or next steps

Summary

This skill provides comprehensive Taro framework documentation to support development of multi-platform applications. Reference the organized documentation files based on user questions, and combine documentation knowledge with practical guidance to help users build effective Taro applications.

Focus on providing accurate, contextual, and actionable information that helps users solve their specific Taro development challenges.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.3%
按下载量换算1,589

windsurf

22.08%
按下载量换算1,334

trae

16.55%
按下载量换算1,000

OpenCode

12.3%
按下载量换算743

Cursor

8.11%
按下载量换算490

Codex

3.67%
按下载量换算222

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills