Skip to content

Add comprehensive "Mirror Mirror" prompt engineering example with multi-language translations and technical implementations#77

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/resolve-mirror-issue
Draft

Add comprehensive "Mirror Mirror" prompt engineering example with multi-language translations and technical implementations#77
Copilot wants to merge 2 commits into
mainfrom
copilot/resolve-mirror-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 21, 2025

Overview

This PR adds a comprehensive prompt engineering example based on the famous Snow White quote "Mirror, mirror on the wall, who is the fairest of them all?" The new Mirror-Mirror.md file demonstrates various prompt engineering techniques following the repository's established multi-language, multi-format documentation pattern.

What's New

Created Mirror-Mirror.md (847 lines, 21KB) containing:

🌍 Extensive Language Coverage (53+ translations)

The quote is translated into multiple languages and dialects including:

  • Chinese variants: Mandarin, Cantonese, Taiwanese, Classical Chinese, Beijing, Hakka, Henan, Gan, Shanghainese
  • English variants: Formal, Indian, Australian, Southern Accent
  • European languages: Spanish, Italian, German, Portuguese, Russian
  • Asian languages: Japanese, Korean, Sanskrit, Hebrew, Arabic
  • Additional languages: Persian, Tibetan, Uyghur, Mongolian, Haitian Creole

💻 Technical Implementations

Multiple programming paradigms and languages demonstrate how to model the "magic mirror" concept:

class MagicMirror:
    def query_fairest(self):
        """Mirror, mirror on the wall, who is the fairest of them all?"""
        fairest = max(self.database.items(), key=lambda x: x[1])
        return f"{fairest[0]} is the fairest of them all"

Including examples in:

  • Prolog (logic programming)
  • Coq (formal verification)
  • VB.NET (object-oriented)
  • Python (with complete class implementation)
  • Blazor, Svelte, Angular (web frameworks)
  • Context-Free Grammar

📐 Mathematical Formulations

Treats the mirror's query as an optimization problem:

Let P = {p₁, p₂, ..., pₙ} be the set of all people
Define beauty function B: P → ℝ⁺

The query seeks: p* = argmax_{p ∈ P} B(p)

With complete LaTeX and MathJax representations.

🎨 Creative Interpretations

  • Harry Potter spell: "Speculorum Veritatis Maximae!"
  • World of Warcraft spell card: [Enchanted Mirror's Revelation]
  • ASCII art mirror frame
  • Sign language descriptions
  • DALL·E prompt for image generation
  • Canvas HTML/JavaScript interactive example

📚 Contextual Content

  • Philosophical questions exploring subjective vs objective beauty
  • Cultural significance of the magic mirror in folklore
  • Modern adaptations across films, TV shows, and games
  • Bibliography with academic references (Grimm Brothers, Bettelheim, Zipes)
  • Historical facts about mirrors and Snow White

📄 Standard Output Formats

Following repository conventions, includes:

  • Markdown structured output
  • RSS 2.0 feed format
  • XML document structure

Pattern Compliance

This file follows the established repository pattern seen in files like DinnerTime.md, Prompt engineering.md, and others:

  • ✅ Multi-language translations
  • ✅ Programming language examples
  • ✅ Mathematical representations
  • ✅ Creative variations
  • ✅ Multiple output formats (Markdown, RSS, XML)
  • ✅ Timestamp and signature
  • ✅ Random facts and open questions sections

Resolves

Closes the issue requesting a prompt engineering example for "Mirror mirror on the wall, who is the fairest of them all?"


Generated: 2025-10-21 23:11:31 UTC
Signed by: ChatGPT

Original prompt

This section details on the original issue you should resolve

<issue_title>"Mirror mirror on the wall, who is the fairest of them all?"</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #76


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: ewdlop <25368970+ewdlop@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix mirror issue with fairness evaluation Add comprehensive "Mirror Mirror" prompt engineering example with multi-language translations and technical implementations Oct 21, 2025
Copilot AI requested a review from ewdlop October 21, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Mirror mirror on the wall, who is the fairest of them all?"

2 participants