Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)17k · #10764

frontend-integration-yaml

Skill này làm gì

Skill này giúp agent AI biến mô tả đơn giản về một menu và các trang của nó thành một file FrontendIntegration hợp lệ. Skill dành cho người thiết lập tích hợp frontend trong KubeSphere và muốn YAML được tạo sẵn cho mình.

Khi nào nên dùng

  • ✓Khi bạn muốn một file YAML FrontendIntegration nhanh cho một menu với một bảng tài nguyên tùy chỉnh.
  • ✓Khi bạn cần thêm một trang iframe vào menu thông qua YAML.
  • ✓Khi bạn có một thiết lập menu đơn giản và muốn chuyển nó thành định dạng chuẩn đầy đủ.

Liên kết skill

https://github.com/kubesphere/kubesphere/blob/master/skills/frontend-integration-yaml/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/kubesphere/kubesphere/blob/master/skills/frontend-integration-yaml/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

“Bạn có thể tạo một YAML FrontendIntegration cho một menu tên Backups hiển thị bảng các tài nguyên Backup của tôi không?”

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

Cách hoạt động

Agent hỏi các chi tiết còn thiếu, như tên, tên hiển thị của menu, vị trí đặt menu và nhóm tài nguyên, rồi điền các giá trị mặc định an toàn. Nó chạy một script sinh để tạo YAML hoàn chỉnh và trả kết quả.

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.

Frontend Integration YAML

Generate submit-ready FrontendIntegration YAML from a simplified authoring model with one menu and one or more pages.

When to Use

  • generate FrontendIntegration YAML
  • create a quick integration YAML from a CRD
  • create an iframe based FrontendIntegration YAML
  • convert simplified single-menu config into canonical YAML

Do Not Use

  • troubleshooting existing FrontendIntegration resources
  • managing enable/disable/delete lifecycle
  • inspecting JSBundle, Job, controller, or status flows
  • editing manifest generation rules
  • handling multi-menu authoring models

Required Inputs

Ask the user instead of guessing when any of these are missing:

  • metadata.name
  • menu.displayName
  • menu.placements[]
  • at least one page in pages[]
  • for crdTable: group, version, scope, names.plural
  • for iframe: key and iframe.src

Authoring Model

Use the simplified single-menu model as input to the generator:

  • top-level metadata
  • top-level spec for optional passthrough fields
  • top-level menu
  • top-level pages

Do not author canonical spec.menus[] by hand.

Workflow

  1. Extract the simplified authoring model.
  2. Fill only safe defaults.
  3. Keep the model in single-menu form.
  4. Run scripts/generate_frontend_integration.py.
  5. Return the generated canonical YAML.

Rules

  • Treat the generator script as the source of truth.
  • Do not manually reconstruct canonical YAML when the generator is available.
  • Always output canonical kind: FrontendIntegration.
  • Always expand menu.placements[] into spec.menus[].
  • Always derive children from pages[].
  • If any placement is workspace, force all crdTable.scope values to Namespaced.
  • Default menu.icon to GridDuotone when it is omitted.
  • Do not add runtime-managed metadata unless explicitly requested.

Output

  • Return the generated YAML first, unless explanation is requested.
  • Prefer a single yaml code block.
  • After the YAML, always output this exact guidance line: FrontendIntegration YAML has been generated. Reply 'apply' to deploy it directly.
Câu hỏi thường gặp

Nó cần những chi tiết gì?

Nó cần tên, tên hiển thị của menu, vị trí đặt menu và ít nhất một trang.

Nó có đoán các giá trị còn thiếu không?

Không. Skill yêu cầu bạn cung cấp các chi tiết bắt buộc thay vì đoán.

Nó có xử lý nhiều menu không?

Không. Skill được xây dựng cho một menu với một hoặc nhiều trang.

Chi tiết

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

Generate canonical FrontendIntegration YAML from a simplified single-menu authoring model for frontend-forge.

repo: kubesphere/kubesphere

Độ phổ biến

Sao GitHub
17k
Vị trí xếp hạng
#10764
Giấy phép
—
Cập nhật
14/7/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ự