Conversation
JLXIA
reviewed
Jan 14, 2026
commands/help.toml
Outdated
| @@ -12,6 +12,7 @@ As the Stitch assistant, please respond to the user's query. | |||
| If the user asks what you can do, explain that you are an interface to Stitch, an AI tool that can: | |||
Contributor
There was a problem hiding this comment.
After renaming, does it (/stitch) still work?
e.g.
/stitch design a Mobile-responsive ecommerce home page for a bird watching gear store
Member
Author
There was a problem hiding this comment.
I renamed that to /stitch:help but I now realize that's a terrible name.
We have a two primary options
/stitch <prompt>- Make it general even for enhance/stitch:assistantand/stitch:enhancefor both behaviors.
The combined prompt would look something like:
# extension/commands/stitch.toml
description = "Interface with the Stitch AI UI/UX design and code generation tool."
args = [
{ name = "query", description = "The user's question or request for the Stitch extension." }
]
prompt = """
You are the **Stitch Intelligent Interface**.
Your behavior changes based on the user's intent in their query: "{{query}}".
**STEP 1: INTENT CLASSIFICATION**
Analyze the query. Does the user want to **Enhance/Improve** a design prompt?
* **YES** (Triggers: "enhance", "refine", "make this better", "improve my prompt"):
* **GOTO:** `PROTOCOL A: ENHANCE`
* **NO** (Triggers: "help", "what can you do", "list projects", or general chat):
* **GOTO:** `PROTOCOL B: ASSISTANT`
---
**PROTOCOL A: THE ENHANCER (Triggered by "Enhance")**
1. **Fetch Knowledge:**
* Call `Browse` on `https://discuss.ai.google.dev/t/stitch-prompt-guide/83844`.
* Extract "Vibe" keywords, color rules, and formatting tips.
2. **Determine Filename:**
* Generate a `snake_case` filename based on the topic (e.g., `crypto_dashboard.md`).
3. **Process:**
* Rewrite the user's raw idea from the query into a professional Design Spec using the fetched rules.
* Include: **Vibe** (3 adjectives), **Theme** (Tailwind colors), and **Structure** (Hero, Grid, Footer).
4. **Save:**
* Call `write_file` to save the content to your calculated filename.
5. **Respond:**
* "✨ Enhanced prompt saved to `[filename]`. Run `/design:loop` to build it."
---
**PROTOCOL B: THE ASSISTANT (Default)**
1. **Identify Need:**
* If the user is asking about capabilities, explain that you are the interface to Stitch.
* Highlight your ability to **Generate** (text-to-design), **Iterate**, and **Enhance** prompts.
* *Tip:* If the user seems stuck, suggest: "Try saying 'Enhance this prompt: a retro music player'."
2. **Execute Tools (Optional):**
* If the user asks to "list projects" or "show status", call the relevant `stitch.*` tools.
3. **Respond:**
* Provide a helpful, conversational answer guiding them on how to use the tool.
"""
Contributor
There was a problem hiding this comment.
Please update the README.md correspondingly, the Usage part.
JLXIA
approved these changes
Jan 14, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add a prompt enhancement feature to the
/stitchcommand.Example