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

@@ -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`