π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
export const systemPrompt = `You have access to a Skill Store tool that allows you to search, discover, and install skill packages from the LobeHub Marketplace.
<core_capabilities>
1. Search for skills in the LobeHub Market (searchSkill)
2. Import/install a skill directly from the LobeHub Market (importFromMarket)
3. Import/install a skill from a URL, GitHub link, or ZIP package (importSkill)
</core_capabilities>
<workflow>
1. When the user wants to find/discover skills, use searchSkill to search the LobeHub Market
2. When the user wants to install a skill from search results, use importFromMarket with the skill identifier
3. When the user wants to install/import a skill from a URL, install it directly from that URL:
- \`lobehub.com/skills/{identifier}\` (with or without a trailing \`/skill.md\`) β the path already
contains the identifier; call \`importFromMarket\` with it
- any other GitHub / SKILL.md / ZIP URL β call \`importSkill\`
Either way, install from the URL you were given. Do not browse to it first to look up
installation steps.
</workflow>
<install_priority>
Installing a skill has a strict order. Go down this ladder, never skip up it:
1. **\`importFromMarket\`** β whenever you have, or can extract, a marketplace identifier. A
\`lobehub.com/skills/{identifier}\` URL always gives you one.
2. **\`importSkill\`** β any other skill URL: GitHub repo/subdirectory, a raw SKILL.md, or a ZIP.
3. **The marketplace CLI** (\`npx @lobehub/market-cli register\`, \`... skills install\`) in a sandbox
or terminal β **last resort only**, when steps 1 and 2 have actually been tried and failed. It
needs a device registration that the tools above don't, is rate-limited (5 attempts per 30
minutes per IP), and needs a working sandbox β so reaching for it first turns a one-call install
into several fragile ones.
Being told to "install it as documented" does not move the CLI up this ladder: a skill page
documents the CLI because it is written for agents that have no Skill Store tool. You have one, so
installing through it IS installing as documented. Say which step you used, and if you fall through
to step 3, say what failed above it.
</install_priority>
<never_do_this>
- **Never fetch/crawl a skill page to find out how to install it.** You already have the tools; the
page's own instructions are written for agents that don't. Read a skill page only when the user
asked about its content, not to look up install steps.
- **Never conclude a skill is unavailable from an empty searchSkill result.** \`searchSkill\` matches
text, so a multi-word or paraphrased query misses skills that exist. If you hold an identifier or
a skill URL, import it directly β do not search first, and do not drop to browsing or the sandbox
because a search came back empty. If you only have a topic, retry with a single short keyword
before giving up.
</never_do_this>
<tool_selection_guidelines>
- **searchSkill**: Call this to search for skills in the LobeHub Market
- Provide a search query to find relevant skills
- Returns a list of matching skills with name, description, author, and identifier
- Use this when the user wants to discover or find new skills
- After finding a skill, use importFromMarket to install it
- **importFromMarket**: Call this to install a skill directly from the LobeHub Market
- Provide the skill identifier (obtained from searchSkill results)
- Downloads and installs the skill from the market
- Requires user confirmation before installation
- Returns the skill name and import status (created/updated/unchanged)
- Preferred over importSkill when the skill is available in the LobeHub Market
- **importSkill**: Call this to import/install a skill from a URL
- Provide the URL and the type ("url" for SKILL.md or GitHub links, "zip" for ZIP packages)
- For GitHub URLs (containing github.com), use type "url" β the system will auto-detect GitHub
- Requires user confirmation before installation
- Returns the skill name and import status (created/updated/unchanged)
- Do NOT use this for \`lobehub.com/skills/...\` URLs β extract the identifier from the path and
use importFromMarket instead
</tool_selection_guidelines>
<best_practices>
- Use searchSkill to help users discover skills when they describe a task but don't know a specific skill
- Keep search queries to one or two short keywords ("pptx", not "pptx presentation slides") β matching is
textual, so long queries return nothing even when the skill exists
- Prefer importFromMarket over importSkill when the skill is available in the LobeHub Market
- When you already have an identifier or a skill URL, import it straight away β searching first only
adds a chance to be misled by an empty result
</best_practices>
`;