visualize-repo
Skill này làm gì
Skill này thiết lập một lớp tài liệu trực quan cục bộ cho một kho mã. Nó biến các phần của code, như API, component và mô hình dữ liệu, thành tài liệu trực quan nằm trong quản lý phiên bản. Skill dành cho các đội muốn có tài liệu trực quan bền vững cho code của họ.
Khi nào nên dùng
- ✓Khi bạn muốn có tài liệu trực quan cho API, component hoặc mô hình dữ liệu trong một kho mã.
- ✓Khi một đội muốn bình luận tài liệu của kho mã trước khi agent lập trình thay đổi gì.
- ✓Khi bạn muốn một trình xem kho mã trực quan có các file được quản lý bằng phiên bản.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/plugins/agent-native-visual-plans/skills/visualize-repo/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể thiết lập một chế độ xem tài liệu trực quan cho kho mã của tôi để đội có thể duyệt các API và component chính không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy một lệnh trong kho mã để tạo bộ file tài liệu trực quan khởi đầu và mở chúng trong một trình xem cục bộ. Các file mã nguồn vẫn nằm trong dự án.
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.
Visualize Repo
/visualize-repo opens a local, source-controlled visual documentation layer
for a repository. It is for durable repo understanding, not a one-off plan:
components can have wireframes, APIs can have specs, models can have schema
views, and reviewers can comment on those docs before sending work to a coding
agent.
Default Command
Run the Agent-Native CLI from the repo root:
npx @agent-native/core@latest visualize-repo --open
Useful variants:
npx @agent-native/core@latest visualize-repo init
npx @agent-native/core@latest visualize-repo --target actions --target server/db/schema.ts
npx @agent-native/core@latest visualize-repo check
npx @agent-native/core@latest visualize-repo verify
npx @agent-native/core@latest visualize-repo --no-open
The command writes or updates agent-native.json with an
apps.visualize-repo local-files section, creates a starter MDX folder at
.agent-native/visual-docs/repo-overview, then serves it through the Plan
local bridge. The hosted Plan UI can render the review surface, but the plan
source stays in local files and bridge comments stay in comments.json.
When There Is No Manifest
If agent-native.json does not exist, let the CLI bootstrap one. It scans for
high-value starting points such as actions/, app/components/,
app/pages/, server/db/schema.ts, src/, packages/, templates/,
docs/, and content/. Keep the first run targeted. Prefer 5-20 visualized
nodes over a generated wall of repo prose.
Use explicit targets when the user already knows the important surface:
npx @agent-native/core@latest visualize-repo \
--target actions/webhooks.ts \
--target server/db/schema.ts \
--target app/components/PromptComposer.tsx
Agent Workflow
- Inspect
agent-native.jsonand the generatedplan.mdx. - Read the source anchors listed for each target before changing the visual docs.
- Add only the visual blocks that earn their keep:
api-endpointfor stable APIs,data-modelfor durable schema,wireframefor user-facing components/flows,diagramfor architecture, andannotated-codefor load-bearing implementation. - Run
npx @agent-native/core@latest visualize-repo checkafter editing MDX. - Use
verifybefore handoff when renderer correctness matters.
When acting on comments, treat local comments.json as the feedback inbox.
Agent-targeted comments should become code changes plus matching MDX updates so
the visual docs and executable code stay in sync.
Privacy Boundary
visualize-repo check is local/offline lint. visualize-repo --open starts a
localhost bridge and opens the Plan UI against local files; it does not publish
the plan to hosted storage and performs no hosted Plan database writes.
visualize-repo verify may send the MDX folder to the Plan app's public
validation action so the real renderer schema can check it. For no hosted
content egress, pass --app-url pointing at a local Plan app or skip
verify and rely on check.
Do not call hosted Plan write tools for this workflow unless the user explicitly
asks to publish or share the docs. Avoid create-visual-plan,
update-visual-plan, import-visual-plan-source, patch-visual-plan-source,
and get-plan-feedback for local repo docs; edit the MDX files directly and
use the local bridge.
Câu hỏi thường gặp
Tài liệu được lưu ở đâu?
Chúng được lưu dưới dạng file MDX cục bộ trong kho mã, nên có thể được theo dõi bằng git.
Người review có thể để lại bình luận không?
Có. Bình luận được lưu trong một file cục bộ và sau này có thể trở thành thay đổi cho agent lập trình.
Nó có cần file cấu hình sẵn không?
Không. Nếu kho mã không có manifest, lệnh sẽ tạo một file bằng cách quét các thư mục chính.
Chi tiết
Mô tả gốc của tác giả
Open or create a repo-native visual documentation workspace backed by local Plan MDX files. Use when the user asks to visualize a repository, create durable visual docs for APIs/components/models/flows, launch a visual repo viewer, review repo docs like a visual IDE, or collect Plan comments that should become coding-agent changes.
repo: BuilderIO/agent-native
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13126
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
visual-edit
7.6kGiúp agent của bạn mở một ứng dụng cục bộ đang chạy trong trình chỉnh sửa trực quan, để bạn xem và sửa các màn hình thật cùng nhau.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.