add-global-variable

Create and manage Copilot Studio global variables via YAML configuration.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/javiarmesto/CIRCE-Agent-Squad-for-Microsoft-Copilot-Studio --skill add-global-variable
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-global-variable
Source: https://github.com/javiarmesto/CIRCE-Agent-Squad-for-Microsoft-Copilot-Studio/tree/main/.github/skills/add-global-variable
Command: npx skills add https://github.com/javiarmesto/CIRCE-Agent-Squad-for-Microsoft-Copilot-Studio --skill add-global-variable

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Facilitates the creation of global variables within a Copilot Studio agent conversation, enabling persistence of state across topics.

Core Features & Use Cases

  • Persistent State: Store and retrieve variables across different topics within the same conversation.
  • Customization: Define variable names, descriptions, visibility to AI orchestrator, and default values.
  • Use Case: Ideal for maintaining user preferences, tracking conversation progress, or storing dynamic URLs for knowledge sources.

Quick Start

Create a global variable named 'LastVisitedCity' with a default value of 'Unknown' using the 'add-global-variable' skill.

Frequently Asked Questions about add-global-variable

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

FAQPage Schema
How do I create global variables in Copilot Studio for conversation state persistence?

To create global variables in Copilot Studio, you define variable properties like name, scope, visibility, and default values through YAML configuration. This enables cross-topic conversation state persistence so data remains accessible across different topics.

What is cross-topic state persistence and when do I need it in Copilot Studio agents?

Cross-topic state persistence allows you to store and retrieve variables across different topics within the same conversation. You need it when maintaining user preferences, tracking conversation progress, or storing dynamic URLs for knowledge sources across topic transitions.

Can I customize the visibility and default values of global variables in Copilot Studio?

Yes, you can customize global variables in Copilot Studio by defining variable names, descriptions, visibility to the AI orchestrator, and default values. This customization is handled through YAML configuration during variable creation.

How do I set up a persistent variable in Copilot Studio to track user preferences?

You set up a persistent variable by providing the variable name, such as 'LastVisitedCity', and a default value, like 'Unknown'. The variable is then created using YAML configuration, allowing you to store and retrieve user preferences across topics.

Does add-global-variable require specific dependencies to manage conversation state in Copilot Studio?

No, the add-global-variable skill requires no external dependencies to manage conversation state. It operates independently within Copilot Studio, using YAML configuration to handle variable creation and cross-topic state persistence.

Why does my Copilot Studio agent lose variable data when switching between topics?

Copilot Studio agents lose variable data between topics because standard variables are topic-scoped. You need global variables configured via YAML to maintain cross-topic state persistence, ensuring data remains available throughout the entire conversation.