跳到正文
Skillpedia
技术文档7.6k · #13189

visual-answer

它能做什么

这项技能把关于代码或产品的具体问题转化为可检视的可视化答案。适合需要图示或结构化视图、而不是一段聊天文字的人。

适用场景

  • ✓当你询问某项内容的 API 规格或数据模型是什么样子的时候。
  • ✓当你想看某个界面或组件应该如何呈现和运作的时候。
  • ✓当你需要一张流程图来说明某段代码如何运作的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请把我们订单接口的 API 规格以可视化页面的形式展示给我。”

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

工作原理

智能体先检查真实的源代码或代码仓库链接,然后根据所找到的内容构建可视化页面,因此答案来自实际的代码库,而不是记忆。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Visual Answer

/visual-answer turns a specific code or product question into a published Agent-Native Plan artifact. It is for questions that need a visual, inspectable answer rather than a chat paragraph: API contracts, schema/data models, UI states, component behavior, architecture flows, and code evidence.

When To Use

Use this skill when the user asks:

  • "what is the API spec for this?"
  • "what does this UI look like?"
  • "what is the schema model for x?"
  • "draw the flow for this code path"
  • "show me the current shape of this component/API/data model"

For history questions about what changed or shipped, search merged PR recaps first with search-pr-recaps, then pull a relevant hit into the conversation with show-visual-plan (it renders that plan or recap's blocks inline). Reach for get-visual-plan only when you need the full bundle/MDX to edit, not to display. Use visual-answer when the current codebase, a local bridge, or GitHub source needs to be inspected to produce a new answer.

Workflow

  1. Inspect the real source first. Use the host agent's repo tools, the Plan local bridge, or GitHub/source links. Do not invent endpoints, schema fields, UI states, file names, or behavior.
  2. Call get-plan-blocks before authoring. Use the live registry, not memory. If the question asks what components are available, call list-plan-components.
  3. Pick the evidence blocks:
    • API shape: openapi-spec plus api-endpoint; use before/after only when comparing historical changes from recaps.
    • UI look: wireframe or a columns before/after pair when comparing a recap.
    • Schema/data model: data-model, optionally with diagram.
    • Code evidence: file-tree, tabs, annotated-code, and diff when the answer depends on implementation details.
  4. Publish with the Plan visual-answer action. Include the user's question, repoPath/sourceUrl when known, a concise title/brief, and MDX source under mdx.
  5. In Agent-Native chat the published answer renders inline automatically — its blocks appear in the conversation. Add a one-line summary of the evidence plus the deep link; do not paste raw MDX or block source as text. (In terminal or external MCP hosts that cannot render the blocks, return the URL.)

Terminal Handoff

When running from a terminal or coding-agent shell, write visual-answer-source.json:

{
  "question": "What is the billing API shape?",
  "title": "Billing API visual answer",
  "brief": "Shows the request and response contract.",
  "repoPath": "owner/repo",
  "sourceUrl": "https://github.com/owner/repo",
  "mdx": {
    "plan.mdx": "---\ntitle: Billing API visual answer\n---\n\n..."
  }
}

Then publish:

agent-native plan visual-answer publish --question "What is the billing API shape?" --source visual-answer-source.json --repo owner/repo

Use --source-url for a GitHub file/PR/commit/issue URL, --prev-plan-id to refresh an existing answer, and --visibility private for owner-only output. The command writes visual-answer-url.txt.

Don't

  • Do not use visual-answer for a plain implementation plan; use visual-plan.
  • Do not use it for a PR diff recap; use visual-recap.
  • Do not skip code inspection and infer from names alone.
  • Do not publish screenshots, secrets, credential-looking values, or private source excerpts beyond what the user has asked to visualize.

Related Skills

  • visual-plan
  • visual-recap
  • delegate-to-agent
  • context-awareness
常见问题

智能体会猜测答案吗?

不会。技能要求先检查真实的源代码,不得编造接口、字段或行为。

这与展示已有计划有什么不同?

展示已有计划或回顾只是呈现过去的工作,而这项技能则根据当前代码构建新的答案。

关于历史的问题应如何处理?

对于关于改动或发布内容的问题,技能要求先搜索已合并的拉取请求回顾。

详情

作者的原始描述

Answer code/product questions as visual Plan artifacts using repo, bridge, or GitHub context; use for API specs, UI look, schema models, and architecture.

repo: BuilderIO/agent-native

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能