Files
haiyushuke-website/src/content/skill-install-package.ts

36 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-06-18 13:06:18 +08:00
import { absoluteUrl } from "@/lib/site-url";
export const skillInstallPackage = {
zipHref: "/download/hydata-skill.zip",
zipFileName: "hydata-skill.zip",
skillMdPath: "/download/hydata-skill/SKILL.md",
skillMdSizeLabel: "14 KB",
zipDescription:
"包含 SKILL.md、Python 客户端haiyu_client.py与测试脚本。解压后放入 Cursor / Claude Code / 小龙虾 等工具的 skills 目录即可。",
loadLinkHint:
"兼容 Cursor / Claude Code / 小龙虾 / OpenClaw 等主流 AI 应用。复制后粘贴到 AI 对话框即可。",
skillMdFallbackHint:
"适用于不会主动 fetch URL 的 AI 工具(如 CherryStudio。",
guideHref: "/docs/getting-started",
guideLabel: "查看接入指南 →",
} as const;
export function buildSkillLoadLink(title: string): string {
return `请加载海宇数科 SKILL${title}${absoluteUrl(skillInstallPackage.skillMdPath)}`;
}
export function buildNaturalLanguageExample(
skillId: string,
title: string
): string {
if (skillId === "kyb-verification") {
return "「请帮我对 [公司名称] 做一份完整 KYB 核验报告,重点看主体真实性、股东结构、最近 3 年的司法风险」";
}
return `「请使用 ${title},对 [公司名称] 做一次完整尽调并输出结构化报告」`;
}
export function buildSlashCommand(slug: string): string {
const cmd = slug.replace(/^\//, "");
return `/${cmd} [公司名称]`;
}