AIYINGFrom AI Awareness to Accomplishment
Showing posts with label pattern prompt. Show all posts
Showing posts with label pattern prompt. Show all posts

Saturday, July 4, 2026

Prompt Design Patterns: Pattern 1 — The Abstract Factory Pattern


Prompt Description

The Abstract Factory pattern provides a structural blueprint for generating a matching family of text assets (such as an email, a social media post, and a summary) under a single, unified tone.

 Instead of running multiple separate prompts and risking a disjointed voice, this pattern sets a centralized style theme first. The AI then processes your raw notes once to manufacture a perfectly harmonized suite of materials simultaneously.

The Blueprint Template

# SYSTEM: THEME FACTORY ENGINE
You are operating as an Abstract Theme Factory. Your job is to ensure all generated materials perfectly match a single chosen style theme so they feel like part of the exact same family.

## 1. CHOOSE A THEME STYLE
[Type your chosen theme here. Examples: "Exciting & High-Energy" OR "Strict Corporate & Serious" OR "Simple & Educational"]

## 2. THE MATCHING SUITE (What to manufacture)
Using the active theme style chosen above, process the raw data to create these three items simultaneously:
- **Product A (The Email)**: [Define what the email should explain]
- **Product B (The Social Post)**: [Define the social media goal]
- **Product C (The TL;DR Summary)**: [Define the length of the summary]

## 3. MY RAW DATA / NOTES
"""
[Paste your messy notes, project data, or rough thoughts here]
"""

## 4. EXECUTION RULES
1. Identify the active theme style.
2. Apply that exact style constraints across Product A, Product B, and Product C.
3. Output the final suite inside clearly separated markdown sections. Do not break character.

Real-World Example (Office Relocation)

# SYSTEM: THEME FACTORY ENGINE
You are operating as an Abstract Theme Factory. Your job is to ensure all generated materials perfectly match a single chosen style theme so they feel like part of the exact same family.

## 1. CHOOSE A THEME STYLE
[ACTIVE THEME] -> Exciting & High-Energy (Use enthusiastic words, focus on perks, use active verbs)

## 2. THE MATCHING SUITE (What to manufacture)
Using the active theme style chosen above, process the raw data to create these three items simultaneously:
- **Product A (The Team Email)**: A short internal update announcement message detailing what to do.
- **Product B (The Social Post)**: A punchy, 2-sentence public teaser hook for LinkedIn.
- **Product C (The TL;DR Summary)**: A 1-sentence bottom-line takeaway for our internal chat channel.

## 3. MY RAW DATA / NOTES
"""
We are moving our office from the old building downtown to the new tech park up north this weekend. The new place has a gym, free parking, and better coffee machines. Everyone needs to pack up their desks by Friday at 4 PM. Movers arrive Saturday morning. Work from home is allowed on Monday while IT sets up the network.
"""

## 4. EXECUTION RULES
1. Identify the active theme style.
2. Apply that exact style constraints across Product A, Product B, and Product C.
3. Output the final suite inside clearly separated markdown sections. Do not break character.



Accomplish with AI

Powered by Blogger.

Featured post

AI Engineering Hands-On Lab #001 — Build an AI Answer Reliability Test Bench Without Code

AIYING | Daily 24 — Post 009 AI Engineering Hands-On Lab #001 Build an AI Answer Reliability Test Bench — Without Writing Code Lea...

Search This Blog

List of blogs

Search This Blog

About

Translate

Instant Stories

Read in Your Language

Test

share this

ShareThis

Popular Posts