skills: add a glean skills command group for the platform Skills API

Đang mở
#170 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Start by reading the existing command groups built with cmdutil.Build and their agent-help entries, then check the registry drift test to see how commands are registered. The issue proposes glean skills operations and defines completion as documenting the group, passing that test, and importing, syncing, validating, and reading back a skill from the CLI; the specific files and tests are not named.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

The CLI has no command for Glean skills. The platform Skills API is available, and api-client-go v0.17.3 models it as Glean.Skills:

  • GET /api/skills, POST /api/skills
  • GET, PATCH and DELETE /api/skills/{skill_id}, plus GET /api/skills/{skill_id}/content
  • POST /api/skills/import, POST /api/skills/{skill_id}/sync
  • POST /api/skills/validation, POST /api/skills/sources/preview (plus a streaming variant)
  • GET and POST /api/skills/{skill_id}/versions, GET /api/skills/{skill_id}/versions/{version} and its /content

Proposal

Add a glean skills command group built with cmdutil.Build, so it gets --json, --dry-run, --fields and an agent-help entry like the other commands. A reasonable first cut is list, get, content, create, import, sync, validate and versions. Delete, update and source preview can follow.

Done when

  • glean agent-help skills documents the group, and the registry drift test passes.
  • A skill can be imported from a source, synced, validated and read back from the CLI.
Ngôn ngữ chính
Go
Star
65
Fork
8
Merge trung bình
5 ngày 7 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gleanwork/glean-cli

Tất cả issue của gleanwork/glean-cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.