# Prompt 指令攻略

> 本指南详解Trickle平台高效Prompt指令技巧，涵盖通用策略、表单数据库集成及UI设计方法，帮助用户通过精准提示词快速构建网页应用、表单与游戏，提升AI使用效率。

- 来源: https://www.waytoagi.com/kb/ai-agents/trickle-prompt-guide
- 飞书原文: https://waytoagi.feishu.cn/wiki/BxhawGfcwijLpjkZTLFcrBsEnTc
- 更新于: 2026-10-27

---

> Trickle 官网直通车：https://trickle.so

Trickle 是一个基于可视化上下文构建的AI平台，可以通过提示词来制作网页应用、表单和游戏。要充分发挥它的价值，有效的提示词设计至关重要。本指南将帮助你更好地组织请求，从而获得最佳结果，无论是解决复杂问题、自动化任务，还是生成创意内容。掌握提示技巧，就能释放 TrickleAI 的全部潜力，让工作流程更顺畅、效率更高。无论是初学者还是进阶使用者，都能通过这些方法更轻松地驾驭 AI 的能力，应用在各种场景中。

## **通用策略**

专注于解决特定问题，避免引入意外的副作用，以免破坏已有功能。

`Only fix the issue at hand, avoid making other changes.`

目标是尽量减少代码修改，用最小的调整来验证和解决问题，而不是进行大规模重构。

`Use the smallest adjustment or simplest solution to resolve the issue.`

如果当前方案不理想，可以直接拒绝并让 AI 尝试其他策略。

`Consider alternative approaches, such as…`

引导 AI 在提出解决方案之前更全面地分析问题，这样能降低遗漏重要细节的可能性，让结果更准确、更相关。

`Read carefully and inspect the issue.`

在多次修复后，清理和整理代码，减少冗余并理顺逻辑。

`Help organize the current code logic for me.`

要求 AI 清晰解释每一步操作和逻辑，帮助更好地理解问题和发现根源。

`Provide detailed explanations.`

请求 AI 增强错误日志功能，以便更精准地定位错误的来源和原因。

`Add detailed logs to facilitate error tracking.`

通过消除多余的修改来简化代码结构，方便后续迭代，降低出错风险。

`Simplify code logic by removing redundant parts.`

在优化代码时提升可读性和可扩展性，也能让人与 AI 的协作沟通更高效。

`Optimize code structure for better clarity and modularity.`

当项目较大时，应优先使用此方法，定期整理项目结构，可以提前避免许多潜在问题。

`Please split the code into smaller modules for those files with more than two hundred` 

`lines, as these files are growing large.`

## **表单与数据库**

明确需要收集的数据字段，AI 会自动匹配合适的数据类型（例如 Email 输入框会自动限制为 Email 格式），并在项目数据库中创建对应字段。

`I need to create a return form with three input fields: name, email, and the purchased product.`

可以要求 AI 将输入字段转换为特定格式，比如文本输入框、单选按钮、复选框、开关、日期选择器等。

`Set ‘Purchased Product’ as a dropdown list with the options: Books, Stationery, and Accessories.`

当需要与 Trickle 数据库集成时，可以让 AI 使用 Trickle 数据库存储数据。例如，如果正在构建类聊天应用，还没有接入其他数据库，可以尝试 **“Save the chat conversation using trickle database”**。AI 会根据应用自动决定数据结构，并调用 Trickle Database API 来保存或获取数据。

`Save ... data using trickle database`

## **设计**

强调设计的清晰度和灵活性，确保结果既美观独特，又实用可用，而不是千篇一律。

`Make all designs visually stunning, unique, and production-ready, avoiding generic styles.`

当在输入框中选择预设主题时，需要明确告诉 AI 应用该主题，并说明需要的调整。

`Apply the theme selected and make the theme color blue.`

将图片和图标上传至 Assets 文件夹并正确命名，再指定 AI 将其放置在页面的具体位置。

`Use ‘brand-icon’ from Assets as logo.`

确保设计能自适应不同屏幕大小和分辨率，这就是响应式设计的核心。

`Make the title left-aligned on mobile breakpoints, but center-aligned on desktop` 

`breakpoints.`

可以通过图像提示要求 AI 复现提供的设计。只需将截图粘贴到输入框，并附上对应的指令。

`Create a landing page in the same style as the screenshot I provided.`
