docs(kyberforge): research apm prompts primitive and prompt-file standards

Add prompt-target-mapping and prompt-gotchas for the apm .prompt.md
primitive from the published apm docs, correct the preserved-key set in
prompt-primitive-schema, and add prompt-standards research covering
Copilot/VS Code prompt files, Claude Code commands, Prompty, Dotprompt
and MCP prompts. No vendor-neutral prompt-file standard was found.

Refs: #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
This commit is contained in:
Defame1297andClaude Sonnet 5.5 committed 2026-10-15 07:29:52 +00:00
1 parent 7707992a1d
commit f5a260e85c
11 files changed
+346

No files matched your search

@@ -0,0 +1,51 @@
---
topic: prompt-gotchas
source_keys:
- apm-docs-author-prompts
- apm-docs-llms-full
- apm-docs-producer-ramp
- apm-docs-cli-run
- apm-docs-cli-compile
---
## What this covers
Constraints that surprise a prompt author, taken from the published apm docs. None of it was exercised against the installed binary. Items marked "doc conflict" have two statements in the docs that disagree and need an experiment before a skill asserts either.
## Silent or quiet loss
- Keys outside the preserved set are dropped on every command target except Copilot. The only signal is a diagnostic at install time; there is no failure and no flag to keep them.
- Input names must match `[A-Za-z][\w-]{0,63}`. A non-matching name is rejected with a warning and never reaches the command frontmatter, so that one argument silently disappears while the install succeeds.
- Codex receives nothing. A workflow that must reach Codex has to ship as a skill.
- A package whose `type:` does not cover prompts may deploy none. Doc conflict: the manifest field reference says `type` constrains what `.apm/` may contain, while the spec says it is advisory in v0.1 and consumers must ignore it.
## Compile versus install
`apm compile` ignores prompts. It handles instructions and root context files. Prompts are deployed by `apm install`, and parameter binding happens only in `apm run`. Consequences: a prompts-only package compiled for `claude` yields no output; `apm compile --validate` checks primitive frontmatter and structure without writing, but the docs do not say whether it inspects individual prompt files, and no prompt validation class was found in the code reading. Whether a plain `apm compile` fails on a package with no instructions is not addressed for prompts-only packages. Doc conflict: one passage says compile and run both compile prompts and another says prompts are never compiled.
## Identity and collisions
- The base filename is the command name on every target, so it must be valid and unique as a slash command and as a Copilot prompt filename at once.
- Two prompts with the same base name, one under `.apm/prompts/` and one at the package root, collide. The later writer wins on Copilot and the transform fails on Claude and Cursor.
- Root-level `*.prompt.md` discovery is documented both as supported for backward compatibility and as not discovered by install. Doc conflict; prefer `.apm/prompts/` and do not rely on either.
- A virtual package reference ending in `.prompt.md` is classified by extension only.
- Symlinked prompt files are rejected by `apm preview` and `apm run`, and plugin packing flags symlinks under the prompts directory.
## Ownership, overwrite and cleanup
No prompt-specific rule exists; only generic install rules were found. Untracked files already on disk are skipped with a warning unless `--force` is used. Files a package previously deployed and no longer produces are removed on the next install. Narrowing `targets:` removes only unchanged files apm owns, and files placed by hand inside a target directory remain. Uninstall deletes only files recorded in the lockfile `deployed_files` manifest. Local primitives override dependency primitives of the same name and type; the first declared dependency wins between dependencies.
## Security scanning
The install-time scan inspects every primitive for hidden Unicode and blocks critical findings unless forced. `apm compile` and `apm run` do not re-scan, so a hand-edited prompt needs `apm audit`. A proposed audit of deployed prompts decodes only documented prompt fields.
## apm run specifics
Parameters are interpolated into any `.prompt.md` the script references and are not exported as shell variables. A typo in a script name can fall through to discovery and then to a virtual-package install attempt. The docs do not say what happens when a `${input:...}` placeholder has no `--param`. The `apm run` command is marked experimental. The spec describes script substitution with `{key}` placeholders instead of `${input:name}`; this divergence is unresolved.
## Documentation inconsistencies to keep out of the skill
- Whether `apm init` scaffolds `.apm/prompts/`.
- Whether Copilot prompts deploy at user scope.
- The `$name` form used in one example versus `${input:name}` in the prompts page; the transformer rewrite explains it, but the example does not say so.
- `mode` and `mcp` appear in some example frontmatter but are not in the preserved set.
@@ -3,8 +3,12 @@ topic: prompt-primitive-schema
source_keys:
- context7-microsoft-apm
- apm-github-repo
- apm-docs-author-prompts
- apm-docs-llms-full
---
Per-target output, key survival and the doc inconsistencies are in `prompt-target-mapping.md` and `prompt-gotchas.md`. The published "Author a prompt" page lists five preserved keys: `description`, `input`, `allowed-tools`, `model`, `argument-hint`. Where the section below says four keys are preserved, read that as four plus `input`, which is consumed into `arguments:` on Claude. Both the page and the installed 0.28.0 source agree on this set.
## File location, naming, and frontmatter
`.apm/prompts/*.prompt.md` (also discovered at the package root). Filename minus the `.prompt.md` suffix becomes the prompt's identity — used verbatim as the Copilot filename and, after transformation, as the Claude command name. No required-extension ambiguity: it is genuinely `.prompt.md`, confirmed both in docs and in APM's own `PromptIntegrator.find_prompt_files` (`*.prompt.md`) and `CommandIntegrator.find_prompt_files` (same glob).
@@ -0,0 +1,63 @@
---
topic: prompt-target-mapping
source_keys:
- apm-docs-author-prompts
- apm-docs-llms-full
- apm-docs-producer-ramp
- apm-github-repo
---
## Scope and confidence
This file maps one `.apm/prompts/<name>.prompt.md` source to what each apm target receives. It combines the published apm docs (the "Author a prompt" page, the full docs dump and the producer guide) with the code-level reading already recorded in `prompt-primitive-schema.md`. Nothing here was verified by running apm 0.28.0; unlike the instructions research there are no install experiments behind it. Doc statements that contradict each other are listed in `prompt-gotchas.md` rather than resolved here.
## Output per target
| Target | Output path | Form |
|---|---|---|
| copilot | `.github/prompts/<name>.prompt.md` | Verbatim copy, markdown links resolved |
| claude | `.claude/commands/<name>.md` | Reconstructed slash command |
| cursor | `.cursor/commands/<name>.md` | Shared command transformer (same as Claude) |
| opencode | `.opencode/commands/<name>.md` | Shared command transformer |
| grok-build | `.grok/commands/<name>.md` | Grok command |
| gemini | `.gemini/commands/<name>.toml` | TOML command, `$ARGUMENTS` becomes `{{args}}` |
| windsurf | `.windsurf/workflows/<name>.md` | Workflow file |
| copilot-app | row in the Copilot App workflows store | Experimental, only for workflow-shaped prompts |
| codex | none | No prompts or commands primitive |
The published compatibility matrix labels Copilot "Native", the command-style targets "Compiled", and Codex, Kiro and Hermes "Unsupported". The published page lists seven deploying targets and Codex as the only explicit "none"; antigravity is described as compiled in the matrix, while the code reading found no commands primitive for it. Treat antigravity, kiro and any other target as unknown until tested.
## Slot terminology
The docs call the source primitive "prompts" and the per-target surface "commands". Claude and Cursor have no `prompts` slot in their target profile, so a package that ships only prompts and is compiled for `claude` produces zero output from `apm compile`. Prompts reach Claude only through `apm install`, which routes them into the commands slot. There is no `.apm/commands/` source directory; "command" is purely the compiled name for the same file.
## Frontmatter survival by target
Five keys are preserved by the cross-tool command transform: `description`, `input`, `allowed-tools`, `model`, `argument-hint`. The published pages list this set as five keys including `input`; the earlier research digest listed four and treated `input` as input to `arguments` only, which is a wording difference rather than a behavioural one.
| Key | Copilot | Claude, Cursor | Other command targets |
|---|---|---|---|
| `description` | kept | kept | kept |
| `input` | kept as written | becomes `arguments:`, and `argument-hint` is derived if unset | per-target; not individually documented |
| `allowed-tools` | kept, but Copilot ignores it | honored | not documented |
| `model` | kept | honored | not documented |
| `argument-hint` | kept | kept, or derived from `input` | not documented |
| any other key (`author`, `mcp`, `parameters`) | kept | dropped with an install diagnostic | dropped with an install diagnostic |
The Copilot copy is a byte copy, so every key survives even where the Copilot runtime ignores it. The VS Code prompt-file format uses `agent`, `tools` and `name` keys that apm does not list as preserved, so a prompt written for Copilot with those keys works on Copilot only.
## Body placeholders
The apm body syntax is `${input:name}`. The transformer rewrites it to the target's native form, for example `$name` on Claude. On Gemini the argument token is `{{args}}`. Copilot receives the text unchanged, and VS Code itself understands `${input:name}` and `${input:name:placeholder}`.
## Workflow-shaped prompts
Only the top-level keys `interval`, `schedule_hour` and `schedule_day` mark a prompt as a Copilot App workflow. The other workflow keys (`name`, `mode`, `model`, `reasoning_effort`) do not by themselves. A plain prompt pointed at `copilot-app` is a hard error, and workflow-shaped prompts are skipped by the command integrator, so they never appear as slash commands.
## Invocation
Copilot uses its prompt picker. Claude, Cursor, OpenCode and Gemini use `/<name>` followed by arguments. Windsurf uses the workflows menu. Consumers can also bypass the picker through an `apm.yml` script and `apm run <script> --param key=value`, which compiles the prompt into `.apm/compiled/<name>.txt` and substitutes `${input:name}` before running the shell command.
## Scope
The docs say Copilot prompts, agents, skills, hooks and canvas remain project-scope only, while another passage says user-scope prompts deploy to the Copilot user prompts directory. This is unreconciled and should be tested before the skill makes any user-scope claim.
@@ -50,3 +50,38 @@ Note: `releasing.md`'s `--check-clean`/`--check-versions` scope, `apm pack` exit
- **Description:** The installed apm-cli 0.28.0 package (source under the pipx venv for apm-cli) read for integrator, target-table and pattern-parsing code, plus throwaway install, compile and audit experiments run in a scratchpad outside the repo to confirm validation severity, unquoted-glob handling, discovery asymmetry, dedup, overwrite and exit-code behaviour.
- **Contributing files:** instructions-primitive-schema.md, instructions-target-mapping.md, instructions-gotchas.md
- **Status:** `extracted`
## apm-docs-author-prompts
- **URL:** https://microsoft.github.io/apm/producer/author-primitives/prompts/
- **Description:** Official "Author a prompt" page: file layout, the five preserved frontmatter keys, body conventions, per-target output paths, invocation, and the pitfalls list (dropped keys, input-name regex, Codex, collisions, hidden-Unicode scan).
- **Contributing files:** prompt-primitive-schema.md, prompt-target-mapping.md, prompt-gotchas.md
- **Status:** `extracted`
## apm-docs-llms-full
- **URL:** https://microsoft.github.io/apm/llms-full.txt
- **Description:** The complete apm documentation dump (about 2.1M characters) read in chunks through a summarising fetch for prompt-related content: primitive catalogue, manifest `type` field, `apm run` parameters, target matrix, install ownership and stale-cleanup rules, spec requirements. Lossy; quoted strings are not byte-verified.
- **Contributing files:** prompt-primitive-schema.md, prompt-target-mapping.md, prompt-gotchas.md
- **Status:** `extracted`
## apm-docs-producer-ramp
- **URL:** https://microsoft.github.io/apm/_llms-txt/producer-ramp.txt
- **Description:** Producer-ramp documentation bundle covering prompt authoring, dual-surface naming, the verify loop (`apm compile --validate`, `--dry-run`, `apm audit`) and marketplace publishing. The fetch reported truncating a middle stretch.
- **Contributing files:** prompt-target-mapping.md, prompt-gotchas.md
- **Status:** `extracted`
## apm-docs-cli-run
- **URL:** https://microsoft.github.io/apm/reference/cli/run/
- **Description:** `apm run` reference: script resolution, prompt discovery fallback, compilation to `.apm/compiled`, `--param` substitution, exit codes. Marked experimental.
- **Contributing files:** prompt-gotchas.md
- **Status:** `extracted`
## apm-docs-cli-compile
- **URL:** https://microsoft.github.io/apm/reference/cli/compile/
- **Description:** `apm compile` reference, read for what it does with prompts (ignores them) and what `--validate` checks. Does not address prompts-only packages.
- **Contributing files:** prompt-gotchas.md
- **Status:** `extracted`
@@ -0,0 +1,25 @@
---
topic: claude-code-commands
source_keys:
- claude-code-slash-commands
---
## Status
Custom commands have been merged into skills. A file at `.claude/commands/deploy.md` and a skill at `.claude/skills/deploy/SKILL.md` both create `/deploy` and behave the same. Command files are described as the older format that still works; the docs recommend skills for new work. Nothing is deprecated. This is the format an apm prompt becomes on the Claude target.
## Frontmatter
A command file accepts the same fields as a skill except `name` and `paths`. Relevant fields: `description` (the first non-empty body line is used if absent), `argument-hint`, `arguments` (named positional arguments, as a space-separated string or YAML list), `allowed-tools` (space or comma separated, or a list), `model`, `disable-model-invocation`, `user-invocable`, `effort`, `context`, `agent`, `hooks`, `shell` and others. Unrecognised fields are ignored without an error. Malformed YAML loads the body with empty metadata.
## Arguments and substitution
`$ARGUMENTS` is the whole argument string, `$ARGUMENTS[N]` and `$N` are zero-based positional arguments (`$0` is the first), and `$name` is a named argument declared in `arguments`. This answers the open question in the apm research: Claude Code does honor an `arguments:` list with `$name` substitution, alongside `$ARGUMENTS` and zero-based `$N`. An unmatched named placeholder becomes empty and an unmatched indexed placeholder stays literal. If no placeholder consumes the arguments, the text `ARGUMENTS: <value>` is appended. Literal dollar signs are escaped with a backslash. Inline shell injection with an exclamation-mark backtick form runs commands through permission rules and aborts the invocation on failure.
## Naming and precedence
Files in subdirectories get a colon-joined name, so `frontend/component.md` is `/frontend:component`. A skill beats a command file of the same name. Enterprise beats personal and personal beats project. Plugin skills are namespaced. The `anthropic-skills` name is reserved.
## Standards relationship
The page links to the agentskills.io evaluation guide, which shows Claude Code skills follow that open standard. Nothing on the page suggests command files are an open standard; treat `.claude/commands/` as Claude Code specific.
@@ -0,0 +1,21 @@
---
topic: dotprompt
source_keys:
- dotprompt-site
---
## What it is
Dotprompt is Google's executable prompt template format: a `.prompt` file with YAML frontmatter and a Handlebars body extended with generative-AI helpers. The Firebase Genkit library is the reference consumer, loading prompts from a `prompts` directory by base name. There is another unrelated project that also uses the name, so confirm which one a source means.
## Confirmed schema
Only a few fields were confirmed from the getting-started example: `model`, `input.schema`, `output.format` and `output.schema`, with schemas written in a compact Picoschema-style syntax. The helpers, partials, variants and config field names were not confirmed because the full spec in the repository was not read. Treat everything beyond that list as unverified.
## Governance and adoption
Apache-2.0, maintained by Google and Firebase, with implementations in JavaScript, Python, Go, Rust and Java, editor plugins and a CLI. About 570 stars at fetch time. No standards body and no spec version were found, and Genkit is the only confirmed consumer. The implementors page is a stub marked under construction.
## Relevance
A template-and-schema format for application code calling models, not for coding-agent slash commands. Not a candidate to replace `.prompt.md`.
@@ -0,0 +1,21 @@
---
topic: mcp-prompts
source_keys:
- mcp-prompts-spec
---
## Layer
MCP prompts are a server-to-client protocol primitive, not a file format. A server declares the `prompts` capability and clients call `prompts/list` and `prompts/get` with named string arguments. The latest revision at fetch time was dated 2026-07-28. There is no on-disk location, naming convention or frontmatter, and storage is out of scope.
## Shape
A prompt definition has `name`, optional `title`, `description` and `icons`, and an `arguments` list whose entries carry `name`, `description` and `required`. `prompts/get` returns `messages`, each with a `user` or `assistant` role and a content item (text, image, audio, resource link or embedded resource). There is no system role and no template syntax: the server substitutes arguments and returns finished messages. There is no field for allowed tools, model or invocation control.
## Interaction model
Prompts are described as user-controlled, meaning the user explicitly selects one, for example as a slash command, though the protocol mandates no UI. Errors use JSON-RPC codes, and implementations must validate inputs and outputs.
## Relevance
MCP prompts and apm prompts solve different problems: one delivers prompt content at runtime from a server, the other authors a static file that is compiled into each tool's command directory. They are not substitutes. Whether a given client surfaces MCP prompts as slash commands was not confirmed from the spec page.
@@ -0,0 +1,37 @@
---
topic: overview
source_keys:
- awesome-agent-standards
- vscode-prompt-files
- prompty-site
- dotprompt-site
- claude-code-slash-commands
- mcp-prompts-spec
---
## Verdict
No vendor-neutral, versioned open standard for prompt files exists in the way agentskills.io exists for skills. What exists is a set of overlapping, vendor-owned formats that differ in file extension, frontmatter and templating, plus one protocol primitive that sits at a different layer. The one list that tries to index agent standards names no prompt-file standard with a neutral steward. The neutral foundation it does record covers AGENTS.md (project context), and SKILL.md is tied to the agentskills.io spec; neither is a prompt format.
## The candidates
| Format | Extension and location | Owner | Open spec? | Who consumes it |
|---|---|---|---|---|
| Copilot / VS Code prompt files | `.prompt.md`, `.github/prompts/` | Microsoft (VS Code, GitHub Copilot) | Documented feature, no separate spec | VS Code local sessions, Copilot; apm treats it as the native form |
| Claude Code command files | `.md`, `.claude/commands/` | Anthropic | Documented feature; being folded into skills | Claude Code |
| Prompty | `.prompty` | Microsoft, MIT licence | Published spec with fixtures, no standards body, no tagged spec version found | Microsoft runtimes and a VS Code extension; no coding-agent consumers found |
| Dotprompt | `.prompt` | Google / Firebase, Apache-2.0 | Repo-hosted spec, no standards body | Genkit (reference consumer); several language implementations |
| MCP prompts | none, JSON-RPC `prompts/list` and `prompts/get` | MCP project | Normative protocol spec | Any MCP client; surfaced as slash commands in some |
| Generic `.prompt` | informal | none | No | Promptfoo parses it natively |
## Why none of these is the agentskills.io equivalent
agentskills.io defines one directory-and-frontmatter format that many agent tools implement identically. For prompts the formats do not converge. Copilot and Claude Code both use Markdown with YAML frontmatter, but the field sets diverge (`agent`, `tools` and `name` on one side; `allowed-tools`, `arguments` and `disable-model-invocation` on the other) and the variable syntax differs (`${input:x}` versus `$x`, `$ARGUMENTS` and `$0`). Prompty and Dotprompt are execution formats that carry model configuration, typed input and output schemas and templating, which makes them a different kind of artifact from an instruction-only slash command. MCP prompts are a delivery protocol with no on-disk format.
## What this means for apm and prompt-author
apm's `.prompt.md` is the only cross-target authoring surface in play, and it adopts the Copilot file form as the source and transforms it per target. That makes apm's own docs, not an external standard, the authoritative contract for a prompt-author skill. The skill should not cite an open standard for prompts. It can cite Copilot's format as the native source form and Claude Code's command format as the main transform target. Where the Claude Code docs now steer new work towards skills, the skill should say a prompt is the right primitive when the user invokes the workflow on demand and a skill is the right one when the agent should discover it.
## Maturity signals worth tracking
Prompty and Dotprompt are active but single-vendor. If a neutral body adopts a prompt format, the likely routes are the Agentic AI Foundation, which now stewards AGENTS.md, or the agentskills.io community extending its spec. Neither has been observed doing so.
@@ -0,0 +1,21 @@
---
topic: prompty
source_keys:
- prompty-site
---
## What it is
Prompty is a Markdown file format for LLM prompts: YAML frontmatter plus a Markdown body in a single `.prompty` file. It is an execution-oriented format with a Render, Parse, Execute, Process pipeline and a v2 agentic turn runtime. Version 1 and version 2 documentation both exist, so check which a source describes.
## Frontmatter
Top-level fields include `name`, `displayName`, `description`, `metadata`, `model` (id, provider, apiType, connection, options), `inputs` and `outputs` (typed properties), `tools` (function, MCP, OpenAPI or custom) and `template` (format defaulting to `jinja2`). Unknown top-level properties must not raise an error. Frontmatter strings support `${env:VAR}` and `${file:path}` references, with path traversal and symlink escapes rejected by default. Body role markers are `system:`, `user:` and `assistant:`.
## Governance and adoption
MIT licence, Microsoft-sponsored, roughly 1.3k stars, with runtimes in Python, TypeScript, C#, Rust, Java, Go and Swift. The schema is authored in TypeSpec and the spec treats its test fixtures as normative. No standards body, no multi-vendor governance and no tagged spec version were found. The awesome-agent-standards list claims use by Promptflow, LangChain and Semantic Kernel; that is unverified here. No coding agent was found consuming `.prompty` files.
## Relevance
Prompty carries model configuration, typed I/O and tools, which a `.prompt.md` slash command does not. It is not interchangeable with apm prompts and apm has no target for it.
@@ -0,0 +1,43 @@
# Sources
## awesome-agent-standards
- **URL:** https://github.com/GuilhermeAlbert/awesome-agent-standards
- **Description:** Curated index of agent standards, read to see whether any vendor-neutral prompt-file standard is recorded. Fetched through a summarising model, so lossy; its claims about Prompty adoption and AGENTS.md governance are unverified.
- **Contributing files:** overview.md, prompty.md
- **Status:** `extracted`
## vscode-prompt-files
- **URL:** https://code.visualstudio.com/docs/agent-customization/prompt-files
- **Description:** VS Code documentation for `.prompt.md` prompt files: location, frontmatter fields, input variables, invocation and limits. Page dated 10/14/2026; fetched through a summarising model.
- **Contributing files:** overview.md, vscode-copilot-prompt-files.md
- **Status:** `extracted`
## prompty-site
- **URL:** https://prompty.ai
- **Description:** Prompty home page, core concepts, file-format specification and reference, plus the GitHub repository root. Other spec sections and the Jinja grammar were not read.
- **Contributing files:** overview.md, prompty.md
- **Status:** `extracted`
## dotprompt-site
- **URL:** https://google.github.io/dotprompt/
- **Description:** Google Dotprompt site (home, getting started, implementors) and the repository README. The full spec folder was not read, so schema detail is thin.
- **Contributing files:** overview.md, dotprompt.md
- **Status:** `extracted`
## claude-code-slash-commands
- **URL:** https://code.claude.com/docs/en/slash-commands
- **Description:** Claude Code "Custom slash commands and skills" page: command files merged into skills, shared frontmatter, argument substitution, naming and precedence. Version markers seen up to v2.1.280.
- **Contributing files:** overview.md, claude-code-commands.md
- **Status:** `extracted`
## mcp-prompts-spec
- **URL:** https://modelcontextprotocol.io/specification/latest/server/prompts
- **Description:** MCP specification page for server prompts (revision 2026-07-28): capability, list and get messages, prompt and argument types, content types and errors.
- **Contributing files:** overview.md, mcp-prompts.md
- **Status:** `extracted`
@@ -0,0 +1,25 @@
---
topic: vscode-copilot-prompt-files
source_keys:
- vscode-prompt-files
---
## Role
This is the native format apm copies verbatim for Copilot, so it is the closest thing to a source-of-truth for the `.prompt.md` shape. It is a documented feature of VS Code and GitHub Copilot, not a standalone specification.
## Location and naming
Files use the `.prompt.md` extension. Workspace prompts live in `.github/prompts`; user-profile prompts live in VS Code user data, per profile, and are available across workspaces. Monorepo parent-root discovery is opt-in through a setting. The command name defaults to the file name and can be overridden with a `name` field.
## Frontmatter
All fields are optional: `description`, `name`, `argument-hint`, `agent` (`ask`, `agent`, `plan` or a custom agent name), `model` and `tools`. Setting `tools` silently changes the default agent to `agent`. Tools that are not available are ignored without an error. The older `mode` field is not mentioned on the current page, so whether it is still accepted is unconfirmed. Tool precedence runs from the prompt file to the referenced custom agent to the selected agent's defaults.
## Body syntax
User input uses `${input:variableName}` or `${input:variableName:placeholder}`. `${selection}` is mentioned; a `${file}` variable is not confirmed. Tool references use `#tool:<name>`, and file references use Markdown links or `#file:`, resolved relative to the prompt file. Invocation arguments can be passed as `/name key=value`, but how they bind to variables is not documented.
## Limits worth knowing
Prompt files work only in local harness sessions. For other harnesses the page points to agent skills and says existing prompt files can be converted to skills, which is the same direction Claude Code takes. No schema or formal validation is described, and the customization editor is in preview.