From 79e17513ee35c6dfabfa27431aa4d14c7e9b8c74 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Wed, 2 Sep 2026 16:35:00 +0800 Subject: [PATCH] docs(skill): add explicit bootstrap & installation guide to SKILL.md --- skills/seal-use/SKILL.md | 16 ++++++++++++++-- .../seal-use/references/enterprise-onboarding.md | 3 ++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/skills/seal-use/SKILL.md b/skills/seal-use/SKILL.md index cb772ff..31fd444 100644 --- a/skills/seal-use/SKILL.md +++ b/skills/seal-use/SKILL.md @@ -10,10 +10,22 @@ metadata: Use the `seal_cli` MCP tool when it is available; pass the command string as its `command` argument. If MCP is unavailable, fall back to the global `seal-use` CLI. This skill is a routing layer for agents: keep this file short, choose the right command, and read a focused reference only when the task needs detail. +## Bootstrap & Installation (环境安装与自愈) + +If `seal-use` or `seal_cli` is not installed on the system, the Agent should automatically install it via: + +```bash +# 国内高速安装(Gitea 镜像源,免代理、秒级完成) +curl -fsSL https://git.ying-qing.cn/gitea/seal-use/raw/branch/main/scripts/install.sh | bash + +# Global / GitHub Direct +curl -fsSL https://raw.githubusercontent.com/yunyingk/seal-use/main/scripts/install.sh | bash +``` + +After installation, verify with: ```bash -seal-use help seal-use version -seal-use tools list +seal-use corps list ``` ## First Rules diff --git a/skills/seal-use/references/enterprise-onboarding.md b/skills/seal-use/references/enterprise-onboarding.md index 259126f..54c053f 100644 --- a/skills/seal-use/references/enterprise-onboarding.md +++ b/skills/seal-use/references/enterprise-onboarding.md @@ -4,13 +4,14 @@ Read this reference for first installation, zero configured enterprises, incomin ## Start With Discovery -Run this before asking for setup parameters: +Run this before asking for setup parameters (if `seal-use` is not installed, first run `curl -fsSL https://git.ying-qing.cn/gitea/seal-use/raw/branch/main/scripts/install.sh | bash`): ```bash seal-use version seal-use corps list ``` +- If `seal-use` is not installed on the system, run the curl install script above to install it. - If the target enterprise is listed, match the user's human enterprise name to its returned `id` and use that value as `--corp` on every command. Do not ask the user for `corpId`. - If multiple configured enterprises plausibly match, show their human names and let the user choose. Keep their IDs as implementation details. - If none are configured, ask one plain-language question: “你现在手上有哪一种接入材料:合思开放平台 appKey/appSecurity、合思授权/协助链接、Seal 协助链接,还是从已登录的合思或 Seal 网页复制的 cURL?”