Subchapter 23.21
references/phases/add-capabilities/add-capabilities.mdMarkdown5 KBView on GitHub
Reached when the Turn-1 entry point is add_capabilities: the user already runs
an agent on AWS and wants to add AgentCore services. No runtime scoring —
services run on any runtime. This is a self-contained branch: it does NOT pass
through Clarify / Confirm / Design / Estimate / Generate.
Generate a run id from the current time as MMDD-HHMM. Create the run directory under the
user’s current working directory (run pwd and anchor to it) — NOT the plugin install tree:
<cwd>/.agent-advisor/<run_id>/, plus <cwd>/.agent-advisor/.gitignore containing * (so run
state is never committed). Call this directory $RUN_DIR.
Ask which runtime they run on now: AgentCore / ECS / EKS / Lambda / other. (If the user already stated it in their opening message, skip this question.)
Identity, Gateway, Memory, Policy, Observability, Managed KB, Code Interpreter, Browser,
Web Search, Sandbox. For each selected, load the relevant section of
${CLAUDE_PLUGIN_ROOT}/skills/agent-advisor/references/decision-refs/agentcore.md.
Also offer AWS Agent Registry when the user requests a shared catalog, resource discovery, or
approval-based governance. Use the service card’s conditional-service guidance: a single agent
can need Registry, while multiple agents alone do not justify it. Load the Registry section
when selected and keep the recommendation conditional until Step 4 verifies its Region.
If they already use a third-party tool for a capability (Tavily/Pinecone/Browserbase/etc), present: switch to AgentCore native, or keep existing and connect via Gateway.
Load ${CLAUDE_PLUGIN_ROOT}/skills/agent-advisor/references/decision-refs/freshness.md. This
branch has no winning runtime profile, so verify the relevant “Hard limits” facts from
agentcore.md directly (per freshness.md Procedure step 1). Follow its anti-fabrication rule:
only list a fact as MCP-verified if you actually called the MCP this run; otherwise it’s cached.
If Registry is selected, apply freshness.md’s AWS Agent Registry availability procedure,
including identifying its intended Region and handling unavailable or unverified Regions.
This check also applies when the existing runtime is ECS, EKS, Lambda, or another runtime;
this branch does not pass through Design’s Region check.
Write the recommendation to $RUN_DIR/capabilities-recommendation.md (so the user can keep and
share it — consistent with the main skill’s recommendation.md). Include:
freshness.md: generation date, which facts were MCP-verified vs
cached).Then give a short in-chat summary and point the user to $RUN_DIR/capabilities-recommendation.md.
This branch does not score runtimes or hand off — it ends here. Set
phases.add_capabilities = completed (state → complete).