360 Secure SkillHub
360 安全技能中心

Skill Installer

该技能通过 Bash 脚本从 GitHub 仓库列出或安装技能到 `.grok/skills/`,安装前检查目标目录不存在且包含 SKILL.md,支持分支、完整 GitHub 链接及私有仓库令牌环境变量。所有脚本需要联网,安装后提示开启新会话。

isaiahmaniac-sketch
isaiahmaniac-sketch
热度 54.68
最近更新 2026-07-03 02:31:42
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add isaiahmaniac-sketch/skill-installer
Metadata
name
skill-installer
description
Install skills from GitHub repositories into the local skills directory. Use when a user asks to install a skill, add a skill from a repo, list installable skills, or references a GitHub URL containing skills.

Skill Installer

Install skills from GitHub repositories into .grok/skills/, persisted across sessions.

Scripts

All scripts require network access. Use the bash tool to run them.

List available skills from a GitHub repo

bash <this-skill-path>/scripts/list-skills.sh [--repo owner/repo] [--path skills-dir] [--ref branch]

Defaults: --repo xai-org/skills --path skills/.curated --ref main

Install a skill from GitHub

bash <this-skill-path>/scripts/install-skill.sh --repo owner/repo --path path/to/skill [--ref branch]

Or from a full GitHub URL:

bash <this-skill-path>/scripts/install-skill.sh --url https://github.com/owner/repo/tree/main/path/to/skill

Behavior

  • Downloads the skill directory from GitHub via zip archive (public repos) or falls back to git sparse-checkout (private repos).
  • Validates that the downloaded directory contains a SKILL.md.
  • Aborts if the destination skill directory already exists.
  • Installs to .grok/skills/<skill-name> (persisted across sessions).
  • Supports GITHUB_TOKEN or GH_TOKEN environment variables for private repo access.

Communication

When listing skills, output the list and ask which ones to install:

Available skills from owner/repo:
1. skill-one
2. skill-two (already installed)
Which ones would you like installed?

After installing, tell the user to start a new session to pick up the new skill.