apm icon indicating copy to clipboard operation
apm copied to clipboard

[BUG] Missing kiro prompts primitive entry

Open Leon4ever2802 opened this issue 1 month ago • 3 comments

Reporting and investigating a bug need no permission. Before implementing a substantive fix for inclusion in APM, obtain human scope approval and a review contact on this issue. Trivial documentation corrections have standing preapproval. See Contributing.

For vulnerabilities, use SECURITY.md instead of a public issue. Remove credentials and other sensitive data from logs.

Describe the bug I have created a Monorepo-hybrid with different plugins and some plugins declare prompts, which I want to be able to install with all targets that support prompts. When I try to install the plugin ans set --target kiro no prompts are created inside my consumer project. The primitive mapping for prompts is missing under "kiro": TargetProfile. Only agents, instructions, skills and hooks are declared.

To Reproduce Steps to reproduce the behavior:

  1. Run command 'apm install ...' with a plugin that has at least one prompt
  2. With parameter '--target kiro'
  3. No .kiro/prompts/ directory is created and therefore no prompts are available for kiro

Expected behavior I would expect the prompts to be created correctly under .kiro/prompts/, which are part of the plugin, so I can reference them with Kiro.

Environment (please complete the following information):

  • OS: macOS
  • Python-Version: 3.14
  • APM Version: APM-CLI 0.33.0

Logs If applicable, add any error logs or screenshots.

Additional context Kiro allows prompt managements now: https://kiro.dev/docs/cli/chat/manage-prompts/

Leon4ever2802 avatar Oct 13 '26 10:10 Leon4ever2802

Thanks for the report. Please confirm which Kiro primitive entry is missing (the expected target directory and file format) and which APM version you used, so a maintainer can judge the fix.

Proposed scope (for maintainer approval): add the missing prompts primitive mapping for the kiro target, with a test and a docs update to the target matrix. Exclusions: other kiro primitives.

This is a recommendation only. A maintainer must approve scope and a review contact before implementation starts.

Generated by Triage Panel · copilot · auto · 45.4 AIC · ⌖ 0.775 AIC · ⊞ 12K · ◷

github-actions[bot] avatar Oct 17 '26 12:10 github-actions[bot]

Decision: approve Area: project Scope: Add bounded delivery of supported package prompts, including the reported monorepo-hybrid selection, to Kiro CLI's documented project .kiro/prompts/ and user ~/.kiro/prompts/ surfaces through existing target, integrator and managed-lifecycle owners. The installed prompt must be discoverable/selectable under its intended native identity, expose the expected body and supported arguments, and update/remove correctly. Preserve @DBVamsi's existing contribution in PR #3263 rather than dispatch duplicate work. Done when: Before selecting a primitive mapping/transform or claiming support, qualify an actual supported Kiro CLI version's filename-to-name behavior, plain content, source frontmatter and native parameter semantics through native discovery/details/invocation or captured native-loader evidence. Do not assume the proposed .prompt.md suffix is correct or incorrect, or that copied Copilot/APM metadata has native tool/model meaning. Use only the needed native-compatible transformation and existing diagnostics for material unsupported semantics; preserve source-relative links and document limitations. Add named real installed-CLI APMLifecycle project/user install, repeat install, update, frozen replay, read-only audit and ownership-aware removal coverage for the selected monorepo package and an ordinary-package control, with independent filesystem/lock snapshots. Include native Kiro consumption proof beyond integrator file existence, intended invocation/body/arguments, native local/global/MCP precedence controls, user-prompt preservation and managed cleanup. Preserve existing collision/force policy, ownership, target selection, containment and supported links, workflow-only prompt exclusion and other primitives. Update target matrix, primitive guidance and shipped usage resources, stating CLI/version-qualified support rather than assuming IDE parity. Out of scope: Ratifying PR #3263's present file suffix or verbatim metadata mapping without native evidence, broad cross-harness metadata/agent translation, IDE parity without evidence, new targets, a namespace framework, changed native precedence or trust, unrelated primitives, assignment or competing implementation. #2671's design/deferred state is unchanged. No implementation dispatch from this decision session, blocked-delivery restart, release commitment, PR approval or merge permission. Review contact: @danielmeppiel

danielmeppiel avatar Oct 20 '26 22:10 danielmeppiel

Accepted as bounded native-qualified Kiro CLI prompt delivery after explicit maintainer confirmation. Please preserve @DBVamsi's existing work in #3263; this decision does not approve that PR or request a competing implementation.

The capability is documented: Kiro's official prompt guide describes project .kiro/prompts/, global ~/.kiro/prompts/, prompt discovery/details, V3 slash invocation and older-engine @prompt-name invocation. It also documents native argument expansion and local-over-global-over-MCP precedence. An installed package prompt should be usable through those native surfaces, not merely exist on disk.

Current main 7eb578ede9ead08aa097fd805e160cec56b6d245 has no prompts entry in the Kiro target, and the existing prompt integrator returns without delivery when that mapping is absent. That supports the reported omission.

There is one qualification before selecting the mapping: the official page does not establish the proposed .prompt.md suffix's exposed name or how Copilot/APM YAML frontmatter is interpreted. The existing integrator preserves the filename and copies frontmatter/body apart from normal link resolution and LF writes. This session did not run Kiro, and does not claim that .prompt.md is either valid or invalid. The PR's file-existence assertions and reported unit results do not by themselves establish native consumption.

The accepted outcome therefore requires actual native filename/name/body/argument evidence before the mapping is chosen, plus installed-CLI APMLifecycle project/user install, repeat, update, frozen replay, audit and managed removal. Preserve user-authored prompts, containment, links, ownership, existing collisions and Kiro's own precedence. Report material unsupported metadata semantics instead of promising cross-tool equivalence. Documentation must distinguish qualified CLI behavior from unproven IDE parity.

The tradeoff is a small native prompt integration, not a broad translation or namespace framework. Other Kiro primitives and #2671's separate design/deferred state remain unchanged.

The issue remains open for delivery. Acceptance is not assignment, a release promise, PR approval, merge permission or authorization for this decision session to implement or restart blocked work.

Recorded by Copilot after @danielmeppiel explicitly selected native-qualified Kiro prompt delivery. This agent-authored explanation may contain errors.

danielmeppiel avatar Oct 20 '26 22:10 danielmeppiel