Skip to content

Conversation

@SammyLin
Copy link

@SammyLin SammyLin commented Nov 24, 2025

Description

Screencast

Checklist

- Fix TypeScript type errors
- Fix code formatting with Prettier
- Add GitHub Actions for CI/CD
- Rename to AI Actions
- Initial commit: AI Actions Raycast Extension
@raycastbot
Copy link
Collaborator

Congratulations on your new Raycast extension! 🚀

Due to our current reduced availability, the initial review may take up to 10 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@SammyLin SammyLin marked this pull request as ready for review November 24, 2025 03:45
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Nov 24, 2025

Greptile Overview

Greptile Summary

This PR adds a new extension called "AI Actions" that enables quick AI text processing with custom prompts, supporting multiple AI providers (Gemini, gemini-balance, OpenRouter).

Key Changes:

  • Two view commands: "Manage AI Prompts" for creating/editing prompts and "Run AI Prompt" for executing them
  • Proper error handling with graceful fallback from selected text to clipboard
  • Uses LocalStorage for prompt persistence
  • Supports multiple AI API formats (Gemini and OpenAI-compatible)

Issues Found:

  • Missing metadata folder: This is a new extension with view commands but lacks the required metadata folder with screenshots. Please add screenshots following the documentation
  • CHANGELOG format: Uses actual date 2024-11-24 instead of the required {PR_MERGE_DATE} template string

Positive Aspects:

  • Clean code structure with proper TypeScript typing
  • Excellent error handling throughout (try-catch blocks, graceful fallbacks)
  • Loading states properly implemented to avoid empty state flicker
  • Subtitles added to both commands for better UX
  • Correct Prettier and ESLint configurations

Confidence Score: 3/5

  • This PR has well-written code but is missing required metadata for a new extension
  • Score reflects high code quality with proper error handling and Raycast best practices, but the missing metadata folder with screenshots is a hard requirement for new extensions with view commands. The CHANGELOG format issue is minor and easily fixed.
  • Pay attention to extensions/ai-actions/CHANGELOG.md for the date format. The extension requires a metadata folder with screenshots to be added.

Important Files Changed

File Analysis

Filename Score Overview
extensions/ai-actions/CHANGELOG.md 4/5 Adds initial changelog entry, but uses actual date instead of {PR_MERGE_DATE} template string
extensions/ai-actions/package.json 5/5 Well-structured package.json with proper commands, preferences, and dependencies. Subtitles included for both commands.
extensions/ai-actions/src/manage-prompts.tsx 5/5 Clean implementation of prompt management with proper error handling, confirmation dialogs, and loading states
extensions/ai-actions/src/run-prompt.tsx 5/5 Robust implementation with proper error handling, fallback to clipboard when selected text unavailable, and loading states

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@@ -0,0 +1,8 @@
# AI Actions Changelog

## [Initial Version] - 2024-11-24
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: Use {PR_MERGE_DATE} template string instead of actual date

Suggested change
## [Initial Version] - 2024-11-24
## [Initial Version] - {PR_MERGE_DATE}

@pernielsentikaer
Copy link
Collaborator

Hi @SammyLin👋

Thanks for your contribution 🔥

I'm not sure I understand what this extension is about. It seems like AI commands in general?

@pernielsentikaer pernielsentikaer marked this pull request as draft November 27, 2025 15:19
@SammyLin
Copy link
Author

@pernielsentikaer

Thanks for your interest! Let me clarify what this extension does:

AI Actions is a Raycast extension that lets you create custom AI prompts and run them instantly on selected text. Think of it as a customizable AI text processor.

Key use cases:

  • Quick translations (select text → translate to any language)
  • Summarization (select text → get summary)
  • Code explanations, grammar fixes, or any custom AI task you define

Why this extension exists: The main motivation is that Raycast's built-in AI doesn't support custom Gemini endpoints (like gemini-balance https://github.com/snailyp/gemini-balance )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants