Commit 2b2ff83
feat(skills): add
Adds a `remote` subgroup under `pup skills` that wraps the public
agentic onboarding API, so an AI assistant can discover hosted skills,
fetch their instructions, and record sessions by running `pup` instead
of raw HTTP calls. Distinct from the other `skills` subcommands, which
install the statically bundled skills onto a local assistant.
Commands (all hit /api/v2/onboarding/*):
- `pup skills remote list [--tag …] [--org-id N]`
GET /api/v2/onboarding/skills. `--tag` filters in memory against each
skill's frontmatter tags (repeatable; AND semantics).
- `pup skills remote get <skill_id> [--intent …] [--session-id …] [--org-id N]`
GET /api/v2/onboarding/skills/{id}?format=md, printed as raw markdown.
`--session-id` maps to the API's `onboarding_run_id` query param.
- `pup skills remote sessions create --session-id … --skill-id … --summary …
--status … [--org-id N]` → POST /api/v2/onboarding/sessions (JSON:API).
Details:
- Auth is opportunistic: routes are OpenAuth, so credentials are attached
when present but never required.
- skill_id is percent-encoded before path interpolation.
- Terminal session statuses (completed/failed/abandoned) require at least
one --skill-id; in_progress may be empty, mirroring the backend.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>skills remote commands for the Datadog onboarding API1 parent 4cdb013 commit 2b2ff83
3 files changed
Lines changed: 679 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
0 commit comments