{
  "version": "1.0.0",
  "type": "prompt-pack",
  "id": "lib_prompt_engineering",
  "title": "Prompt Engineering Meta-Toolkit",
  "description": "The existing 12 engineering prompts with required multiline inputs. Review conflicts before replacing a saved copy.",
  "updatedAt": "2026-10-26",
  "presets": [
    {
      "id": "pe_intent_extractor_001",
      "title": "Prompt Intent Extractor",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "intent",
        "analysis",
        "diagnostics"
      ],
      "prompt": "Analyze the following prompt and identify its true intent.\n\nPrompt:\n{{paste_prompt}}\n\nReturn:\n- Primary task\n- Secondary implied tasks\n- Requested artifact\n- Likely output medium\n- Tone signals\n- Formatting signals\n- Ambiguities\n- Missing constraints\n- What the model is most likely to infer on its own",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_seed_diagnostic_002",
      "title": "Seed Prompt Diagnostic",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "scoring",
        "rubric",
        "evaluation"
      ],
      "prompt": "You are a prompt diagnostics analyst.\n\nEvaluate this prompt as a seed prompt:\n{{paste_prompt}}\n\nScore each from 1 to 5 and explain briefly:\n- Execution Strength\n- Artifact Specificity\n- Medium Clarity\n- Structure Control\n- Audience Control\n- Tone Control\n- Constraint Coverage\n- Ambiguity Load\n- Enhancement Yield\n- Assumption Risk\n\nThen provide:\n- Overall diagnosis in one sentence\n- Main strengths\n- Main weaknesses\n- What a prompt enhancement layer should add carefully",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_decomposition_003",
      "title": "Prompt Decomposition",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "breakdown",
        "structure",
        "analysis"
      ],
      "prompt": "Break down the following prompt into its functional parts.\n\nPrompt:\n{{paste_prompt}}\n\nIdentify:\n- Role or persona instructions\n- Core task directive\n- Output format instructions\n- Constraints\n- Tone or style guidance\n- Audience signals\n- Hidden assumptions\n- Risky ambiguities\n\nThen rewrite the breakdown as a compact table.",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_risk_review_004",
      "title": "Enhancement Risk Review",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "risk",
        "enhancement",
        "safety"
      ],
      "prompt": "Review this prompt and determine how risky it would be for an enhancement system to expand it.\n\nPrompt:\n{{paste_prompt}}\n\nAssess:\n- Which details are explicit\n- Which details would need to be inferred\n- Which inferences are safe\n- Which inferences could distort intent\n- Whether the prompt should be expanded minimally, moderately, or aggressively\n\nThen give:\n- Risk level: low, medium, or high\n- Recommended enhancement strategy",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_comparison_005",
      "title": "Original vs Enhanced Comparison",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "comparison",
        "a-b-test",
        "evaluation"
      ],
      "prompt": "Compare these two prompts.\n\nOriginal prompt:\n{{paste_original}}\n\nEnhanced prompt:\n{{paste_enhanced}}\n\nEvaluate:\n- What the enhanced version clarified\n- What it preserved from the original\n- What assumptions it introduced\n- Whether it oversteered\n- Whether the enhancement improved execution reliability\n\nReturn:\n- A side by side score table\n- A short verdict\n- A safer improved version if needed",
      "inputs": [
        {
          "key": "paste_original",
          "label": "Original",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste original"
        },
        {
          "key": "paste_enhanced",
          "label": "Enhanced",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste enhanced"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_medium_detection_006",
      "title": "Medium Detection",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "medium",
        "output-format",
        "classification"
      ],
      "prompt": "Determine what output medium this prompt most likely intends.\n\nPrompt:\n{{paste_prompt}}\n\nChoose the best fit and explain why:\n- Notion page\n- Markdown article\n- HTML page\n- Email\n- Report\n- Slide deck\n- Internal note\n- Social post\n- Other\n\nThen state what wording in the prompt created the signal, and what wording is missing.",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_ambiguity_007",
      "title": "Ambiguity Extraction",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "ambiguity",
        "clarity",
        "rewrite"
      ],
      "prompt": "Interrogate this prompt for ambiguity.\n\nPrompt:\n{{paste_prompt}}\n\nList every phrase that is vague, subjective, or under-specified.\nFor each one, explain:\n- Why it is ambiguous\n- What a model might assume it means\n- What risk that creates\n- How to rewrite it more operationally",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_constraint_recovery_008",
      "title": "Constraint Recovery",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "constraints",
        "defaults",
        "enhancement"
      ],
      "prompt": "This prompt is under-specified. Recover the missing constraints without changing the likely intent.\n\nPrompt:\n{{paste_prompt}}\n\nInfer the most important missing dimensions:\n- audience\n- tone\n- length\n- medium\n- structure\n- formatting\n- exclusions\n- output rules\n\nFor each:\n- state whether it is explicit, implied, or missing\n- suggest a cautious default\n\nThen produce a minimally enhanced rewrite.",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_hardening_009",
      "title": "Prompt Hardening",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "hardening",
        "reliability",
        "deterministic"
      ],
      "prompt": "Take this prompt and harden it for more reliable execution while preserving its original meaning.\n\nPrompt:\n{{paste_prompt}}\n\nRules:\n- preserve the user's intent\n- do not over-template\n- add only the minimum needed clarity\n- make execution more deterministic\n\nReturn:\n- revised prompt\n- list of changes made\n- explanation of why each change improves reliability",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_evaluator_010",
      "title": "PromptLab Evaluator",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "evaluation",
        "pipeline",
        "quality"
      ],
      "prompt": "You are evaluating a prompt enhancement pipeline.\n\nSeed prompt:\n{{paste_seed}}\n\nEnhanced prompt:\n{{paste_enhanced}}\n\nScore 1 to 5:\n- Intent Preservation\n- Clarity Gain\n- Execution Reliability\n- Assumption Load\n- Medium Accuracy\n- Structural Helpfulness\n- Oversteer Risk\n\nThen answer:\n- What did the enhancer do well?\n- Where did it add too much?\n- What would a better enhancement look like?\n- Final verdict: good enhancement, acceptable but risky, or oversteered",
      "inputs": [
        {
          "key": "paste_seed",
          "label": "Seed",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste seed"
        },
        {
          "key": "paste_enhanced",
          "label": "Enhanced",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste enhanced"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_fast_audit_011",
      "title": "Fast One-Shot Prompt Audit",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "audit",
        "quick",
        "diagnosis"
      ],
      "prompt": "Audit this prompt quickly.\n\nPrompt:\n{{paste_prompt}}\n\nReturn only:\n- Prompt type\n- Primary intent\n- Biggest ambiguity\n- Biggest strength\n- Biggest risk\n- Best minimal rewrite",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    },
    {
      "id": "pe_codex_feedback_012",
      "title": "Codex / Claude Code Feedback",
      "category": "Prompt Engineering",
      "tags": [
        "prompt-engineering",
        "code",
        "feedback",
        "technical"
      ],
      "prompt": "You are reviewing prompt quality for a development workflow.\n\nPrompt under review:\n{{paste_prompt}}\n\nTask:\nProvide feedback suitable for Claude Code or Codex.\n\nInclude:\n- one sentence diagnosis\n- rubric scores from 1 to 5\n- top three issues\n- top three strengths\n- recommended rewrite\n- implementation advice for a prompt enhancement system\n\nKeep the output compact, technical, and actionable.",
      "inputs": [
        {
          "key": "paste_prompt",
          "label": "Prompt",
          "type": "textarea",
          "required": true,
          "placeholder": "Enter paste prompt"
        }
      ],
      "summary": "Engineering template with required prompt inputs."
    }
  ]
}
