Files
Holocron/plugins/kyberforge/.apm/skills/prompt-author/SKILL.md
T
Defame1297andClaude Opus 5.5 e6d680a4c5 fix(kyberforge): apply the #273 review to the apm 0.39.3 refresh
- apm-workflow and apm-orchestrate always pass --project to uv run,
  because uv run outside the project silently runs the PATH apm. The
  agent now checks that the reported version equals the pin, or is
  0.39.2 or later where nothing pins it, not only that it exits 0.
- A pin is a quoted apm-cli or apm_cli requirement plus a uv.lock,
  matching the SessionStart hook, in apm-install, uv-pin.md and
  apm-workflow.
- uv-pin.md spells the hook's exact invocation and its environment
  check, and says scripts always pass --project.
- instructions-author and its research note: a Claude rule leaves
  .claude/rules/ only when compile actually wrote it into AGENTS.md;
  install-then-compile dedups it.
- prompt-author: Kiro strips every key with a warning, not silently.
- Record the 0.39.3 executables findings in approvals-and-executables.md
  and the output-profile and type-routing facts in cli-reference.md, and
  cite those digests.
- forge's routing table notes that Kiro gets the body only.

Refs: #273

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-12-02 12:35:19 +00:00

3.4 KiB

name, description, compatibility, allowed-tools, metadata
name description compatibility allowed-tools metadata
prompt-author Use when creating or revising an apm prompt file (`.apm/prompts/*.prompt.md`). Not read-only review -> `factory-audit`. Not skills -> `skill-author`. Not agents -> `agent-author`. Not instructions -> `instructions-author`. Requires the apm CLI, 0.39.2 or later; behaviour verified against apm 0.39.3. Bash Read Write Edit
version category source_keys
0.1.1 factory
apm-docs-author-prompts
apm-docs-llms-full
apm-docs-producer-ramp
apm-github-repo
apm-cli-0-39-3-experiments
apm-v0-39-3-source

Gotchas

  • apm compile never reads prompt files, and --validate ignores them even when malformed. A prompt file is verified only by a throwaway apm install.
  • Unsupported frontmatter keys are dropped quietly: the Claude family names them only under apm install --verbose, and Gemini keeps only description and says nothing. Kiro strips every key, with a warning naming them. Codex and Antigravity deploy nothing and print nothing.
  • input: descriptions are discarded: only the names survive, as arguments:. Duplicate names are not caught.

Step 1 — Dispatch

Condition Flow Reference
No file at the target path Create references/create.md
A file exists, at least one improvement signal present Improve references/improve.md
A file exists, no signals Stop and ask —

Signals: grill output, audit findings, inline feedback, a session describing a command that is missing, argument-less or lost a field after install. With none, ask whether this is a new file or feedback to apply.

Read only the reference for the resolved flow.

Step 2 — Contract

Gates on every file, whichever flow wrote it:

  • Source. A single file named <stem>.prompt.md in .apm/prompts/, flat. Anything nested, uppercase or named plain .md is silently ignored.
  • Stem. Kebab-case. It becomes the deployed command name, and apm skips a hand-written file of the same name unless --force is passed. Check for a collision before choosing it.
  • Frontmatter. description, plus input, allowed-tools, model or argument-hint only when needed. A Claude Code command key such as disable-model-invocation survives on the claude target only, from apm 0.39.0, and is dropped on every other target; add one only when the command needs it on Claude. Never hooks: apm withholds it. No other keys, source_keys included: they are dropped.
  • Arguments. Declare input: names and use ${input:name} in the body, or use a literal $ARGUMENTS, never both.
  • Body. Written as an instruction to the model, self-contained, and clear about what it produces. If unsure the content is a prompt file rather than a skill, a rule or something to enforce, read references/content.md.

If a field, name or location is in question, read references/schema.md. If the question is which target keeps which field, read references/target-mapping.md.

Step 3 — Validate and close

  • Verify with a throwaway apm install and read the deployed file: references/verify.md. Resolve every warning.
  • Bump the owning package's apm.yml version — minor on create, patch on improve — because consumers compare it to detect updates.

factory-audit has no prompt checks yet, so nothing else gates the file; report only what the verification showed.