How to Use Prompts
This document explains how to use CloudBase AI prompts in your project.
Method 1: Connect MCP (Recommended)
It is recommended to connect CloudBase MCP and get AI development rules. After connection, AI assistants can automatically use CloudBase tools and prompt rules without manually copying files.
Select your AI development tool and follow the installation instructions:
Configure your MCP client to connect with your CloudBase environment. Supports local and hosted connection. See connection modes.
Works better with Skills. See how to use.
Step 1: Configure CloudBase MCP
Install in one click:
Or manual configuration:
Or add this configuration to .cursor/mcp.json:
1{2 "mcpServers": {3 "cloudbase": {4 "command": "npx",5 "args": ["@cloudbase/cloudbase-mcp@latest"],6 "env": {7 "INTEGRATION_IDE": "Cursor"8 }9 }10 }11}Step 2: Chat with AI
After configuration, enter the following in your AI chat:
调用 MCP 工具下载 CloudBase AI 开发规则到当前项目,然后介绍CloudBase MCP 的所有功能在 Vue 应用中使用 CloudBase AI 调用混元模型生成内容After connection is complete, enter in AI conversation: Check if CloudBase tools are available, download CloudBase AI development rules to verify connection and get rules.
Then enter your requirements to drive AI development.
See Connection Guide for more details.
Method 2: Copy Prompts to Project
Copy prompt content to a file in your project (e.g., prompts/[prompt-name].md), then use your AI tool's "include file" feature to reference the prompt in conversation.
Usage for different AI tools:
- GitHub Copilot: Use
#<filename>, e.g.,#prompts/auth-web.md - Cursor: Use
@Files, then select file - Zed: Use
/file, then select file - Other tools: Refer to tool documentation for how to include files