Coordinating Multi Space Devops Agent
AWSOfficialPublished by AWS
- Skill
- Meta (authoring, orchestration, planning, memory)
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured approach for managing multiple AWS AgentSpaces within a single session. It enables intelligent routing of requests to specific environments (e.g., prod, staging, or knowledge) and provides patterns for parallel execution, cross-account synthesis, and bridging knowledge gaps between isolated spaces. By establishing a routing table and following defined interaction patterns, users can efficiently compare environments, apply shared runbooks, and manage incidents that span multiple AWS accounts.
What it does
- Discovers and lists available AgentSpaces to map environments.
- Routes user queries to the appropriate AgentSpace based on context.
- Executes parallel queries across multiple spaces for comparative analysis.
- Synthesizes findings from multiple environments into a single, coherent response.
- Bridges knowledge by retrieving runbooks from a dedicated space to inform actions in another.
- Manages per-session routing memory to streamline future interactions.
When to use it
- When managing multiple AWS environments like production, staging, and shared knowledge bases.
- When a user asks for comparisons between different environments.
- When an incident or query spans multiple AWS accounts.
- When you need to apply a standard runbook stored in a knowledge space to a specific production issue.
Advantages
- Reduces context switching by centralizing multi-space management.
- Provides clear strategies for handling cross-environment data without redundant queries.
- Ensures accurate routing by using a persistent routing table.
- Improves incident response by synthesizing data from multiple sources.
Usage examples
- “Compare the error rates between prod and staging.”
- The agent queries both the prod and staging AgentSpaces in parallel, analyzes the differences, and provides a synthesized summary of the delta.
- “What is our runbook for ECS 503 errors and can you apply it to the prod service?”
- The agent retrieves the runbook from the knowledge space and then initiates an investigation in the prod space using the retrieved runbook context.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/aws/coordinating-multi-space-devops-agent/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip coordinating-multi-space-devops-agent.zip -d .agents/skills
Documentation by AWS
Querying multiple AgentSpaces
Pre-flight
If aws_devops_agent__list_agent_spaces is not in your available tools, the remote MCP server is not connected. Tell the user to ask "help me set up the AWS DevOps Agent" so the setup-devops-agent skill auto-loads.
Prerequisite: SigV4 auth required
Multi-space routing requires SigV4 authentication — Bearer tokens are scoped to a single AgentSpace and cannot route to other spaces.
Many real teams run more than one AgentSpace — typically a production space, a staging space, and a dedicated "knowledge" space that holds runbooks shared across accounts. Each space has its own set of associated AWS accounts, runbooks, and history.
This skill is the routing brain. Use it when the user has multiple spaces configured, or when a question genuinely spans accounts.
Discovering spaces
aws_devops_agent__list_agent_spaces()
→ {"agentSpaces": [{"agentSpaceId": "as-abc123", "name": "prod"}, ...]}If only one space is returned, this skill doesn't apply — use chatting-with-aws-devops-agent or investigating-incidents-with-aws-devops-agent directly (no agent_space_id needed).
If more than one is returned, decide whether the user's question is:
| Question shape | Strategy |
|---|---|
| Scoped to one environment ("prod is broken") | Single space — pick the matching one |
| Spans environments ("compare prod vs staging") | Parallel — query each, synthesize |
| Generic knowledge ("what runbooks do we have for ECS?") | Route to the knowledge space if one is named that way |
| Ambiguous ("our service is slow") | Ask the user which environment, don't guess |
Per-session routing memory
If the user has a routing guide stored locally (e.g. .claude/aws-agents-for-devsecops.md, AGENTS.md, or per-project notes), read it once at the start of the session and use it as the routing table for the rest of the conversation. Format expected:
| Space | AWS Profile | Agent Space ID | Purpose |
|-------|-------------|----------------|---------|
| prod | acme-prod | as-abc123 | Production incidents, customer-facing services |
| stage | acme-stage | as-def456 | Pre-prod validation, integration testing |
| kb | acme-shared | as-ghi789 | Shared runbooks, cross-account knowledge |If no guide exists, run discovery:
aws_devops_agent__list_agent_spaces()→ get all spaces.For each space:
aws_devops_agent__chat(message="Summarize the AWS accounts, services, and runbooks you have access to.", agent_space_id="<SPACE_ID>")→ get a one-paragraph summary.Offer to write the routing guide to the project (e.g.
.claude/aws-agents-for-devsecops.md,AGENTS.md, or per-project notes) so future sessions skip discovery.
Pattern A — Parallel queries, one synthesized answer
Use when the user wants a comparison: "compare prod and staging error rates", "is this issue happening in both accounts?", "audit costs across all our environments".
# 1. Query each space in parallel with environment-specific context
aws_devops_agent__chat(message="<question> | env=prod | <prod IaC context>", agent_space_id="PROD_ID")
→ {"executionId": "...", "answer": "..."}
aws_devops_agent__chat(message="<question> | env=stage | <stage IaC context>", agent_space_id="STAGE_ID")
→ {"executionId": "...", "answer": "..."}
# 2. Synthesize locally — present a side-by-side summary, not two separate dumpsDon't just paste both responses. Read both, identify what's the same vs. different, and tell the user the delta — that's the value.
Pattern B — Knowledge lookup, then per-space action
Use when one space holds runbooks/knowledge that informs work in another space.
# 1. Ask the knowledge space first
aws_devops_agent__chat(
message="What's our standard runbook for ECS 503 errors?",
agent_space_id="KB_ID"
)
→ {"answer": "<runbook text>"}
# 2. Apply that runbook in the target environment
aws_devops_agent__investigate(
title="ECS 503 errors on checkout-service. [Runbook from knowledge space] <runbook text> [Local context] ...",
agent_space_id="PROD_ID",
priority="HIGH"
)The DevOps Agent doesn't share state between spaces — you bridge it by quoting the knowledge space's response into the investigation's title.
Pattern C — Targeted single-space query
Use when the user explicitly names a space or environment.
# Pick the matching agentSpaceId from your routing memory, pass it on the call
aws_devops_agent__chat(message="<question>", agent_space_id="<matched_space_id>")If the routing is ambiguous and the user doesn't say, ask once — better than firing into the wrong account.
Pattern D — Investigations don't share state
Investigations are per-space. If an issue spans accounts, you may need two investigations:
aws_devops_agent__investigate(title="Latency spike — prod side", agent_space_id="PROD_ID", priority="HIGH")
aws_devops_agent__investigate(title="Latency spike — stage side", agent_space_id="STAGE_ID", priority="HIGH")Track both taskIds. Poll both. Surface findings together.
This is rare — usually one space owns the problem. Don't fan out by default.
What NOT to do
Don't blast every space with every question. It's slow, expensive, and the user has to read 3× as much output.
Don't fan out without verifying scope. If a space's
descriptionor recorded coverage doesn't mention the relevant service, skip it — sending a question into a scope-mismatched space typically hangs rather than returning "I don't know."Don't fire investigations in parallel by default. They take 5–8 minutes each. Pick the one space that owns the incident.
Don't silently switch spaces mid-conversation. If a follow-up needs a different space, tell the user: "Switching to the knowledge space to look up the runbook."
Timeout guidance
The chat tool buffers the full response server-side before returning. Complex cross-account queries can take 30-90s per space. If a space doesn't respond within 90s, it's likely a scope mismatch — surface a message like "Space X did not respond within 90s — skipping (likely scope mismatch)" and move on rather than hanging.
See also
examples/multi-space-walkthrough.mdfor a fully worked scenario (prod incident with staging comparison and knowledge-space runbook lookup).The
setup-devops-agentskill for first-time configuration of multiple AgentSpaces, AWS profiles, and shell wrappers.
Files
- ATTRIBUTION.mdAdded by AutoGineer960 B
- LICENSELicence file added by AutoGineer9.9 KiB
- NOTICELicence file added by AutoGineer67 B
- SKILL.md6.9 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- AWS
- Publisher
- AWS (Official)
- Source
- aws/agent-toolkit-for-aws · plugins/aws-agents-for-devsecops/skills/coordinating-multi-space-devops-agent · commit 0a218f8
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by AWS or AWS.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download coordinating-multi-space-devops-agent.zip