Logo de Copilot Studio Agent Documenter

Copilot Studio Agent Documenter

Organização
pnp
copilot-studio-agent-documenter

Gere documentação abrangente para agentes do Microsoft Copilot Studio a partir de soluções Dataverse exportadas, usando a Power Platform CLI. Use quando solicitado a analisar a solução com o arquivo agents e criar documentação com base no conteúdo.

Add to TypingMind

Visão geral

Publicado porpnp
Repositóriocopilot-prompts
Nome da habilidadecopilot-studio-agent-documenter
Estrelas
894
Forks
307
Arquivos incluídos
35
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 35

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por pnp no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Copilot Studio Agent Documenter no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/pnp/copilot-prompts/tree/main/samples/skills/copilot-studio-documenter
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pnp/copilot-prompts.git /tmp/copilot-prompts
mkdir -p .claude/skills
cp -r /tmp/copilot-prompts/samples/skills/copilot-studio-documenter .claude/skills/copilot-studio-agent-documenter
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Copilot Studio Agent Documenter em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Copilot Studio Agent Documenter automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Copilot Studio Agent Documenter não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Copilot Studio Agent Documentor

To generate documentation in a single file, follow this process, using the sections below to analyse and structure the agents within the /Agents/ folder in this repo.

When to Use This Skill

  • User requests documentation for an agent in Agents/<AgentName>/
  • Analyzing agent capabilities, topics, and integrations
  • Creating markdown documentation output in Docs/Agents/ folder

Step-by-Step Workflows

1. Identify Agent Structure

bash
# Locate the agent solution
ls Agents/<AgentName>/src/bots/

# List all bot components
ls Agents/<AgentName>/src/botcomponents/

2. Extract Agent Metadata

Read key files in this order:

  1. Agents/<AgentName>/src/Other/Solution.xml - Publisher, version, solution name
  2. Agents/<AgentName>/src/bots/<prefix>_<agentname>/bot.xml - Agent metadata
  3. Agents/<AgentName>/src/bots/<prefix>_<agentname>/configuration.json - Agent configuration

3. Document Agent Components

Topics (Conversation Flows)
  • Pattern: botcomponents/<prefix>_<agent>.topic.<TopicName>/
  • Read botcomponent.xml for topic name and state
  • Check data file for conversation logic (if present)
  • Document standard topics: ConversationStart, Greeting, Fallback, Escalate, OnError
  • Highlight custom topics (non-standard names)
GPT Instructions
  • Pattern: botcomponents/<prefix>_<agent>.gpt.default/
  • Extract AI instructions from data file
  • Document the agent's generative capabilities and system prompt
Connector Actions
  • Pattern: botcomponents/<prefix>_<agent>.action.<Connector-Operation>/
  • Example: .action.ServiceNow-GetRecord, .action.ServiceNow-Orderitem
  • List all external actions the agent can perform
  • Cross-reference with Assets/botcomponent_connectionreferenceset.xml
Multi-Agent Orchestration
  • Pattern: botcomponents/<prefix>_<agent>.InvokeConnectedAgentTaskAction.<ChildAgent>/
  • Document agent-to-agent handoffs
  • Map parent agents to their specialized sub-agents
  • Orchestration uses InvokeConnectedAgentTaskAction components to route conversations.
Test Phrases (Evaluation Sets)
  • Pattern: botcomponents/mspva_<GUID>/botcomponent.xml with <category>Testing</category>
  • Component type: <componenttype>19</componenttype>
  • Extract test phrases from <description> or <name> elements
  • These are sample questions/prompts used to evaluate agent responses
  • Group test phrases by parent agent (<parentbotid>)
  • Document which agent or topic each test phrase targets

4. Document Components and External Integrations

File Structure (per component)

botcomponents/<componentschema>/
├── botcomponent.xml    # Metadata (name, parent, state)
└── data                # Optional binary/additional data

Solution Metadata

  • Other/Solution.xml - Publisher, version, localization settings
  • Assets/botcomponent_*.xml - Cross-cutting configuration sets
  • Schema name → physical folder name mapping is 1:1
Connection References

Read Agents/<AgentName>/src/Other/Customizations.xml:

  • Extract <connectionreference> elements
  • Document connectorid (e.g., /providers/Microsoft.PowerApps/apis/shared_service-now)
  • Note connection display names
Knowledge Sources

Read Agents/<AgentName>/src/unstructuredfilesearchentities/*.meta.xml:

  • Extract <sourceurl> values (external API endpoints)
  • Document knowledge source types (<knowledgesource> codes)
Dataverse Tables and Entities

Agents may include Dataverse table search capabilities for querying business data. These are found in:

  • Agents/<AgentName>/src/dvtablesearchs/ - Search configurations
  • Agents/<AgentName>/src/dvtablesearchentities/ - Entity/table mappings

Relationship Structure:

  1. Each dvtablesearch.xml defines a search configuration with a unique <dvtablesearchid>
  2. Each dvtablesearchentity.xml links to a search via <dvtablesearchid> and specifies the <entitylogicalname> (table)
  3. Multiple entities can be associated with a single search configuration

Analysis Process:

To find Dataverse table searches:

bash
# Find all Dataverse table searches
ls Agents/<AgentName>/src/dvtablesearchs/

# Find all entity mappings
ls Agents/<AgentName>/src/dvtablesearchentities/

For each dvtablesearch:

  1. Read dvtablesearchs/<guid>/dvtablesearch.xml - Extract search name and ID
  2. Find related entities by searching for the dvtablesearchid in dvtablesearchentities
  3. Read each dvtablesearchentities/<guid>/dvtablesearchentity.xml - Extract entity logical name and display name

Generate ERD Diagram: Create a Mermaid entity-relationship diagram showing:

  • Tables/entities involved in the search
  • Relationships between search configurations and entities
  • Entity attributes when available

Example Mapping:

  • Search: PeopleonAccount_Account_sKtInwp9Jyd91zLl63PSV (ID: c5010e77-c900-4bf1-898d-c4c0ab9eed30)
  • Entity: account (Account table)

5. Extract Test Phrases for Evaluation

Search for bot components with <category>Testing</category>:

bash
grep -r "<category>Testing</category>" Agents/<AgentName>/src/botcomponents/ -l

For each testing component:

  1. Read botcomponents/<guid>/botcomponent.xml
  2. Extract <description> and <name> fields - these contain the test phrases
  3. Note the <parentbotid> to identify which agent the test is for
  4. Group test phrases by agent for documentation

Test phrases are used for:

  • Evaluating agent responses to common queries
  • Regression testing after agent updates
  • Demonstrating agent capabilities with sample questions

6. Generate Documentation Output

Create markdown file in Docs/<AgentName>.md with sections:

markdown
# <Agent Display Name>

**Solution Name:** <from Solution.xml>
**Version:** <from Solution.xml>
**Publisher:** <from Solution.xml>

## Overview
<Brief description of agent purpose>

## Agent Architecture
<Multi-agent diagram if applicable>

## Topics
### Standard Topics
- List ConversationStart, Greeting, Fallback, etc.

### Custom Topics
- Document business-specific conversation flows

## GPT Instructions
<System prompt summary>

## External Integrations
### Connectors
- **ServiceNow**: <list actions>
- **<OtherConnector>**: <list actions>

### Knowledge Sources
- URL: <sourceurl>
- Type: <description>

### Dataverse Tables
<If dvtablesearch components exist>

The agent has access to the following Dataverse tables for data queries:

#### Entity Relationship Diagram
```mermaid
erDiagram
    <SearchName> ||--o{ <EntityName> : "searches"
    <EntityName> {
        string entitylogicalname
        string displayname
    }
Configured Searches
Search NameSearch IDEntityDescription

Component Inventory

  • Total Topics:
  • Total Actions:
  • Child Agents:
  • Dataverse Table Searches:
  • Dataverse Entities:

Test Phrases & Evaluation Sets

  • "<test phrase 1>"
  • "<test phrase 2>"
  • "<test phrase 3>"

  • "<test phrase 1>"
  • "<test phrase 2>"

### Naming Conventions to Recognize

#### Component Schema Names
- Format: `<customizationprefix>_<logicalname>.<componenttype>.<descriptor>`
- Example: `cr667_primaryPortalAgent.InvokeConnectedAgentTaskAction.ClientExplorer`
- The prefix (e.g., `cr667`, `pkb`) comes from the Dataverse publisher

#### Topic Naming Patterns
- Standard: `.topic.Greeting`, `.topic.Fallback`, `.topic.OnError`
- Custom: `.topic.<Intent>_<GUID>` or `.topic.<FriendlyName>`

#### Action Naming Pattern
- Format: `.action.<ConnectorName>-<OperationName>`
- Example: `.action.ServiceNow-Getcatalogitems`

### Common Analysis Commands

```bash
# Count topics for an agent
ls Agents/<AgentName>/src/botcomponents/ | grep "\.topic\." | wc -l

# Find all connector actions
ls Agents/<AgentName>/src/botcomponents/ | grep "\.action\."

# Check for multi-agent orchestration
ls Agents/<AgentName>/src/botcomponents/ | grep "InvokeConnectedAgentTaskAction"

# Find external service URLs
grep -r "sourceurl\|connectorid" Agents/<AgentName>/src/

# List all agents in solution
ls Agents/<AgentName>/src/bots/

# Find all test phrases/evaluation sets
grep -r "<category>Testing</category>" Agents/<AgentName>/src/botcomponents/ -A 3

# Check for Dataverse table searches
ls Agents/<AgentName>/src/dvtablesearchs/ 2>/dev/null || echo "No Dataverse searches"

# List Dataverse entities
ls Agents/<AgentName>/src/dvtablesearchentities/ 2>/dev/null || echo "No Dataverse entities"

# Find entity-to-search mappings
grep -r "dvtablesearchid" Agents/<AgentName>/src/dvtablesearchentities/

Output Best Practices

  1. Always output to Docs/ - Never create documentation in other folders
  2. Use agent name as filename - Docs/<AgentName>.md
  3. Include file references - Link back to source files when describing components
  4. Configuration - List out in a table the configuration of each othe bots.
  5. Document multi-agent relationships - Show parent-child agent hierarchies in a mermaid diagram. Group all the documentation by the agent, showing documentation topics underneath each group.
  6. Highlight integrations - External APIs and connectors are critical for understanding agent capabilities
  7. Count components - Provide metrics (# topics, # actions, # child agents)
  8. Include test phrases - Document evaluation test phrases grouped by agent to demonstrate capabilities and provide testing examples
  9. Other documentation - Remove references to other documentation in the repository. This file should be standalone.
  10. Technical depth - Include some explainations of components, assuming that the audience less technical and may not know what these components mean - unless the request asks for highly technical output.

Example: multiagentdemo Analysis

The multiagentdemo solution contains 5 agents:

  • primaryPortalAgent (orchestrator)
  • getSkillName (People Skills Finder)
  • myServices (ServiceNow integration with 3 actions)
  • serviceNowKnowledgeAgent (knowledge base queries)
  • whoWhat (account lookups)

ServiceNow integration found:

  • Connector: shared_service-now
  • Actions: GetRecord, Getcatalogitems, Orderitem
  • Knowledge URL: https://<instance-name>.service-now.com/

Key Files Reference

  • Solution.xml - Version, publisher, solution metadata
  • Customizations.xml - Connection references to external services
  • botcomponent_connectionreferenceset.xml - Bot-to-connector mappings
  • unstructuredfilesearchentities/*.meta.xml - Knowledge source URLs
  • botcomponents/*/botcomponent.xml - Individual component metadata
  • botcomponents/*/data - Individual component data files
  • bots/*/bot.xml - Top-level bot definitions
  • bots/*/configuration.json - Bot configuration settings
  • dvtablesearchs/*/dvtablesearch.xml - Dataverse table search configurations
  • dvtablesearchentities/*/dvtablesearchentity.xml - Dataverse entity/table mappings

When you are building references to files, navigate from the repo root, as the generated document can existing under a subfolder when generated.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Copilot Studio Agent Documenter faz?

Gere documentação abrangente para agentes do Microsoft Copilot Studio a partir de soluções Dataverse exportadas, usando a Power Platform CLI. Use quando solicitado a analisar a solução com o arquivo agents e criar documentação com base no conteúdo.

Por que usar Copilot Studio Agent Documenter no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Copilot Studio Agent Documenter é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Copilot Studio Agent Documenter no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/pnp/copilot-prompts/tree/main/samples/skills/copilot-studio-documenter. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Copilot Studio Agent Documenter?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Copilot Studio Agent Documenter?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Copilot Studio Agent Documenter com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Copilot Studio Agent Documenter é gratuita?

Sim. A habilidade é publicada no GitHub por pnp sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇