Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật7.6k · #13189

visual-answer

Skill này làm gì

Skill này biến một câu hỏi cụ thể về code hoặc sản phẩm thành một câu trả lời trực quan có thể kiểm tra. Skill dành cho người cần một hình ảnh hoặc chế độ xem có cấu trúc thay vì một đoạn chat.

Khi nào nên dùng

  • ✓Khi bạn hỏi đặc tả API hoặc mô hình dữ liệu của một thứ trông như thế nào.
  • ✓Khi bạn muốn xem một màn hình hoặc component được dự định trông và hoạt động ra sao.
  • ✓Khi bạn cần một sơ đồ luồng cho thấy một đoạn code hoạt động thế nào.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/visual-answer/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Cho tôi xem đặc tả API cho endpoint đơn hàng của chúng tôi dưới dạng một trang trực quan.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent trước hết kiểm tra code nguồn thật hoặc liên kết repo, rồi xây trang trực quan từ những gì tìm thấy, nhờ vậy câu trả lời đến từ codebase thật chứ không phải trí nhớ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Agent có đoán câu trả lời không?

Không. Skill nói phải kiểm tra code nguồn thật trước và không bịa endpoint, trường dữ liệu hay hành vi.

Khác gì với việc hiển thị một kế hoạch có sẵn?

Hiển thị một kế hoạch hoặc bản tóm tắt có sẵn là hiển thị công việc đã làm, còn skill này xây một câu trả lời mới từ code hiện tại.

Câu hỏi về lịch sử được xử lý thế nào?

Với câu hỏi về những gì đã thay đổi hoặc đã phát hành, skill nói nên tìm trong các bản tóm tắt PR đã merge trước.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
7.6k
Vị trí xếp hạng
#13189
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự