manage-agent

Manages the full agent-manager lifecycle through the amctl CLI.

6|11|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/wso2/agent-skills --skill manage-agent-wso2
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: manage-agent
Source: https://github.com/wso2/agent-skills/tree/main/plugins/agent-manager/skills/manage-agent
Command: npx skills add https://github.com/wso2/agent-skills --skill manage-agent-wso2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Managing agents through the amctl CLI involves non-obvious behaviors—misleading status fields, async deletes, buildName vs buildId confusion, and empty response envelopes—that cause silent failures and half-empty results when driven ad hoc. ## Core Features & Use Cases - End-to-end lifecycle management: Install amctl, verify login, create and deploy agents, poll builds, and confirm liveness via logs, metrics, and traces. - Structured troubleshooting: Symptom-to-cause-to-fix tables for empty envelopes, crash-loop signatures, and misleading CLI output. - Runtime triage flow: A diagnostic sequence (build → logs → metrics → traces) for cases where a build is Completed but the agent is not actually serving traffic. - Use Case: You create a new agent and want to confirm it is actually serving requests. The skill walks you through create, build polling, liveness verification via metrics, and trace inspection. ## Quick Start Use the manage-agent skill to create and deploy my agent with amctl, then confirm it is actually running by checking its logs, metrics, and traces.

Frequently Asked Questions about manage-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an agent with the amctl CLI?▼

Run amctl agent create with the required flags for your subtype, build type, and provisioning mode, which auto-builds and auto-deploys to the default environment. Always run amctl agent create --help first since required flags vary by combination.

How do I check if my deployed agent is actually running?▼

Do not rely on amctl agent get, since its status field is usually empty and not a liveness indicator. Instead check agent logs for app-level output past the init container, or confirm at least one memoryUsage sample via agent metrics.

Why does amctl agent build logs return nothing for my build?▼

Builds are addressed by buildName (e.g. hotel-booking-agent-1778760196718), not the buildId UUID. Pull the buildName from amctl agent build list --json and pass it to build get or build logs.

Why does amctl context show look logged in but project list fails?▼

context show only reflects the instance URL and looks identical for unauthenticated contexts. Treat amctl project list --json as the real login canary; auth failure surfaces as error.code NO_ORG.

Why does agent delete succeed but the agent still appears in the list?▼

Delete is asynchronous, so agent list may show the agent for 5-15 seconds after data.deleted returns true. Poll agent list until the name disappears before assuming deletion completed.

What are the limitations of amctl for diagnosing pod failures?▼

The CLI has no pod describe, events, or readiness visibility, so ImagePullBackoff and CrashLoopBackoff can look like a fresh deploy. After about 3 minutes without metrics or app logs, escalate to kubectl describe pod and kubectl get events.