跳到正文
Skillpedia
网站与界面(前端)7.6k · #13134

agent-native-toolkit

它能做什么

这项技能规定哪些工作区行为应在各 Agent-Native 应用之间共享,哪些应保留为应用专属。它涵盖设置、导航、分享、评论和智能体界面。适合构建应用外壳和共享功能的开发者。

适用场景

  • ✓当你即将为应用构建设置、导航或分享功能的时候。
  • ✓当你需要判断某种行为应属于应用本地,还是应共享的时候。
  • ✓当你要添加面向智能体的界面,例如聊天侧栏或运行进度的时候。

技能链接

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/agent-native-toolkit/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/agent-native-toolkit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我应该自己为应用构建分享对话框,还是使用共享的工作区组件?”

每周 5 个新技能,1 分钟读完。

工作原理

技能把行为分为两类。工作区范围的、受管控的或在多个应用中重复出现的行为,放入共享组件;特定领域的工作流则留在应用内。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Agent-Native Toolkit

Use this skill when deciding whether app chrome, settings, collaboration, sharing, navigation, organization, setup, history, comments, or agent UX should be built app-locally or moved into reusable framework/toolkit pieces.

Core Rule

Apps own domain models, domain actions, and product-specific workflows. The framework and @agent-native/toolkit own repeated workspace behavior users expect to work the same everywhere.

Move behavior into shared toolkit primitives when it is:

  • workspace-wide, such as settings, nav, search, org membership, or setup
  • agent-visible, such as context, actions, run progress, or proof-of-done
  • governed, such as secrets, permissions, sharing, audit, or billing
  • repeated by two or more apps
  • not tied to one domain model

Keep behavior app-local when the abstraction would hide important domain language or make a simple app-specific workflow harder to understand.

Agent Surface Contract

When using the shared app shell, keep its two navigation surfaces distinct:

  • The left rail owns domain destinations and chat history when the app has a full-page chat route. Do not label a domain workflow as Chat just because the app was scaffolded from the chat template.
  • Settings is not a rail item. It opens from the account menu (OrgSwitcher in the sidebar footer) and from ⌘, (Ctrl+, elsewhere), which AppProviders binds. Keep the /settings route; don't add a Settings entry to items, secondaryItems, or the footer.
  • The right AgentSidebar owns contextual agent work. Domain buttons that call sendToAgentChat should open it (openSidebar: true) so the user can see, steer, and review the agent without losing the page they were using.
  • Keep / or /chat/* as the full-page chat surface when the starter provides one. Put domain workflows on named routes and wire the shell's route checks, navigation labels, and handoffs to those routes together.
  • Use familiar message or neutral action icons for agent affordances. Never use sparkle, wand, magic, or robot icons as an AI label; the copy should carry the meaning.
  • Give the right rail a quiet visual boundary with a subtle surface shift, divider, or both. The domain page and AgentSidebar should not collapse into a single undifferentiated background.
  • Any button labeled as agent work must use sendToAgentChat with bounded context and openSidebar: true; local deterministic analysis should be labeled as local, preview, or analyze. For original/generated review, stack the source above the result by default and use side-by-side only for short, highly scannable content.
  • Deterministic implementation does not make an AI-shaped experience deterministic. If the user expects research, analysis, generation, recommendation, synthesis, visible progress, or steering, route the button to the AgentSidebar and let the agent call focused actions. Keep revisions in the same thread instead of adding a second freeform prompt box.
  • Standalone apps with AgentSidebar must use one AgentKit controller and transport. Core's AssistantChat export remains supported as an alias for AgentKitAssistantChat; use AgentKit slots and registries for custom message UI. Keep assistant-ui transcript/runtime imports inside the shared composer integration; when linked dependencies need Vite aliases, resolve one @agent-native/agentkit context and verify a real handoff.

Contextual agent UI is not a reason to expose every option at once. Start with the domain task's primary action, reveal review or configuration only when the current state needs it, and let the sidebar carry conversational depth.

When an app exposes context sources or integration shortcuts, show only capabilities available to that app and the current caller. Keep retrieving context distinct from asking the agent to invoke an integration, and recheck availability when the user submits. Do not infer agent-tool access from a connected messaging account or expose credential values. Link to shared Integrations settings when a required connection is missing.

Visual Direction And Workspace Variety

Shared workspace behavior should be consistent without forcing every app into the same visual skin. Keep shell and component tokens semantic, then let each app record a visual direction in DESIGN.md before styling. Choose its palette and composition from the product context, and keep semantic states accessible.

Do not make warm be

常见问题

什么应放入共享组件?

工作区范围的、对智能体可见的、受管控的或在多个应用中重复的行为,例如设置和权限。

什么应留在应用内?

领域模型、领域操作和产品专属的工作流,都留在各自的应用中。

设置从哪里打开?

技能说明设置从账户菜单和键盘快捷键打开,而不是从主导航打开。

详情

作者的原始描述

Inventory and ownership rules for shared Agent-Native workspace UI. Use before building app chrome, settings, navigation, sharing, collaboration, setup, history, comments, chat rails, agent UX, or repeated workspace behavior.

repo: BuilderIO/agent-native

热度

GitHub 星标
7.6k
排名
#13134
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能