feat(kyberforge): add prompt-author skill for .apm/prompts files #155

Merged
Defame1297 merged 6 commits from feat/149-prompt-author into main 2026-11-10 22:00:36 +00:00
Owner

Closes #149

What

Adds prompt-author, a kyberforge skill for creating and improving apm prompt files (.apm/prompts/*.prompt.md), shaped like instructions-author:

  • SKILL.md with a create / improve / stop-and-ask dispatch, a Gotchas block and a contract.
  • Seven references: create, improve, content, schema, target-mapping, verify, sources.
  • scripts/new-prompt.sh (also creates .apm/prompts/, which apm init does not), assets/templates/prompt.md, and tests/new-prompt.bats (18 scaffold tests).
  • Forge gets a Prompt file routing row, a "Prompt file or hand-invoked skill?" discriminator in author-routes.md, and the matching gotcha, bump-sentence and sources.md entries. apm-workflow/references/compile.md points at the new skill.
  • CONTEXT.md gains the Prompt file term and rewords Skill so it is no longer defined as a "slash command".
  • Research under plugins/kyberforge/docs/research/docs/ (apm prompts primitive, verified against apm 0.28.0, and a survey of prompt-file standards: there is no vendor-neutral open standard).
  • Versions: kyberforge 2.1.0 to 2.2.0, root pin and version, marketplace, README row, forge 1.0.4, apm-workflow 1.0.3.

Departures from the issue's acceptance criteria

  • "Scaffolded output passes apm compile for Claude" is replaced by a throwaway apm install. apm compile never reads prompt files and --validate ignores them, so a compile pass proves nothing about a prompt. references/verify.md documents the install-based check.
  • No test asserts apm's behaviour. The "five surviving fields demonstrated in a test/fixture" criterion is dropped by decision: the bats file covers the scaffold script only. The field survival claims are documented in the references and were checked by hand against apm 0.28.0.
  • Prompt files carry no source_keys. Any key the Claude family does not keep triggers a dropped-key warning on every install. Whether prompt files ever need provenance is left to #152.
  • Claude-only users are routed to a skill by the forge discriminator, since Claude Code's docs now steer new commands toward skills.

Verification

  • factory-audit on prompt-author, run inline and again by a clean-context subagent: PASS. The one INFO is the expected check-9 skip for a new skill.
  • Two further clean-context reviewers checked the skill against apm 0.28.0 by experiment and the change against the instructions-author precedent. Their findings are fixed in 8381c9f, including two claims they showed wrong (a failed hidden-character install still writes the Copilot and Gemini outputs; a multi-key input: item turns each key into an argument).
  • Full bats suite: 463 tests, 0 failures. apm audit --ci, skill-size-check.sh, the version-bump, executables-allow and provenance-corpus checks all pass.
  • A scaffolded prompt installed in a throwaway project for the Claude, Copilot and Gemini targets with the documented output.

Not tested

User-scope -g install, the experimental targets, apm pack --format plugin, manifest type: validation, and runtime behaviour in Claude Code, Cursor and Gemini.

🤖 Generated with Claude Code

https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN

Closes #149 ## What Adds `prompt-author`, a kyberforge skill for creating and improving apm prompt files (`.apm/prompts/*.prompt.md`), shaped like `instructions-author`: - `SKILL.md` with a create / improve / stop-and-ask dispatch, a Gotchas block and a contract. - Seven references: create, improve, content, schema, target-mapping, verify, sources. - `scripts/new-prompt.sh` (also creates `.apm/prompts/`, which `apm init` does not), `assets/templates/prompt.md`, and `tests/new-prompt.bats` (18 scaffold tests). - Forge gets a Prompt file routing row, a "Prompt file or hand-invoked skill?" discriminator in `author-routes.md`, and the matching gotcha, bump-sentence and `sources.md` entries. `apm-workflow/references/compile.md` points at the new skill. - `CONTEXT.md` gains the **Prompt file** term and rewords **Skill** so it is no longer defined as a "slash command". - Research under `plugins/kyberforge/docs/research/docs/` (apm prompts primitive, verified against apm 0.28.0, and a survey of prompt-file standards: there is no vendor-neutral open standard). - Versions: kyberforge 2.1.0 to 2.2.0, root pin and version, marketplace, README row, forge 1.0.4, apm-workflow 1.0.3. ## Departures from the issue's acceptance criteria - **"Scaffolded output passes `apm compile` for Claude" is replaced by a throwaway `apm install`.** `apm compile` never reads prompt files and `--validate` ignores them, so a compile pass proves nothing about a prompt. `references/verify.md` documents the install-based check. - **No test asserts apm's behaviour.** The "five surviving fields demonstrated in a test/fixture" criterion is dropped by decision: the bats file covers the scaffold script only. The field survival claims are documented in the references and were checked by hand against apm 0.28.0. - **Prompt files carry no `source_keys`.** Any key the Claude family does not keep triggers a dropped-key warning on every install. Whether prompt files ever need provenance is left to #152. - **Claude-only users are routed to a skill** by the forge discriminator, since Claude Code's docs now steer new commands toward skills. ## Verification - `factory-audit` on `prompt-author`, run inline and again by a clean-context subagent: PASS. The one INFO is the expected check-9 skip for a new skill. - Two further clean-context reviewers checked the skill against apm 0.28.0 by experiment and the change against the `instructions-author` precedent. Their findings are fixed in `8381c9f`, including two claims they showed wrong (a failed hidden-character install still writes the Copilot and Gemini outputs; a multi-key `input:` item turns each key into an argument). - Full bats suite: 463 tests, 0 failures. `apm audit --ci`, `skill-size-check.sh`, the version-bump, executables-allow and provenance-corpus checks all pass. - A scaffolded prompt installed in a throwaway project for the Claude, Copilot and Gemini targets with the documented output. ## Not tested User-scope `-g` install, the experimental targets, `apm pack --format plugin`, manifest `type:` validation, and runtime behaviour in Claude Code, Cursor and Gemini. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Claude added the Kind/Feature label 2026-10-15 16:26:13 +00:00
Claude added 6 commits 2026-10-15 16:26:13 +00:00
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
Fold throwaway-install experiments into prompt-gotchas and
prompt-target-mapping. Resolves root-level discovery, manifest type
advisory behaviour, compile ignoring prompts, per-target key survival
and collision/cleanup behaviour, and records where the published docs
disagree with the observed behaviour (Gemini silent drops, same-name
collisions, --force on critical hidden characters).

Refs: #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
A Skill is loaded by description-matching, not defined as a slash command. The new Prompt file term covers the apm .prompt.md primitive so prompt-author has a vocabulary that does not collide with Skill.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
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
A scaffolded body that mentions $ARGUMENTS ships that text in the deployed
command, where Claude Code substitutes it and Gemini rewrites it to {{args}}.
Move the warning into the template comments, which are deleted on fill-in.

Refs #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Three clean-context reviewers checked the skill against apm 0.28.0. Fix what
they showed to be wrong: a failed hidden-character install still writes the
Copilot and Gemini outputs and withholds only the Claude command; a multi-key
input item turns each key into an argument. Add the symptom row, use "prompt
file" for the source concept, name the Claude slash-commands source for the
forge discriminator, drop an ambiguous Step 3 pointer and a "trim" heading
with no trim guidance, and tighten two bats assertions. CONTEXT.md now says
"a single-file command that is not a SKILL.md".

Refs #149

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Claude added this to the Kyberforge basics milestone 2026-10-15 16:26:17 +00:00
Defame1297 merged commit 09f4093c3b into main 2026-11-10 22:00:36 +00:00
Defame1297 deleted branch feat/149-prompt-author 2026-11-10 22:00:36 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#155