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

未關閉
#170 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
go
領域
cli

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
Go
星號
65
分支
8
平均合併
5 天 7 小時
30 天內合併 PR
3

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

gleanwork/glean-cli 的其他 Issue

查看 gleanwork/glean-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。