25 lines
981 B
Markdown
25 lines
981 B
Markdown
---
|
|
name: copy-quote-info-to-payload
|
|
description: Populate a quote-command skeleton from quote data without fabricating values. Use when a quote JSON and command skeleton are supplied and the user asks to create a populated command.
|
|
---
|
|
|
|
# copy-quote-info-to-payload
|
|
|
|
## Inputs
|
|
One source quote JSON and one target command skeleton.
|
|
|
|
## Workflow
|
|
1. Identify source and target; ask when the roles are ambiguous.
|
|
2. Parse both documents and start from the target structure.
|
|
3. Apply the mappings in `reference.md`; preserve unmatched target fields and item order.
|
|
4. Validate that the resulting document is valid JSON.
|
|
5. Return the payload and a short mapping summary.
|
|
|
|
## Rules
|
|
- Every populated value must come from the source or an explicit user instruction.
|
|
- Never silently choose between duplicate IDs or conflicting values.
|
|
- Do not alter item content unless the user requests it.
|
|
|
|
## Output
|
|
Return one valid JSON document, then unresolved placeholders and mapping warnings.
|