Skillpedia
برمجة عامة7.6k · #13126

visualize-repo

ما الذي تفعله

تُعدّ هذه المهارة طبقة توثيق مرئي محلية لمستودع برمجي. تحوّل أجزاء من الكود، مثل الواجهات البرمجية والمكونات ونماذج البيانات، إلى وثائق مرئية تُحفظ في نظام التحكم بالإصدارات. وهي مخصصة للفرق التي تريد وثائق مرئية دائمة لكودها.

متى تستخدمها

  • ✓عندما تريد وثائق مرئية للواجهات البرمجية أو المكونات أو نماذج البيانات في مستودع.
  • ✓عندما تريد أن يعلّق فريق على وثائق المستودع قبل أن يُجري وكيل برمجي تغييرات.
  • ✓عندما تريد عارضاً مرئياً للمستودع تُحفظ ملفاته تحت التحكم بالإصدارات.

رابط المهارة

https://github.com/BuilderIO/agent-native/blob/main/.agents/plugins/agent-native-visual-plans/skills/visualize-repo/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/BuilderIO/agent-native/blob/main/.agents/plugins/agent-native-visual-plans/skills/visualize-repo/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك إعداد عرض وثائق مرئي لمستودعي، ليتمكن فريقي من تصفح الواجهات البرمجية والمكونات الرئيسية؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يشغّل الوكيل أمراً في المستودع ينشئ مجموعة أولية من ملفات الوثائق المرئية، ويفتحها في عارض محلي. تبقى ملفات المصدر في المشروع.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

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

  1. Inspect agent-native.json and the generated plan.mdx.
  2. Read the source anchors listed for each target before changing the visual docs.
  3. Add only the visual blocks that earn their keep: api-endpoint for stable APIs, data-model for durable schema, wireframe for user-facing components/flows, diagram for architecture, and annotated-code for load-bearing implementation.
  4. Run npx @agent-native/core@latest visualize-repo check after editing MDX.
  5. Use verify before 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.

الأسئلة الشائعة

أين تُحفظ الوثائق؟

تُحفظ كملفات MDX محلية داخل المستودع، حتى يمكن تتبعها في git.

هل يستطيع المراجعون ترك تعليقات؟

نعم. تُحفظ التعليقات في ملف محلي ويمكن لاحقاً أن تتحول إلى تغييرات يطبقها وكيل برمجي.

هل تحتاج إلى ملف إعداد موجود؟

لا. إذا لم يكن في المستودع ملف بيان، ينشئ الأمر واحداً بفحص المجلدات الأساسية.

التفاصيل

الوصف الأصلي من المؤلف

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

الشعبية

نجوم GitHub
7.6k
الترتيب
#13126
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة