Send, check and fix skills for your Skillstation hub, and find out what became of one you sent. Use when the user says a skill is ready to send or push to the hub, wants it checked first (security scan, compatibility, routing), asks whether a skill they sent was reviewed, approved or discarded, or wants a hub skill that gave a wrong result, has the wrong format or needs different instructions, description or routing changed and sent back. Not for writing a skill from scratch and not for using...
2 stars
0 votes
0 copies
0 views
Added November 6, 2026
ai-agentspythonrustgonodesecurity
Works with
terminal
cli
Security analysis
B84/100
mediumInstalls packages at runtime which could introduce malicious dependencies
mediumInstalls packages at runtime which could introduce malicious dependencies
---
name: skillstation-send
version: 1.4.0
description: Send, check and fix skills for your Skillstation hub, and find out what became of one you sent. Use when the user says a skill is ready to send or push to the hub, wants it checked first (security scan, compatibility, routing), asks whether a skill they sent was reviewed, approved or discarded, or wants a hub skill that gave a wrong result, has the wrong format or needs different instructions, description or routing changed and sent back. Not for writing a skill from scratch and not for using a skill in ordinary work.
---
# Send and fix skills for the hub
Use this skill when the user wants a skill to reach their Skillstation hub, wants
a skill checked before it does, or wants a hub skill that gave a wrong result
fixed. The user writes the skill their own way, with whatever tool they like;
your part starts when they say it is ready. Loading this guidance is not
permission to send, change or delete anything: every step below says what runs
on its own and what waits for the user.
**First step, every time:** run `skillstation version` as a single command, with
no `command -v`, `which`, `&&`, pipe or `cd` around it. If it prints a version,
every action below is a `skillstation … --json` command. If it fails, tell the
user Skillstation is not installed on this machine and stop.
## How to run commands
- Run one plain `skillstation` command at a time, for example
`skillstation skill commit standup-notes --json`. Never `cd` first, never chain
with `&&`, `||` or `;`, never pipe or redirect: read the `--json` fields.
Hosts pre-approve a plain `skillstation …` command and stop on anything else.
- A command that changes something runs first without `--yes`, which only
previews. Show the user what will change, and run the preview's apply line (or
the same command with `--yes` for `skill commit`) only after they approve what
they saw. "Just do it" does not skip the preview.
- If a command is denied, say which one needs approval and why; do not retry it
another way. If a preview is stale, preview again and ask again.
- Never use `--approve-content`, `--force`, a bare `--yes` on the first call, or
`skill confirm <id>` without its digest. Approving content belongs to the
person who read it: when a step reaches it, stop and tell the user to run the
command in a terminal, or to open **Waiting for review** in the web UI.
- Ask before `skillstation init`, `connect`, `doctor --fix`, `token rotate`,
`cache clear` or `serve`.
- `skillstation status --json` names the `role` of this folder. With a hub on
another machine (`client-remote`) there is no hub here to administer, but
everything below works from here.
## Send a skill to the hub
The user packages their own skill, in their own folder. Do not draft,
restructure, rename or "improve" it unless they ask. Run these checks in this
order. The preview and the security scan run without asking, because they only
read; the others are offered and skippable.
1. *The preview.* Run `skillstation skill commit <folder> --json` and show it:
the files that would be sent, the ones left out (secrets, build output) and
the warnings. The skill id is the folder name, or the checkout's id when the
folder came from the hub; tell the user which id will be used. A SKILL.md
whose frontmatter does not parse is refused, and a missing description is a
warning. With a hub on another machine the preview also asks that hub about
the id (when this machine's own settings name it): a warning that the hub
already has the id means sending proposes a replacement, and renaming the
folder makes it a new skill; a warning that the hub's copy changed since the
checkout means run `skillstation skill pull <id>` first, which keeps the
user's edits.
2. *Security scan, always.* Run `skillstation skill scan <folder> --json`. It
needs no hub and no Node, and applies the same rules the reviewer uses. Exit
code 1 means a finding of severity `high` or `critical`: do not send yet.
Show each finding (file and line, why, fix) and offer to fix it on the spot;
the user edits the files or asks you to, then scan again. If the user still
wants to send with the finding standing, they must say so, after you told
them that the reviewer scans again and sees the same finding. Findings below
`high` are shown, not blocking. With no finding, say "no rule matched", never
"safe". Then read the skill's files yourself for what rules cannot judge:
steps that do not match the description, anything that downloads or runs
something the user did not ask for, anything hidden from the user, scripts
that reach outside the folder. Report what you find as advice.
3. *Metadata.* Offer to read SKILL.md and compare it with its `description` and
`skill.yaml` (triggers, examples, not-for). Show every proposed change as a
diff and write it only after the user approves. The body of SKILL.md is not
touched unless they ask. Routing keys sit under `routing:` in that file (see
"Improve a skill's routing"); keys at the top level are not read.
4. *Runtime.* The `runtime:` block of the folder's `skill.yaml` is the author's
to write, and it travels with the files: the reviewer on the hub sees it and
approves it, but does not set it up for you. Read the runtime findings from
`skillstation skill lint <folder> --json` (a hub on another machine) or from
the warnings of the step 1 preview: `missing_runtime_block`,
`install_prose_without_runtime`, `missing_lockfile`, `absolute_install_path`
and `invalid_runtime_block`. They are computed on this machine from the whole
folder, and nothing leaves it. They warn and never block a send, but a skill
that needs a package, an outside program or a secret and declares none fails
on the first machine that runs it: the hub serves a skill as a read-only
copy, so `npm install` or `pip install` inside the skill folder cannot work.
When the skill has a dependency manifest (`package.json`, `requirements.txt`),
scripts that need an interpreter or other program, or install steps in its
prose, draft the block from what the files show:
- `requires.bins`: the programs it runs (`node`, `python3`, `ffmpeg`), with a
`version` where the files pin one; `requires.env`: names of variables it
reads, never values; `requires.platforms` only if it cannot run everywhere;
- `setup.command`: installs into `$SKILLSTATION_STATE_DIR`, never into the
skill folder or globally, for example copying the folder's `tools/` there
and running `npm ci` in the copy;
- `setup.check`: succeeds only when that install is present and matches this
version of the skill, so an old install is noticed and set up again.
Show the block as a diff of `skill.yaml` and write it only after the user
approves; keep the keys already in the file. Then run the lint again until the
runtime findings are gone or the user accepts the rest. Then offer
`skillstation skill try <folder> --json`: without `--yes` it only says which
check and setup commands it would run. They are the skill's own and may
install packages, so run it with `--yes` only after the user agrees. It tries
the block the way the hub serves the skill, from a read-only copy with an
empty temporary state folder: the check must fail, setup must then succeed,
and the check must then pass; everything is removed afterwards. Exit code 1
means the block does not work from a hub copy: show the failing step and its
output, offer a fix to the block as above, and try again. Do not run the
block's `setup` or `check` any other way on the user's machine. A skill of
instructions only has no runtime findings and needs no block. If the folder
is a checkout of a hub skill and you add a `skill.yaml`, put the complete
routing in it too (see "Fix a skill that gave a wrong result").
5. *Routing lint.* With a hub on another machine, run `skillstation skill lint
<folder> --json`. It sends only SKILL.md and skill.yaml to the hub, which
compares them with its active skills and keeps nothing, and lists a trigger
that collides with another skill's, missing examples, and examples that route
to another skill. Show each finding with its fix and offer to repair the
routing as in step 3 (diff, approval), then lint again. If it says only the
project's files name the hub, explain that the user must first trust that
hub, offer to run the `skillstation connect -g --hub <url> --token-file <file>` line it
prints, and run it only after they agree; do not work around it. With the hub
on this machine the preview in step 1 already carries the routing warnings.
Before sending to a hub on another machine, offer a note for the person who
reviews it (`--note "<text>"`, at most 500 characters), most of all for a fix:
why the skill changed. It is the user's words; ask for them and never write one
on your own. The preview shows the note.
Send with `--yes` only after the user approves the preview. A skill that is
already on the hub is updated by the same command, from its checkout. Say what
the command's own summary says happened, not what you expect: with the hub on
this machine the skill arrives as a draft; with a hub on another machine it
waits as a submission `SUB-…` that a person reviews there (apply, approve and
activate in one pass). The preview already says which one applies; an address
such as 127.0.0.1 can be a tunnel to another machine. The hub changes nothing
until a person reviews it, and the folder keeps working in this project
meanwhile. Say that plainly after sending, with the `SUB-…` id when there is one, and
that `skillstation skill submission SUB-…` asks what became of it later. For a remote send the command-line flags for routing, `--collection` and
`--runtime-file` are refused: they would change the hub's copy directly. The
folder's own `skill.yaml` is different. Its routing and its `runtime:` block are
the author's, they travel with the files, and the reviewer on the hub sees them
and approves them; the reviewer sets the collection. Never invent triggers for
the user; routing they want noted lives in the folder's `skill.yaml`. Later, `skillstation
skill pull <id>` brings the reviewed version back.
## What became of a skill that was sent
When the user asks whether a skill they sent was reviewed, run
`skillstation skill submission SUB-… --json` with the `SUB-…` id the send
printed (ask for it if you do not have it). It only reads. `status` is
`waiting`, `applied` (a person reviewed it and the hub applied it; `skill_state`
says whether the skill is `active`, so agents get it, or a `draft`, which they
get once the hub's owner activates it), `discarded` (nothing
changed on the hub, and the user's folder is as they left it) or `replaced` (a
newer submission of the same skill from this machine took its place, named by
`replaced_by`). After `applied`, `skillstation skill pull <id>` brings the
reviewed version into a checkout. Say plainly what it says; do not guess why a
person discarded it. A hub that has no record of the id, or that predates this
command, answers with an error that says so.
## Fix a skill that gave a wrong result
This starts from a sentence such as "the skill we just used is not right", from a
failed `skill_feedback`, or from the user naming a skill. Never change anything
on the first sentence. Ask once whether they want to fix it, naming the skill you
used (the `skill_id` from your own `skill_resolve` call); in a new session, where
you cannot know it, ask which skill. After a yes, ask what went wrong or what
they expected, then ask one more question: keep the fix **for this project
only**, or **send it to the hub** when it works. Then run `skillstation skill
checkout <id>`; that writes `.agents/skills/<id>/`, and every agent in this
project uses that copy until it is sent or removed. The user may edit the files
themselves or ask you to; follow their choice and do not set a default. Edit
instructions, scripts and references in `.agents/skills/<id>/` and routing in its
`skill.yaml`, never the pointer in `.claude/skills/<id>/`.
A checkout of a hub skill has no `skill.yaml`, and one you write there replaces
the hub's routing as a whole: a file naming one new trigger drops the examples,
the not-for list and the other triggers. For a routing change use
`skillstation skill edit`, which starts from what the hub holds; if you write a
`skill.yaml` anyway, put the complete routing in it, and heed the
`routing_replaces` warning of the commit preview.
A fix that only changes the description or the routing needs no checkout. With
a hub on another machine, `skillstation skill edit <id> --description "…"
--trigger "…" --example "…"` (no `--yes`) fetches the skill and shows the change
as a diff, with `routing_before` and `routing_after` in `--json`. Each routing
flag replaces its whole field, so repeat the entries to keep, and read the diff
before anything is sent. If `warnings` has `routing_entries_removed`, the edit
drops entries the hub holds: run it again with those entries repeated, unless the
user asked to remove them, and never tell the user the existing routing is kept
while that warning stands. Send it with `--yes` once the user approves, and offer
`--note` as above. The name, the SKILL.md content, the runtime block and the
approval cannot be changed this way: check the skill out for those.
Once they have tried it, a fix kept for this project needs nothing more
(`skillstation status` keeps naming the open checkout and how many files
changed, so it is not forgotten); a fix for the hub goes through "Send a skill to
the hub", with `skillstation skill commit <id>`. If the hub moved on meanwhile,
`skillstation skill pull <id>` first. Editing a third-party skill never blocks
it: the hub keeps serving the old version until a person approves the new
content.
## Improve a skill's routing
Routing decides which skill an agent is sent to, and you can draft it better than
any rule: you read the skill. Use this when the user asks to improve or fill in
triggers, examples or not-for, or when a lint reports a finding.
Two cases, and they are written differently:
- **A skill that is already on the hub** (the user names it, and there is no
folder of theirs for it): use `skillstation skill edit <id> --trigger "…"
--example "…" --not-for "…"` with a hub on another machine, as in "Fix a skill
that gave a wrong result". It starts from the routing the hub holds, shows
`routing_before` and `routing_after` in `--json`, and changes only what you
name. Do not check the skill out and write a `skill.yaml` for this: a
`skill.yaml` replaces the hub's routing as a whole. The steps below, and
drafting the entries, still apply; each routing flag replaces its whole field,
so repeat the entries to keep.
- **A skill folder the user is preparing to send:** write the routing into the
folder's `skill.yaml`, as below.
1. Run `skillstation skill lint <folder> --json` (or, for a skill checked out in
this project, `skillstation skill lint <id> --json`). It lists the findings and
the current routing.
2. Read the skill's SKILL.md, then draft:
- `examples`: 3 to 5 requests the way a person would type them, each naming a
concrete object ("turn this scanned novel into an epub"), never a copy of a
trigger;
- `triggers`: short phrases that name the domain object ("convert a pdf book
to epub"), not bare verbs or nouns;
- `not_for`: nearby tasks that belong to another skill or to no skill;
- `counter_examples`: 2 or 3 requests that look close but must not route here
(for an installer skill: "install this tool on my laptop");
- `operations`: which of explore, design, implement, review, debug, test,
refactor, migrate, document, operate, research, other it serves;
- `min_scope`: `single_step`, `multi_step` or `project`, the smallest task it
is worth loading for;
- `topics` and `technologies` (top level, not under `routing:`): what it is
about and which languages or tools it covers; they also feed routing.
Describe only what SKILL.md says the skill does.
3. Show the user one short block: the findings it fixes, then triggers, examples
and not_for, before and after. After approval write them into the folder's
`skill.yaml`, lint again, and report what is left. The keys go under
`routing:`; a file that puts them at the top level lints as empty:
```yaml
schema_version: 1
topics: [meetings, note-taking]
routing:
operations: [document]
min_scope: single_step
triggers:
- turn meeting notes into minutes
examples:
- "Turn today's product sync notes into minutes with the action items"
not_for:
- transcribing audio recordings
counter_examples:
- "transcribe this recording of the sync"
```
If the folder already has a `skill.yaml`, add to it and keep its other keys.
To say how this skill differs from a neighbour, a `distinguish_from` entry
names the skill and a `discriminator` mapping, never a sentence; `commit`
refuses a plain string:
```yaml
routing:
distinguish_from:
- skill: release-notes
discriminator:
field: output
question: Does the user want the notes written, or the release cut?
choices: [write the notes, cut the release]
```
An `example_resolves_elsewhere` finding means that example routes to another
skill or to none: rephrase it, or add the missing trigger.
4. Once the hub serves the new routing, check it the way agents will meet it:
call `skill_resolve` with each example and each counter-example as the task
description (and the operation it names). Every example should pick this
skill and every counter-example should not; a miss is a routing finding, fixed
as in step 3. This also works when `skill lint` is not available from the hub.
To show the user what the hub holds now (before proposing a change), read it with
`skill_get <id>`: its `routing` block has every routing field the hub stores.
Topics and technologies are not in it; say so instead of reporting them missing.
## When something is not here
Reviewing what other machines sent, activating or retiring a skill, sources,
upstream updates and repairing a hub belong to the hub's owner, on the hub's web
page or with the `skill-curator` skill in the hub folder. Say so and stop; do not
emulate them with other commands.
For a failure, answer in this form:
```text
ERROR: what failed
WHY: known reason or evidence
FIX: one concrete next action
```