This paper focuses on sarcasm classification and generation using large-scale language models. To address the challenges of existing sarcasm detection, we present the Sarc7 benchmark, which classifies seven types of sarcasm: self-deprecating, gloomy, neutral, polite, unpleasant, furious, and manic, based on the MUStARD dataset. We evaluate classification performance using zero-shot, few-shot, Chain of Thought (CoT), and a novel emotion-based prompting technique. We then propose an emotion-based generation method by identifying key elements of sarcasm—incongruity, shock, and contextual dependence. Experimental results show that the Gemini 2.5 model achieved an F1 score of 0.3664 when using emotion-based prompting, outperforming other settings. Human evaluators evaluated the emotion-based prompting as 38.46% more successful in generating sarcasm than zero-shot prompting.