Files
Holocron/plugins/kyberforge/.apm/skills/prompt-author/SKILL.md
T
Defame1297andClaude Sonnet 5.5 6a3fd48fbd feat(kyberforge): add prompt-author skill for .apm/prompts files
Add prompt-author, shaped like instructions-author: dispatch to create or
improve, a scaffold script that also creates .apm/prompts/, a minimal
template, and references on schema, per-target field survival, content and
verification. Verification is a throwaway apm install because apm compile
never reads prompts.

Forge gains a Prompt file row and a prompt-file-or-hand-invoked-skill
discriminator, and apm-workflow points at prompt-author from compile.md.
Bump kyberforge to 2.2.0 and the root pin, version and marketplace.

Refs #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-10-15 16:04:33 +00:00

3.1 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; behaviour verified against apm 0.28.0. Bash Read Write Edit
version category source_keys
0.1.0 factory
apm-docs-author-prompts
apm-docs-llms-full
apm-docs-producer-ramp
apm-github-repo
apm-cli-0-28-0-prompt-experiments

Gotchas

  • apm compile never reads prompt files, and --validate ignores them even when malformed. A prompt is verified only by a throwaway apm install.
  • Unsupported frontmatter keys are dropped, loudly on the Claude family and silently on Gemini, which keeps only description. Codex, Kiro 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 the user meant to create a new file or has 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 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. No other keys: they are dropped, and source_keys would warn on every install.
  • 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.