DEV Community

Kohki Makimoto
Kohki Makimoto

Posted on

Chrome Extension: ChatGPT Prompt Snippets

Recently, I created a Google Chrome Extension to make my ChatGPT experience more convenient. In this article, I want to introduce it and how I use it in my daily work.

The extension named ChatGPT Prompt Snippets, is designed to enhance the ChatGPT experience by providing quick access to frequently used prompts. It's a simple yet powerful tool that integrates seamlessly into the ChatGPT interface.

Chrome Web Store Screenshot

ChatGPT Prompt Snippets - Chrome Web Store

What is ChatGPT Prompt Snippets?

ChatGPT Prompt Snippets is a lightweight Chrome Extension that enables users to save and quickly insert text snippets into the ChatGPT input field, streamlining the use of frequently repeated prompts.

ChatGPT Prompt Snippets Demo

With a simple keyboard shortcut (Ctrl + J or Cmd + J), you can bring up the dialog interface, quickly select a snippet and insert it into ChatGPT's input area.

Configuration

Snippets are set up using Markdown format, which is very straightforward and effective for creating a wide range of practical prompts. See the following example:

# Geography Questions

## Capital of the USA

This snippet asks for the capital of the United States of America.

```
What is the capital of the United States of America?
```

## Highest Mountain

This snippet asks for the highest mountain in the world.

```
What is the highest mountain in the world?
```
Enter fullscreen mode Exit fullscreen mode

The rules for configuring snippets are as follows:

# Snippet Group

## Snippet Name

description

```
snippet
```
Enter fullscreen mode Exit fullscreen mode
  • Use a level 1 heading (#) to define a snippet group.
  • Use a level 2 heading (##) to define a snippet name.
  • Write a paragraph below the snippet name to provide a description.
  • Include a code block to define the snippet.

You can create custom snippets for ChatGPT Prompt Snippets and insert them directly into the designated text box in the settings.

Settings dialog

You can show the following dialog

Result of the settings

A use case from my daily work

One of prompt snippets that I regularly use in my daily work is the following:

# Languages

## English Text Review and Translation

英文をチェックしてより良い英文を提案

```
Check the following text to see if it is natural English. Explain what is wrong. Provide improved English text. Translate your improved English text into Japanese. Your response MUST be the following format. Do not include any additional content outside of this format.

## Explanation
{{ your explanation }}

> {{ your explanation in Japanese }}

## Improved English text
{{ your improved English text }}

> {{ your improved English text in Japanese }}

Text:

```
Enter fullscreen mode Exit fullscreen mode

I am a non-native English speaker from Japan, and this prompt is very useful for correcting my writing mistakes. I think that I can now write more natural English than I could before.

Conclusion

In essence, the ChatGPT Prompt Snippets extension is about simplicity and efficiency. It's a straightforward tool that integrates into your daily workflow with ChatGPT, saving you time and effort. By allowing you to quickly access and insert predefined text snippets, it cuts down on repetition and lets you focus on the creative aspects of your conversations with ChatGPT.

If you find this tool useful, you can easily install it from the Chrome Web Store, and if you're interested in how it's built, the entire source code is available on GitHub.

GitHub logo kohkimakimoto / chatgpt-prompt-snippets-chrome-extension

ChatGPT Prompt Snippets is a Google Chrome Extension that helps you manage and utilize prompt snippets conveniently when using ChatGPT.

ChatGPT Prompt Snippets

ChatGPT Prompt Snippets is a Google Chrome Extension that helps you manage and utilize prompt snippets conveniently when using ChatGPT It provides a dialog interface where you can search and select prompt snippets to be inserted into the input area of ChatGPT.

You can install the extension from the Chrome Web Store.

chatgpt-prompt-snippets-movie1.mp4

The above demo uses this snippet.

Motivation

ChatGPT is a powerful tool, but sometimes composing the right prompt can be time-consuming. This is especially true during day-to-day work when you find yourself using similar prompts repeatedly. Typing out the same prompts over and over again can become a hassle. This extension was created to streamline the process of crafting prompts by providing a convenient Chrome Extension that lets you quickly access and use your frequently used snippets.

How to Use

  1. Install the Chrome Extension from the Chrome Web Store.
  2. Open ChatGPT…

Top comments (0)