Skip to content

🤯 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.

419 B
Raw Blame
export const getSkillInstructionsUrl = (identifier: string) => {
  // Installation links are opt-in and independent of the Market API used by SaaS.
  const marketBaseUrl = window.__SERVER_CONFIG__?.clientEnv?.marketSkillInstallBaseUrl;
  const id = encodeURIComponent(identifier);

  return marketBaseUrl
    ? `${marketBaseUrl.replace(/\/+$/, '')}/s/skills/${id}`
    : `https://lobehub.com/skills/${id}/skill.md`;
};