Skip to content

Copilot and APEX workflow guide

GitHub Copilot Chat is the interface. APEX adds repository-defined main agents, helper subagents, skills, instructions, workflow state, and validation tools.

The human remains in control:

  1. Select a main agent for the current workflow step.
  2. Review the proposed scope and the evidence it will use.
  3. Inspect the produced artifact and any Challenger findings.
  4. Resolve required findings.
  5. Approve the handoff to the next main agent.

01-Orchestrator helps you identify the next step and proposes a handoff. It does not autonomously execute the main-agent sequence.

FeatureShortcutUse during the workshop
Command PaletteCtrl+Shift+PRun VS Code and Dev Container commands
Integrated TerminalCtrl+`Run validation, Azure CLI, Bicep, Terraform, k6, and Git commands
ExplorerCtrl+Shift+EInspect agent output, IaC, and configuration
SearchCtrl+Shift+FFind artifacts, identifiers, and old assumptions
Copilot ChatCtrl+Alt+ISelect APEX agents and review handoffs
Inline ChatCtrl+IMake a small, local edit when a main workflow agent is not required

Open the repository created from the APEX Accelerator in its Dev Container. The container supplies the toolchain expected by the agents.

Use these terms consistently:

TermMeaning
Main agentA human-selected owner for a workflow step, such as 03-Architect
SkillTask-specific instructions loaded by an agent or invoked for a declared purpose
Helper subagentA bounded worker that an owning agent may use for validation or specialist evidence
HandoffA proposal asking the human to select another main agent
Approval gateA human decision that permits the workflow to move to the next stage

A main agent is not a skill or helper subagent. The Orchestrator cannot replace human selection of the next main agent.

The current Accelerator agent files are the source of truth. Do not copy a fixed count or model list into workshop notes. The Context Optimizer is a reference capability, not a participant challenge-path step.

Workflow stepMain agentResult
Route the workflow01-OrchestratorProposed next step, required evidence, and human handoff
Requirements02-Requirements01-requirements.md and initial SKU manifest
Architecture03-ArchitectArchitecture assessment and cost evidence
Design, optional04-DesignDiagrams and architecture decision records
Governance, Step 3.504g-GovernanceEffective policy constraints in Markdown and JSON
IaC planning05-IaC PlannerImplementation plan and machine-readable contracts
Bicep generation06b-Bicep CodeGenBicep code and 05-iac-handoff.json
Terraform generation06t-Terraform CodeGenTerraform code and 05-iac-handoff.json
Bicep deployment07b-Bicep DeployDeployment and policy-precheck evidence
Terraform deployment07t-Terraform DeployDeployment and policy-precheck evidence
As-built documentation08-As-BuiltEvidence-based documentation suite
Diagnostics09-DiagnoseDiagnostic analysis for the selected scope
Adversarial review10-ChallengerFindings for the specified artifact and review lens
Context audit, reference-only11-Context OptimizerContext-window optimization recommendations; does not change agents or own a challenge handoff

Model selections may change. Check the model field in the current .github/agents/*.agent.md files and confirm your account or organization permits those selections.

The Challenger is a human-selected main reviewer, not an automatic helper. Preserve its findings and resolve blocking issues before approval.

StageDefault review expectation
RequirementsOne comprehensive review
ArchitectureOne architecture review and a separate cost-feasibility review
Optional designNo review by default; explicit opt-in
GovernanceOne reconciliation review when effective constraints exist
IaC planOne comprehensive review
Generated codeDeterministic validation; adversarial review is opt-in
DeploymentNo Challenger review by default; explicit authorization and current validation evidence are still required

The workshop may compress discussion time, but it must not describe a required review as completed when the review evidence is missing or has unresolved blocking findings.

Pause for team approval after:

  • Requirements and their Challenger findings.
  • Architecture, cost evidence, and both required reviews.
  • Governance reconciliation when constraints exist.
  • The IaC plan and its review findings.
  • Code validation, before selecting a Deploy agent.
  • Deployment evidence, before treating the environment as verified.

Challenge 4 changes approved requirements. Return to the affected upstream steps, update the evidence, rerun the required reviews, and approve the revised path.

Name the current project, the approved input artifacts, the requested scope, and what the agent must not do.

Review the approved FreshConnect requirements in agent-output/freshconnect/01-requirements.md.
Assess the architecture and cost feasibility for Sweden Central.
Do not deploy resources.
Return the architecture assessment and cost artifacts for team review.

For a Challenger review, identify the artifact and lens:

Review agent-output/freshconnect/01-requirements.md using the comprehensive requirements lens.
Return findings only. Do not edit the requirements artifact.

For deployment, authorization must be explicit and scoped:

Use the approved Bicep handoff and current validation evidence for FreshConnect.
Show the what-if result and stop for approval before applying changes.

Skills live under .github/skills/. Current APEX repository skills use one apex- prefix. Representative examples include:

SkillPurpose
apex-workflow-engineWorkflow entry, dependencies, handoffs, state, and recovery
apex-azure-defaultsAzure naming, security, tags, regions, and AVM guidance
apex-azure-artifactsRequired artifact structures
apex-azure-adrArchitecture decision records
apex-python-diagramsPython-based architecture diagrams
apex-github-operationsGitHub branches, commits, pull requests, and Actions
apex-unslopManual prose cleanup that preserves technical contracts

Instructions under .github/instructions/ apply repository rules to matching files. Skills and instructions do not grant deployment permission or bypass the owning agent’s workflow contract.

Use the MCP configuration in the current template-derived repository. The reviewed Accelerator revision declares:

ServerWorkshop use
GitHub MCPRepository content and GitHub operations
Azure Resource Manager MCPCost Management and Pricing tools
Azure MCPAzure resources, subscriptions, deployments, and policy context

The exact server list can change. Check .vscode/mcp.json, preserve authentication errors, and compare your repository with the current Accelerator when a server is missing.

  • Never paste credentials, access keys, connection strings, or tokens into chat.
  • Use placeholders and managed identities where the workflow supports them.
  • Review generated files and terminal output before committing.
  • Rotate a credential immediately if it appears in chat, output, or Git history.
  • A model response is not evidence that a secret was protected or that a deployment succeeded.
MicroHack challengeAPEX workflow use
1. RequirementsRequirements artifact, Challenger review, and approval
2. ArchitectureArchitecture and cost evidence, separate reviews, and approval
3. ImplementationOptional design, governance, plan review, code generation, validation, deployment authorization, and deployment
4. DR curveballControlled change to affected requirements, architecture, governance, plan, code, reviews, and approvals
5. Load testingWorkshop validation evidence for the deployed workload
6. DocumentationAs-built documentation from approved artifacts and observed state
7. DiagnosticsStandalone diagnosis from current evidence
8. Team showcaseDecisions, findings, approvals, evidence, results, and unresolved risks

Challenges 5, 7, and 8 are workshop stages rather than numbered APEX workflow steps.

  1. Preserve the error and current artifacts.
  2. Confirm that the correct template-derived repository is open in the Dev Container.
  3. Check the selected main agent, required inputs, and unresolved review findings.
  4. Check the current agent model and MCP authentication.
  5. Use the APEX session recovery guidance instead of editing workflow state by hand.
  6. Ask the facilitator before bypassing a review or changing deployment scope.
ItemLocation
Main agents.github/agents/*.agent.md
Skills.github/skills/*/SKILL.md
Instructions.github/instructions/*.instructions.md
Repository-wide Copilot rules.github/copilot-instructions.md
MCP configuration.vscode/mcp.json
Workflow artifactsagent-output/{project}/
Bicep projectsinfra/bicep/{project}/
Terraform projectsinfra/terraform/{project}/