feat(herdr): enable and disable skills and agents from the panel (#843)

The Library lists disabled skills under Off, but the panel had no way
to turn one back on or to turn one off: that meant leaving Herdr for
the CLI or the dashboard.

A skill's or agent's preview now offers Disable, or Enable when it is
disabled. It asks first, then runs skillshare disable / enable with the
entry's own path, the pattern the dashboard writes, so enable removes
exactly what disable added. The next sync applies the change.

Exit 0 only means the entry's own line was written or was not there. A
glob, a folder pattern or a negation in the .local file can still
decide the other way, so the panel reads the list afterwards and
reports an entry that did not change instead of claiming success.

The confirm dialog shares the hook dialog's branch under the role
"able": "toggle" is already the tab-bar button's role, and an overlay
opened with it draws that button.
This commit is contained in:
Willie
2026-11-10 23:36:10 +08:00
committed by GitHub
parent 4776ca7ada
commit 833373f1a7
12 changed files with 87 additions and 23 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ you use. This panel puts it beside your agents in [Herdr](https://herdr.dev):
in the source and a line to every target that shows which ones are waiting.
- **Read before you act.** Click any row to preview it: a skill's `SKILL.md` and files, an agent, an
MCP server's settings with secret values hidden, a hook, a plugin, and the targets each goes to.
- **Fix it without leaving Herdr.** Update, sync, uninstall, or install from a URL; every install
- **Fix it without leaving Herdr.** Update, sync, enable or disable, uninstall, or install from a URL; every install
is audited first, and a blocked one shows its findings before anything is written.
- **Ask your agent.** Hand an audit of any skill to the focused agent.
- **Every machine.** The Machines tab shows each Herdr machine's version, its remote, source and
+6 -4
View File
@@ -1,6 +1,6 @@
# Herdr + skillshare
skillshare beside your agents. Herdr's default window gains a skillshare button in the tab bar and a panel beside the work area that shows which of your skills, agents, MCP servers, plugins and hooks need an update or a sync, in the focused space's project and in your global source. From the panel you update, sync, install from a URL with an audit first, uninstall, ask the focused agent to audit something, sync the source repository both ways, and check skillshare on every Herdr machine.
skillshare beside your agents. Herdr's default window gains a skillshare button in the tab bar and a panel beside the work area that shows which of your skills, agents, MCP servers, plugins and hooks need an update or a sync, in the focused space's project and in your global source. From the panel you update, sync, install from a URL with an audit first, enable or disable a skill or agent, uninstall, ask the focused agent to audit something, sync the source repository both ways, and check skillshare on every Herdr machine.
![Herdr + skillshare](preview.png)
@@ -30,7 +30,7 @@ Left to right, everything as in Herdr's `main` layout, plus two blocks:
- a 40px footer: the source state, such as "Source · n uncommitted · ↑n ↓n", "up to date" or "no remote" (`blocked` when it needs attention), and Sync both ways when the repository has an upstream.
- Loading draws the content's own shape: the map with empty counts and four lines, list rows, machine cards. Each pulses once every 1.2 s.
- Motion is Herdr's native kind: the status line's height slides (180 ms) so the list does not jump, a waiting line breathes and a syncing one flows, a dialog fades in and rises 8px (200 ms) and fades out (150 ms) before it closes, and buttons and rows show a pressed state.
- Dialogs open as Herdr overlays with `frame: "none"`, so each draws its own card: a 56px header (title, one line under it, an Esc keycap and a close button), the body, and a 54px footer with quiet actions at the left and one primary button at the right. They are: preview, install, hook change, uninstall, audit hand-off, source repository, sync both ways, pull conflicts, update skillshare, update the panel, command output.
- Dialogs open as Herdr overlays with `frame: "none"`, so each draws its own card: a 56px header (title, one line under it, an Esc keycap and a close button), the body, and a 54px footer with quiet actions at the left and one primary button at the right. They are: preview, install, hook change, enable or disable, uninstall, audit hand-off, source repository, sync both ways, pull conflicts, update skillshare, update the panel, command output.
- Preview (760×560) has one tab per question, so no pane shares its width:
- Document (Settings for an MCP server, Definition for a hook, About for a plugin): a skill's `SKILL.md` rendered as Markdown, with a file list at the left only when the skill has other files; an agent's file; an MCP server's transport, command, arguments and the names of its env, headers and token; a hook's description, agents and native files; a plugin's source and version.
- Targets n (Agents n for hooks and plugins): the item on top and a line down to each target, as on Overview.
@@ -45,7 +45,7 @@ Left to right, everything as in Herdr's `main` layout, plus two blocks:
- Clicking a row opens its preview. Its footer holds what you can do:
- skills and agents that have an update offer Update, and skills also See changes;
- skills and agents that need a sync offer Diff;
- skills and agents offer Uninstall, and "Ask <agent> to audit…" when Herdr knows an agent: the one focused, or the last one focused;
- skills and agents offer Disable, or Enable when disabled (`skillshare disable` / `enable` with the entry's own path, `--kind agent` for an agent; the next sync applies it), Uninstall, and "Ask <agent> to audit…" when Herdr knows an agent: the one focused, or the last one focused;
- top-level declared hooks offer Enable, Disable and Remove;
- MCP and plugin previews have no actions; Sync handles them.
- A preview reads on the item's machine: the skill's file names (40 at most) and the first 60 kB of the file shown, an agent's `.md`, or the MCP source file `mcp list --json` names. Env, header and bearer-token values are replaced before the dialog gets them, so it shows names only.
@@ -61,7 +61,7 @@ Left to right, everything as in Herdr's `main` layout, plus two blocks:
- Commit and push with a commit message field when files are uncommitted, or Push n commits when only commits are waiting.
- When a pull stops on files both machines changed, the conflict dialog shows each file's two versions with the differing lines marked. You keep one version per file and then apply. `.metadata.json` merges per entry the way skillshare's own pull does, so only real files ask.
- The panel updates itself. `version.js` holds the skillshare release it shipped with. Once an hour while shown it asks, on this computer, where `github.com/runkids/skillshare/releases/latest` lands, and offers "Update panel" when that release is newer. The update clones only `herdr/skillshare/mods/skillshare` at that tag, checks that `mods/skillshare` in Herdr's home holds this panel's version, copies the current files once to the mod folder's `.bak-update-<version>`, and copies the new files in with `main.js` after its modules and `version.js` last. Herdr reloads the panel, and the new build says "Updated the panel to v…". The layout is not touched.
- Hook changes (Enable, Disable and Remove), Uninstall, the audit hand-off, conflict choices, updating skillshare itself and updating the panel each ask first. Sync applies hook changes through `sync --all`.
- Hook changes (Enable, Disable and Remove), enabling or disabling a skill or agent, Uninstall, the audit hand-off, conflict choices, updating skillshare itself and updating the panel each ask first. Sync applies hook changes through `sync --all`.
## Built from
@@ -110,6 +110,8 @@ Left to right, everything as in Herdr's `main` layout, plus two blocks:
- If a `skillshare` mod is already installed, rename this one and the `mod` names in the layout.
- Saving a mod's file reloads it and ends the running build's tasks, so the build that starts a panel update never sees it finish. It leaves `{ to, at }` in `shared`, and the build whose `version.js` matches reports the result and gives the lock back. That is why `version.js` is copied last, why the button hides while any work runs, and why the update holds the lock of every machine until the reloaded panel gives it back: work started on another machine meanwhile would lose its remaining steps.
- The dialog's role is `panelupdate`: `panel` is the role a block without one gets, so a dialog with it would draw a second panel.
- `enable` and `disable` exit 0 once the entry's own line in `.skillignore` or `.agentignore` is written or was not there. A glob, a folder pattern or a negation in the `.local` file can still decide the other way, so the panel reads `list --all --json` afterwards and reports an entry that did not change.
- The dialog role for enabling or disabling a skill or agent is `able`, not `toggle`: `toggle` is the tab-bar button's role.
- A layout clone is never updated: rebuild from this recipe on a new Herdr version.
## Done when
+12 -10
View File
@@ -2,7 +2,7 @@
// what needs an update or a sync, install from a URL, and git sync of the source both ways.
// Roles (props.role): the panel (default); "toggle", the tab-bar button that shows or hides the
// layout's "skillshare-panel" node; dialogs: "install", "uninstall", "audit", "source",
// "syncboth", "conflict", "upgrade", "panelupdate", "text", "hook". Dialogs hand long work to the panel through
// "syncboth", "conflict", "upgrade", "panelupdate", "text", "hook", "able". Dialogs hand long work to the panel through
// channel.js, because an overlay's tasks end when it closes. Install is the exception: its dialog
// shows each step and takes the machine's lock itself, and the install runs detached, so closing
// the dialog does not stop it.
@@ -11,7 +11,7 @@ import { v_flex, h_flex, InputState, Input, TextView } from "gpui-base";
import { exec, hc, run, spaces, agents, focused, machines, shared, setShared, theme, settings, layout, openOverlay, closeOverlay, nextCommand, readTextFile, knownAgents, props as blockProps } from "herdr";
import {
KINDS, SCOPES, DISCOVER, AUDIT,
parseJSON, lastLine, failure, flag, sourceLine, buildItems, hookArgs, rowState, previewTargets, eligibleTargets, targetList, waitsForSync, syncScopes, overviewAnswer, remoteLine, waitingNames, mapLanes, needsBothWays, filterItems, groupItems, sourceGroups, counts,
parseJSON, lastLine, failure, flag, sourceLine, buildItems, hookArgs, toggleArgs, rowState, previewTargets, eligibleTargets, targetList, waitsForSync, syncScopes, overviewAnswer, remoteLine, waitingNames, mapLanes, needsBothWays, filterItems, groupItems, sourceGroups, counts,
cloneUrl, skillChoices, newerVersion, panelUpdate, updateState, ago, auditMessage, parseDiscover, parseAudit,
} from "./model.js";
import { createRunner } from "./jobs.js";
@@ -903,10 +903,10 @@ export default class Skillshare extends View {
if (p.agent) lead.push(dialogButton("audit", `Ask ${p.agent.name} to audit…`, t, then({ width: 480, height: 380, props: { role: "audit", address: p.agent.address, name: p.agent.name, item: it, text: auditMessage(it) } })));
lead.push(textButton("uninstall", "Uninstall", t, then({ width: 440, height: 230, props: { role: "uninstall", item: it, on: p.on, project: p.project } }), t.ansi1));
}
for (const action of ["enable", "disable", "remove"]) {
if (!hookArgs(it, action)) continue;
const label = action[0].toUpperCase() + action.slice(1), open = then({ width: 440, height: 230, props: { role: "hook", item: it, action, on: p.on, project: p.project } });
lead.push(action === "remove" ? textButton("hook-remove", label, t, open, t.ansi1) : dialogButton(`hook-${action}`, label, t, open));
for (const [role, args] of [["able", toggleArgs], ["hook", hookArgs]]) for (const action of ["enable", "disable", "remove"]) {
if (!args(it, action)) continue;
const label = action[0].toUpperCase() + action.slice(1), open = then({ width: 440, height: 230, props: { role, item: it, action, on: p.on, project: p.project } });
lead.push(action === "remove" ? textButton(`${role}-remove`, label, t, open, t.ansi1) : dialogButton(`${role}-${action}`, label, t, open));
}
const buttons = [];
if (it.state === "update" && skillish) {
@@ -925,10 +925,12 @@ export default class Skillshare extends View {
const request = (op) => { if (!this.gone) channel.request(op); }; // nothing more is asked once it is closing
if (p.role === "preview") return this.renderPreview(t, p, close);
if (p.role === "install") return this.renderInstall(t, p, () => { this.closed = true; this.dropClone(p); close(); });
if (p.role === "hook") {
const it = p.item, label = p.action[0].toUpperCase() + p.action.slice(1);
const wording = { enable: "Publishes it again on the next sync.", disable: "Keeps the definition; the next sync removes its owned outputs.", remove: "Deletes the entry; the next sync prunes its owned outputs." };
const go = () => { request({ op: "hook", on: p.on, project: p.project, item: it, action: p.action }); close(); };
if (p.role === "hook" || p.role === "able") { // "able": a skill or agent; "toggle" is the tab-bar button's role
const it = p.item, hook = p.role === "hook", label = p.action[0].toUpperCase() + p.action.slice(1);
const wording = hook
? { enable: "Publishes it again on the next sync.", disable: "Keeps the definition; the next sync removes its owned outputs.", remove: "Deletes the entry; the next sync prunes its owned outputs." }
: { enable: "The next sync sends it to your targets again.", disable: "Keeps it in the source; the next sync removes it from your targets." };
const go = () => { request({ op: hook ? "hook" : "toggle", on: p.on, project: p.project, item: it, action: p.action }); close(); };
return dialogFrame(t, "hook", this.handle, `${label} “${it.label}”?`,
[note(t, `${it.scope} · ${p.on ?? "local"}`), note(t, wording[p.action], t.foreground)],
[dialogButton("cancel", "Cancel", t, close), dialogButton("go", label, t, go, p.action === "remove" ? "danger" : undefined)], close, null);
+10 -1
View File
@@ -327,7 +327,7 @@ export function buildItems(scope, raw) {
const repo = s.repoName ? behind.get(s.repoName) : null;
const d = drift.get(`${kind}:${flat}`);
const item = {
key: `${scope}:${kind}:${flat}`, kind, scope, name: flat, label: rel.split("/").pop(), rel,
key: `${scope}:${kind}:${flat}`, kind, scope, name: flat, label: rel.split("/").pop(), rel, path: String(s.relPath ?? s.name),
src: shortSource(check?.source ?? s.source) || (s.repoName ? `tracked repo ${s.repoName}` : rel.includes("/") ? rel : "local"),
disabled: Boolean(s.disabled), version: check?.version ?? null, state: "ok", repo: s.repoName || null,
};
@@ -412,6 +412,15 @@ export function hookArgs(item, action) {
return ["hooks", action, item.name, item.scope === "project" ? "-p" : "-g"];
}
// Enabling or disabling a skill or agent → skillshare's args, or null when the row can't take
// that change. The pattern is the entry's own path (an agent's keeps its .md), as the dashboard
// writes it, so enable removes exactly what disable added.
export function toggleArgs(item, action) {
if (!["skills", "agents"].includes(item.kind) || !item.path) return null;
if (action !== (item.disabled ? "enable" : "disable")) return null;
return [action, item.path, ...(item.kind === "agents" ? ["--kind", "agent"] : []), flag(item.scope)];
}
// A row's one short state; everything longer is in its preview.
export function rowState(item, showScope) {
const pre = showScope ? `${item.scope} · ` : "";
+18 -1
View File
@@ -2,7 +2,7 @@
// their output reads, and what to tell the person. No Herdr imports and no view state: main.js
// takes the lock, shows progress and the result, and the tests pass a fake machine.
import {
hookArgs, failure, parseJSON, lastLine, flag, PANEL_UPDATE, CONFLICTS, ABORT, RESOLVE, PREVIEW, METADATA_STAGES, METADATA_WRITE,
hookArgs, toggleArgs, failure, parseJSON, lastLine, flag, PANEL_UPDATE, CONFLICTS, ABORT, RESOLVE, PREVIEW, METADATA_STAGES, METADATA_WRITE,
mergeMetadata, parseStages, parsePreview, diffSides,
} from "./model.js";
@@ -67,6 +67,23 @@ const OPS = {
return outcome(r, "Saved. Sync applies it.", "skillshare hooks");
},
async toggle(req, { job, step }) {
const it = req.item, args = toggleArgs(it, req.action);
if (!args) return error("This action is unavailable.");
step(`${req.action === "enable" ? "Enabling" : "Disabling"} ${it.label}…`);
const r = await job(args, at(req, it.scope));
if (r.code !== 0) return error(failure(r, `skillshare ${req.action}`));
// Exit 0 only says the entry's own line was written. A glob, a folder pattern or a negation in
// the .local file can still decide the other way, so the list is what answers.
const kind = it.kind === "agents" ? "agent" : "skill", want = req.action === "disable";
const now = (parseJSON((await job(["list", "--all", "--json", flag(it.scope)], at(req, it.scope))).stdout) ?? []).find?.((x) => (x.kind ?? "skill") === kind && (x.relPath ?? x.name) === it.path);
if (now && Boolean(now.disabled) !== want) {
const file = kind === "agent" ? ".agentignore" : ".skillignore";
return error(`${it.label} is still ${want ? "enabled" : "disabled"}: another pattern in ${file} or ${file}.local decides it. Edit that file.`);
}
return done(want ? `Disabled ${it.label}. The next sync removes it from your targets.` : `Enabled ${it.label}. The next sync sends it to your targets.`);
},
async uninstall(req, { job, step }) {
const it = req.item;
step(`Uninstalling ${it.label}…`);
+15 -1
View File
@@ -4,7 +4,7 @@ import { spawn, spawnSync } from "node:child_process";
import { mkdtempSync, mkdirSync, writeFileSync, readFileSync, readdirSync, existsSync, rmSync, utimesSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { parseGitStatus, sourceLine, driftFrom, targetDrift, buildItems, hookArgs, counts, groupItems, filterItems, sourceGroups, cloneUrl, skillChoices, newerVersion, parseDiscover, parseAudit, parsePreview, diffSides, mergeMetadata, START, ALIVE, SWEEP, SNAPSHOT, parseSnapshot, rowState, previewTargets, splitFrontmatter, mcpServer, targetList, mapLanes, needsBothWays, READ_SKILL, eligibleTargets, syncScopes, overviewAnswer, remoteLine, waitingNames, releaseTag, panelUpdate, updateState, PANEL_UPDATE } from "../skillshare/mods/skillshare/model.js";
import { parseGitStatus, sourceLine, driftFrom, targetDrift, buildItems, hookArgs, counts, groupItems, filterItems, sourceGroups, cloneUrl, skillChoices, newerVersion, parseDiscover, parseAudit, parsePreview, diffSides, mergeMetadata, START, ALIVE, SWEEP, SNAPSHOT, parseSnapshot, rowState, previewTargets, splitFrontmatter, mcpServer, targetList, mapLanes, needsBothWays, READ_SKILL, eligibleTargets, syncScopes, overviewAnswer, remoteLine, waitingNames, releaseTag, panelUpdate, updateState, PANEL_UPDATE, toggleArgs } from "../skillshare/mods/skillshare/model.js";
import { VERSION } from "../skillshare/mods/skillshare/version.js";
test("git status reads branch, ahead/behind and files", () => {
@@ -633,3 +633,17 @@ test("PANEL_UPDATE leaves another mod under the panel's name alone", (t) => {
const { r, said, dest, read } = panelUpdate999(t, SHIPPED, { "main.js": "someone else's" });
assert.deepEqual([r.status, said, read("main.js")], [1, `The panel is not in ${dest}; update it by hand`, "someone else's"]);
});
test("a skill or agent is disabled and enabled by its own path, in its scope", () => {
const items = buildItems("project", { list: [
{ name: "react-tips", relPath: "frontend/react-tips", kind: "skill" },
{ name: "reviewer.md", relPath: "reviewer.md", kind: "agent", disabled: true },
] });
assert.deepEqual([toggleArgs(items[0], "disable"), toggleArgs(items[1], "enable")],
[["disable", "frontend/react-tips", "-p"], ["enable", "reviewer.md", "--kind", "agent", "-p"]]);
});
test("a row offers only the change it can take", () => {
const [skill] = buildItems("global", { list: [{ name: "archify", relPath: "archify", kind: "skill" }] });
assert.deepEqual([toggleArgs(skill, "enable"), toggleArgs({ kind: "mcp", name: "m", scope: "global" }, "disable")], [null, null]);
});
+20
View File
@@ -81,3 +81,23 @@ test("a panel update that fails says why", async () => {
const r = await operate({ op: "panel", on: null, from: "0.30.3", to: "v0.31.0" }, io);
assert.deepEqual([r, calls], [{ kind: "error", text: "Release v0.31.0 has no panel update" }, ["v0.31.0 0.30.3"]]);
});
const listed = (...rows) => ({ stdout: JSON.stringify(rows) });
test("disabling a skill says the next sync removes it", async () => {
const { io, calls } = machine({ jobs: { "list --all --json -g": listed({ name: "archify", kind: "skill", relPath: "archify", disabled: true }) } });
const r = await operate({ op: "toggle", action: "disable", item: { kind: "skills", scope: "global", path: "archify", label: "archify", disabled: false } }, io);
assert.deepEqual([r, calls], [{ kind: "done", text: "Disabled archify. The next sync removes it from your targets." }, ["disable archify -g", "list --all --json -g"]]);
});
test("a skill another pattern keeps disabled is not reported as enabled", async () => {
const { io } = machine({ jobs: { "list --all --json -g": listed({ name: "idea", kind: "skill", relPath: "drafts/idea", disabled: true }) } });
const r = await operate({ op: "toggle", action: "enable", item: { kind: "skills", scope: "global", path: "drafts/idea", label: "idea", disabled: true } }, io);
assert.deepEqual(r, { kind: "error", text: "idea is still disabled: another pattern in .skillignore or .skillignore.local decides it. Edit that file." });
});
test("an agent another pattern keeps enabled is not reported as disabled", async () => {
const { io } = machine({ jobs: { "list --all --json -p": listed({ name: "tutor.md", kind: "agent", relPath: "tutor.md" }) } });
const r = await operate({ op: "toggle", action: "disable", project: "/w", item: { kind: "agents", scope: "project", path: "tutor.md", label: "tutor", disabled: false } }, io);
assert.deepEqual(r, { kind: "error", text: "tutor is still enabled: another pattern in .agentignore or .agentignore.local decides it. Edit that file." });
});
+1 -1
View File
@@ -47,7 +47,7 @@ The panel follows the space Herdr shows. It runs skillshare on that space's mach
- **Overview** answers first: *Everything is in sync*, or how many targets need one, with a single Sync button. Under it, a count of each kind in the source and a line to every target show which ones are waiting. The rest of the tab lists only what needs you: what waits for a sync, what has an update, and hook notices. In a project with `.skillshare/config.yaml`, an All · Project · Global switch beside the tabs picks the scope.
- **Library** lists skills, agents, MCP servers, plugins and hooks, grouped into *Needs sync*, *Update available*, *In sync* and *Off* for disabled entries. For skills and agents, *In sync* groups entries from the same repository into collapsible rows; switch to List for a flat list.
- **Rows** open a preview. A skill shows its `SKILL.md` and files, an MCP server its settings with secret values hidden, and the preview's Targets tab shows the state per target. Skills and agents offer Update, Diff, Uninstall, and *Ask &lt;agent&gt; to audit…*, which sends the item to the focused Herdr agent after you confirm. Top-level declared hooks offer Enable, Disable and Remove, each after confirmation; Sync applies the saved changes.
- **Rows** open a preview. A skill shows its `SKILL.md` and files, an MCP server its settings with secret values hidden, and the preview's Targets tab shows the state per target. Skills and agents offer Update, Diff, Disable (or Enable for a disabled one; the next sync applies it), Uninstall, and *Ask &lt;agent&gt; to audit…*, which sends the item to the focused Herdr agent after you confirm. Top-level declared hooks offer Enable, Disable and Remove, each after confirmation; Sync applies the saved changes.
- Hook counts include named entries and pending cleanup; diagnostic notices get rows of their own. Hook conflicts block syncing all resource kinds until resolved in the CLI or dashboard. If the plan cannot be read, entries show unknown sync status outside the groups.
- **Install** takes a repository URL. A repository with several skills shows a pick list. The panel clones it, runs [`skillshare audit`](/docs/reference/commands/audit) on the clone, and installs only when the audit passes. A blocked audit shows the findings, with *Install anyway* (`--force`) and *Ask &lt;agent&gt; to review…*.
- **Source** shows your source repository's state. Its dialog offers Pull, Commit and push, and Sync both ways. When a pull stops on files both machines changed, you pick a version per file from a side-by-side preview. `.metadata.json` merges per entry, the way [`skillshare pull`](/docs/reference/commands/pull) does.
@@ -47,7 +47,7 @@ Read ~/.config/herdr-app/AGENTS.md, then add this layout: herdr.dev/layouts/runk
- **Overview** は最初に答えを示します。「Everything is in sync」か、同期が必要なターゲットの数と、1 つの Sync ボタンです。その下には、source にある各種類の件数と各ターゲットへの 1 行が並び、どれが待機中かがわかります。タブの残りには、対応が必要なものだけを表示します。同期待ちのもの、更新があるもの、hooks の通知です。`.skillshare/config.yaml` のあるプロジェクトでは、タブの横にある All · Project · Global でスコープを選べます。
- **Library** は skills、agents、MCP サーバー、plugins、hooks を「Needs sync」「Update available」「In sync」に分け、無効な項目は「Off」にまとめて表示します。skills と agents では、「In sync」が同じリポジトリの項目を折りたためるグループにまとめます。List に切り替えると一覧表示になります。
- **行**を開くとプレビューが表示されます。skill では `SKILL.md` とファイル、MCP サーバーでは秘密の値を隠した設定が見られ、プレビューの Targets タブはターゲットごとの状態を示します。skills と agents には Update、Diff、Uninstall と「Ask &lt;agent&gt; to audit…」があり、確認後にその項目を Herdr でフォーカス中のエージェントに渡します。トップレベルで宣言された hooks には Enable、Disable、Remove があり、それぞれ確認後に保存され、Sync で適用されます。
- **行**を開くとプレビューが表示されます。skill では `SKILL.md` とファイル、MCP サーバーでは秘密の値を隠した設定が見られ、プレビューの Targets タブはターゲットごとの状態を示します。skills と agents には Update、Diff、Disable(無効なものには Enable。次の sync で反映されます)、Uninstall と「Ask &lt;agent&gt; to audit…」があり、確認後にその項目を Herdr でフォーカス中のエージェントに渡します。トップレベルで宣言された hooks には Enable、Disable、Remove があり、それぞれ確認後に保存され、Sync で適用されます。
- hooks の件数には名前付きエントリと削除待ちが含まれ、診断通知は専用の行で表示されます。hooks の競合は CLI またはダッシュボードで解決するまで全種類の同期をブロックします。プランを読み取れない場合、エントリは同期状態が不明としてグループ外に表示されます。
- **Install** はリポジトリ URL を受け取ります。複数の skills を含むリポジトリでは一覧から選べます。パネルはクローンに対して [`skillshare audit`](/docs/reference/commands/audit) を実行し、通過した場合だけインストールします。audit でブロックされると findings を表示し、「Install anyway」(`--force`)と「Ask &lt;agent&gt; to review…」を提示します。
- **Source** は source リポジトリの状態を表示します。ダイアログには Pull、Commit and push、Sync both ways があります。両方のマシンで変更されたファイルで pull が止まった場合は、左右の比較プレビューからファイルごとに残すバージョンを選べます。`.metadata.json` は [`skillshare pull`](/docs/reference/commands/pull) と同じくエントリごとにマージされます。
@@ -47,7 +47,7 @@ Read ~/.config/herdr-app/AGENTS.md, then add this layout: herdr.dev/layouts/runk
- **Overview**는 먼저 답을 보여 줍니다. "Everything is in sync"이거나, 동기화가 필요한 타깃의 수와 Sync 버튼 하나입니다. 그 아래에는 source에 있는 종류별 개수와 각 타깃으로 이어지는 줄이 있어 어느 타깃이 대기 중인지 알 수 있습니다. 탭의 나머지에는 처리가 필요한 것만 나열합니다. 동기화를 기다리는 항목, 업데이트가 있는 항목, hooks 알림입니다. `.skillshare/config.yaml`이 있는 프로젝트에서는 탭 옆의 All · Project · Global로 범위를 고릅니다.
- **Library**는 skills, agents, MCP 서버, plugins, hooks를 "Needs sync", "Update available", "In sync"로 나누고, 비활성화된 항목은 "Off"로 묶어 보여 줍니다. skills와 agents는 "In sync"에서 같은 저장소의 항목을 접을 수 있는 그룹으로 묶으며, List로 바꾸면 목록으로 보여 줍니다.
- **행**을 열면 미리보기가 나타납니다. skill은 `SKILL.md`와 파일을, MCP 서버는 비밀 값을 가린 설정을 보여 주고, 미리보기의 Targets 탭은 타깃별 상태를 보여 줍니다. skills와 agents에는 Update, Diff, Uninstall, 그리고 확인 후 해당 항목을 Herdr에서 포커스된 에이전트에 넘기는 "Ask &lt;agent&gt; to audit…"가 있습니다. 최상위에 선언된 hooks는 확인 후 Enable, Disable, Remove를 제공하며, 저장된 변경은 Sync로 적용합니다.
- **행**을 열면 미리보기가 나타납니다. skill은 `SKILL.md`와 파일을, MCP 서버는 비밀 값을 가린 설정을 보여 주고, 미리보기의 Targets 탭은 타깃별 상태를 보여 줍니다. skills와 agents에는 Update, Diff, Disable(비활성화된 항목은 Enable, 다음 sync에서 적용), Uninstall, 그리고 확인 후 해당 항목을 Herdr에서 포커스된 에이전트에 넘기는 "Ask &lt;agent&gt; to audit…"가 있습니다. 최상위에 선언된 hooks는 확인 후 Enable, Disable, Remove를 제공하며, 저장된 변경은 Sync로 적용합니다.
- hooks 개수에는 이름이 있는 항목과 정리 대기 항목이 포함되며, 진단 알림은 별도의 행으로 표시됩니다. hooks 충돌은 CLI나 대시보드에서 해결할 때까지 모든 리소스의 동기화를 차단합니다. 계획을 읽을 수 없으면 항목은 그룹 밖에서 동기화 상태를 알 수 없음으로 표시됩니다.
- **Install**은 저장소 URL을 받습니다. skills가 여러 개인 저장소는 목록에서 고를 수 있습니다. 패널은 클론에 [`skillshare audit`](/docs/reference/commands/audit)을 실행하고 통과한 경우에만 설치합니다. audit에 막히면 findings와 함께 "Install anyway"(`--force`)와 "Ask &lt;agent&gt; to review…"를 보여 줍니다.
- **Source**는 source 저장소의 상태를 보여 주며, 대화상자에서 Pull, Commit and push, Sync both ways를 제공합니다. 두 머신이 모두 바꾼 파일 때문에 pull이 멈추면, 좌우 비교 미리보기에서 파일마다 남길 버전을 고릅니다. `.metadata.json`은 [`skillshare pull`](/docs/reference/commands/pull)과 같은 방식으로 항목별로 병합됩니다.
@@ -47,7 +47,7 @@ tab bar 会出现 **skillshare** 按钮,用来显示或隐藏面板。切换 s
- **Overview** 先给出答案:“Everything is in sync”,或者有多少个 target 需要同步,并提供一个 Sync 按钮。下面列出 source 中每种资源的数量,以及通向每个 target 的一行,可以看出哪些 target 在等待同步。标签页其余部分只列出需要你处理的内容:等待同步的、有更新的,以及 hooks 通知。在有 `.skillshare/config.yaml` 的项目中,标签页旁边的 All · Project · Global 可以切换 scope。
- **Library** 列出 skills、agents、MCP servers、plugins 和 hooks,分为“Needs sync”“Update available”“In sync”三组,已禁用的项目归入“Off”。对于 skills 和 agents,“In sync”会把同一个仓库的项目收进可折叠的分组;切换到 List 则显示为平铺列表。
- **行**会打开预览。skill 显示其 `SKILL.md` 和文件,MCP server 显示隐藏了密钥值的设置,预览的 Targets 标签页显示各 target 的状态。skills 和 agents 提供 Update、Diff、Uninstall,以及“Ask &lt;agent&gt; to audit…”:确认后把该项交给 Herdr 中聚焦的 agent。顶层声明的 hooks 提供 Enable、Disable 和 Remove,每项都先确认;Sync 会应用保存的更改。
- **行**会打开预览。skill 显示其 `SKILL.md` 和文件,MCP server 显示隐藏了密钥值的设置,预览的 Targets 标签页显示各 target 的状态。skills 和 agents 提供 Update、Diff、Disable(已禁用的则是 Enable;下次 sync 时应用)、Uninstall,以及“Ask &lt;agent&gt; to audit…”:确认后把该项交给 Herdr 中聚焦的 agent。顶层声明的 hooks 提供 Enable、Disable 和 Remove,每项都先确认;Sync 会应用保存的更改。
- hooks 计数包含具名条目和待清理条目;诊断通知有单独的行。hooks 冲突会阻止所有资源同步,需先在 CLI 或仪表板中解决。无法读取计划时,条目会在分组外显示同步状态未知。
- **Install** 接受仓库 URL。包含多个 skills 的仓库会列出清单供你挑选。面板会先 clone,对 clone 运行 [`skillshare audit`](/docs/reference/commands/audit),通过才安装。audit 拦下时会显示 findings,并提供“Install anyway”(`--force`)和“Ask &lt;agent&gt; to review…”。
- **Source** 显示 source 仓库的状态,对话框提供 Pull、Commit and push 和 Sync both ways。pull 遇到两台机器都改过的文件时,可以从左右对照预览逐个文件选择要保留的版本。`.metadata.json` 会逐条合并,与 [`skillshare pull`](/docs/reference/commands/pull) 的做法相同。
@@ -47,7 +47,7 @@ tab bar 會出現 **skillshare** 按鈕,用來顯示或隱藏面板。切換 s
- **Overview** 先給出答案:「Everything is in sync」,或是有多少個 target 需要同步,並提供一個 Sync 按鈕。下面列出 source 中每種資源的數量,以及通往每個 target 的一列,可以看出哪些 target 在等待同步。分頁其餘部分只列出需要你處理的內容:等待同步的、有更新的,以及 hooks 通知。在有 `.skillshare/config.yaml` 的專案裡,分頁旁邊的 All · Project · Global 可以切換 scope。
- **Library** 列出 skills、agents、MCP servers、plugins 和 hooks,分成「Needs sync」、「Update available」、「In sync」三組,已停用的項目歸入「Off」。對於 skills 和 agents,「In sync」會把同一個 repo 的項目收進可收合的分組;切換到 List 則顯示為平鋪清單。
- **列**會開啟預覽。skill 顯示其 `SKILL.md` 和檔案,MCP server 顯示隱藏了機密值的設定,預覽的 Targets 分頁顯示各 target 的狀態。skills 和 agents 提供 Update、Diff、Uninstall,以及「Ask &lt;agent&gt; to audit…」:確認後把該項目交給 Herdr 中聚焦的 agent。頂層宣告的 hooks 提供 Enable、Disable 和 Remove,每項都先確認;Sync 會套用儲存的變更。
- **列**會開啟預覽。skill 顯示其 `SKILL.md` 和檔案,MCP server 顯示隱藏了機密值的設定,預覽的 Targets 分頁顯示各 target 的狀態。skills 和 agents 提供 Update、Diff、Disable(已停用的則是 Enable;下次 sync 時套用)、Uninstall,以及「Ask &lt;agent&gt; to audit…」:確認後把該項目交給 Herdr 中聚焦的 agent。頂層宣告的 hooks 提供 Enable、Disable 和 Remove,每項都先確認;Sync 會套用儲存的變更。
- hooks 計數包含具名項目和待清理項目;診斷通知有獨立的列。hooks 衝突會阻止所有資源同步,需先在 CLI 或儀表板中解決。無法讀取計畫時,項目會在分組外顯示同步狀態未知。
- **Install** 接受 repository URL。含多個 skills 的 repository 會列出清單讓你挑選。面板會先 clone,對 clone 執行 [`skillshare audit`](/docs/reference/commands/audit),通過才安裝。audit 擋下時會顯示 findings,並提供「Install anyway」(`--force`)和「Ask &lt;agent&gt; to review…」。
- **Source** 顯示 source repository 的狀態,對話框提供 Pull、Commit and push 和 Sync both ways。pull 遇到兩台機器都改過的檔案時,可以從左右對照預覽逐檔挑選要保留的版本。`.metadata.json` 會逐筆合併,與 [`skillshare pull`](/docs/reference/commands/pull) 的做法相同。