Skip to content

--add-dir does not load skills from added directory when running Copilot CLI outside that directory #3173

Closed

Description

@madao02515634

Describe the bug

When running Copilot CLI from a different directory and using copilot --add-dir <path>\add-dir-test, Copilot CLI does not load skills that exist inside the added directory.

The issue happens even when the added directory contains valid skill definitions under all supported skill locations.

Affected version

GitHub Copilot CLI 1.0.43.

Steps to reproduce the behavior

  1. Create the following directory structure:
add-dir-test
├─.agents
│  └─skills
│      └─my-skill
│              SKILL.md
│
├─.claude
│  └─skills
│      └─my-skill
│              SKILL.md
│
├─.copilot
│  └─skills
│      └─my-skill
│              SKILL.md
│
└─.github
    └─skills
        └─my-skill
                SKILL.md
  1. Put the following content in each SKILL.md:
---
name: my-skill
description: A brief description of what my skill does.
---

# My Skill
  1. Open a terminal in a directory other than add-dir-test.
  2. Run:
copilot --add-dir <path>\add-dir-test
  1. Check whether Copilot CLI discovers and loads the skills inside the added directory.

Expected behavior

Copilot CLI should discover and load skills from the directory passed to --add-dir, including skills located under:

  • .agents\skills\my-skill\SKILL.md
  • .copilot\skills\my-skill\SKILL.md
  • .github\skills\my-skill\SKILL.md

Additional context

  • OS: Windows
  • The issue occurs when Copilot CLI is started outside add-dir-test and the directory is added via --add-dir
  • The skills are present and structured correctly, but they are not loaded from the added directory

Activity

  1. added theissue type on May 7, 2026
  2. added
    area:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agents
    area:configurationConfig files, instruction files, settings, and environment variables
    on May 7, 2026
  3. copilot-cli-bot commented on Nov 14, 2026

    @copilot-cli-bot

    This appears to be resolved as of GitHub Copilot CLI v1.0.112. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationConfig files, instruction files, settings, and environment variablesarea:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agents

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions