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

Offen
#170 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Go
Sterne
65
Forks
8
Ø Merge
5 T. 7 Std.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus gleanwork/glean-cli

Alle Issues in gleanwork/glean-cli

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.