Skip to content

Commit 712f8b6

Browse files
elithrarRebeccaTamachiro
authored andcommitted
workers: mega prompt update (#21595)
1 parent 60a9cba commit 712f8b6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/content/docs/workers/get-started/prompting.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ One of the fastest ways to build an application is by using AI to assist with wr
1313

1414
Below is an extensive example prompt that can help you build applications using Cloudflare Workers and your preferred AI model.
1515

16-
### Getting started with Workers using a prompt <Badge text="Beta" variant="caution" size="small" />
16+
### Build Workers using a prompt
1717

1818
To use the prompt:
19+
1920
1. Use the click-to-copy button at the top right of the code block below to copy the full prompt to your clipboard
2021
2. Paste into your AI tool of choice (for example OpenAI's ChatGPT or Anthropic's Claude)
2122
3. Make sure to enter your part of the prompt at the end between the `<user_prompt>` and `</user_prompt>` tags.
@@ -114,6 +115,13 @@ export default {
114115

115116
</TypeScriptExample>
116117

118+
## Use docs in your editor
119+
120+
AI-enabled editors, including Cursor and Windsurf, can index documentation. Cursor includes the Cloudflare Developer Docs by default: you can use the [`@Docs`](https://docs.cursor.com/context/@-symbols/@-docs) command.
121+
122+
In other editors, such as Zed or Windsurf, you can paste in URLs to add to your context. Use the _Copy Page_ button to paste in Cloudflare docs directly, or fetch docs for each product by appending `llms-full.txt` to the root URL - for example, `https://developers.cloudflare.com/agents/llms-full.txt` or `https://developers.cloudflare.com/workflows/llms-full.txt`.
123+
124+
You can combine these with the Workers system prompt on this page to improve your editor or agent's understanding of the Workers APIs.
117125

118126
## Additional resources
119127

0 commit comments

Comments
 (0)