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

オープン
#170 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gleanwork/glean-cli のほかの issue

gleanwork/glean-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。