Open source CapCut alternative.
TypeScript
docs: document installed skills as a discovered source
David Le97fc04239f29
diff --git a/docs/guides/agent-harness.md b/docs/guides/agent-harness.mdindex f6bb3d85..5c3f9041 100644--- a/docs/guides/agent-harness.md+++ b/docs/guides/agent-harness.md@@ -327,6 +327,14 @@ Learned packs compound across sessions: a saved pack declares its app inlater run driving that app preloads its learned playbook exactly like abuilt-in. Bundled packs win when both name the same app.+Skills come from three discovered sources, merged in priority order: **built-in**+(shipped in the app bundle), **installed** (added from the catalog into the+on-disk install directory and verified at install time), and **learned**. A+built-in always wins an id collision, so installing a skill can never break a+curated one. Installed skills need not ship with the app — they are downloaded,+checksum/signature-verified, placed under a versioned `current` directory, and+picked up by the same discovery, so a turn can use them on its next step.+## Source Map| Module | Owns |diff --git a/docs/guides/authoring-skills.md b/docs/guides/authoring-skills.mdindex e478c981..974580ad 100644--- a/docs/guides/authoring-skills.md+++ b/docs/guides/authoring-skills.md@@ -36,11 +36,35 @@ browser, `weather`).Built-in skills live in`apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/<id>/SKILL.md`.-Learned skills are written to the app-support learned directory and discovered-the same way. The folder name is the skill id; keep it the clean app or-capability name (`music`), not a description+Learned skills are written to the app-support learned directory, and skills the+user installs from the catalog land in the app-support install directory; all+three are discovered the same way. The folder name is the skill id; keep it the+clean app or capability name (`music`), not a description(`play-music-in-apple-music-with-search`).+## Install & distribution++A skill does not have to ship inside the app. The same folder — `SKILL.md` plus+an optional `scripts/` — is also the installable unit: it can be downloaded and+added at runtime. There is no separate "plugin" concept; a skill that ships+scripts is still just a skill.++An installable skill may include a `manifest.json` at its root carrying only+distribution metadata: `skillID`, `version`, an optional SHA-256 `checksum`, and+an optional Ed25519 `signature`. The operating content stays in `SKILL.md` — the+manifest never duplicates it, and a skill with no manifest still installs (its+identity then comes from the `id:` frontmatter).++On install the bundle is verified before it touches the live tree: the content+checksum must match the manifest, a present signature must verify against a+trusted key, then the skill is placed under+`…/Skills/Installed/<id>/<version>/` with a `current` symlink. A failed+verification leaves any previously installed version untouched. Discovery merges+installed skills between built-in and learned, and a built-in always wins an id+collision — installing a skill can never shadow a curated one. Installed scripts+are treated as validated (they were verified at install), but still run through+the normal per-action consent gates.+## FrontmatterLines the discovery parser reads, near the top of the file (everything else is