hana-plugin-creator
Was er macht
Hilft dir, eine Plugin-Idee für Hana zu beschreiben, zu prüfen, ob das Hana-SDK sie umsetzen kann, und die Startdateien anzulegen. Der Skill richtet sich an Einsteiger, die Anleitung wollen, und an Entwickler, die die SDK-Details brauchen.
Wann du ihn nutzt
- ✓Wenn du eine Idee für eine Funktion hast, die du der Hana-App hinzufügen möchtest.
- ✓Wenn du wissen willst, ob das Hana-SDK ein geplantes Plugin unterstützt.
- ✓Wenn du einen Plugin-Ordner mit fertigen Startdateien haben möchtest.
Link zum Skill
https://github.com/liliMozi/openhanako/blob/main/skills2set/hana-plugin-creator/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich möchte, dass Hana einen Button hat, der meine Notizen in einer Datei speichert. Hilf mir, das Plugin zu planen und zu erstellen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill fragt, was du bauen möchtest, prüft die Anforderungen des Plugins gegen das SDK und schreibt dann das Manifest und die Startdateien in einen Ordner, den du installieren kannst.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Hana Plugin Creator
Use this skill for Hana application plugins, not Codex .codex-plugin bundles.
First Contact
On first use, give a map, not an encyclopedia. Explain what Hana plugins can add, ask what the user wants to build, and invite follow-up questions. Expand details only after the user asks or after the chosen scaffold needs them.
Choose the user mode this way:
- If the user explicitly says they are new, non-technical, or wants hand-holding, use beginner mode.
- If the user explicitly asks for SDK/API/build details or gives code-level requirements, use developer mode.
- If memory is unavailable, disabled, or uncertain, ask:
你想我用哪种方式帮你创建插件?A. 边讲边做 B. 开发者模式
Beginner mode tone: encouraging, concrete, and guided. Say that the user can describe the feature in plain language, HanaAgent will help turn it into a plugin plan and scaffold, and HanaAgent can answer questions at any step. Ask:
- 你希望 HanaAgent 多一个什么能力?
- 这个能力是让 Agent 自动调用,还是让你点界面使用?
- 它需要界面、文件、联网、外部平台、账号权限吗?
Developer mode tone: concise and collaborative. Lead with the capability surface, then ask for the target contribution and integration boundary.
After delivering a plugin, encourage with grounded product value. Name the real situation where the plugin helps, such as reducing repeated steps, making an external service available inside Hana, turning a manual workflow into an Agent-callable tool, or giving a recurring task a stable UI. Use natural wording such as 这个想法挺实用,适合把每周重复整理的步骤固定下来 or 这个方向比较适合做成工具型插件,因为 Agent 可以在对话里直接调用. Avoid inflated praise like 你的设想太棒了.
Capability Map
Hana plugins can provide:
- Agent-callable tools and slash-style actions.
- Skills, agents, and knowledge that guide model behavior.
- WebView/iframe pages, widgets, and cards using Hana theme and host capabilities.
- Declarative
chat.surfacecards for showing plugin-owned private session transcripts in the main chat stream. - Lifecycle and EventBus handlers for full-access integrations.
- Session and Agent control through
@hana/plugin-runtime: create/list/update/send/abort/history sessions, subscribe to session events, create/read/update plugin-owned agents, and hide plugin-private resources from the main Hana UI. - Per-turn model context injection through
sendSessionMessage(..., { context })orsession:send.context, suitable for plugin-owned RAG, world lore, mood, character state, or routing hints. This affects only the current provider request and does not rewrite visible user text. - Non-streaming utility model calls through
sampleText()for plugin-side summarization, RAG query rewriting, routing, and classification. - External HTTP data access through runtime
ctx.network.fetch()with manifest-declared hosts, methods, timeout, cache, and response-size boundaries. - User resource access through runtime
ctx.resources, with ResourceRef inputs for local files, mounts, SessionFiles, durable resources, read-only URLs, and backend watch subscriptions. - Media discovery and generation through
listMediaProviders(),resolveMediaModel(), andgenerateImage(), with generated files delivered asSessionFileresources. - Provider contributions for chat and media capabilities, including image/video/speech providers backed by HTTP, OAuth HTTP, local CLI, browser CLI, or plugin runtimes.
- Pi SDK extension-style integrations under
extensions/*.jswhere the plugin must observe or transform the LLM request pipeline. - SessionFile-backed outputs for files and media.
Hana provides install/enable/reload, per-agent skill toggles, manifest capability checks, iframe host messaging, theme tokens, toast/clipboard/external host APIs, EventBus, data directories, and SDK packages.
Current boundaries: WebView/iframe UI is the stable escape hatch for existing web apps, remote sites, and standalone HTML. chat.surface is a thin native transcript surface for plugin-owned plugin_private / private sessions created through the runtime session API. Rich native card composition is not part of the public SDK contract yet. Native renderer components and code sandboxing are not the default path yet. Ordinary manifest capabilities are declaration metadata and can be used directly through the SDK/EventBus; sensitiveCapabilities records future user-granted permission intent. If a request depends on native renderer hooks, code sandboxing, or fine-grained permission prompts, explain the gap and propose the closest supported shape.
Environment Preflight
R
Häufige Fragen
Muss ich programmieren können?
Nein. Der Skill bietet einen Anfängermodus, der jeden Schritt in einfacher Sprache erklärt.
Ist das für Codex-Plugins gedacht?
Nein. Der Skill ist für Hana-Anwendungs-Plugins gedacht, nicht für Codex-Plugin-Pakete.
Was enthält der Plugin-Ordner?
Ein Manifest, Laufzeit-Tools und optionale Web-View-Bildschirme, so eingerichtet, dass Hana sie installieren kann.
Details
Originalbeschreibung des Autors
Create Hana plugin scaffolds and guide users through beginner or developer plugin planning, capability checks, manifest setup, runtime tools, WebView/iframe UI, Session/Agent APIs, model/media APIs, SDK templates, and install-ready plugin directories. Use when HanaAgent/Codex needs to explain what Hana plugins can do, help a user describe a plugin idea, check whether the SDK supports it, or generate/update a Hana plugin with @hana/plugin-runtime, @hana/plugin-sdk, and @hana/plugin-components.
repo: liliMozi/openhanako
Beliebtheit
- GitHub-Sterne
- 6.9k
- Platz im Ranking
- #13730
- Lizenz
- Apache-2.0
- Aktualisiert
- 1.11.2026
Kommentare
- …
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.