fix(kyberforge): correct prompt-author claims found in clean-context review
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
This commit is contained in:
1 parent
e9df1ca0da
commit
8381c9f395
13 files changed
+40
-27
No files matched your search
@@ -37,7 +37,7 @@ Constraints that surprise a prompt author. Items are marked **observed** when th
|
||||
- **Observed:** on the Claude family (claude, cursor, opencode, windsurf, grok-build) unsupported keys are dropped with exit 0 and a warning of the form "frontmatter keys not supported for claude commands and were dropped: agent, author, mcp, mode, parameters, tools. Supported keys: allowed-tools, argument-hint, description, input, model". Unknown keys such as `inputs` are dropped the same way. Copilot keeps everything.
|
||||
- **Observed, disagrees with the docs:** Gemini drops everything except `description` with **no** diagnostic.
|
||||
- **Observed:** codex, kiro, antigravity and agent-skills deploy nothing, exit 0, with no warning.
|
||||
- **Observed:** the `input` descriptions in the object and map forms are discarded; only names survive, as `arguments:`.
|
||||
- **Observed:** a single-key `{name: description}` list item loses its description and only the name survives, as `arguments:`. A multi-key item such as `name:` plus `description:` turns every key into an argument (`arguments: [name, description]`). Found by a clean-context review of `prompt-author`.
|
||||
- **Observed:** invalid input names (`bad name!`, `9lead`) are rejected with a warning and the install succeeds. Duplicate names are neither removed nor warned about, giving `arguments: [dup, dup]`.
|
||||
- **Observed:** declaring `input:` and also writing a literal `$ARGUMENTS` or `$0` in the body gives both `arguments:` and the literal text, with no conflict diagnostic.
|
||||
|
||||
@@ -56,8 +56,8 @@ Constraints that surprise a prompt author. Items are marked **observed** when th
|
||||
|
||||
## Security scanning
|
||||
|
||||
- **Observed:** zero-width space, BOM and NBSP in a prompt are warnings and the file deploys. Tag characters and bidi overrides are critical: the install exits 1, apm.yml is restored and nothing deploys.
|
||||
- **Observed, disagrees with the docs:** `--force` makes the exit code 0 and prints "Deployed with --force despite critical hidden characters", yet the prompt is still not deployed.
|
||||
- **Observed:** zero-width space, BOM and NBSP in a prompt are warnings and the file deploys. Tag characters and bidi overrides are critical: the install exits 1 and apm.yml is restored; the Claude-family command is withheld, but the Copilot and Gemini outputs may still be written.
|
||||
- **Observed, disagrees with the docs:** `--force` makes the exit code 0 and prints "Deployed with --force despite critical hidden characters", yet the Claude-family command is still not deployed. Re-tested later: even without `--force`, a plain install that exits 1 on a tag character still wrote the Copilot byte copy and the Gemini TOML; only the Claude file was withheld.
|
||||
- **Observed:** `apm audit` scans deployed command files, exits 2 on the zero-width warning, and a hand-appended critical character produces a critical finding plus drift. `apm audit --ci` reports `hash-drift`.
|
||||
|
||||
## Packing
|
||||
|
||||
@@ -34,7 +34,7 @@ The docs call the source primitive "prompts" and the per-target surface "command
|
||||
|
||||
## Claude-family output
|
||||
|
||||
For a source with `description`, `input` (`simple`, `named: The named one`, `other`), `allowed-tools`, `model`, `argument-hint` and extra keys, the Claude command file contains only `allowed-tools`, `argument-hint`, `arguments`, `description` and `model`, keys sorted alphabetically, with no trailing newline. `input` is consumed into `arguments:` as names only (object and map forms lose their descriptions), and `argument-hint` is synthesised as `<a> <b>` when absent or kept when given. `argumentHint` and `allowedTools` are accepted as aliases. The five keys visible in the output are therefore `description`, `allowed-tools`, `model`, `argument-hint` and `arguments`, while the five keys an author may write and expect to survive are `description`, `input`, `allowed-tools`, `model` and `argument-hint`.
|
||||
For a source with `description`, `input` (`simple`, `named: The named one`, `other`), `allowed-tools`, `model`, `argument-hint` and extra keys, the Claude command file contains only `allowed-tools`, `argument-hint`, `arguments`, `description` and `model`, keys sorted alphabetically, with no trailing newline. `input` is consumed into `arguments:` as names only (a single-key `{name: description}` item loses its description; a multi-key item turns every key into an argument), and `argument-hint` is synthesised as `<a> <b>` when absent or kept when given. `argumentHint` and `allowedTools` are accepted as aliases. The five keys visible in the output are therefore `description`, `allowed-tools`, `model`, `argument-hint` and `arguments`, while the five keys an author may write and expect to survive are `description`, `input`, `allowed-tools`, `model` and `argument-hint`.
|
||||
|
||||
## Frontmatter survival by target
|
||||
|
||||
|
||||
Reference in new issue
Block a user