unicloud-common-module

Creates reusable modules for uniCloud cloud functions with SKILL.md front matter and entry points.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/caobingsheng/skills --skill unicloud-common-module
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unicloud-common-module
Source: https://github.com/caobingsheng/skills/tree/main/skills/unicloud-common-module
Command: npx skills add https://github.com/caobingsheng/skills --skill unicloud-common-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Public modules in uniCloud cloud functions enable code reuse across multiple functions, reducing duplication and simplifying maintenance.

Core Features & Use Cases

  • Create and share common modules under cloudfunctions/common
  • Upload and manage dependencies for cloud functions that consume common modules
  • Encourage modular design and consistent APIs across projects

Quick Start

Create a public module under cloudfunctions/common, implement and publish it, then attach it to cloud functions that depend on it.

Frequently Asked Questions about unicloud-common-module

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

FAQPage Schema
How do I share common modules across multiple uniCloud cloud functions?▼

To share common modules across uniCloud cloud functions, package reusable cloud function logic into a central, version-controlled repository under cloudfunctions/common. This enforces modular design, standardizes interfaces, and reduces code duplication across projects.

What is the best way to manage shared dependencies for uniCloud cloud functions?▼

The best way to manage shared dependencies for uniCloud cloud functions is to upload and attach version-controlled common modules. This approach standardizes APIs and simplifies maintenance by centralizing shared utility code.

How does the common module structure work in uniCloud?▼

The common module structure in uniCloud requires a front-matter driven SKILL.md, an entry point script in each module, and optional directories for scripts, references, and assets to enforce standardized interfaces.

When do I need to create a public module for uniCloud?▼

You need to create a public module for uniCloud when building multiple cloud functions that require shared utilities, dependency management, and consistent APIs across projects to reduce code duplication and simplify maintenance.

Can I use common modules to standardize APIs across different uniCloud projects?▼

Yes, you can use common modules to standardize APIs across different uniCloud projects. By packaging shared utilities into a central repository, you encourage modular design and ensure consistent interfaces wherever the modules are attached.

What are the limitations of using common modules in uniCloud cloud functions?▼

A limitation of using common modules in uniCloud is that each module must strictly contain a front-matter driven SKILL.md and an entry point script. Without these required structural elements, the module cannot be properly published or attached.