Skip to content

Commit 2b2ff83

Browse files
tedkahwajiclaude
andcommitted
feat(skills): add skills remote commands for the Datadog onboarding API
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>
1 parent 4cdb013 commit 2b2ff83

3 files changed

Lines changed: 679 additions & 0 deletions

File tree

src/commands/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ pub mod security;
7676
pub mod service_catalog;
7777
#[cfg(not(target_arch = "wasm32"))]
7878
pub mod skills;
79+
#[cfg(not(target_arch = "wasm32"))]
80+
pub mod skills_remote;
7981
pub mod slos;
8082
pub mod software_catalog;
8183
pub mod static_analysis;

0 commit comments

Comments
 (0)