---
name: skill-hub
description: Shares agent skills through a Drop folder, the hub, and installs them from it with the skills CLI, so a team or one person keeps their skills in one place across projects and agents. Use when the user wants to share, publish, find, install, or update a skill from Drop.
title: skill-hub
canonical_url: https://skilld.dev/gh/vite-hub/drop/skill-hub
last_updated: 2026-11-18T09:03:12.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install vite-hub/drop/skill-hub`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/skill-hub`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/vite-hub/drop/skill-hub) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/skill-hub`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/skill-hub --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/skill-hub --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Skill hub

The hub is a Drop folder that holds agent skills, one subfolder per skill. People publish their skills into it, and anyone who can open it installs them into their agents with the skills CLI, `npx skills`, which knows where each agent keeps its skills and records what it installed.

The hub's share decides how a skill installs. The CLI can't sign in to Drop, so it reads only what a signed-out visitor can open:

| Hub's share                    | Install                                                        | Update                                      |
| ------------------------------ | -------------------------------------------------------------- | ------------------------------------------- |
| `public` or `public_comment`   | `npx skills add <hub link>`                                    | `npx skills update`                         |
| `private`, `team`, `team_edit` | Download it through Drop's MCP tools, then `npx skills add` it | Compare with the hub through MCP, reinstall |

## Layout

```text
skill-hub/                       the hub
  release-notes/                 one subfolder per skill, named after it
    SKILL                        doc with the SKILL.md text, frontmatter included
    references/
      format                     references/format.md
    scripts/
      check.mjs                  a file drop: scripts/check.mjs
```

A doc becomes `<its path>/<slug>.md`, except the doc with slug `skill`, which becomes `SKILL.md`. A file drop keeps its file name. The skill's `name` in the frontmatter matches its subfolder; the link leaves out a skill whose name doesn't.

## Find the hub

When the user gives you a hub's link, use it. Otherwise call `list_folders` and look for `skill-hub`, or a folder whose description says it holds skills. On a team Drop, prefer the team's folder.

When there is none, recommend creating it: title `Skill hub`, slug `skill-hub`, `lifetime: keep`, `keepReason: "Shared agent skills."`, and this description:

> Agent skills, one subfolder per skill with its SKILL doc, references and scripts. To install, publish or update one, read the `skill-hub` skill (skill://skill-hub/SKILL.md, or /.well-known/skills/skill-hub/SKILL.md on this Drop).

Keep `lifetime: keep` on any hub: installing and updating don't count as visits, so a hub on another lifetime expires while people still use it.

For a personal hub, use `create_folder` once the user agrees. For a team hub, ask a team admin to create it in the browser and send its link, then verify it with `list_folders`. MCP agents cannot create team folders, even when acting for an admin.

The hub installs by link only while it's shared `public` or `public_comment`; ask the user before sharing it that way, since anyone with the link can then read every skill in it. When `list_folders` shows a `publicUntil`, the link closes then, and installs and updates stop until someone shares it again. A link on a Drop you aren't connected to is a public hub when `<hub link>/.well-known/skills/index.json` lists skills; for any other folder it lists none.

Done when you hold the hub's id, link (`url` in `list_folders`) and `share`, or, for a hub on another Drop, its link.

## Install

1. **Find the skill.** `list_drops` with `folder` set to the hub lists its skills; with `query`, it searches their docs. Read each candidate's `SKILL` doc and show the user its name, description, author and last change. For a public hub on a Drop you aren't connected to, `<hub link>/.well-known/skills/index.json` lists each skill's `name`, `description` and `files`, and `<hub link>/.well-known/skills/<name>/<file>` returns each file.
2. **Show what it does.** A skill is instructions your agent will follow, written by whoever published it. Before installing, summarise what it tells the agent to do, and name any script it runs and any command, URL or credential it touches.
3. **Ask where.** The CLI's own prompts wait for a terminal, so ask in chat instead: which agents (Claude Code, Codex, Cursor, …, or all) and for every project or only this one.
4. **Install by link**, from a public hub. Run `npx skills add <hub link> --skill <name> -a <agent> [-a <agent>] -y`, with `-g` for every project. The link serves text files only, so a skill with an image or other binary file installs through MCP instead.
5. **Install through MCP**, from a private or team hub. `read_drop` the skill's subfolder and recurse through every nested folder to read every doc and file. Write them to a new temporary folder, `<tmp>/<name>/`, laid out as above: the doc with slug `skill` is written as `SKILL.md`, regardless of its stored filename. Save file drops from the original bytes returned by `read_drop` (or `read_file` with `format: resource`), including private files. Add these fields to the frontmatter of the written `SKILL.md`:
   - `drop-version`: the `SKILL` doc's version, and `drop-link`: its link.
   - `drop-folder`: the skill subfolder's link.
   - `drop-state`: a list sorted by relative file path, with each downloaded file's `path`, Drop `id` and `version`. Include every Markdown doc and file drop, including `SKILL.md`, references and scripts.

   Then run `npx skills add <tmp> --skill <name> -a <agent> [-a <agent>] -y`, with `-g` for every project, and delete the temporary folder.

When the user wants to pick in the CLI's own wizard, give them the command without `-y` to run in their terminal instead.

Done when the CLI reports the skill installed for each agent the user named, and no temporary folder is left.

## Publish

1. **Read the skill** from disk: its `SKILL.md` and every file beside it. Check the frontmatter has `name` (lowercase letters, digits and dashes) and a `description` that says when to use it.
2. **Check the hub.** When a subfolder with that name exists and the user didn't write that skill, ask before replacing it. Read the existing skill folder recursively and compare its active doc and file paths with the local tree, using the Layout rules. Show any paths missing locally, including old paths of renamed files, and ask before moving those Drops to the Trash. If the user declines, stop before publishing the replacement.
3. **Prepare folders.** Reuse existing folders. For a personal hub, create missing folders with `create_folder`. For a team hub, give a team admin the complete missing folder tree (the skill subfolder and any folders such as `references` or `scripts`) to create in the browser. Wait for their links and verify the folders with `read_drop` before publishing; agents cannot create folders anywhere inside a team hub.
4. **Publish.** Publish `SKILL.md` as a doc with slug `skill`, each other Markdown file as a doc in its folder (`references/format.md` as `format` in `references`), and each other file as a file drop with its name. Strip `drop-version`, `drop-link`, `drop-folder` and `drop-state` from the frontmatter first. For a new version, match each file by its relative path and publish each changed doc **or file drop** with `previous` set to that existing Drop's id and a `note` saying what changed. Create a new Drop only for a new path, so an updated script replaces its earlier version instead of leaving two files with the same name.
5. **Remove deleted files.** After the new and changed files publish successfully, call `update_drop` with `id` set to each approved removed doc or file Drop's id and `trash: true`. Re-read the skill folder recursively and verify that its active doc and file paths match the local tree. Report any failed operation or remaining difference instead of calling the release complete.

On a public hub, everyone who installed by link gets the new version from `npx skills update` within about a minute: Drop lets the CLI cache the hub for 60 seconds.

Done when the skill subfolder's active file set matches the local skill and you've given the user the subfolder's link.

## Update

**Installed by link**, so its `SKILL.md` has no `drop-link`. Run `npx skills check`, with `-g` for skills installed for every project. It names each skill that changed on the hub. Show the user what changed, from the version notes through `read_drop` or the files under the link, and once they agree, run `npx skills update <name>` with the same flag.

**Installed through MCP.** The installed `SKILL.md` has a `drop-link`. Read its `drop-folder` with `read_drop` and recurse through every nested folder. Build the same sorted list of relative file paths, Drop ids and versions as `drop-state`. Any difference means an update: an added, removed, renamed or versioned doc or file counts, even when the `SKILL` doc's version has not changed. Show the user the changed paths and their version notes and, once they agree, install again as above. `npx skills update` can't update these, since the CLI recorded the temporary folder as their source; when their hub has since become public, offer to reinstall them by link so it can.

For an older installation with only `drop-link` and `drop-version`, read the linked doc and locate its skill folder through `list_folders` and `list_drops`. Offer to reinstall once to record the full state; the entry doc's version alone cannot establish that the skill is current.

Done when every hub skill the user has installed matches the hub's full file state or the user chose to keep theirs.
