Skip to content

[BUG] "Unknown target '['agent-skills'' #1208

@petemounce

Description

@petemounce

Describe the bug
After upgrading from apm 0.12.2 to 0.12.4, I have the below error.

To Reproduce

  1. Have an apm.yml listing targets like:

    targets:
      - agent-skills
      - claude
      - copilot
      - opencode
  2. Run apm install

  3. Observe error and log message stating agent-skills in the Valid targets list

    (.venv)$ apm install
    [>] Installing dependencies from apm.yml...
    [x] [x] Unknown target '['agent-skills''
    
    Valid targets: agent-skills, claude, codex, copilot, cursor, gemini, opencode, windsurf
    
    Fix with one of:
    
      apm targets                            # see all supported harnesses
      apm install <pkg> --target agent-skills
      apm install <pkg> --dry-run
    
    Or declare in apm.yml:
    
      targets:
        - agent-skills
    [!] Install interrupted after 0.6s.
  4. Run apm targets as error message suggests

    (.venv)$ apm targets
      TARGET       STATUS     SOURCE                                   DEPLOY DIR
      ------------ ---------- ---------------------------------------- ----------
      claude       active     .claude/                                 .claude/
      copilot      inactive   needs .github/copilot-instructions.md    .github/
      cursor       inactive   needs .cursor/                           .cursor/
      codex        inactive   needs .codex/                            .codex/
      gemini       inactive   needs GEMINI.md                          .gemini/
      opencode     active     .opencode/                               .opencode/
      windsurf     inactive   needs .windsurf/                         .windsurf/
  5. Observe agent-skills is not present in the output, despite being present in the apm install output.
    Expected behavior

  • No error, as agent-skills was previously not producing one, and the error message suggests it is a valid target.
  • agent-skills is listed by apm targets.

Environment (please complete the following information):

  • OS: macOS
  • Python Version: 3.14.3 (note, this is not a pre-release version as was flagged in a different bug report; it was released in Feb 2026)
  • APM Version: 0.12.4
  • VSCode Version (if relevant): n/a

Logs
Full log:

(.venv)$ apm --version
Agent Package Manager (APM) CLI version 0.12.4 (6aceef7)

pmounce at pmounce-Mac15,7 in ~/src/egen/awesome2 (pete/mise-bump)
(.venv)$ apm install
[>] Installing dependencies from apm.yml...
[x] [x] Unknown target '['agent-skills''

Valid targets: agent-skills, claude, codex, copilot, cursor, gemini, opencode, windsurf

Fix with one of:

  apm targets                            # see all supported harnesses
  apm install <pkg> --target agent-skills
  apm install <pkg> --dry-run

Or declare in apm.yml:

  targets:
    - agent-skills
[!] Install interrupted after 0.6s.

pmounce at pmounce-Mac15,7 in ~/src/egen/awesome2 (pete/mise-bump)
(.venv)$ apm targets
  TARGET       STATUS     SOURCE                                   DEPLOY DIR
  ------------ ---------- ---------------------------------------- ----------
  claude       active     .claude/                                 .claude/
  copilot      inactive   needs .github/copilot-instructions.md    .github/
  cursor       inactive   needs .cursor/                           .cursor/
  codex        inactive   needs .codex/                            .codex/
  gemini       inactive   needs GEMINI.md                          .gemini/
  opencode     active     .opencode/                               .opencode/
  windsurf     inactive   needs .windsurf/                         .windsurf/

Additional context
apm.yml:

---
name: foo
version: 0.0.1
description: Foo
author: Peter Mounce
dependencies:
  apm:
    - ./docs-as-code/content-root/standards/documenting/skills/docs-authoring
    - ./docs-as-code/content-root/standards/style-guides/skills/bash-authoring
    - ./docs-as-code/content-root/standards/style-guides/skills/code-authoring
    - ./docs-as-code/content-root/standards/style-guides/skills/git-commit
    - ./docs-as-code/content-root/standards/style-guides/skills/python-authoring
    - ./docs-as-code/content-root/standards/style-guides/skills/utility-scripts
    - Dicklesworthstone/beads_rust/.claude/skills/br#5cad749f1ed13a75e76bc95b776e47443b16c9bb
    - JuliusBrussee/caveman#ef6050c5e1848b6880ff47c32ade1a608a64f85e
    - microsoft/apm/packages/apm-guide#2b1fb6bfd42da6d7bcd14efdb0d87c5de7acc878
  mcp: []
scripts: {}
target:
  - agent-skills
  - claude
  - copilot
  - opencode

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething does not work as documented.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions