skill-installer

GitHub

用于安装、卸载和列出第三方 openscience 技能包。通过调用 CLI 命令,自动执行仓库克隆、多层安全审查(本地正则及服务器端分类器)、用户确认及持久化存储,支持跨设备同步。

backend/cli/skills/other/skill-installer/SKILL.md synthetic-sciences/openscience

Trigger Scenarios

用户请求安装指定 URL 的技能 用户请求移除或卸载特定命名空间的技能 用户查询已安装的技能列表

Install

npx skills add synthetic-sciences/openscience --skill skill-installer -g -y
More Options

Non-standard path

npx skills add https://github.com/synthetic-sciences/openscience/tree/main/backend/cli/skills/other/skill-installer -g -y

Use without installing

npx skills use synthetic-sciences/openscience@skill-installer

指定 Agent (Claude Code)

npx skills add synthetic-sciences/openscience --skill skill-installer -a claude-code -g -y

安装 repo 全部 skill

npx skills add synthetic-sciences/openscience --all -g -y

预览 repo 内 skill

npx skills add synthetic-sciences/openscience --list

SKILL.md

Frontmatter
{
    "name": "skill-installer",
    "license": "MIT license",
    "category": "other",
    "metadata": {
        "skill-author": "InkVell Inc."
    },
    "description": "Install or remove third-party openscience skills from a public git repository. Use when the user says \"add this skill <url>\", \"install skill <url>\", or \"remove skill <namespace>\". The skill runs locally via `openscience skill add|list|remove`, fetches the repo, runs a 6-layer safety gate (regex + server-side Haiku classifier), prompts the user to confirm, then writes the skills to ~\/.openscience\/installed-skills\/ and uploads to the dashboard for cross-machine sync."
}

Skill Installer

Overview

Installs URL-supplied third-party skills into the openscience CLI. The skill itself is a thin wrapper around the bundled openscience skill bash subcommand — when the user expresses install/uninstall intent, invoke openscience skill add|list|remove via the bash tool. The CLI handles fetching, the safety gate, confirmation, on-disk write, and cross-machine sync.

When to Use This Skill

Trigger on user messages like:

  • "Add this skill: "
  • "Install " / "Install the skill at "
  • "Set up skills from "
  • "Remove the X skill" / "Uninstall "
  • "List my installed skills"

Do NOT use this skill for:

  • Generating new skills (different workflow — see openscience learn)
  • Installing system packages (use bash directly)
  • Anything that's not a openscience skill source

How to Use

Add a skill

openscience skill add <git-url>

Accepted URL forms:

  • https://github.com/<owner>/<repo> — default branch, all skills in skills/**/SKILL.md
  • https://github.com/<owner>/<repo>/tree/<ref> — specific ref/tag
  • gh:<owner>/<repo> — shorthand
  • gh:<owner>/<repo>@<ref>[/<path>] — shorthand with ref and optional path scope
  • Generic git+ssh://... / https://gitlab.com/... URLs

What happens when the user runs add:

  1. CLI clones the repo into a temp dir, pins the commit SHA.
  2. Enumerates skills/<name>/SKILL.md files.
  3. Runs Layers 1, 2, 4 (local regex passes) on every SKILL.md + companion script.
  4. POSTs the surviving manifest to /api/cli/skill-review for the Layer-3 Haiku classifier (server-side, sandboxed input with canary integrity check).
  5. Renders a confirm screen showing the manifest + warnings + classifier reasoning + first lines of each SKILL.md.
  6. On y, writes everything to ~/.openscience/installed-skills/<namespace>/<name>/ and uploads to the dashboard.

The <namespace> is derived from the repo name (last URL segment, lowercased).

List installed skills

openscience skill list

Prints <namespace>/<name> with a marker for any skill the safety gate warned on.

Remove a skill

openscience skill remove <namespace>            # whole namespace
openscience skill remove <namespace>/<name>     # single skill within a namespace

Soft-deletes the cloud record (archived_at set) and removes the on-disk directory.

Examples

User: "Install the brainstorming skill from Anthropic's superpowers repo."

You: invoke bash with openscience skill add gh:anthropics/superpowers/skills/brainstorming. Wait for the spinner + confirm prompt. Relay the manifest to the user. Pass through their y/N response.

User: "Uninstall everything in superpowers."

You: invoke bash with openscience skill remove superpowers. Report the count of archived skills.

User: "What's installed?"

You: invoke bash with openscience skill list. Print the output.

Safety Notes

The user-facing openscience skill add command runs every install through 6 layers (regex catastrophic-reject, regex classifier-injection-reject, server-side LLM classifier, regex suspicious-warn, user-confirm screen, deferred allowed-tools sandboxing). Don't try to bypass any of these by editing ~/.openscience/installed-skills/ directly — that breaks the cloud-sync invariant. Always go through the bash subcommand.

If openscience skill add reports classifier unreachable, the dashboard backend is down — surface that to the user and stop. Do not retry with a flag that disables the classifier without the user's explicit consent.

Reference

  • Spec: thesis/docs/superpowers/specs/2026-05-14-cli-add-skill-from-url-design.md
  • Plan: thesis/docs/superpowers/plans/2026-05-14-cli-add-skill-from-url.md
  • On-disk layout: ~/.openscience/installed-skills/<namespace>/<name>/SKILL.md (mirror of ~/.openscience/learned-skills/)
  • Backend endpoints under /api/cli/installed-skills + /api/cli/skill-review

Version History

  • e9844a4 Current 2026-07-11 17:31

Same Skill Collection

.openscience/skill/bun-file-io/SKILL.md
backend/cli/skills/biology/anndata/SKILL.md
backend/cli/skills/biology/benchling-integration/SKILL.md
backend/cli/skills/biology/bioimage-analysis/SKILL.md
backend/cli/skills/biology/bioservices/SKILL.md
backend/cli/skills/biology/cancer-genomics-analysis/SKILL.md
backend/cli/skills/biology/clinical-imaging/SKILL.md
backend/cli/skills/biology/clinical-reports/SKILL.md
backend/cli/skills/biology/cobrapy/SKILL.md
backend/cli/skills/biology/curated-bio-datasets/SKILL.md
backend/cli/skills/biology/deeptools/SKILL.md
backend/cli/skills/biology/dnanexus-integration/SKILL.md
backend/cli/skills/biology/etetoolkit/SKILL.md
backend/cli/skills/biology/flow-cytometry-analysis/SKILL.md
backend/cli/skills/biology/flowio/SKILL.md
backend/cli/skills/biology/gget/SKILL.md
backend/cli/skills/biology/glycobiology/SKILL.md
backend/cli/skills/biology/histolab/SKILL.md
backend/cli/skills/biology/immunology-assays/SKILL.md
backend/cli/skills/biology/latchbio-integration/SKILL.md
backend/cli/skills/biology/microbial-dynamics/SKILL.md
backend/cli/skills/biology/molecular-cloning/SKILL.md
backend/cli/skills/biology/neurokit2/SKILL.md
backend/cli/skills/biology/neuropixels-analysis/SKILL.md
backend/cli/skills/biology/omero-integration/SKILL.md
backend/cli/skills/biology/opentrons-integration/SKILL.md
backend/cli/skills/biology/pathml/SKILL.md
backend/cli/skills/biology/pharmacology-wetlab/SKILL.md
backend/cli/skills/biology/protocolsio-integration/SKILL.md
backend/cli/skills/biology/pydeseq2/SKILL.md
backend/cli/skills/biology/pyhealth/SKILL.md
backend/cli/skills/biology/pylabrobot/SKILL.md
backend/cli/skills/biology/pysam/SKILL.md
backend/cli/skills/biology/scanpy/SKILL.md
backend/cli/skills/biology/scikit-bio/SKILL.md
backend/cli/skills/biology/scikit-survival/SKILL.md
backend/cli/skills/biology/scvi-tools/SKILL.md
backend/cli/skills/biology/synthetic-biology/SKILL.md
backend/cli/skills/biology/treatment-plans/SKILL.md
backend/cli/skills/chemistry/admet-prediction/SKILL.md
backend/cli/skills/chemistry/admet-reasoning/SKILL.md
backend/cli/skills/chemistry/binding-affinity/SKILL.md
backend/cli/skills/chemistry/datamol/SKILL.md
backend/cli/skills/chemistry/deepchem/SKILL.md
backend/cli/skills/chemistry/denovo-design/SKILL.md
backend/cli/skills/chemistry/diffdock/SKILL.md
backend/cli/skills/chemistry/drug-design/SKILL.md
backend/cli/skills/chemistry/hypogenic/SKILL.md
backend/cli/skills/chemistry/matchms/SKILL.md
backend/cli/skills/chemistry/medchem/SKILL.md

Metadata

Files
0
Version
1b7978c
Hash
ec47b8ae
Indexed
2026-07-11 17:31

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 00:09
浙ICP备14020137号-1 $Map of visitor$