Skip to content

[FEATURE] Support for github agentic workflows #93

Closed

Description

Feature Request: Support for GitHub Agentic Workflow Files as a Primitive Type

Is your feature request related to a problem? Please describe.

When trying to install or reference a GitHub Copilot agentic workflow as an APM dependency, the CLI rejects it with:

Individual files must end with one of: .prompt.md, .instructions.md, .chatmode.md, .agent.md. For subdirectory packages, the path should not have a file extension.

GitHub agentic workflows are a distinct primitive type — they have their own YAML frontmatter schema (on:, engine:, tools:, safe-outputs:, timeout-minutes:) and are stored under .github/ as part of a project's CI/automation setup. There is currently no way to share or reuse them as APM dependencies.

Describe the solution you'd like

Add support for a .workflow.md primitive type (or a workflows/ subdirectory convention) so that GitHub Copilot agentic workflow files can be declared as APM dependencies, installed into .github/workflows/, and resolved transitively like any other primitive.

Describe alternatives you've considered

  • Subdirectory packaging (no file extension) — works around the validation error but loses the single-file install ergonomics every other primitive type supports, and requires wrapping a single file in its own package.
  • Rename to .prompt.md — misrepresents the primitive type, breaks GitHub's own workflow discovery, and conflates two very different concepts.
  • Manual copy — defeats the purpose of APM entirely; workflows can't be kept in sync across projects.

Additional context

These workflows are becoming a standard part of AI-native project setups — alongside agents, prompts, and instructions — as teams adopt Copilot coding agents for automation tasks like release management, PR triage, and changelog generation. First-class support in APM would make them properly distributable and reusable across teams and repositories, completing the set of agentic primitives APM manages.

Activity

  1. added
    enhancement
    on Feb 20, 2026
  2. ryanfk commented on Feb 20, 2026

    @ryanfk

    Related: #94 — requests the same pattern for Claude Code, where apm compile --target claude should deploy agents to .claude/agents/ and skills to .claude/skills/ as discrete files, not merge them into CLAUDE.md.

    Both issues share a common theme: APM's compile step needs to understand the full set of primitive types each target platform consumes and place them in the correct directories. See the cross-reference table on #94.

  3. danielmeppiel commented on Feb 23, 2026

    @danielmeppiel
    Collaborator

    Thanks for the detailed request Chris Cheshire (@chris-cheshire).

    We're not adding .workflow.md as a primitive type right now. The core reasons:

    1. Different domain. APM manages portable agent configuration (instructions, prompts, agents, skills) — things that tell agents how to behave, across any IDE/provider. Agentic Workflows are CI/CD automation infrastructure (schedules, triggers, permissions, sandboxing) that only run in GitHub Actions.
    2. Portability. Agentic Workflows are GitHub-specific by design — this would be APM's first vendor-locked primitive.
    3. Tooling overlap. gh aw already has its own CLI and lock file. Two tools managing the same files gets messy fast.

    What works today: subdirectory packages can include arbitrary files, so you can ship workflows alongside primitives in a package as a workaround if you seek convenience.

    Ideally, GH AW can leverage agentic primitives to define agentic workflows. Rather than APM absorbing workflows, we'd like to explore contributing to gh-aw so that agentic workflows can reference APM primitives instead of hardcoding prompts inline. Imagine a workflow that pulls its prompt from a shared, versioned APM package rather than duplicating it in the .workflow.md body. That keeps each tool doing what it's good at — APM manages reusable primitives, gh-aw manages execution infrastructure — and the integration flows in the natural direction.

  4. added and removed
    enhancement
    on Feb 23, 2026
  5. chris-cheshire commented on Feb 24, 2026

    @chris-cheshire
    Author

    Hi Daniel Meppiel (@danielmeppiel) thanks for your detailed feeback. Broadly agree with you here and I really like the idea of using APM to build out agentic workflows.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions