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
Step 1: Installation
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: Verify connection
After configuration, enter the following in your AI chat to verify:
检查 CloudBase 工具是否可用, 下载 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