Back to MD Exchange
    Prompts & Templatespromptstemplatesaiengineeringextractionclassification

    Prompt Engineering Toolkit

    Collection of reusable prompt templates for common tasks — data extraction, classification, summarization, code generation, and structured output.

    K
    keygroup|March 25, 2026|Updated Oct 8
    0 downloads0 stars

    Uploaded markdown content, not a verification of tool compatibility or results. Review the raw text, commands, and permissions before using it. Stars require an account.


    name: prompt-toolkit
    description: Reusable prompt templates for common AI tasks


    Prompt Engineering Toolkit

    Stop writing prompts from scratch. Use reusable templates.

    Templates Included

    1. Data Extraction

    Extract structured data from unstructured text.

    • Invoice parsing → JSON
    • Resume parsing → structured profile
    • Email → action items

    2. Classification

    Multi-label classification with confidence scores.

    • Support ticket routing
    • Content moderation
    • Sentiment analysis (nuanced, not just pos/neg)

    3. Summarization

    Context-aware summaries at different lengths.

    • Executive summary (1 paragraph)
    • Key points (bullet list)
    • Detailed summary (full page)
    • Meeting notes → action items

    4. Code Generation

    Structured code generation with tests.

    • Function from description
    • API endpoint from spec
    • Database query from natural language
    • Regex from examples

    5. Structured Output

    JSON/YAML output with validation; prompting alone does not guarantee valid syntax.

    • JSON with schema validation
    • Markdown table generation
    • CSV data transformation
    • XML document creation

    Usage (illustrative custom-wrapper commands)

    These are not built-in Claude Code subcommands. They require a custom wrapper; consult the wrapper's documentation before use.

    # List all templates
    claude prompts list
    
    # Use a template
    claude prompts use data-extraction --input invoice.pdf
    
    # Create custom template
    claude prompts create my-template
    

    Best Practices Guide

    • Always provide examples (few-shot > zero-shot)
    • Specify output format explicitly
    • Use system prompts for persona
    • Chain prompts for complex tasks
    • Validate outputs with schemas