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
This commit is contained in:
Defame1297andClaude Sonnet 5.5 committed 2026-10-15 16:04:33 +00:00
1 parent 59e0f3a3b8
commit 6a3fd48fbd
24 files changed
+719 -19

No files matched your search

@@ -6,7 +6,7 @@ description: >
skill -> `skill-author`. Not a named agent -> `agent-author`. Not a named
plugin -> `apm-workflow`.
metadata:
version: "1.0.3"
version: "1.0.4"
category: factory
source_keys:
- claude-code-subagents-docs
@@ -15,7 +15,7 @@ metadata:
## Gotchas
- forge is an optional guided entry point, not a gate — `skill-author`, `agent-author`, `instructions-author`, `factory-audit` and `apm-workflow` all stay directly invokable, and forge never intercepts a direct call to one.
- forge is an optional guided entry point, not a gate — `skill-author`, `agent-author`, `instructions-author`, `prompt-author`, `factory-audit` and `apm-workflow` all stay directly invokable, and forge never intercepts a direct call to one.
## Step 1 — Grill the intent
@@ -34,6 +34,7 @@ Match the grilled intent against exactly one row — or more than one, if the in
| A reusable capability the agent loads inline in the main conversation, triggered by description-matching, free to bundle its own `references/`, `scripts/` or `assets/` | Skill | `skill-author` | `references/author-routes.md` |
| A recurring task needs its own reusable definition — dedicated system prompt, tools and description, invokable by name across sessions | Agent / subagent | `agent-author` | `references/author-routes.md` |
| Always-on or path-scoped agent guidance in `.apm/instructions/*.instructions.md` | Instructions file | `instructions-author` | `references/author-routes.md` |
| A single-file slash command in `.apm/prompts/*.prompt.md`, typed by hand with arguments and fanned out to each target's commands surface | Prompt file | `prompt-author` | `references/author-routes.md` |
| A new distributable unit — no existing plugin is the right home for the skill, agent, hook or MCP server being built, or the bundle needs its own manifest, versioning and install lifecycle | Plugin | `apm-workflow` (`apm plugin init`) | `references/apm-routes.md` |
| The plugin already exists and only its marketplace-facing metadata changes — a first listing, or a version/description update, never the plugin's contents | Marketplace entry | `apm-workflow` (`apm marketplace package add`) | `references/apm-routes.md` |
@@ -48,4 +49,4 @@ When the intent spans several rows, chain the routes in dependency order — an
## Step 3 — Closing gates, common to every route
- **Resolve before closing.** A route is finished only when its verification reports nothing unresolved. An actionable finding reopens the route; it is never reported onward as a caveat.
- **Bump the package version.** A skill route always lands here: `skill-author` moves only a skill's own `metadata.version`, which is not the package `apm.yml`'s number — so read `references/version-bump.md` after one. `agent-author`, `instructions-author` and the apm routes bump the package themselves at plugin scope; after those, read it only when their output does not say they did.
- **Bump the package version.** A skill route always lands here: `skill-author` moves only a skill's own `metadata.version`, which is not the package `apm.yml`'s number — so read `references/version-bump.md` after one. `agent-author`, `instructions-author`, `prompt-author` and the apm routes bump the package themselves at plugin scope; after those, read it only when their output does not say they did.
@@ -3,16 +3,18 @@ source_keys:
- claude-code-subagents-docs
- context7-websites-code-claude
- claude-code-memory-docs
- apm-docs-author-prompts
- apm-cli-0-28-0-prompt-experiments
---
# Routing a skill, agent or instructions file to its author skill
# Routing a skill, agent, instructions file or prompt file to its author skill
Reached from `SKILL.md` Step 2 when the classified artifact is a skill, an agent/subagent
definition or an instructions file. Route a skill to `skill-author`, an agent to `agent-author` and
an instructions file to `instructions-author`. The branches differ on the author skill only, and
everything below applies to all three — except that `factory-audit` has no instructions flow yet, so
an instructions file is verified by `instructions-author`'s own throwaway-package check and the
clean-context rerun below is skipped for it.
definition, an instructions file or a prompt file. Route a skill to `skill-author`, an agent to
`agent-author`, an instructions file to `instructions-author` and a prompt file to `prompt-author`.
The branches differ on the author skill only, and everything below applies to all four — except
that `factory-audit` has no instructions or prompt flow yet, so those are verified by their author
skill's own throwaway-package check and the clean-context rerun below is skipped for them.
## Rule, procedure or enforcement?
@@ -26,6 +28,18 @@ instruction as context, not as enforced configuration, so only a rule belongs th
| A multi-step procedure or one task's guidance | Skill (`skill-author`) |
| Something that must run at a fixed point or be blocked | A hook or a `permissions.deny` setting; no row here, so hand the user the owner and do not bend it into a rule |
## Prompt file or hand-invoked skill?
Before routing a "slash command I type" request, check which artifact it is. Claude Code merged
custom commands into skills and its docs steer new work toward skills, so a prompt file earns its
place only where its single-file, multi-target shape is the point.
| The content is | Route |
|---|---|
| A single-file command that should also reach Copilot, Cursor, Gemini or OpenCode | Prompt file (`prompt-author`) |
| A command that needs `references/` or `scripts/`, or that other skills or the model must be able to call | Skill (`skill-author`), declared hand-invoked |
| A Claude-only command with no such need | Skill (`skill-author`), because the vendor steers new commands there |
## Gotcha: `context: fork` is not `/fork`
Claude Code's skill-level `context: fork` frontmatter field and the `/fork` subagent command are
@@ -24,6 +24,22 @@
- **Contributing files:** references/author-routes.md
- **Status:** `extracted`
## apm-docs-author-prompts
- **URL:** https://microsoft.github.io/apm/producer/author-primitives/prompts/
- **Research doc:** plugins/kyberforge/docs/research/docs/microsoft-apm/sources.md (digest: plugins/kyberforge/docs/research/docs/microsoft-apm/prompt-primitive-schema.md)
- **Description:** Official "Author a prompt" page. Grounds the "Prompt file or hand-invoked skill?" table in `references/author-routes.md`: a prompt file is a single file that apm deploys to each target's commands surface.
- **Contributing files:** references/author-routes.md
- **Status:** `extracted`
## apm-cli-0-28-0-prompt-experiments
- **URL:** https://pypi.org/project/apm-cli/0.28.0/
- **Research doc:** plugins/kyberforge/docs/research/docs/microsoft-apm/sources.md (digest: plugins/kyberforge/docs/research/docs/microsoft-apm/prompt-target-mapping.md)
- **Description:** The installed apm-cli 0.28.0 exercised in throwaway packages. Grounds the same table: which targets receive a prompt and that a Claude-only command gains nothing from a prompt file over a skill.
- **Contributing files:** references/author-routes.md
- **Status:** `extracted`
## claude-code-plugins-docs
- **URL:** https://code.claude.com/docs/en/plugins
@@ -7,7 +7,7 @@ source_keys:
Reached from `SKILL.md` Step 3 after a route has finished. A skill route always lands here:
`skill-author` moves only a skill's own `metadata.version`, which is not the package manifest's
number, so the package version is still behind when it reports done. `agent-author` and `instructions-author` bump the
number, so the package version is still behind when it reports done. `agent-author`, `instructions-author` and `prompt-author` bump the
resolved package's `apm.yml` themselves (`agent-author` at plugin/APM scope), and `apm-workflow`'s configure flow
carries the same policy — read those routes' output before acting here, because a second bump for
one change is wrong.