skillctl-operator-guide

Use this skill when an agent needs to understand and operate skillctl capabilities end-to-end (discover, install, version, update, publish, and audit).

Nameskillctl-operator-guide
Version1.0.2
AuthorGitHub Copilot
Projectskillctl
Tagsskillctl cli operations versioning testing

Install

skillctl install -r skillhub skillctl-operator-guide

skillctl-operator-guide

Use this skill when the user asks how to use this repository's CLI tool skillctl, or requests command planning/execution for skill lifecycle management.

Capability Map

Version Tag Rules

Agent Decision Guide

  1. Identify intent: discover / install / update / publish / clean.
  2. Determine scope: local / project / repo / remote URL.
  3. If version-sensitive:
    • list versions first,
    • pick project scope when ambiguous,
    • install with <name>@<version> or -v.
  4. Before mass changes:
    • run skillctl outdated,
    • then run skillctl update --all with filters.
  5. For publish workflows:
    • ensure skill metadata includes version and optional project,
    • push and verify tag strategy.

Safety and Validation

GitLab MR Note

$env:GITLAB_BASE_URL="https://gitlab.com"

# 1) Get token from Vault
$token = vault kv get -field=token agent-token/gitlab
if ([string]::IsNullOrWhiteSpace($token)) {
  throw "Failed to get GitLab token from Vault path: agent-token/gitlab"
}
$env:GITLAB_TOKEN = $token

# 2) Validate token and inspect scopes/capabilities
$headers = @{ "PRIVATE-TOKEN" = $token }
$self = Invoke-RestMethod -Method Get -Uri "$env:GITLAB_BASE_URL/api/v4/personal_access_tokens/self" -Headers $headers
Write-Host ("Token name: {0}" -f $self.name)
Write-Host ("Token scopes: {0}" -f ($self.scopes -join ", "))

# 3) Optional fallback check for environments where PAT self endpoint is restricted
if (-not $self -or -not $self.scopes) {
  $user = Invoke-RestMethod -Method Get -Uri "$env:GITLAB_BASE_URL/api/v4/user" -Headers $headers
  Write-Host ("Authenticated as: {0} ({1})" -f $user.username, $user.name)
}

# 4) Use token for push (MR auto-create requires api scope)
skillctl push <skill-name> -r <repo-name>
- Source: vault kv get -field=token agent-token/gitlab
- Verified At: 2026-04-29
- GitLab Base URL: https://gitlab.com
- Scopes: api, read_user
- Can Auto Create MR: yes

Regression Smoke Baseline

go test ./...
go run . -h
go run . add -h
go run . install -h
go run . list -h
go run . outdated -h
go run . push -h
go run . remove -h
go run . search -h
go run . status -h
go run . update -h
Back to all skills