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

agent-page

它能做什么

这项技能描述了一个全页面设置界面,显示所有可能影响 Agent-Native 智能体的内容。它涵盖指令、记忆、技能、文件、集成和定期任务。适合在应用设置中添加智能体资源的开发者。

适用场景

  • ✓当你要在智能体设置页面中添加新的资源组的时候。
  • ✓当你希望显示智能体上下文的来源的时候。
  • ✓当你要在界面中添加 MCP 服务器、远程智能体或外部连接步骤的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“你能在智能体设置页面中添加一个部分,列出智能体已加载的技能吗?”

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

工作原理

技能描述了一组标签页,每个标签页都重新承载一个现有组件。新资源以标签页或视图的形式添加,而无需重建已有的界面。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Agent Page

AgentTabsPage (from @agent-native/core/client, source packages/core/src/client/agent-page/) is the canonical full-page surface for everything that can influence the agent. Design principles:

  • The page answers "what can influence this agent, and why" — it is not a generic admin console.
  • Capability and access stay separate: Connections is what this agent can reach; Access is who can reach this agent.
  • It is a thin shell that re-hosts existing components (ResourcesPanel, MCP hooks, AgentsSection, context X-Ray, jobs actions) — do not re-implement those surfaces inside it.
  • Context must be inspectable, attributable, and governable — provenance and governance tiers, not just a token meter.

Tabs

defaultTab is files. Resource tabs re-host ResourcesPanel views; the rest re-host existing components.

Tab Contents
files, instructions, agents, memory, skills, learnings, remote-agents ResourcesPanel views (group "resources").
snapshots Scope preview, token budget, provenance-grouped system sections (governance tiers), and the latest live-thread snapshot. Backed by context-preview-get / context-manifest-get (see context-xray). Old #context links land here.
connections "Agent integrations": MCP server management (both scopes, admin-gated org writes).
jobs Automations: personal and organization Scheduled/Event tasks with pause/resume/delete. The jobs hash is stable for compatibility (see automations and recurring-jobs).
settings The agent settings panel (model, keys, limits, voice).
access "MCP": copyable MCP URL and A2A agent-card URL, per-client connect steps from packages/core/src/shared/mcp-connect-content.ts (shared with /mcp/connect; edit the shared module, never fork copy), static-token fallback link.

Settings Resource Pages

Settings › Agent › Instructions, Memory, Skills, and Files (packages/core/src/client/settings/shell/pages/) render the same ResourcesPanel with settingsGroups: Personal, {Org name}, and From Dispatch groups (Memory swaps From Dispatch for Learnings). Add a group or an add action there, not a second panel. Row read-only state comes from the scope: organization rows for members and Dispatch rows for everyone; the server still enforces it. Resource trees refetch on action change events, which is how an agent's save-memory or resources write appears without a reload.

Settings › Agent › Sub-agents (pages/sub-agents.tsx) is the one place that lists every agent the main agent can hand work to, each once:

  • {Org} apps: first-party apps, from their seeded remote-agents/<id>.json manifests plus workspace apps only discovery knows, each "Reachable · {URL}" from the batched /_agent-native/agents/probe.
  • External agents: every other remote-agents/ manifest. The header's Connect agent (owners and admins) opens the directory dialog: Foundry, Gemini Enterprise, Anthropic Managed Agents, and any A2A agent by URL.
  • Custom agents: agents/*.md profiles through ResourcesPanel settingsGroups. Anyone can add a personal one.

Build on useRemoteAgents() and the AgentAddForm / AgentEditForm exports of AgentsSection.tsx, not a second fetch. ?connect=<a2a|anthropic-managed-agents|manual> and the peer register-back f_agent* params still open the connect form, and legacy ids (agent:agents, agent:directory, agent:resources:agents, agent:resources:remote-agents, section a2a) redirect to this page. Hidden and removed first-party ids (shared/first-party-agents.ts) stay unlisted, the same rule discovery applies.

Mounting In A Template

First-party templates don't mount AgentTabsPage. Their /agent route redirects into Settings with buildLegacyAgentSettingsRoute(hash, search), so /agent#files, #jobs, #connections, and #access land on the matching Settings page, and they pass agentPageHref="/settings/agent" to AgentSidebar (Settings › Agent › Model). New agent-configuration UI belongs on a Settings page, not a new tab here.

For an app that wants the whole surface on one page:

  1. Mount AgentTabsPage from @agent-native/core/client/agent-chat on its own route. CSR is fine; keep the app shell in root.tsx so navigation does not remount it (client-side-routing skill).
  2. Pass that route as agentPageHref to AgentSidebar.
  3. App-specific additions go in extraTabs (sa
常见问题

“连接”与“访问”有什么区别?

“连接”显示智能体能够访问的内容,“访问”显示谁能访问智能体。

它是通用的管理控制台吗?

不是。技能说明它回答的是哪些因素会影响智能体,以及原因。

它会显示智能体的上下文吗?

会,它包含一份发送给智能体的上下文快照。

详情

作者的原始描述

The agent's configuration surfaces: Settings › Agent pages (Instructions, Memory, Skills, Files, Sub-agents) and the full-page `AgentTabsPage` (resources, Snapshots, Agent integrations, Automations, MCP). Use when adding an agent resource group, surfacing context transparency, MCP servers, A2A agents, recurring jobs, or external-client connect flows in the UI.

repo: BuilderIO/agent-native

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能