From 1db0108110d56236a024f479d547a5ecbdb4c209 Mon Sep 17 00:00:00 2001 From: Quinn Slack Date: Wed, 2 Oct 2024 16:07:52 +0200 Subject: [PATCH] fix documentation of prompt ownership and visibility --- docs/cody/capabilities/commands.mdx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/cody/capabilities/commands.mdx b/docs/cody/capabilities/commands.mdx index 34f20e250..de6890c1e 100644 --- a/docs/cody/capabilities/commands.mdx +++ b/docs/cody/capabilities/commands.mdx @@ -21,14 +21,19 @@ Click the **New prompt** button on the **Prompt Library** page to create a new p - Select the **Owner** and **Name** of the prompt - Then, write a prompt description - And finally, fill out the **Prompt template** box with all your prompt instructions -- Moreover, you can mark your prompt as **Draft**. This would prevent it from being available to other users +- Moreover, you can mark your prompt as **Draft**. - Once done, click the **Create prompt** button +The prompt is visible to and usable by: + +- The prompt's owner: if the prompt's owner is a user +- All members of the organization: if the prompt's owner is an organization +- Everyone: if the prompt is marked **Public** (which only site admins can do) + Completing this process will do the following: - The new prompt will be added to the **Prompt Library** page -- If it's not a draft, it will be available to other users in your organization -- The prompt will start appearing via your connected Sourcegraph instance inside Cody's VS Code extension and the Sourcegraph Web UI +- The prompt will appear in the Prompts list in Cody (in the editor and on the web) ![prompts-in-vscode](https://storage.googleapis.com/sourcegraph-assets/Docs/prompts-ui-vscode-082024.png)