Skip to content

[Bug] awesome-copilot plugin: broken file references after Copilot CLI installation #736

@wmmc88

Description

@wmmc88

Description

When the awesome-copilot plugin is installed via Copilot CLI (/plugin install awesome-copilot@awesome-copilot), commands and agents fail to load because the installed plugin contains stub files with relative path references that resolve outside the installed plugin directory.

Error Output

Running /skills in Copilot CLI produces:

✖ The following skills failed to load:
  • C:\Users\melvinwang\.copilot\installed-plugins\awesome-copilot\awesome-copilot\commands\suggest-awesome-github-copilot-agents.md: missing or malformed YAML frontmatter
  • C:\Users\melvinwang\.copilot\installed-plugins\awesome-copilot\awesome-copilot\commands\suggest-awesome-github-copilot-instructions.md: missing or malformed YAML frontmatter
  • C:\Users\melvinwang\.copilot\installed-plugins\awesome-copilot\awesome-copilot\commands\suggest-awesome-github-copilot-prompts.md: missing or malformed YAML frontmatter
  • C:\Users\melvinwang\.copilot\installed-plugins\awesome-copilot\awesome-copilot\commands\suggest-awesome-github-copilot-skills.md: missing or malformed YAML frontmatter

The "missing or malformed YAML frontmatter" error occurs because these files are stubs containing only a relative path (e.g. ../../../prompts/suggest-awesome-github-copilot-agents.prompt.md) instead of actual prompt content with YAML frontmatter.

Root Cause

The plugin at plugins/awesome-copilot/ uses stub files that reference the repo-root-level prompts/ and agents/ directories via relative paths (../../../). When only the plugin subtree is installed locally, these relative paths point to non-existent locations.

Two issues:

1. plugin.json references non-existent paths

plugin.json lists items like:

{ "path": "prompts/suggest-awesome-github-copilot-skills.prompt.md", "kind": "prompt" }

But no prompts/ directory exists within the plugin. The actual files are at commands/suggest-awesome-github-copilot-skills.md.

2. Stub files contain broken relative paths

The command/agent files are stubs that reference the repo root:

  • commands/suggest-awesome-github-copilot-agents.md contains: ../../../prompts/suggest-awesome-github-copilot-agents.prompt.md
  • agents/meta-agentic-project-scaffold.md contains: ../../../agents/meta-agentic-project-scaffold.agent.md

These ../../../ paths resolve correctly within the full repo clone, but when only the plugins/awesome-copilot/ subtree is installed by Copilot CLI, they point to nothing.

Installed file tree

awesome-copilot/
├── .github/plugin/plugin.json
├── agents/meta-agentic-project-scaffold.md          (stub → ../../../agents/...)
├── commands/
│   ├── suggest-awesome-github-copilot-agents.md     (stub → ../../../prompts/...)
│   ├── suggest-awesome-github-copilot-instructions.md
│   ├── suggest-awesome-github-copilot-prompts.md
│   └── suggest-awesome-github-copilot-skills.md
└── README.md

Expected Behavior

Plugin commands and agents should load and work correctly after installation via Copilot CLI.

Suggested Fix

Either:

  1. Inline the actual prompt/agent content into the plugin files instead of using relative path stubs, or
  2. Ensure the Copilot CLI plugin installer resolves the relative path references and copies the target files into the installed plugin directory.

Environment

  • Copilot CLI v0.0.410
  • Windows 11
  • Installed via /plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions