Skip to the content.

Reference: Copilot Asset Installation & Name Transform

This page documents the behaviour and schema for install-time asset name transforms in the Copilot asset installation workflow.

Overview

When using Install-CopilotAssets.ps1 to copy agents, skills, instructions, and prompts from one or more source repositories into a target repo, you can optionally apply a naming transform to the installed assets. This allows you to avoid filename collisions and clearly namespace assets without renaming the canonical source files.

The nameTransform Object

Each entry in the sources array of your config JSON can include an optional nameTransform object:

{
  "repo": "markheydon/github-workflows",
  "nameTransform": {
    "prefix": "myrepo",
    "suffix": "mh",
    "updateFrontmatter": true
  },
  "skills": ["dotnet-best-practices"],
  "prompts": ["new-project-setup"]
}

Behaviour

Example

Given this config:

{
  "sources": [
    {
      "repo": "markheydon/github-workflows",
      "nameTransform": {
        "suffix": "mh",
        "updateFrontmatter": true
      },
      "prompts": ["new-project-setup"]
    }
  ]
}

The installed prompt will be named new-project-setup-mh.prompt.md and its frontmatter name field will be updated to new-project-setup-mh.

See Also