miniapp-design

Generate WXML/WXSS/JS mini-program page code from Obsidian design documents.

3|2|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/muzhicaomingwang/ai-ideas --skill miniapp-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: miniapp-design
Source: https://github.com/muzhicaomingwang/ai-ideas/tree/main/.claude/skills/miniapp-design
Command: npx skills add https://github.com/muzhicaomingwang/ai-ideas --skill miniapp-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Obsidian + AI 驱动的工作流将设计文档转化为可直接在小程序中实现的页面代码,减少设计到实现的重复工作与沟通成本。

Core Features & Use Cases

  • 自动化设计到代码:将结构化设计文档转化为 WXML/WXSS/JS 骨架代码。
  • 使用 Design Tokens:在 apps/teamventure/design/tokens/ 中定义颜色、间距、字体等风格变量,保证一致性。
  • 便捷的迭代场景:支持 TeamVenture 小程序页面迭代、UI 组件开发及样式调整等用例。
  • 常见输出路径与集成:输出到 apps/teamventure/src/frontend/miniapp/pages/,并可与现有代码仓库无缝集成。

Quick Start

提交一个小程序页面的设计更新到 Obsidian 文档中,并触发设计到代码的工作流以生成相应的页面与组件代码。

Frequently Asked Questions about miniapp-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Obsidian design documents to WeChat mini-program page code?

Generating WXML, WXSS, and JS sources from an Obsidian design document requires structuring page updates in miniapp-pages-obsidian.md and triggering the design-to-code workflow to output code to designated mini-program paths.

What are design tokens and how do they maintain mini-program UI consistency?

Design tokens are style variables for colors, spacing, and fonts stored under apps/teamventure/design/tokens. They maintain mini-program UI consistency by providing standardized variables applied during automated WXML and WXSS code generation.

Can I automate WeChat mini-program UI component development from markdown?

You can automate mini-program UI component development from markdown by writing structured design specifications in Obsidian. The workflow reads these documents and outputs component WXML, WXSS, and JS source files to the designated frontend pages directory.

Does this design-to-code workflow require existing codebase integration for output?

The design-to-code workflow requires integration with an existing codebase. It outputs generated WXML, WXSS, and JS sources directly to the apps/teamventure/src/frontend/miniapp/pages/ directory, ensuring seamless integration with your current mini-program repository structure.

What is the best way to handle TeamVenture mini-program page iterations and style updates?

The best way to handle TeamVenture mini-program page iterations and style updates is modifying the Obsidian design document and running the workflow. It regenerates WXML, WXSS, and JS code using defined design tokens, reducing manual coding and communication overhead.

What are the limitations of using Obsidian and design tokens for mini-program code generation?

Limitations of using Obsidian and design tokens for mini-program code generation include dependency on strictly structured markdown input and predefined token paths. The workflow outputs skeleton WXML, WXSS, and JS code, meaning complex business logic still requires manual implementation.