Install AI Commands

Select a prompt by clicking on it. Hold to select multiple. Click Add to Raycast to import them directly.

Code

Act as a natural language processing software. Analyze the given text and return me only a parsable and minified JSON object.


Here's the JSON Object structure:
{
  "key1": /* Some instructions */,
  "key2": /* Some instructions */,
}

Here are the rules you must follow:
- You MUST return a valid, parsable JSON object.
- More rules…

Here are some examples to help you out:
- Example 1…
- Example 2…

Text: {selection}

JSON Data:
Natural Language Processing
Convert the following code into Tailwind CSS classes and give me the result in a code block. Make sure to remove any browser prefixes. Only give me what I can put into my HTML elements `class` properties.

Code: {selection}

Tailwind CSS classes:
Convert CSS code to Tailwind Classes
Act as a linux terminal. Execute the following code and reply with what the terminal should show. Only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations.

Code: {selection}

Terminal:
Linux Terminal
Act as a {argument name=language} interpreter. Execute the {argument name=language} code and reply with the output. Do not provide any explanations.

Code: {selection}

Output:
Code Interpreter
Translate the text to Git commands. Only reply one unique code block, and nothing else. Do not write explanations.

Text: {selection}

Git commands:
Git Commands
Generate a regular expression that match the specific patterns in the text. Return the regular expression in a format that can be easily copied and pasted into a regex-enabled text editor or programming language. Then, give clear and understandable explanations on what the regex is doing and how it is constructed.

Text: {selection}

Regex:
Regex Generator
Convert the HTML code to Markdown.

HTML code: {selection}

Markdown:
Convert HTML to Markdown
Act as a software engineer debugging its code. Add debug statements to the code. Add as many as necessary to make debugging easier.

Code: {selection}

Debugged code:
Add Debug Statements
As a software developer, I am currently working on a project using Jest, TypeScript, and React Testing Library. I would like you to help me generate unit tests for the given code. Analyze the given code and provide a single unit test with the necessary imports, without any additional explanations or comments, unless absolutely necessary. Avoid repeating imports and mocks you've mentioned already.

If I say 'next,' please give me another test for the same code. In case I submit new code, please discard the previous code and start generating tests for the new one. Prioritize testing the code logic in different scenarios as the first priority in testing.

If I provide specific instructions or ask you to test a particular part or scenario, please follow those instructions and generate the unit test accordingly. If I send you a Jest error, fix the problem and only return the lines which need to be changed in a readable format. Please format the output as a unique code block.

Code: {selection}

Output:
Write a docstring for the function. Make sure the documentation is detailed.

Function: {selection}

Docstring:
Write Docstring

Communication

Translate the text in {argument name=language}.

Text: {selection}

Translation:
Translate to Language
Write a polite and friendly email to decline the following email. The email should be written in a way that it can be sent to the recipient.

Email: {selection}

Declined email:
Decline this Mail
Rewrite the following text as a concise and friendly message, phrased as a question. This should be written in a way that it can be sent in a chat application like Slack.

Text: {selection}

Question:
Ask Question
Rewrite the following text as a bottom line up front (BLUF) message formatted in Markdown. The format of the message should be made of two parts:
    
- The first part should be written in bold and convey the message's key information. It can either be a statement or a question. Don't lose any important detail in this part.
- The second part should be put onto a new line. This should give more details and provide some background about the message.

Make sure the message stays concise and clear so that readers don't lose extra time reading it.

Text: {selection}

Rewritten text:
BLUF Message
Help me summarize the key points from the email text into a maximum of 5 bullet points, each preferably one sentence, and at most two sentences. Also, identify any action items requested of me.

Key points:


...

Asked from you:



If there are no action items, the "Asked from you" section will be left empty.

Email: {selection}

Output:
Summarize Long Emailsby Alireza Sheikholmolouki
Take a stance on the topic and {argument default=for} it. Construct a convincing argument and provide evidence to support your stance.

Topic: {selection}

Argument:
Debate a Topic
Create a calendar event in ICS format based on the information. Include the start time, the end time, the location, all attendees, and a summary. If no end time is provided, assume the event will be one hour long. Add a reminder 1 hour before the event starts and 1 day before the event starts. Don't include the PRODID property. Only output the code block. Don't add any comments.

Information: {selection}

ICS:
Create a Calendar Eventby Roel Van Gils
Take the wall of text below and write a cleaned up version inserting naturally appropriate paragraph breaks. It's important that the text does not change, only the whitespace.

Wall of text:
{selection}

Cleaned up version:
Break Up Wall of Text
Please summarize and omit the following. Then express your empathy.

Text: {selection}

Sympathy:
Summarize and sympathize textby nagauta
Use the following instructions to rewrite the text

Give me 5 words that most accurarely fill in the blank in a sentence.

The blank is represented by a few underscores, such as ___, or ______.

So for example: "I'm super ___ to announce my new product".

1. I'm super happy to announce my new product 
2. I'm super excited to announce my new product 
3. I'm super pumped to announce my new product 
4. I'm super proud to announce my new product 
5. I'm super nervous to announce my new product 

Now do the same for this sentece:

Text: {selection}

Rewritten text:
Fill in the gapby peduarte

Image

Create a compelling and captivating YouTube script based on the text. Make sure to include B-Rolls in the script. Make the script as long as necessary to make a video of {argument name=minutes default=10} minutes.

Text: {selection}

Script:
Create a YouTube Script
Based on the text, generate an "imagine prompt" that contains a maximum word count of 1,500 words that will be used as input for an AI-based text to image program called MidJourney based on the following parameters: /imagine prompt: [1], [2], [3], [4], [5], [6]
    
In this prompt, [1] should be replaced with a random subject and [2] should be a short concise description about that subject. Be specific and detailed in your descriptions, using descriptive adjectives and adverbs, a wide range of vocabulary, and sensory language. Provide context and background information about the subject and consider the perspective and point of view of the image. Use metaphors and similes sparingly to help describe abstract or complex concepts in a more concrete and vivid way. Use concrete nouns and active verbs to make your descriptions more specific and dynamic.
    
[3] should be a short concise description about the environment of the scene. Consider the overall tone and mood of the image, using language that evokes the desired emotions and atmosphere. Describe the setting in vivid, sensory terms, using specific details and adjectives to bring the scene to life.
    
[4] should be a short concise description about the mood of the scene. Use language that conveys the desired emotions and atmosphere, and consider the overall tone and mood of the image.
    
[5] should be a short concise description about the atmosphere of the scene. Use descriptive adjectives and adverbs to create a sense of atmosphere that considers the overall tone and mood of the image.
    
[6] should be a short concise description of the lighting effect including Types of Lights, Types of Displays, Lighting Styles and Techniques, Global Illumination and Shadows. Describe the quality, direction, colour and intensity of the light, and consider how it impacts the mood and atmosphere of the scene. Use specific adjectives and adverbs to convey the desired lighting effect, consider how the light will interact with the subject and environment.
    
It's important to note that the descriptions in the prompt should be written back to back, separated with commas and spaces, and should not include any line breaks or colons. Do not include any words, phrases or numbers in brackets, and you should always begin the prompt with "/imagine prompt: ".
    
Be consistent in your use of grammar and avoid using cliches or unnecessary words. Be sure to avoid repeatedly using the same descriptive adjectives and adverbs. Use negative descriptions sparingly, and try to describe what you do want rather than what you don't want. Use figurative language sparingly and ensure that it is appropriate and effective in the context of the prompt. Combine a wide variety of rarely used and common words in your descriptions.
     
The "imagine prompt" should strictly contain under 1,500 words. Use the end arguments "--c X --s Y --q 2" as a suffix to the prompt, where X is a whole number between 1 and 25, where Y is a whole number between 100 and 1000 if the prompt subject looks better vertically, add "--ar 2:3" before "--c" if the prompt subject looks better horizontally, add "--ar 3:2" before "--c" Please randomize the values of the end arguments format and fixate --q 2. Please do not use double quotation marks or punctuation marks. Please use randomized end suffix format.

Text: {selection}

Midjourney Prompt:
Midjourney Prompt Generator
Generate base64 data URIs of 100x100 SVG icons representing the text. Do not provide any commentary other than the list of data URIs as markdown images. For each icon, explain how it relates to the text.

Text: {selection}

Icons:
Generate Iconsby Stephen Kaplan

Writing

Write a story based on the text. Make the story engaging. The story shouldn't be more than {argument name=number default=500} words.

Text: {selection}

Story:
Write a Story
Write a blog post on the topic. Don't use more than {argument name=number default=1000} words

Topic: {selection}

Blog post:
Write a Blog Post
Convert the text into a list of tweets (= Twitter thread). The first tweet should be clear and engaging. Each tweet should flow smoothly into the next, building anticipation and momentum. The last tweet should be impactful so that the user can reflect on the whole thread. Make sure each tweet doesn't exceed 280 characters. Don't add a single hashtag to any of the tweets.

Text: {selection}

Tweets:
Twitter Thread

Music

Write a song based on the given text. The song should have a clear melody, lyrics that tell a story, and a memorable chorus. The mood of the song should be {argument name=mood}.

Text: {selection}

Song:
Write a Song
Act as a song recommender. Based on the given song, create a playlist of 10 similar songs. Provide a name and description for the playlist. Do not choose songs that are the same name or artist. Do not include the original song in the playlist.

Song: {selection}

Playlist:
Playlist Maker

Ideas

Give me 10 alternative versions of the text. Ensure that the alternatives are all distinct from one another.

Text: {selection}

Alternatives:
Write 10 Alternatives
Brainstorm 5 project ideas based on the text. Make sure the ideas are distinct from one another.

Text: {selection}

Ideas:
Project Ideasby Stephen Kaplan
Develop {argument name=number default=3} creative analogies or metaphors that help explain the main idea of the text.

Text: {selection}

Analogies:
Create Analogies

Fun

Rewrite the text as if you were {argument name=character default=yoda}. Use {argument name=character default=yoda}'s tone, manner and vocabulary. You must know all of the knowledge of {argument name=character default=yoda}.

Text: {selection}

Rewritten text:
Act As a Character
Rewrite the text as if you were drunk.

Text: {selection}

Rewritten text:
DrunkGPT

Misc

Extract all facts from the text and summarize it in all relevant aspects in up to seven bullet points and a 1-liner summary. Pick a good matching emoji for every bullet point.

Text: {selection}

Summary:
TL;DR
Convert {selection} to title case.
Title Case
Suggest emojis that relate to the text. Suggest around 10 emojis and order them by relevance. Don't add any duplicates. Only respond with emojis.

Text: {selection}

Emojis:
Emoji Suggestion
Find synonyms for the word {selection} and format the output as a list. Words should exist. Do not write any explanations. Do not include the original word in the list. The list should not have any duplicates.
Find Synonyms
Give me a recipe based on the ingredients. The recipe should be easy to follow.

Ingredients: {selection}

Recipe:
Give Me a Recipe
Generate a markdown list of action items to complete based on the text, using a unique identifier for each item as bold headings. If there are any errors in the text, make action items to fix them. In a sublist of each item, provide a description, priority, estimated level of difficulty, and a reasonable duration for the task.

Text: {selection}

Action items:
Create Action Itemsby Stephen Kaplan
Extract all email addresses in the text and list them using markdown. Include anything that might be an email address. If possible, provide the name of the person or company to which the email address belongs.

Text: {selection}

Email addresses:
Extract Email Addressesby Stephen Kaplan
Identify all phone numbers in the text and list them using markdown. Include anything that might be a phone number. If possible, provide the name of the person or company to which the phone number belongs.

Text: {selection}

Phone numbers:
Extract Phone Numbersby Stephen Kaplan
Extract links in the text. Do not provide any commentary other than the list of Markdown links.

Text: {selection}

Links:
Extract Linksby Stephen Kaplan
List pros and cons for the text based on the topics mentioned. Format the response as a markdown list of pros and cons. Do not provide any other commentary.

Text: {selection}

Pros & Cons:
Pros & Consby Stephen Kaplan
Explain the text like I’m a {argument name=identity default="5 year old"}

Text: {selection}

Explanation:
Explain Like I'm a…
Analyze the text and provide insights on its tone, style, and potential audience.

Text: {selection}

Analysis:
Text Analysis
Carefully read the product reviews below. Translate them to English and create a summary of all the reviews in English and list them as Pros and Cons in the bullet point format. Remember that each bullet point should be one sentence or at max two short sentences. Most frequently mentioned should come first in each list and every bullet point should have a percentage showing how much evidence the reviews have brought for that pro or con. For example if reviews are mentioning that product is going bad easily and they brought some reasons for what they are saying, the percentage of your confidence should go higher, but if there are some reviews which are unsure about something or there are no evidence or it's not repeated frequently then the percentage should go lower. At the end you should write a paragraph about what I should pay attention to, before buying this product. These can be some warnings or some tips or some suggestions, points that I will miss, or anything that you think is important to know before buying this product.

You can use the following template to create the summary:

'''
## Summary of the reviews

**✅ Pros:**
- Pro 1 - percentage of your confidence%
- Pro 2 - percentage of your confidence%
...
- Pro n - percentage of your confidence%

**❌ Cons:**
- Con 1 - percentage of your confidence%
- Con 2 - percentage of your confidence%
...
- Con n - percentage of your confidence%

**💡 You should pay attention to:**
- Tip 1
- Tip 2
...
- Tip n
'''

Product reviews: {selection}

Summary:
Summarize Product Reviewsby Alireza Sheikholmolouki

Raycast Prompts

Act as a spelling corrector and improver. Reply to each message with rewritten text using following instructions to rewrite it:
- Fix spelling, grammar and punctuation
- Improve clarity and conciseness
- Break up overly long sentences
- Reduce repetition
- Prefer active voice
- Prefer simple words
- Keep the meaning same
- Keep the tone of voice same
Use english language

Text: {selection}

Improved Text:
Improve Writing - EditableGPT-3.5
Act as a spelling corrector and improver. Rewrite the text with corrected spelling, grammar and punctuation. Use english language

Text: {selection}

Fixed Text:
Fix Spelling and Grammar - EditableGPT-3.5
Act as a dictionary and encyclopedia. Explain the text in a simple and concise language. If it's a single word, provide a short definition. If you can't confidently explain the text, answer with "That's something I can't explain 😥".

Text:
Philosophy

Explanation:
Philosophy is the study of the fundamental nature of knowledge, reality, and existence. It is a system of ideas that attempts to explain the world and our place in it. Philosophers use logic and reason to explore the meaning of life and the universe.

Text: {selection}

Explanation:
Explain This in Simple Terms - EditableGPT-3.5
Act as a content writer. Expand the text with the following instructions:
- Use the same style and tone of voice
- Expand the key information and concepts
- Avoid repetition
- Stay factual close to the provided text
Use english language

Text: {selection}

Expanded text:
Make Longer - EditableGPT-3.5
Act as a content writer. Make the text shorter with the following instructions:
- Use the same style and tone of voice
- Reduce repetition
- Keep key information
Use english language

Text: {selection}

Expanded text:
Make Shorter - EditableGPT-3.5
Act as a professional content writer and editor. Rewrite the text to ensure:
- Professional tone of voice
- Formal language
- Accurate facts
- Correct spelling, grammar, and punctuation
- Concise phrasing
- meaning  unchanged
- Length retained
Use english language

Text: {selection}

Rewritten text:
Change Tone to Professional - EditableGPT-3.5
Act as a content writer and editor. Rewrite the text to ensure:
- Friendly and optimistic tone of voice
- Correct spelling, grammar, and punctuation
- Meaning unchanged
- Length retained
Use english language

Text: {selection}

Rewritten text:
Change Tone to Friendly - EditableGPT-3.5
Act as a content writer and editor. Rewrite the text with the following instructions:
- Use confident, formal and friendly tone of voice
- Avoid hedging, be definite where possible
- Skip apologies
- Focus on main arguments
- Correct spelling, grammar, and punctuation
- Keep meaning unchanged
- Keep length retained
Use english language

Text: {selection}

Rewritten text:
Change Tone to Confident - EditableGPT-3.5
Act as a content writer and editor. Rewrite the text with the following instructions:
- Use casual and friendly tone of voice
- Use active voice
- Keep sentences shorts
- Ok to use slang and contractions
- Keep grammatical person
- Correct spelling, grammar, and punctuation
- Keep meaning unchanged
- Keep length retained
Use english language

Text: {selection}

Rewritten text:
Change Tone to Casual - EditableGPT-3.5
You're an expert in the field and have the perfect opportunity to share your ideas and insights with a huge audience! Rewrite the text as a tweet that is:
- Casual and upbeat
- Creative and catchy
- Focused on key takeaways that challenge the status quo
- Engaging and punchy
- IMPORTANT: less than 25 words.
- IMPORTANT: doesn't include hash, hashtags and words starting with #, i.e. #innovation #Technology
Use english language

Text:
The concept of Rayday is simple. Every Friday, everyone can use the day to work on something that benefits Raycast. From new features, to fixing bugs, drafting documentation or tidying up, it’s time for us to take a break from project work. As well as getting creative with our own ideas, it’s a great chance to act on feedback from our users and community too.

Tweet:
⚒️ We hack every Friday – we call it 'Rayday'. Everyone can use the day to work on something that benefits Raycast – aside from normal project work.

Text: {selection}

Tweet:
Rephrase as Tweet - EditableGPT-3.5
Act as a software engineer with deep understanding of any programming language and it's documentation.. Explain how the code works step by step in a list. Be concise with a casual tone of voice and write it as documentation for others.

Code:
```
function GoToPreviousPageAction() {
  const [page, setPage] = useGlobalState("page");
  return (
    
      title="Go to Previous Page"
      shortcut={{ modifiers: ["cmd"], key: "[" }}
      onAction={() => setPage(Math.max(page - 1, 0))}
    />
  );
}
```

Explanation:
The code is a React component that goes to the previous page.
1. The component renders an 'Action' component with an icon, title, and shortcut.
3. The 'useGlobalState' hook is used to get the current page number from the global state.
4. The 'onAction' prop is used to set the page number to one less than the current page number.
5. This will cause the page to go back one page when the action is taken.
6. The page is capped at 0 so that the page is never negative.

Code: {selection}

Explanation:
Explain Code Step by Step - EditableGPT-3.5
Act as a software engineer with deep understanding of any programming language. Review the code to fix logical bugs in the code. Only consider the provided context, answer concisely and add a codeblock with the proposed code changes. If you can't confidently find bugs, answer with "LGTM 👍".
    
Code:
```
function PrevAction() {
  const [page, setPage] = useGlobalState("page");
  return (
     setPage(page - 1)}
    />
  );
}
```

Review:
The code is missing a check to make sure 'page' is greater than 0 before subtracting 1. Otherwise, the page could be set to -1 which might cause unexpected behavior.
```
function PrevAction() {
  const [page, setPage] = useGlobalState("page");
  return (
     setPage(Math.max(page - 1, 0))}
    />
  );
}
```

Code:
```
private func submit(_ text: String) {
  guard !text.isEmpty else { return }
  let prompt = OpenAIPrompt(prompt: text, imitateChatGPT: true)
  submit(prompt)
}
```

Problems:
Nothing found - LGTM 👌

Code: {selection}

Problems:
Find Bugs in Code - EditableGPT-3.5