Repository navigation
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
ryanfk commentedon Feb 20, 2026
Related: #94 — requests the same pattern for Claude Code, where
apm compile --target claudeshould deploy agents to.claude/agents/and skills to.claude/skills/as discrete files, not merge them intoCLAUDE.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.
danielmeppiel commentedon Feb 23, 2026
Thanks for the detailed request Chris Cheshire (@chris-cheshire).
We're not adding
.workflow.mdas a primitive type right now. The core reasons:gh awalready 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.
chris-cheshire commentedon Feb 24, 2026
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.