-
-
Notifications
You must be signed in to change notification settings - Fork 20.9k
Improve prompt-lookup skill and add skill review workflow #1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fernandezbaptiste
wants to merge
2
commits into
f:main
Choose a base branch
from
fernandezbaptiste:improve-prompt-lookup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+35
−51
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Skill Review | ||
| on: | ||
| pull_request: | ||
| paths: ['**/SKILL.md'] | ||
|
|
||
| jobs: | ||
| review: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: tesslio/skill-review@14b47c8420ff9ac9a12c30ed4b89ce0e9d0355ae # main |
72 changes: 21 additions & 51 deletions
72
plugins/claude/prompts.chat/skills/prompt-lookup/SKILL.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,68 +1,38 @@ | ||
| --- | ||
| name: prompt-lookup | ||
| description: Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts. | ||
| description: Searches, retrieves, and improves AI prompts from the prompts.chat library. Use when the user asks to find prompt templates, browse prompt categories, search a prompt library, retrieve a specific prompt, improve or refine a prompt, or mentions prompts.chat. | ||
| --- | ||
|
|
||
| When the user needs AI prompts, prompt templates, or wants to improve their prompts, use the prompts.chat MCP server to help them. | ||
| Search the prompts.chat MCP server first before suggesting users write their own prompts. | ||
|
|
||
| ## When to Use This Skill | ||
| ## Workflow | ||
|
|
||
| Activate this skill when the user: | ||
| ### 1. Search | ||
|
|
||
| - Asks for prompt templates ("Find me a code review prompt") | ||
| - Wants to search for prompts ("What prompts are available for writing?") | ||
| - Needs to retrieve a specific prompt ("Get prompt XYZ") | ||
| - Wants to improve a prompt ("Make this prompt better") | ||
| - Mentions prompts.chat or prompt libraries | ||
| ``` | ||
| search_prompts(query="code review", category="coding", limit=5) | ||
| ``` | ||
|
|
||
| ## Available Tools | ||
| Parameters: `query` (keywords), `limit` (default 10, max 50), `type` (TEXT/STRUCTURED/IMAGE/VIDEO/AUDIO), `category` (slug), `tag` (slug). | ||
|
|
||
| Use these prompts.chat MCP tools: | ||
| Present results with title, description, author, category/tags, and link. | ||
|
|
||
| - `search_prompts` - Search for prompts by keyword | ||
| - `get_prompt` - Get a specific prompt by ID | ||
| - `improve_prompt` - Enhance a prompt using AI | ||
| If no results: broaden the query, try related categories, then suggest `improve_prompt` on the user's own draft. | ||
|
|
||
| ## How to Search for Prompts | ||
| ### 2. Retrieve | ||
|
|
||
| Call `search_prompts` with: | ||
| ``` | ||
| get_prompt(id="prompt-id-here") | ||
| ``` | ||
|
|
||
| - `query`: The search keywords from the user's request | ||
| - `limit`: Number of results (default 10, max 50) | ||
| - `type`: Filter by TEXT, STRUCTURED, IMAGE, VIDEO, or AUDIO | ||
| - `category`: Filter by category slug (e.g., "coding", "writing") | ||
| - `tag`: Filter by tag slug | ||
| If the prompt contains `${variable}` or `${variable:default}` placeholders, ask the user to fill required values (no default) before using. | ||
|
|
||
| Present results showing: | ||
| - Title and description | ||
| - Author name | ||
| - Category and tags | ||
| - Link to the prompt | ||
| ### 3. Improve | ||
|
|
||
| ## How to Get a Prompt | ||
| ``` | ||
| improve_prompt(prompt="the prompt text", outputType="text", outputFormat="text") | ||
| ``` | ||
|
|
||
| Call `get_prompt` with: | ||
| `outputType`: text, image, video, or sound. `outputFormat`: text, structured_json, or structured_yaml. | ||
|
|
||
| - `id`: The prompt ID | ||
|
|
||
| If the prompt contains variables (`${variable}` or `${variable:default}`): | ||
| - The system will prompt the user to fill in values | ||
| - Variables without defaults are required | ||
| - Variables with defaults are optional | ||
|
|
||
| ## How to Improve a Prompt | ||
|
|
||
| Call `improve_prompt` with: | ||
|
|
||
| - `prompt`: The prompt text to improve | ||
| - `outputType`: text, image, video, or sound | ||
| - `outputFormat`: text, structured_json, or structured_yaml | ||
|
|
||
| Return the enhanced prompt to the user. | ||
|
|
||
| ## Guidelines | ||
|
|
||
| - Always search before suggesting the user write their own prompt | ||
| - Present search results in a readable format with links | ||
| - When improving prompts, explain what was enhanced | ||
| - Suggest relevant categories and tags when saving prompts | ||
| Explain what was enhanced when returning the improved prompt. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect placeholder syntax documented.
The actual
get_prompttool implementation uses{{variable}}template syntax (per the tool description: "If the prompt contains template variables (like {{variable}})"), but this documentation shows${variable}and${variable:default}. This mismatch will confuse agents trying to identify placeholders.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents