Elffuss BraidHub

kikocis/continue public

docs: initial prompts changes (#7664)

* initial prompts docs changes

* following through on second half

* final touches

* fix: broken links

---------

Co-authored-by: Nate <sestinj@gmail.com>
Changeset4ab005c754dae35e4b25087f5519b5b290cd29b4a65c0d686a7a071af2bcabf0
AuthorTy Dunn <ty@continue.dev> · 2025-09-25 17:01 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-25 17:01 -07:00
Parents5314170e5809

Browse the files at this changeset

21 files changed

modified docs/customization/overview.mdx +1 −1
@@ -15,7 +15,7 @@
1515
1616 ## Create a Slash Command
1717
18-Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](/customize/deep-dives/slash-commands).
18+Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](/customize/deep-dives/prompts).
1919
2020 ## Call External Tools and Functions
2121
modified docs/customization/prompts.mdx +3 −1
@@ -13,4 +13,6 @@
1313
1414 ## Learn More
1515
16-Prompts have the same syntax as [prompt files](/customization/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
16+- [Explore prompts](https://hub.continue.dev/?type=prompts) on the Hub
17+- Learn more in the [prompts deep dive](/customize/deep-dives/prompts)
18+- View [`prompts`](/reference#prompts) in the YAML Reference for more details
modified docs/customize/deep-dives/configuration.mdx +2 −2
@@ -31,7 +31,7 @@
3131 ## Legacy Configuration Methods (Deprecated)
3232
3333 <Info>
34- View the `config.json` migration guide [here](../yaml-migration)
34+ View the `config.json` migration guide [here](/reference/yaml-migration)
3535 </Info>
3636
3737 - [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml`
@@ -63,7 +63,7 @@
6363
6464 <Warning>
6565 The `slashCommands` array shown below is deprecated. For creating custom slash
66- commands, use [prompt files](./slash-commands) instead.
66+ commands, use [prompt files](./prompts) instead.
6767 </Warning>
6868
6969 ```ts title="config.ts"
modified docs/customize/deep-dives/prompts.mdx +82 −38
@@ -1,62 +1,106 @@
11 ---
2-title: "Creating Custom Prompts in Continue"
3-description: "Learn how to create reusable prompt files in Continue to streamline repetitive tasks, including examples for code reviews, security checks, and entity generation"
2+title: "How to Create and Manage Prompts in Continue"
3+description: "Prompts are used to kick off tasks for Agent, Plan, and Chat requests"
4+keywords: [prompts, context, slash command]
5+sidebarTitle: "Prompts"
46 ---
57
6-Prompts are reusable instructions that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks.
8+Prompts are included as user messages and are especially useful as instructions for repetitive and/or complex tasks.
79
8-<Info>
9- Prompts were previously defined in a `.prompt` file format, but for
10- consistency we now recommend using the same Markdown format as
11- [rules](./rules) and adding `alwaysApply: false` to the frontmatter so
12- that they are manually triggered.
13-</Info>
10+## Slash commands
1411
15-## Quick Start: How to Create Your First Prompt File
12+By setting `invokable` to `true`, you make the markdown file a prompt, which will be available when you type <kbd>/</kbd> in Chat, Plan, and Agent mode.
1613
17-Below is a quick example of setting up a prompt file:
14+```md title="explain-invokable.md"
15+---
16+name: Explain invokable
17+description: Explains what happens when you set invokable to true
18+invokable: true
19+---
20+
21+Explain that when `invokable` is set to `true`, a slash command becomes available in the IDE extensions and CLI
22+```
23+
24+These slash commands can be combined with other instructions, including highlighted code, to provide additional context.
1825
19-1. Create a folder called `.continue/rules` at the top level of your workspace
20-2. Add a file called `review-prompt.md` to this folder.
21-3. Write the following contents to `review-prompt.md` and save.
26+## Example: `Create Supabase functions` prompt
2227
23-```md title="review-prompt.md"
28+Here is a prompt that generates high-quality PostgreSQL functions that adhere to best practices:
29+
30+```md title="supabase-create-functions.md"
2431 ---
25-name: Redux best practices review
26-alwaysApply: false
32+name: Create Supabase functions
33+description: Guidelines for writing Supabase database functions
34+invokable: true
2735 ---
2836
29-Review the currently open file for adherence to Redux best practices, as explained in their style guide at https://redux.js.org/style-guide/.
37+# Database: Create functions
38+
39+You're a Supabase Postgres expert in writing database functions. Generate **high-quality PostgreSQL functions** that adhere to the following best practices:
40+
41+## General Guidelines
42+
43+1. **Default to `SECURITY INVOKER`:**
44+
45+ - Functions should run with the permissions of the user invoking the function, ensuring safer access control.
46+ - Use `SECURITY DEFINER` only when explicitly required and explain the rationale.
47+
48+2. **Set the `search_path` Configuration Parameter:**
49+
50+ - Always set `search_path` to an empty string (`set search_path = '';`).
51+ - This avoids unexpected behavior and security risks caused by resolving object references in untrusted or unintended schemas.
52+ - Use fully qualified names (e.g., `schema_name.table_name`) for all database objects referenced within the function.
53+
54+3. **Adhere to SQL Standards and Validation:**
55+ - Ensure all queries within the function are valid PostgreSQL SQL queries and compatible with the specified context (ie. Supabase).
56+
57+...
3058 ```
3159
32-Now to use this prompt, you can open Chat, type <kbd>/</kbd>, select the prompt, and type out any additional instructions you'd like to add.
60+<Info>You can read the rest of the `Create Supabase functions` prompt [here](http://hub.continue.dev/supabase/create-functions)</Info>
3361
34-## Example Prompt Templates for Common Use Cases
62+If you are using a local `config.yaml`, you can add it to your agent like this:
3563
36-Below are more examples to get you started. You can also visit the Hub to [explore prompts](https://hub.continue.dev/explore/prompts) or [create your own](https://hub.continue.dev/new?type=block&blockType=prompts).
64+```md title="config.yaml"
65+...
3766
38-### How to Create a Security Review Prompt
67+prompts:
68+ - uses: supabase/create-functions
3969
40-```md title="security-review.md"
41----
42-name: Security best practices review
43-alwaysApply: false
44----
70+...
71+```
72+
73+If you are using Continue Hub, you can add it to your agent by selecting "Use Rule" [here](https://hub.continue.dev/supabase/create-functions)
74+
75+To use this prompt, you can open Chat / Agent / Edit, type <kbd>/</kbd>, select the prompt, and type out any additional instructions you'd like to add.
4576
46-Review the changes in the current git diff for these security best practices:
77+## Using a prompt with `cn (TUI mode)`
4778
48-- Does the architecture follow security-by-design principles?
49-- Are there potential security vulnerabilities in the system design?
50-- Is sensitive data handled appropriately throughout the lifecycle?
79+You can run this command to start [cn](../../guides/cli) with the [Create Supabase functions](http://hub.continue.dev/supabase/create-functions) prompt.
80+
81+```
82+cn --prompt supabase/create-functions "I need a function that checks for the health status"
5183 ```
84+Alternatively, you can start [cn](../../guides/cli) and then type <kbd>/</kbd> to manually invoke the prompt yourself.
5285
53-### How to Create a Prompt That References Existing Files
86+## Using a prompt to kick off a Continuous AI workflow with `cn (Headless mode)
5487
55-```md title="typeorm-entity-generator.md"
56----
57-name: Generate a new TypeORM entity
58-alwaysApply: false
59----
88+You can kick off Continuous AI workflows using a prompt with [cn](../../guides/cli) by adding the `-p` flag.
89+
90+For example, say you are building a SaaS application and must repeatedly create custom Supabase validation functions for each new feature that accepts user input.
91+
92+These functions require you to interpret business requirements, implement complex cross-table logic (like checking user permissions, tier limits, and time-based restrictions), and make judgment calls about edge cases.
93+
94+Each function is unique enough that it can't be templated or scripted. This is where kicking off a Continuous AI workflow to get you started can be quite helpful.
95+
96+Here is a command that you could run whenever you have a new feature:
6097
61-Referencing `src/db/dataSource.ts` and `src/db/entity/SampleEntity.ts`, generate a new TypeORM entity based on the following requirements:
6298 ```
99+ cn -p --prompt supabase/create-functions "I need a function for the new feature on my current branch similar to my existing database functions"
100+```
101+
102+<Info>You can see the entire `Create Supabase functions` prompt [here](http://hub.continue.dev/supabase/create-functions)</Info>
103+
104+When you run this workflow, [cn](../../guides/cli) will checkout your current branch, explore the new and existing code, and then draft a function for you.
105+
106+You will then be able to review the implementation and improve it before you merge the new feature.
No newline at the end of the file
modified docs/customize/deep-dives/rules.mdx +3 −12
@@ -1,7 +1,7 @@
11 ---
22 title: "How to Create and Manage Rules in Continue"
3-description: "Rules are used to provide instructions to the model for Agent, Chat, and Edit requests."
4-keywords: [rules, .continuerules, system, prompt, message]
3+description: "Rules are used to provide system message instructions to the model for Agent, Chat, and Edit requests"
4+keywords: [rules, system, prompt, message]
55 sidebarTitle: "Rules"
66 ---
77
@@ -156,13 +156,4 @@
156156
157157 This can be viewed in the rules section of the toolbar (see above), or in the source code [here](https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts#L4).
158158
159-Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models).
160-
161-### Legacy: .continuerules File (Deprecated)
162-
163-<Warning>
164- `.continuerules` will be deprecated in a future release. Please use the
165- `.continue/rules` folder instead.
166-</Warning>
167-
168-You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules.
159+Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models).
No newline at the end of the file
deleted docs/customize/deep-dives/slash-commands.mdx +0 −36
@@ -1,36 +0,0 @@
1----
2-title: "Using Slash Commands in Continue"
3-description: "Learn how to use and create Slash Commands in Continue to run custom prompts, access context providers, and speed up coding tasks."
4-keywords: [slash command, custom commands, step]
5-sidebarTitle: "Slash Commands"
6----
7-
8-![actions](/images/actions.gif)
9-
10-Slash commands are shortcuts that can be activated by typing '/' in a chat session (press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
11-![slash-commands](/images/slash-commands.png)
12-
13-Slash commands can be combined with additional instructions, including highlighted code.
14-
15-<Note>
16- **Recommended approach**: Use prompt files to create slash commands instead of
17- the deprecated `config.json` approach. The methods described below provide
18- better flexibility and are the actively maintained ways to add custom
19- commands.
20-</Note>
21-
22-## Ways to Create Slash Commands in Continue
23-
24-### Agent Prompt Blocks
25-
26-The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types#prompts) to your agent, which show up as slash commands in [Chat](../../features/chat/how-it-works).
27-
28-### Prompt Files
29-
30-It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
31-
32-Learn more about prompt files [here](./prompts).
33-
34-### MCP Server Prompts
35-
36-Any prompts provided by [Model Context Protocol](https://modelcontextprotocol.io/introduction) servers are also accessible in chat as Slash Commands. See the [MCP Server Deep Dive](./mcp) for more details.
modified docs/customize/model-roles/edit.mdx +1 −1
@@ -6,7 +6,7 @@
66 ---
77 import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'
88
9-It's often useful to select a different model to respond to Edit prompts than for chat prompts, as Edits are often more code-specific and may require less conversational readability.
9+It's often useful to select a different model to respond to Edit instructions than for Chat instructions, as Edits are often more code-specific and may require less conversational readability.
1010
1111 In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used.
1212
modified docs/customize/model-roles/embeddings.mdx +1 −1
@@ -7,7 +7,7 @@
77
88 An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
99
10-In Continue, embeddings are generated during indexing and then used by [@Codebase](../context/codebase) to perform similarity search over your codebase.
10+In Continue, embeddings are generated during indexing and then used by [codebase awareness](/guides/codebase-documentation-awareness) to perform similarity search over your codebase.
1111
1212 You can add `embed` to a model's `roles` to specify that it can be used to embed.
1313
modified docs/customize/model-roles/intro.mdx +1 −1
@@ -7,7 +7,7 @@
77
88 - [`chat`](/customize/model-roles/chat): Used for chat conversations in the extension sidebar
99 - [`autocomplete`](/customize/model-roles/autocomplete): Used for autocomplete code suggestions in the editor
10-- [`edit`](/customize/model-roles/edit): Used to generate code based on edit prompts
10+- [`edit`](/customize/model-roles/edit): Used to generate code based on edit instructions
1111 - [`apply`](/customize/model-roles/apply): Used to decide how to apply edits to a file
1212 - [`embed`](/customize/model-roles/embeddings): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
1313 - [`rerank`](/customize/model-roles/reranking): Used to rerank results from vector search
modified docs/customize/model-roles/reranking.mdx +1 −1
@@ -7,7 +7,7 @@
77
88 A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
99
10-In Continue, rerankers are designated using the `rerank` role and used by [@Codebase](../context/codebase) in order to select the most relevant code snippets after vector search.
10+In Continue, rerankers are designated using the `rerank` role and used by [codebase awareness](/guides/codebase-documentation-awareness) in order to select the most relevant code snippets after vector search.
1111
1212 ## Recommended reranking models
1313
modified docs/customize/overview.mdx +1 −1
@@ -7,7 +7,7 @@
77
88 Specialized context features for codebase understanding and documentation integration.
99
10-[Browse Context Features →](/guides/understanding-assistants)
10+[Browse Context Features →](/guides/understanding-agents)
1111
1212 ## Deep Dives
1313
modified docs/features/chat/how-it-works.mdx +1 −1
@@ -48,7 +48,7 @@
4848
4949 Learn more about how you can bring in context:
5050
51-- [Codebase Context](/customize/context/codebase)
51+- [Codebase Context](/guides/codebase-documentation-awareness)
5252 - [Documentation Context](/guides/codebase-documentation-awareness)
5353 - [Built-in Context Providers](/customize/deep-dives/custom-providers)
5454
modified docs/getting-started/extensions.mdx +1 −1
@@ -3,4 +3,4 @@
33 description: "Continue offers two ways to configure your AI assistants"
44 ---
55
6-This content has moved to our comprehensive guide: [Understanding Agents: Hub vs Local Configuration](/guides/understanding-assistants)
6+This content has moved to our comprehensive guide: [Understanding Agents: Hub vs Local Configuration](/guides/understanding-agents)
modified docs/getting-started/overview.mdx +1 −1
@@ -59,4 +59,4 @@
5959
6060 ## AI Coding Agents
6161
62-Continue offers flexible AI assistants that enhance your development workflow. You can choose between cloud-managed **Hub Agents** for easy setup and synchronization, or **Local Agents** for complete control and privacy. Learn more about [understanding and configuring assistants](/guides/understanding-assistants).
62+Continue offers flexible AI assistants that enhance your development workflow. You can choose between cloud-managed **Hub Agents** for easy setup and synchronization, or **Local Agents** for complete control and privacy. Learn more about [understanding and configuring agents](/guides/understanding-agents).
modified docs/getting-started/quick-start.mdx +1 −1
@@ -248,7 +248,7 @@
248248 <Accordion title="Chat & Agent Best Practices">
249249 Discover [effective prompting techniques](/customize/deep-dives/prompts), [hub
250250 v. local agents](/guides/understanding-agents), and [custom slash
251- commands](/customize/deep-dives/slash-commands).
251+ commands](/customize/deep-dives/prompts).
252252 </Accordion>
253253
254254 <Accordion title="Enterprise & Teams">
modified docs/guides/codebase-documentation-awareness.mdx +1 −1
@@ -187,4 +187,4 @@
187187
188188 - Learn more about [MCP servers](/reference/continue-mcp)
189189 - Explore [rules configuration](/customize/deep-dives/rules)
190-- Set up [custom assistants](/guides/understanding-assistants) with specific knowledge domains
190+- Set up [custom agents](/guides/understanding-agents) with specific knowledge domains
modified docs/hub/blocks/block-types.mdx +10 −13
@@ -1,34 +1,31 @@
11 ---
2-title: "Blocks: Models, Rules, Prompts, and MCP servers"
2+title: "Models, Rules, Prompts, and MCP servers"
33 sideBarTitle: "Block Types"
44 description: "Explore the different types of reusable blocks in Continue Hub including models, MCP servers, rules, and prompts"
55 ---
66
77 ## Models
88
9-Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used for various roles in the open-source IDE extension like Chat, Autocomplete, Edit, Embed, Rerank, etc. You can explore available models on [the hub](https://hub.continue.dev/explore/models).
10-
11-Continue supports [many model providers](/customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](/customize/model-roles). View [`models`](/reference#models) in the YAML Reference for more details.
9+Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used for various roles in the open-source IDE extension like Chat, Autocomplete, Edit, Embed, Rerank, etc. You can explore available models on [the hub](https://hub.continue.dev/?type=models).
1210
11+Continue supports [many model providers](/customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`.
1312
13+Read more about roles [here](/customize/model-roles) and view [`models`](/reference#models) in the YAML Reference for more details.
1414
1515 ## MCP Servers
1616
17-Model Context Protocol (MCP) is a standard way of building and sharing tools for language models. MCP Servers can be defined in `mcpServers` blocks. [Explore MCP Servers](https://hub.continue.dev/explore/mcp) on the hub.
17+Model Context Protocol (MCP) is a standard way of building and sharing tools for language models. MCP Servers can be defined in `mcpServers` blocks.
1818
19-Learn more in the [MCP deep dive](/customize/deep-dives/mcp), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
19+[Explore MCP Servers](https://hub.continue.dev/?type=mcpServers) on the Hub, learn more in the [MCP deep dive](/customize/deep-dives/mcp), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
2020
2121 ## Rules
2222
23-Rules blocks are instructions that your custom AI code agent will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub.
23+Rules blocks are instructions that your custom AI code agent will always keep in mind - the contents of rules are inserted into the system message for all Chat, Plan, and Agent requests.
2424
25-Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
25+[Explore rules](https://hub.continue.dev/?type=rules) on the Hub, learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
2626
2727 ## Prompts
2828
29-Prompts blocks are pre-written, reusable prompts that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks. [Explore prompts](https://hub.continue.dev/explore/prompts) on the hub.
30-
31-Prompt blocks are pre-written, reusable prompts that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks. [Explore prompts](https://hub.continue.dev/explore/prompts) on the hub.
32-Prompt blocks have the same syntax as [prompt files](/customize/deep-dives/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
33-
29+Prompts blocks are pre-written, reusable instructions that are used to kick off a task. They are especially useful as context for repetitive and/or complex tasks.
3430
31+[Explore prompts](https://hub.continue.dev/?type=prompts) on the Hub, learn more in the [prompts deep dive](/customize/deep-dives/prompts), and view [`prompts`](/reference#prompts) in the YAML Reference for more details.
No newline at the end of the file
modified docs/hub/introduction.mdx +1 −1
@@ -10,6 +10,6 @@
1010 - **[Models](/hub/blocks/block-types#models)**: Discover and configure models from various providers
1111 - **[MCP Tools](/hub/blocks/block-types#mcp-servers)**: Access and integrate Model Context Protocol tools to retrieve real-time data and take action
1212 - **[Rules](/hub/blocks/block-types#rules)**: Define custom guidelines for your custom AI coding agent to follow
13-- **[Prompts](/hub/blocks/block-types#prompts)**: Create and share reusable prompts that kickoff your custom AI coding agent
13+- **[Prompts](/hub/blocks/block-types#prompts)**: Create and share reusable instructions that kickoff your agent
1414
1515 Continue Hub also makes it easy for engineering leaders to centrally [configure](/hub/secrets/secret-types) and [govern](/hub/governance/org-permissions) these resources for their organization.
No newline at the end of the file
modified docs/hub/sharing.mdx +1 −1
@@ -25,7 +25,7 @@
2525
2626 Learn how to discover, install, and use community-created assistants in your projects.
2727
28-[Learn About Agents →](/hub/assistants/intro)
28+[Learn About Agents →](/hub/agents/intro)
2929
3030 ---
3131
modified docs/reference.mdx +35 −27
@@ -213,47 +213,55 @@
213213
214214 ### `rules`
215215
216-List of rules that the LLM should follow. These are concatenated into the system message for all [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) requests. See the [rules deep dive](/customize/deep-dives/rules) for details.
216+Rules are concatenated into the system message for all [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) requests.
217217
218-Explicit rules can either be simple text or an object with the following properties:
218+Confiugration example:
219219
220-- `name` (**required**): A display name/title for the rule
221-- `rule` (**required**): The text content of the rule
222-- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`).
223-
224-```yaml title="config.yaml"l
220+```yaml title="config.yaml"
225221 rules:
226- - Always annotate Python functions with their parameter and return types
227- - name: TypeScript best practices
228- rule: Always use TypeScript interfaces to define shape of objects. Use type aliases sparingly.
229- globs: "**/*.{ts,tsx}"
230- - name: TypeScript test patterns
231- rule: In TypeScript tests, use Jest's describe/it pattern and follow best practices for mocking.
232- globs:
233- - "src/**/*.test.ts"
234- - "tests/**/*.ts"
235- - uses: myprofile/my-mood-setter
236- with:
237- TONE: concise
222+ - uses: sanity/sanity-opinionated # rules file stored on Continue Hub
223+ - uses: file://user/Desktop/rules.md # rules file stored on local computer
224+```
225+
226+Rules file example:
227+
228+```md title="rules.md"
229+---
230+name: Pirate rule
231+---
232+
233+Talk like a pirate
238234 ```
239235
236+See the [rules deep dive](/customize/deep-dives/rules) for more details.
237+
240238 ---
241239
242240 ### `prompts`
243241
244-A list of custom prompts that can be invoked from the chat window. Each prompt has a name, description, and the actual prompt text.
242+Prompts can be invoked with a <kbd>/</kbd> command.
243+
244+Configuration example:
245245
246246 ```yaml title="config.yaml"
247247 prompts:
248- - name: check
249- description: Check for mistakes in my code
250- prompt: |
251- Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
252- - Syntax errors
253- - Logic errors
254- - Security vulnerabilities
248+ - uses: supabase/create-functions # prompts file stored on Continue Hub
249+ - uses: file://user/Desktop/prompts.md # prompts file stored on local computer
250+```
251+
252+Prompts file example:
253+
254+```md title="prompts.md"
255+---
256+name: Make pirate comments
257+invokable: true
258+---
259+
260+Rewrite all comments in the active file to talk like a pirate
255261 ```
256262
263+See the [prompts deep dive](/customize/deep-dives/prompts) for more details.
264+
257265 ---
258266
259267 ### `docs`
modified docs/reference/json-reference.mdx +1 −1
@@ -6,7 +6,7 @@
66
77 <Warning>
88 **This page documents deprecated functionality.** For creating slash commands and customizing Continue, please use:
9- - [Prompt blocks and prompt files](/customize/deep-dives/slash-commands) for slash commands
9+ - [Prompt blocks and prompt files](/customize/deep-dives/prompts) for slash commands
1010 - [config.yaml](/reference) for configuration
1111
1212 See the `config.yaml` reference and migration guide