Skip to content

Instantly share code, notes, and snippets.

View mabry1985's full-sized avatar
🤖
Beep Boop

Josh Mabry mabry1985

🤖
Beep Boop
View GitHub Profile
/*
# Smartify your words!
Tired of feeling dumb? Winter got you in a funk?
Can you just not seem to get the words out right?
Well, let's Smartify your words!
Highlight some text and press `cmd+shift+enter` to send it through ChatGPT
to replace the text with a more eloquent version. Mileage may vary.
*/
/*
# Google Search
Example of leveraging Google's Custom Search Engine API to search the web
*/
// Name: Google Search
// Description: Leverage Google's Custom Search Engine API to search the web
// Author: Josh Mabry
// Twitter: @AI_Citizen
/*
Pardon the mess this was put together in half a day for the [lablab.ai](https://lablab.ai/event/autonomous-gpt-agents-hackathon) hackathon.
More updates to come
# AC AGI
An autonomous general intelligence that accomplishes a task for you.
Uses human in the loop to provide feedback to the agent.
How to use:
/*
# Explain Plz
Highlight some text and have it explained by AI
Works for any highlighted text or code
*/
// Name: Explain Plz
// Description: Get an explanation for any highlighted text
// Author: Josh Mabry
// Twitter: @AI_Citizen
/*
# Generate a response to a prompt in any text field
This script utilizes ChatGPT to generate a response for the selected text.
The response will then replace the original text, making it useful for various writing tasks such as blog posts, code, and emails.
Highlight some text and press `cmd+shift+p` to send it through ChatGPT
to replace the text response. Your mileage may vary.
*/
/*
# Prompt Anything
Highlight some text and run this script to prompt against it.
Useful for summarizing text, generating a title, or any other task you can think of.
## Usage
- Highlight the text you want to prompt against
- Run the script via shortcut or command palette
- Input your desired prompt
/*
# Prompt Anything
Highlight some text and run this script to prompt against it.
Useful for summarizing text, generating a title, or any other task you can think of.
## Usage
- Highlight the text you want to prompt against
- Run the script via shortcut or command palette
- Input your desired prompt
/*
# Prompt Anything
Highlight some text and run this script to prompt against it.
Useful for summarizing text, generating a title, or any other task you can think of.
## Usage
- Highlight the text you want to prompt against
- Run the script via shortcut or command palette
- Input your desired prompt
// Name: Prompt Manager
// Description: Manage your prompt templates
// Author: Josh Mabry
// Twitter: @AI_Citizen
//##################
// ScriptKit Imports
//##################
import "@johnlindquist/kit";
// import { editPrompt } from "./utils/prompt-crud.js";
export const renderTags = async (dbName) => {
const tagsDb = await db(dbName);
await tagsDb.read();
const allTags = [...tagsDb.data.tags];
const selectedTags = {};
let selecting = true;
while (selecting) {
const availableTags = allTags.map((tag) => ({
name: `${tag} ${selectedTags[tag] ? " ✓" : " "}`,
value: tag,