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
6.7 KiB
6.7 KiB
Sources
context7-microsoft-apm
- URL: context7:/microsoft/apm
- Description: Microsoft APM (Agent Package Manager) — open-source dependency manager for AI agent configuration (skills, prompts, instructions, agents, hooks, MCP/LSP deps), applying a declare/lock/install/audit workflow.
- Contributing files: overview.md, installation.md, configuration.md, cli-reference.md, examples.md, troubleshooting.md, testing-and-validation.md, marketplace-and-registries.md, monorepo-and-repo-shapes.md, agent-primitive-schema.md, prompt-primitive-schema.md, instructions-primitive-schema.md, hooks-primitive-schema.md, releasing.md
- Status:
extracted
apm-github-repo
- URL: https://github.com/microsoft/apm
- Description: APM's own Python source (
src/apm_cli/) read directly for schema/compile-mapping ground truth where Context7's doc snippets were thin — specificallyprimitives/models.pyandprimitives/discovery.py(primitive dataclasses and discovery globs),integration/prompt_integrator.py,integration/command_integrator.py,integration/instruction_integrator.py,integration/hook_integrator.py,integration/hook_native_formats.py,integration/hook_ir.py,integration/_hook_dropped_targets.py,integration/targets.py(KNOWN_TARGETS/PrimitiveMappingper-target deploy config),compilation/claude_formatter.pyandcompilation/distributed_compiler.py(instruction fold-in to CLAUDE.md/AGENTS.md), andmodels/validation.py. - Contributing files: agent-primitive-schema.md, prompt-primitive-schema.md, instructions-primitive-schema.md, hooks-primitive-schema.md, releasing.md
- Status:
extracted
Note: releasing.md's --check-clean/--check-versions scope, apm pack exit-code semantics, and the .apm/-vs-root-flat-dir mutual exclusivity referenced there were additionally cross-checked directly against apm_cli/bundle/plugin_exporter.py, apm_cli/commands/pack.py, and apm_cli/marketplace/drift_check.py in the installed apm-cli 0.28.0 package (/root/.local/pipx/venvs/apm-cli/), not just Context7 doc snippets — confirmed by a live apm pack --format plugin run inside plugins/bin that reproduced the documented [!] Skipping root-level skills/ because .apm/ is present warning.
apm-docs-site
- URL: https://microsoft.github.io/apm/
- Description: Official apm documentation site, specifically the instructions-and-agents authoring page and the targets and compile pages: frontmatter requirements, unconditional-rule wording, per-target deploy paths, compile behaviour and flags. Fetched through subagent summaries, so lossy.
- Contributing files: instructions-primitive-schema.md, instructions-target-mapping.md, instructions-gotchas.md
- Status:
extracted
claude-code-memory-docs
- URL: https://code.claude.com/docs/en/memory
- Description: Claude Code memory documentation:
.claude/rules/loading, thepathsfrontmatter field (only field read, invalid YAML ignored), AGENTS.md versus CLAUDE.md precedence, size guidance. - Contributing files: instructions-primitive-schema.md, instructions-target-mapping.md, instructions-gotchas.md
- Status:
extracted
github-copilot-custom-instructions-docs
- URL: https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions
- Description: GitHub Copilot repository custom-instructions documentation:
.github/instructions/*.instructions.md, theapplyToandexcludeAgentfrontmatter, the separate repo-widecopilot-instructions.md, where path-specific files apply. - Contributing files: instructions-target-mapping.md, instructions-gotchas.md
- Status:
extracted
cursor-rules-docs
- URL: https://cursor.com/docs/context/rules
- Description: Cursor project rules documentation:
.mdcrequirement,description,globsandalwaysApplyfrontmatter, rule types (always, auto-attached, apply intelligently, manual), size guidance. - Contributing files: instructions-target-mapping.md, instructions-gotchas.md
- Status:
extracted
apm-cli-0-28-0-experiments
- URL: https://pypi.org/project/apm-cli/0.28.0/
- 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
typefield,apm runparameters, 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 runreference: script resolution, prompt discovery fallback, compilation to.apm/compiled,--paramsubstitution, 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 compilereference, read for what it does with prompts (ignores them) and what--validatechecks. Does not address prompts-only packages. - Contributing files: prompt-gotchas.md
- Status:
extracted