⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
expand_answer
Expands text into a detailed explanation.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
Universal Search and Expand Bundle
Overview
Universal Search and Expand is a Gemma Edge Gallery skill bundle that retrieves fresh information from external APIs and turns it into a readable, grounded answer.
The bundle is designed to work well on phones and other resource-constrained devices. It keeps retrieval and expansion separate so the model can first gather context and then rewrite that context into a clearer response.
Use search_and_expand as the main entry point. It is the recommended skill for most users because it chains the retrieval and expansion steps for you.
What the bundle does
The bundle is built around three skills:
search_and_expanduniversal_searchexpand_answer
Recommended flow:
search_and_expandcallsuniversal_searchuniversal_searchcalls one or more search APIs and returns dense plain textexpand_answerrewrites that text into a fuller answer
This design is useful when the model alone produces short, generic answers. By separating search from expansion, the bundle gives the model a better starting point for a grounded response.
Why not just 1 skill? A walk down the development process
I orignallly tried just 1 skill. I separted the concerns into various files. So much more robust in structure, but not in function. Slimmed down to the flattest possible format. Then the problem was Gemma completely ignored the skill instructions. You can try it yourself and send searches to universal_search if you are a glutton for narrated meta summaries.
Next, I tried expand_answer to elaborate further. This worked with a few tweaks, but the narrated voice persisted. Gemma has a way of inferring intent despite what your explicit instructions may be.
Finally, a 3rd level orchestrator. This got to the best answers to date. The drawback is potential accumulated latency along with a much more laborious deployment process.
I'd like to make this more elegant. Still, a good learning process.
Skills in this repository
1. search_and_expand
This is the recommended skill to use.
It orchestrates the workflow and is the user-facing entry point. In normal use, the user only needs to ask one question, and this skill handles the rest.
2. universal_search
This skill performs the search step.
It supports multiple providers and returns the result as a single dense text block. That output is intentionally simple so the model can use it safely on-device.
3. expand_answer
This skill performs the rewrite step.
It turns the dense search text into a more readable response, usually with more detail and better flow than the raw search output.
Architecture overview
graph TD
U[User Query] --> S[search_and_expand]
S --> US[universal_search]
US --> R[Provider Router]
R --> WF[Wolfram Alpha]
R --> SP[Serper]
R --> TV[Tavily]
R --> BR[Brave]
R --> GM[Gemini]
WF --> M[Merge and Clean]
SP --> M
TV --> M
BR --> M
GM --> M
M --> EA[expand_answer]
EA --> O[Final Answer]
Execution flow
- The user asks a question.
search_and_expandis triggered.search_and_expandcallsuniversal_search.universal_searchselects a provider or tries providers in order.- The provider returns search or knowledge text.
- The text is cleaned and merged into a dense plain-text block.
expand_answerrewrites that block into a fuller answer.- The final answer is returned.
Deployment structure
The repository is organized as three skill directories.
skills/
└── universal_search_bundle/
├── search_and_expand/
│ └── SKILL.md
├── universal_search/
│ ├── SKILL.md
│ └── scripts/
│ └── index.html
└── expand_answer/
├── SKILL.md
└── scripts/
└── index.html
Prerequisites
Required
- Google AI Edge Gallery
- A Gemma model installed in the app
- At least one supported API key for search or knowledge retrieval
Recommended
- A Serper API key
- One backup provider key, such as Tavily or Brave
- A Wolfram Alpha API key for math, computation, and factual lookups
Installation on phone
Android phone
- Install Google AI Edge Gallery on your Android device.
- Open the app and load the Gemma model you want to use.
- Add the skills from this repository.
- Make sure the bundle is installed with the skills in this order:
search_and_expanduniversal_searchexpand_answer
- Configure API keys in
universal_search/scripts/index.html. - Save the files and refresh or reload the skills in the app.
Phone-specific notes
- Use
search_and_expandas the default skill. - Keep API keys in the configuration block near the top of
universal_search/scripts/index.html. - Leave debug mode on only when you are testing.
- Keep the output plain and compact in
universal_search; letexpand_answerdo the rewriting.
Installation on desktop or laptop
The bundle is phone-safe, but it can also be used on desktop or laptop through an Android emulator or any supported local build of the Gallery app.
Option 1: Android emulator
- Install an Android emulator on your computer.
- Install Google AI Edge Gallery inside the emulator.
- Load the Gemma model.
- Copy the skill bundle into the Gallery skill directory used by the emulator.
- Refresh the skills list.
- Open
search_and_expandand test with a simple query such asOpenAI.
Option 2: Supported desktop build
If you are using a desktop build of AI Edge Gallery or a compatible runtime:
- Open the skill directory used by that runtime.
- Copy the three skill folders into the correct location.
- Confirm that
universal_search/scripts/index.htmlis present. - Reload the app or restart the runtime.
- Run a test query.
Desktop and laptop notes
- Use the same skill order as on phone.
- Verify that API keys are valid before testing.
- Start with a simple query such as
debugif the debug toggle is enabled.
Supported search and knowledge providers
The bundle supports multiple providers. In auto mode, universal_search can try them in sequence and fall back if one is missing, disabled, or unavailable.
| Provider | Description | Free tier limits | API URL |
|---|---|---|---|
| Serper | Google Search API wrapper with strong general-purpose web search coverage. | 2,500 free queries; no credit card required. | https://serper.dev/ |
| Tavily | Search API designed for AI retrieval and RAG workflows. | Free for students is advertised; the public pricing page also shows a free plan with 1,000 API credits per month. | https://www.tavily.com/pricing |
| Brave Search | Web search API with web, news, image, and other search results. | Includes $5 in free credits every month. | https://brave.com/search/api/ |
| Wolfram Alpha | Computational knowledge engine for math, science, and factual queries. | Up to 2,000 non-commercial API calls per month. | https://products.wolframalpha.com/api |
| Gemini API | Google developer API for model-based retrieval, grounding, and fallback text generation. | Free tier available; quotas vary by model and tier. | https://ai.google.dev/gemini-api/docs/pricing |
Recommended provider order
The default order in universal_search is designed to balance speed, accuracy, and fallback behavior.
Recommended order:
- Wolfram Alpha
- Serper
- Tavily
- Brave
- Gemini
This order works well for mixed queries because Wolfram Alpha is strong for numeric and factual lookups, Serper is fast and broad, Tavily is useful for AI-oriented retrieval, Brave is a good fallback search source, and Gemini can act as a final fallback when needed.
Configuration
Most user-configurable values are grouped near the top of universal_search/scripts/index.html.
Typical configuration values include:
- API keys
- default provider order
- debug toggle
- result limit
- output length limit
- timeout settings
How to use the bundle
// HOW IT'S BUILT
KEY FILES