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:
1 parent
59e0f3a3b8
commit
6a3fd48fbd
24 files changed
+719
-19
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user