Skip to main content

How to Use Prompts

This document explains how to use CloudBase AI prompts in your project.

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:

Client

Configure your MCP client to connect with your CloudBase environment

Step 1: Installation

Use project template (recommended) - Template includes MCP configuration and AI rulesView templates

Install in one click:

Add to Cursor

Or manual configuration:

Or add this configuration to .cursor/mcp.json:

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:

prompt
检查 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

Available Prompt Scenarios