ipIterPrompt
Slash-command packAgent ConfigurationVerified Last verified 2026-07-24

Continue Custom Slash Commands & Context Providers

by Continue

Continue is an open-source AI code assistant for VS Code and JetBrains. Custom slash commands are named, reusable prompt templates you register under the `prompts` key in `config.yaml` and invoke with `/name`. Context providers are the `@`-mention system that pulls specific information — files, docs, terminal, or MCP tools — into the model's context on demand.

Works with

MCP servers, custom models, context providers, and rules.

When to use it

  • When you run the same prompt repeatedly (write tests, review diff, add docs)
  • When you want precise control over what context reaches the model

When not to

  • For one-off asks that don't warrant a saved command

What it does

  • Define reusable `/command` prompt templates for common tasks
  • Pull targeted context via `@`-mention providers (files, docs, terminal, and more)
  • Share the configuration in-repo so a team uses the same commands

How to install

Setup steps with copy-paste config. Sources are cited under each method.

Define a slash command

Continue

Requires: Continue installed in VS Code or JetBrains

  1. Edit config.yaml

    Register a prompt under the `prompts` key; it becomes `/name` in the chat panel. (`config.yaml` supersedes the legacy `config.json`.)

    yaml
    prompts:
      - name: test
        description: Write unit tests for the highlighted code
        prompt: |
          Write thorough unit tests for the selected code.
          Cover edge cases and error paths, and match our existing test style.
  2. Invoke it

    Highlight code, open Continue's chat, and type `/test` to run the saved template.

    config
    /test

How to prompt it

Copy-paste prompts written to exercise this plugin, with what to expect.

Combine a command with context

You want tests written using the actual file plus your testing docs.

/test @currentFile @docs How should I structure these tests?

What to expect: Continue runs the saved `/test` template with the current file and your docs pulled in via context providers, producing tests aligned to your conventions.

  • Name a specific context provider rather than dumping the whole repo — precision beats volume.

Tips for getting the most out of it

  • Keep commands single-purpose and describe them well so teammates know when to use each.
  • Prefer `config.yaml`; if a `config.yaml` exists it takes precedence over the deprecated `config.json`.

Prompts to pair with it

Real prompts from the IterPrompt library you can copy or run.

Claude Code Skill (Slash Command): review-and-commit.md

Turn any AI chat into a claude code skill (slash command): review-and-commit.md with this community persona prompt.

4,728 copiesOpen ↗

Claude Code Skill (Slash Command): push-and-pull-request.md

Turn any AI chat into a claude code skill (slash command): push-and-pull-request.md with this community persona prompt.

2,246 copiesOpen ↗

Tech-Challenged Customer

Turn any AI chat into a tech-challenged customer with this community persona prompt.

3,696 copiesOpen ↗

AI Customer Support Specialist

Turn any AI chat into an ai customer support specialist with this community persona prompt.

3,188 copiesOpen ↗

Customizable Web Template for Company Branding

Turn any AI chat into a customizable web template for company branding with this community persona prompt.

1,011 copiesOpen ↗

Custom Health Membership Annual Summary

Turn any AI chat into a custom health membership annual summary with this community persona prompt.

5,061 copiesOpen ↗
See more prompts in the library

Frequently asked questions

What are context providers?+

They power Continue's `@`-mentions — each provider (files, docs, terminal, MCP tools, and more) injects a specific slice of context into the model on demand.

Pairs well with

Related guides

Alternatives to Continue Custom Slash Commands & Context Providers

Sources & verification

The facts on this page and where they come from. Anything unverified is labeled — we'd rather say "unknown" than guess.

Install steps, pricing, and availability change often. Always confirm on the official page before relying on setup details.