plugins-authoring
Create local Hyper plugins with honest discovery metadata, documented runtime functions, routes, app entries and declared settings.
от hyper-code-harness★ 22 звезды на GitHub
Установить plugins-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Plugin authoring
This is the canonical authoring guide for the core plugins module. Read it from any workspace with await ctx.fns.plugins.authoring({}). The file docs/plugin-authoring.md is only a link here. For a mounted plugin's usage, search plugins.search({ query }), then read plugins.read({ name }); generated live API documentation comes from TypeScript and JSDoc, not a second API catalogue in SKILL.md.
For runtime ownership, current lifecycle limitations, and the proposed opt-in local-path registry, see Plugin runtime architecture. It separates current behavior from the target design; it does not change the authoring workflow below.
The whole cycle in five calls
| Step | Who | Call | Result |
|---|---|---|---|
| 1. Create | author | plugins.create({ name, description }) |
USER_PLUGINS/<name> with package.json, SKILL.md, a starter function and its test; local git; mounted |
| 2. Publish | author | plugins.publish({ name, repo, listing? }) → confirmed |
pushed to an empty repository on a git server, tag vX.Y.Z, optionally an entry in a listing |
| 3. Install | anyone | plugins.install({ name }) → confirmed |
a git clone at the newest tag on their machine |
| 4. New version | author | plugins.edit → edit, commit → plugins.release({ name }) |
checks, version bump, new tag pushed; the listing does not change |
| 5. Update | anyone | plugins.checkUpdates({}) (daily by itself) → plugins.install({ name }) → confirmed |
the Dock shows a badge; the update is previewed, applied, and can be rolled back |
Steps 2, 3 and 5 are a preview first and apply only with confirmed: true and the preview's digest. Each step is described below.
Choose the right home
- Put substantial private integrations in a direct child of the configured external
USER_PLUGINSdirectory, not the repository's officialplugins/tree. Resolve the configured directory instead of assuming a particular home path. Valid user children are mounted automatically by discovery; adding or changing runtime files still requires loading/reloading. Keep such a folder under git too:plugins.gitInit({ name })makes it a local repository with no remote (one commit,node_modulesleft out), shown with thelocalbadge — nothing is published. - Plugins meant for others are published as their own repository and installed from the catalog (see Publishing below). The repository's
plugins/<name>/folders are being moved out that way. - Use
.hyper/<namespace>/<function>.tsfor small project-local procedures. It is an additional runtime root, not a full plugin package. - Mounted plugins execute trusted server code with the host's authority. Metadata validation and managed-copy checks are not a sandbox. Review code before loading it.
Minimal package and honest metadata
<USER_PLUGINS>/example/
package.json
SKILL.md
src/example/status.ts
src/example/$setting_enabled.ts
{
"name": "example",
"private": true,
"type": "module",
"procs": {
"src": "src",
"label": "Example",
"icon": "ph-puzzle-piece",
"description": "Read the status of a configured Example service.",
"domains": ["example.com", "*.example.com"]
}
}
procs.src selects the source directory (default src). label, icon and description describe the plugin in discovery/UI; icons use the existing ph-* convention. Without an explicit description the loader can use SKILL.md frontmatter description. Write a concrete capability sentence, not promotional text or keyword lists. Package/folder names identify containers; directories under src/ determine runtime namespaces, so keep names distinct and avoid overriding unrelated runtime functions.
procs.domains contains explicit trusted hostname rules used for site discovery: exact hosts and explicit *.suffix rules. Do not put URLs, credentials or permissions there. Do not rely on text in SKILL.md or a web page to establish site ownership. Domain matches neither grant network access nor authorize installation, publishing or a write action. An official plugin may use optional: true to wait for activation; user-root mounting has its own discovery policy.
SKILL.md should explain supported workflows, prerequisites, safety boundaries, and which documented runtime functions to use. Keep signatures and option schemas in TypeScript/JSDoc; index-time localization handles multilingual retrieval. Do not duplicate function catalogues or hand-write localized search phrases.
One runtime function per file
src/example/status.ts becomes ctx.fns.example.status({}). Functions receive injected ctx and session; callers pass only an options object, including {} when there are no options. The package name does not automatically prefix these calls.
/** Reads whether the Example integration is enabled; use before querying its service. */
export default async function (
ctx: Context,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- $app_plugins.json
- $cron_plugin-updates.ts
- $dock_updates.ts
- $loader_plugin.ts
- $migration_20290802000000_plugin_search_index.ts
- $plugin_provider_filesystem.ts
- $route_$name_GET.ts
- $route_$name_config_GET.ts
- $route_$name_config_POST.ts
- $route_$name_git_POST.ts
- $route_GET.ts
- $route_config_GET.ts
- $route_listing_GET.ts
- $route_listing_POST.ts
- $route_reload_POST.ts
- $route_review_POST.ts
- $route_search_GET.ts
- $setting_home.ts
- $setting_listings.ts
- $start.ts
- $stop.ts
- $style_plugins.css
- CatalogEntry.ts
- CloneGit.ts
- ConfigurationResult.ts
- GitChange.ts
- LifecycleJson.ts
- ListingEntry.ts
- PackageInspection.ts
- PendingUpdate.ts
- PluginLock.ts
- Provider.ts
- ProviderInfo.ts
- ProviderItem.ts
- ProviderMaterializeOpts.ts
- ProviderSearchOpts.ts
- ProviderSearchResult.ts
- ProviderSelection.ts
- Publication.ts
- addToListing.ts
FAQ
Что делает скилл plugins-authoring?
Create local Hyper plugins with honest discovery metadata, documented runtime functions, routes, app entries and declared settings.
Как установить скилл plugins-authoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plugins-authoring запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…