@ckelsoe/prompt-architect 3.0.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +264 -264
- package/LICENSE +21 -21
- package/README.md +1064 -1184
- package/adapters/README.md +75 -267
- package/adapters/for-windsurf.md +136 -136
- package/adapters/system-prompt.md +243 -243
- package/package.json +139 -138
- package/scripts/build-skill.js +64 -0
- package/scripts/install.js +4 -54
- package/scripts/test.js +205 -213
- package/scripts/validate-skill.js +350 -350
- package/skills/prompt-architect/SKILL.md +343 -331
- package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
- package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
- package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
- package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
- package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
- package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
- package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
- package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
- package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
- package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
- package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
- package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
- package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
- package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
- package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
- package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
- package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
- package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
- package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
- package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
- package/skills/prompt-architect/references/frameworks/ape.md +200 -200
- package/skills/prompt-architect/references/frameworks/bab.md +242 -242
- package/skills/prompt-architect/references/frameworks/broke.md +242 -242
- package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
- package/skills/prompt-architect/references/frameworks/care.md +235 -235
- package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
- package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
- package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
- package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
- package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
- package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
- package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
- package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
- package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
- package/skills/prompt-architect/references/frameworks/race.md +243 -243
- package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
- package/skills/prompt-architect/references/frameworks/react.md +304 -304
- package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
- package/skills/prompt-architect/references/frameworks/rise.md +555 -555
- package/skills/prompt-architect/references/frameworks/risen.md +297 -297
- package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
- package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
- package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
- package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
- package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
- package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
- package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
- package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
- package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
- package/adapters/for-cursor.mdc +0 -138
- package/adapters/for-gemini-cli.md +0 -70
- package/adapters/for-github-copilot.md +0 -141
- package/adapters/for-openai-codex-cli.md +0 -158
|
@@ -1,470 +1,470 @@
|
|
|
1
|
-
# TIDD-EC Framework
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
TIDD-EC is a precision-focused prompt engineering framework that excels in providing clear boundaries and actionable guidance through explicit "Dos and Don'ts." Originally documented alongside CO-STAR, it emphasizes clarity and specificity in task execution, making it ideal for tasks requiring detailed instructions and explicit constraints.
|
|
6
|
-
|
|
7
|
-
**Key Strength**: Explicit positive (Do) and negative (Don't) guidance prevents errors and misinterpretations.
|
|
8
|
-
|
|
9
|
-
## Components
|
|
10
|
-
|
|
11
|
-
### T - Task Type
|
|
12
|
-
**Purpose:** Clearly indicate the type of activity the LLM should perform.
|
|
13
|
-
|
|
14
|
-
**Questions to Ask:**
|
|
15
|
-
- What kind of task is this? (analysis, generation, transformation, etc.)
|
|
16
|
-
- What is the primary output type?
|
|
17
|
-
- What category does this fall into?
|
|
18
|
-
|
|
19
|
-
**Examples:**
|
|
20
|
-
- "Task Type: Data Analysis and Summarization"
|
|
21
|
-
- "Task Type: Technical Documentation Generation"
|
|
22
|
-
- "Task Type: Customer Support Response"
|
|
23
|
-
- "Task Type: Content Translation with Context Preservation"
|
|
24
|
-
|
|
25
|
-
### I - Instructions
|
|
26
|
-
**Purpose:** Outline the specific steps or guidelines to accomplish the task.
|
|
27
|
-
|
|
28
|
-
**Questions to Ask:**
|
|
29
|
-
- What are the exact steps to follow?
|
|
30
|
-
- What methodology should be used?
|
|
31
|
-
- What's the sequence of actions?
|
|
32
|
-
- What standards or guidelines apply?
|
|
33
|
-
|
|
34
|
-
**Examples:**
|
|
35
|
-
- "Read the customer feedback, categorize by sentiment, identify top 3 themes, provide quantitative summary"
|
|
36
|
-
- "Follow the company style guide for technical documentation"
|
|
37
|
-
- "Use a three-paragraph structure: problem, solution, next steps"
|
|
38
|
-
|
|
39
|
-
### D - Do
|
|
40
|
-
**Purpose:** Specify actions the LLM should take, language to use, structures to include, and information that must be present.
|
|
41
|
-
|
|
42
|
-
**Questions to Ask:**
|
|
43
|
-
- What MUST be included in the response?
|
|
44
|
-
- What language or terminology should be used?
|
|
45
|
-
- What structure should be followed?
|
|
46
|
-
- What tone or style is required?
|
|
47
|
-
|
|
48
|
-
**Examples:**
|
|
49
|
-
- "DO use professional, empathetic language"
|
|
50
|
-
- "DO include specific metrics and data points"
|
|
51
|
-
- "DO cite sources for all factual claims"
|
|
52
|
-
- "DO start with an executive summary"
|
|
53
|
-
- "DO use bullet points for lists over 3 items"
|
|
54
|
-
|
|
55
|
-
### D - Don't
|
|
56
|
-
**Purpose:** Highlight actions or elements to avoid, preventing common errors or misinterpretations.
|
|
57
|
-
|
|
58
|
-
**Questions to Ask:**
|
|
59
|
-
- What should absolutely NOT be included?
|
|
60
|
-
- What mistakes should be avoided?
|
|
61
|
-
- What language or approaches are inappropriate?
|
|
62
|
-
- What common errors need prevention?
|
|
63
|
-
|
|
64
|
-
**Examples:**
|
|
65
|
-
- "DON'T use technical jargon without explanation"
|
|
66
|
-
- "DON'T make assumptions about user expertise"
|
|
67
|
-
- "DON'T include information older than 6 months"
|
|
68
|
-
- "DON'T exceed 500 words"
|
|
69
|
-
- "DON'T use passive voice"
|
|
70
|
-
|
|
71
|
-
### E - Examples
|
|
72
|
-
**Purpose:** Provide concrete examples of desired outcomes or responses.
|
|
73
|
-
|
|
74
|
-
**Questions to Ask:**
|
|
75
|
-
- What does good output look like?
|
|
76
|
-
- Can you show 2-3 reference examples?
|
|
77
|
-
- What format should be followed?
|
|
78
|
-
- What quality level is expected?
|
|
79
|
-
|
|
80
|
-
**Examples:**
|
|
81
|
-
- "Example of good response: [detailed example]"
|
|
82
|
-
- "See attached sample reports for formatting"
|
|
83
|
-
- "Similar to our previous Q3 analysis format"
|
|
84
|
-
|
|
85
|
-
### C - Context (User Content)
|
|
86
|
-
**Purpose:** Provide data or background information for the LLM to reference.
|
|
87
|
-
|
|
88
|
-
**Questions to Ask:**
|
|
89
|
-
- What background information is needed?
|
|
90
|
-
- What data is being provided?
|
|
91
|
-
- What context affects the task?
|
|
92
|
-
- What constraints exist in the situation?
|
|
93
|
-
|
|
94
|
-
**Examples:**
|
|
95
|
-
- "Context: This is for a B2B SaaS company in healthcare sector"
|
|
96
|
-
- "User Content: Attached customer feedback CSV with 500 entries"
|
|
97
|
-
- "Background: Previous campaign had 15% conversion rate"
|
|
98
|
-
|
|
99
|
-
## Template Structure
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
TASK TYPE:
|
|
103
|
-
[Clear indication of activity type]
|
|
104
|
-
|
|
105
|
-
INSTRUCTIONS:
|
|
106
|
-
[Specific steps and guidelines]
|
|
107
|
-
1. [Step 1]
|
|
108
|
-
2. [Step 2]
|
|
109
|
-
3. [Continue...]
|
|
110
|
-
|
|
111
|
-
DO:
|
|
112
|
-
- [Action or element to include]
|
|
113
|
-
- [Required approach or language]
|
|
114
|
-
- [Structure to follow]
|
|
115
|
-
|
|
116
|
-
DON'T:
|
|
117
|
-
- [Action or element to avoid]
|
|
118
|
-
- [Error to prevent]
|
|
119
|
-
- [Inappropriate approach]
|
|
120
|
-
|
|
121
|
-
EXAMPLES:
|
|
122
|
-
[Concrete examples of desired outcome]
|
|
123
|
-
Example 1: [...]
|
|
124
|
-
Example 2: [...]
|
|
125
|
-
|
|
126
|
-
CONTEXT:
|
|
127
|
-
[Background information and user-provided content]
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## Complete Example
|
|
131
|
-
|
|
132
|
-
### Before TIDD-EC:
|
|
133
|
-
"Help with customer complaint response."
|
|
134
|
-
|
|
135
|
-
### After TIDD-EC:
|
|
136
|
-
```
|
|
137
|
-
TASK TYPE:
|
|
138
|
-
Customer Support Response - Complaint Resolution
|
|
139
|
-
|
|
140
|
-
INSTRUCTIONS:
|
|
141
|
-
1. Acknowledge the customer's frustration and validate their concern
|
|
142
|
-
2. Apologize for the inconvenience caused
|
|
143
|
-
3. Explain what happened (if known) in simple terms
|
|
144
|
-
4. Provide a concrete solution or next steps
|
|
145
|
-
5. Include timeline for resolution
|
|
146
|
-
6. Offer additional support contact information
|
|
147
|
-
|
|
148
|
-
DO:
|
|
149
|
-
- Use empathetic, professional language
|
|
150
|
-
- Personalize the response with customer name
|
|
151
|
-
- Provide specific action items with timeframes
|
|
152
|
-
- Include direct contact information for follow-up
|
|
153
|
-
- Express genuine concern for their experience
|
|
154
|
-
- Keep response between 150-250 words
|
|
155
|
-
|
|
156
|
-
DON'T:
|
|
157
|
-
- Make excuses or deflect blame
|
|
158
|
-
- Use template language that sounds robotic
|
|
159
|
-
- Make promises you can't keep
|
|
160
|
-
- Include technical jargon or system error codes
|
|
161
|
-
- Use passive voice ("mistakes were made")
|
|
162
|
-
- Exceed 250 words or write less than 150
|
|
163
|
-
|
|
164
|
-
EXAMPLES:
|
|
165
|
-
Example 1 - Good Response:
|
|
166
|
-
"Dear Sarah, I'm truly sorry that your order arrived damaged. I understand how
|
|
167
|
-
frustrating this must be, especially since you needed it for this weekend's event.
|
|
168
|
-
This happened because of a packaging error in our warehouse. Here's what I'm doing
|
|
169
|
-
to fix this: (1) I'm sending a replacement via overnight shipping at no charge -
|
|
170
|
-
you'll have it by Friday 2 PM, (2) You'll receive a full refund for the original
|
|
171
|
-
order within 24 hours. If you have any concerns, please reach me directly at
|
|
172
|
-
sarah.smith@company.com or 555-1234. We value your business and will make this right."
|
|
173
|
-
|
|
174
|
-
Example 2 - Bad Response (What to Avoid):
|
|
175
|
-
"We apologize for any inconvenience. Due to system errors, your order was damaged.
|
|
176
|
-
Please contact our support team for further assistance. Ticket #12345."
|
|
177
|
-
|
|
178
|
-
CONTEXT:
|
|
179
|
-
- Company: E-commerce retailer specializing in home goods
|
|
180
|
-
- Customer: Premium member who shops regularly
|
|
181
|
-
- Issue: Damaged item received, needed for event
|
|
182
|
-
- Previous interactions: Generally positive, 4.5/5 satisfaction rating
|
|
183
|
-
- Company policy: Full refunds + replacement for damaged items
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
## Best Use Cases
|
|
187
|
-
|
|
188
|
-
### 1. Customer Support & Chatbots ✅
|
|
189
|
-
**Why TIDD-EC Excels:**
|
|
190
|
-
- Explicit dos/don'ts prevent common customer service mistakes
|
|
191
|
-
- Examples ensure consistent tone and quality
|
|
192
|
-
- Clear boundaries improve response accuracy
|
|
193
|
-
|
|
194
|
-
**Example Scenarios:**
|
|
195
|
-
- Complaint resolution
|
|
196
|
-
- Product inquiries
|
|
197
|
-
- Refund requests
|
|
198
|
-
- Technical support responses
|
|
199
|
-
|
|
200
|
-
### 2. Data Analysis & Reporting ✅
|
|
201
|
-
**Why TIDD-EC Excels:**
|
|
202
|
-
- Structured approach ensures completeness
|
|
203
|
-
- Dos/don'ts prevent analytical errors
|
|
204
|
-
- Examples standardize report format
|
|
205
|
-
|
|
206
|
-
**Example Scenarios:**
|
|
207
|
-
- Market research summaries
|
|
208
|
-
- Social media analysis
|
|
209
|
-
- Competitive intelligence reports
|
|
210
|
-
- Survey data interpretation
|
|
211
|
-
|
|
212
|
-
### 3. Technical Documentation ✅
|
|
213
|
-
**Why TIDD-EC Excels:**
|
|
214
|
-
- Clear instructions ensure consistency
|
|
215
|
-
- Don'ts prevent common documentation errors
|
|
216
|
-
- Examples show proper format and depth
|
|
217
|
-
|
|
218
|
-
**Example Scenarios:**
|
|
219
|
-
- API documentation
|
|
220
|
-
- User guides
|
|
221
|
-
- Installation instructions
|
|
222
|
-
- Troubleshooting guides
|
|
223
|
-
|
|
224
|
-
### 4. Content Translation ✅
|
|
225
|
-
**Why TIDD-EC Excels:**
|
|
226
|
-
- Dos specify required preservation (tone, meaning)
|
|
227
|
-
- Don'ts prevent cultural missteps
|
|
228
|
-
- Context ensures appropriate localization
|
|
229
|
-
|
|
230
|
-
**Example Scenarios:**
|
|
231
|
-
- Technical content translation
|
|
232
|
-
- Marketing material localization
|
|
233
|
-
- Legal document translation
|
|
234
|
-
- Product description adaptation
|
|
235
|
-
|
|
236
|
-
### 5. Constraint-Heavy Tasks ✅
|
|
237
|
-
**Why TIDD-EC Excels:**
|
|
238
|
-
- Explicit boundaries through dos/don'ts
|
|
239
|
-
- Prevents scope creep
|
|
240
|
-
- Ensures compliance with requirements
|
|
241
|
-
|
|
242
|
-
**Example Scenarios:**
|
|
243
|
-
- Regulatory compliance content
|
|
244
|
-
- Legal document generation
|
|
245
|
-
- Medical/healthcare content
|
|
246
|
-
- Financial reporting
|
|
247
|
-
|
|
248
|
-
## Selection Criteria
|
|
249
|
-
|
|
250
|
-
### Choose TIDD-EC when:
|
|
251
|
-
- ✅ Task requires very clear boundaries
|
|
252
|
-
- ✅ Need to explicitly state what NOT to do
|
|
253
|
-
- ✅ Common errors need prevention
|
|
254
|
-
- ✅ Quality consistency is critical
|
|
255
|
-
- ✅ Working with constrained domains (legal, medical, technical)
|
|
256
|
-
- ✅ Explicit examples significantly improve output
|
|
257
|
-
- ✅ Precision and accuracy matter more than creativity
|
|
258
|
-
|
|
259
|
-
### Avoid TIDD-EC when:
|
|
260
|
-
- ❌ Task is simple and straightforward (use RTF)
|
|
261
|
-
- ❌ Creative freedom is more important than constraints
|
|
262
|
-
- ❌ Open-ended exploration is the goal
|
|
263
|
-
- ❌ Dos/don'ts would limit beneficial creativity
|
|
264
|
-
- ❌ Task doesn't have clear right/wrong approaches
|
|
265
|
-
|
|
266
|
-
## TIDD-EC vs. Other Frameworks
|
|
267
|
-
|
|
268
|
-
### TIDD-EC vs. CO-STAR
|
|
269
|
-
|
|
270
|
-
| Aspect | TIDD-EC | CO-STAR |
|
|
271
|
-
|--------|---------|---------|
|
|
272
|
-
| **Focus** | Precision & boundaries | Communication & audience |
|
|
273
|
-
| **Unique Strength** | Explicit dos/don'ts | Tone & audience targeting |
|
|
274
|
-
| **Best For** | Constrained tasks | Content creation |
|
|
275
|
-
| **Creativity** | More constrained | More flexible |
|
|
276
|
-
| **Error Prevention** | Explicit | Implicit |
|
|
277
|
-
|
|
278
|
-
**Use TIDD-EC for**: Technical tasks, customer support, data analysis
|
|
279
|
-
**Use CO-STAR for**: Marketing content, blog posts, creative writing
|
|
280
|
-
|
|
281
|
-
### TIDD-EC vs. RISEN
|
|
282
|
-
|
|
283
|
-
| Aspect | TIDD-EC | RISEN |
|
|
284
|
-
|--------|---------|-------|
|
|
285
|
-
| **Focus** | Explicit guidance | Process & methodology |
|
|
286
|
-
| **Constraints** | Dos/Don'ts | Narrowing |
|
|
287
|
-
| **Examples** | Required component | Not required |
|
|
288
|
-
| **Best For** | High-precision tasks | Multi-step processes |
|
|
289
|
-
|
|
290
|
-
**Use TIDD-EC for**: Tasks requiring explicit positive/negative guidance
|
|
291
|
-
**Use RISEN for**: Complex workflows with sequential steps
|
|
292
|
-
|
|
293
|
-
### TIDD-EC vs. RISE-IE
|
|
294
|
-
|
|
295
|
-
| Aspect | TIDD-EC | RISE-IE |
|
|
296
|
-
|--------|---------|---------|
|
|
297
|
-
| **Focus** | Precision guidance | Data transformation |
|
|
298
|
-
| **Input Spec** | Context component | Input component |
|
|
299
|
-
| **Constraints** | Dos/Don'ts | Expectations |
|
|
300
|
-
| **Best For** | Constrained tasks | Analytical tasks |
|
|
301
|
-
|
|
302
|
-
**Use TIDD-EC for**: When explicit dos/don'ts add value
|
|
303
|
-
**Use RISE-IE for**: Standard data processing without heavy constraints
|
|
304
|
-
|
|
305
|
-
## Common Mistakes
|
|
306
|
-
|
|
307
|
-
### 1. Vague Dos/Don'ts
|
|
308
|
-
**Bad**:
|
|
309
|
-
- DO: "Be professional"
|
|
310
|
-
- DON'T: "Make errors"
|
|
311
|
-
|
|
312
|
-
**Good**:
|
|
313
|
-
- DO: "Use formal language, address customer by name, include specific metrics"
|
|
314
|
-
- DON'T: "Use contractions, include unverified information, exceed 300 words"
|
|
315
|
-
|
|
316
|
-
### 2. Contradictory Instructions
|
|
317
|
-
**Bad**:
|
|
318
|
-
```
|
|
319
|
-
DO: Be comprehensive and thorough
|
|
320
|
-
DON'T: Exceed 100 words
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
**Good**:
|
|
324
|
-
```
|
|
325
|
-
DO: Include top 3 key points with supporting data
|
|
326
|
-
DON'T: Include tangential information or exceed 150 words
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
### 3. Missing Context
|
|
330
|
-
**Bad**:
|
|
331
|
-
```
|
|
332
|
-
CONTEXT: Customer complaint
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
**Good**:
|
|
336
|
-
```
|
|
337
|
-
CONTEXT:
|
|
338
|
-
- Customer: Premium subscriber, 2 years
|
|
339
|
-
- Issue: Billing error, overcharged $50
|
|
340
|
-
- Previous contact: Positive interactions
|
|
341
|
-
- Company policy: Full refund + 10% credit for errors
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
### 4. Generic Examples
|
|
345
|
-
**Bad**:
|
|
346
|
-
```
|
|
347
|
-
EXAMPLES: Write a good response
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
**Good**:
|
|
351
|
-
```
|
|
352
|
-
EXAMPLES:
|
|
353
|
-
"Dear John, I've reviewed your account and I see exactly what happened. Due to
|
|
354
|
-
a system error, you were charged twice for your March subscription. I've immediately
|
|
355
|
-
processed a $50 refund to your original payment method (arrives in 3-5 business days)
|
|
356
|
-
and added a $5 account credit as an apology. This won't happen again - we've fixed
|
|
357
|
-
the system issue. Please let me know if you have any questions. - Sarah"
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
## Tips for Effective Use
|
|
361
|
-
|
|
362
|
-
### 1. Make Dos/Don'ts Specific
|
|
363
|
-
- Instead of "use good grammar" → "avoid sentence fragments, use active voice, check spelling"
|
|
364
|
-
- Instead of "be clear" → "define technical terms, use numbered lists, include headers"
|
|
365
|
-
|
|
366
|
-
### 2. Provide Concrete Examples
|
|
367
|
-
- Show both good and bad examples when helpful
|
|
368
|
-
- Include real or realistic examples, not abstract descriptions
|
|
369
|
-
- Match examples to the exact task type
|
|
370
|
-
|
|
371
|
-
### 3. Balance Constraints
|
|
372
|
-
- Enough guidance to prevent errors
|
|
373
|
-
- Not so many restrictions that creativity is stifled
|
|
374
|
-
- Focus dos/don'ts on high-impact areas
|
|
375
|
-
|
|
376
|
-
### 4. Use Context Effectively
|
|
377
|
-
- Include relevant background that affects the task
|
|
378
|
-
- Provide data or information the LLM needs to reference
|
|
379
|
-
- Mention constraints from the business/domain context
|
|
380
|
-
|
|
381
|
-
## Variations and Combinations
|
|
382
|
-
|
|
383
|
-
### TIDD-EC + Chain of Thought
|
|
384
|
-
For analytical tasks requiring both precision and reasoning:
|
|
385
|
-
```
|
|
386
|
-
[Standard TIDD-EC structure]
|
|
387
|
-
|
|
388
|
-
ADDITIONAL INSTRUCTION:
|
|
389
|
-
Show your reasoning step-by-step before providing the final answer.
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
### TIDD-EC Light (TIDD)
|
|
393
|
-
For simpler tasks that don't need all components:
|
|
394
|
-
```
|
|
395
|
-
TASK TYPE: [task]
|
|
396
|
-
INSTRUCTIONS: [steps]
|
|
397
|
-
DO: [requirements]
|
|
398
|
-
DON'T: [restrictions]
|
|
399
|
-
```
|
|
400
|
-
(Omit Examples and Context if not needed)
|
|
401
|
-
|
|
402
|
-
### TIDD-EC + Style Guide
|
|
403
|
-
For content requiring adherence to brand standards:
|
|
404
|
-
```
|
|
405
|
-
[Standard TIDD-EC structure]
|
|
406
|
-
|
|
407
|
-
STYLE GUIDE:
|
|
408
|
-
- Tone: [specific tone]
|
|
409
|
-
- Voice: [first person / third person / etc.]
|
|
410
|
-
- Terminology: [approved terms list]
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
## Quick Reference
|
|
414
|
-
|
|
415
|
-
| Component | Focus | Key Question |
|
|
416
|
-
|-----------|-------|--------------|
|
|
417
|
-
| **T**ask Type | Category | "What kind of task is this?" |
|
|
418
|
-
| **I**nstructions | Steps | "What are the exact steps?" |
|
|
419
|
-
| **D**o | Requirements | "What MUST be included?" |
|
|
420
|
-
| **D**on't | Restrictions | "What must be AVOIDED?" |
|
|
421
|
-
| **E**xamples | Samples | "What does good look like?" |
|
|
422
|
-
| **C**ontext | Background | "What information is relevant?" |
|
|
423
|
-
|
|
424
|
-
## Assessment Checklist
|
|
425
|
-
|
|
426
|
-
When applying TIDD-EC, verify:
|
|
427
|
-
- [ ] Task type clearly defines the activity category
|
|
428
|
-
- [ ] Instructions are specific and sequential
|
|
429
|
-
- [ ] Dos specify concrete actions and requirements
|
|
430
|
-
- [ ] Don'ts prevent specific errors or approaches
|
|
431
|
-
- [ ] Dos and don'ts don't contradict each other
|
|
432
|
-
- [ ] Examples are concrete and realistic
|
|
433
|
-
- [ ] Examples match the task type and requirements
|
|
434
|
-
- [ ] Context provides necessary background
|
|
435
|
-
- [ ] Context includes relevant constraints
|
|
436
|
-
- [ ] All components work together coherently
|
|
437
|
-
|
|
438
|
-
## Research Sources
|
|
439
|
-
|
|
440
|
-
Based on authoritative sources documenting TIDD-EC alongside CO-STAR:
|
|
441
|
-
|
|
442
|
-
1. **Mastering Prompt Engineering: A Guide to the CO-STAR and TIDD-EC Frameworks** - Vivas.AI, Medium
|
|
443
|
-
- [https://vivasai01.medium.com/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks-3334588cb908](https://vivasai01.medium.com/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks-3334588cb908)
|
|
444
|
-
|
|
445
|
-
2. **Mastering Prompt Engineering: A Guide to the CO-STAR and TIDD-EC Frameworks** - GPT Teams
|
|
446
|
-
- [https://gptteams.ai/articles/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks](https://gptteams.ai/articles/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks)
|
|
447
|
-
|
|
448
|
-
3. **In conversation with AI - when Prompt Engineering meets Linguistics** - Scott Logic Blog
|
|
449
|
-
- [https://blog.scottlogic.com/2024/07/12/when-prompt-engineering-meets-linguistics.html](https://blog.scottlogic.com/2024/07/12/when-prompt-engineering-meets-linguistics.html)
|
|
450
|
-
|
|
451
|
-
## Key Takeaways
|
|
452
|
-
|
|
453
|
-
1. ✅ TIDD-EC excels in high-precision tasks requiring clear boundaries
|
|
454
|
-
2. ✅ The explicit "Dos and Don'ts" structure prevents common errors
|
|
455
|
-
3. ✅ Ideal for customer support, data analysis, technical documentation
|
|
456
|
-
4. ✅ Examples component ensures quality consistency
|
|
457
|
-
5. ✅ More constrained than CO-STAR, more explicit than RISEN
|
|
458
|
-
6. ✅ Best when accuracy and compliance matter more than creativity
|
|
459
|
-
7. ⚠️ Can be overkill for simple tasks or creative work
|
|
460
|
-
|
|
461
|
-
## Summary
|
|
462
|
-
|
|
463
|
-
TIDD-EC is a precision-focused framework that shines in scenarios requiring:
|
|
464
|
-
- **Explicit boundaries** (dos and don'ts)
|
|
465
|
-
- **Error prevention** (common mistakes explicitly avoided)
|
|
466
|
-
- **Quality consistency** (examples set standards)
|
|
467
|
-
- **Clear task definition** (task type categorization)
|
|
468
|
-
- **Complete context** (background information provided)
|
|
469
|
-
|
|
470
|
-
Use TIDD-EC when the cost of errors is high, precision matters more than creativity, and you can clearly articulate both what should and shouldn't be done.
|
|
1
|
+
# TIDD-EC Framework
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
TIDD-EC is a precision-focused prompt engineering framework that excels in providing clear boundaries and actionable guidance through explicit "Dos and Don'ts." Originally documented alongside CO-STAR, it emphasizes clarity and specificity in task execution, making it ideal for tasks requiring detailed instructions and explicit constraints.
|
|
6
|
+
|
|
7
|
+
**Key Strength**: Explicit positive (Do) and negative (Don't) guidance prevents errors and misinterpretations.
|
|
8
|
+
|
|
9
|
+
## Components
|
|
10
|
+
|
|
11
|
+
### T - Task Type
|
|
12
|
+
**Purpose:** Clearly indicate the type of activity the LLM should perform.
|
|
13
|
+
|
|
14
|
+
**Questions to Ask:**
|
|
15
|
+
- What kind of task is this? (analysis, generation, transformation, etc.)
|
|
16
|
+
- What is the primary output type?
|
|
17
|
+
- What category does this fall into?
|
|
18
|
+
|
|
19
|
+
**Examples:**
|
|
20
|
+
- "Task Type: Data Analysis and Summarization"
|
|
21
|
+
- "Task Type: Technical Documentation Generation"
|
|
22
|
+
- "Task Type: Customer Support Response"
|
|
23
|
+
- "Task Type: Content Translation with Context Preservation"
|
|
24
|
+
|
|
25
|
+
### I - Instructions
|
|
26
|
+
**Purpose:** Outline the specific steps or guidelines to accomplish the task.
|
|
27
|
+
|
|
28
|
+
**Questions to Ask:**
|
|
29
|
+
- What are the exact steps to follow?
|
|
30
|
+
- What methodology should be used?
|
|
31
|
+
- What's the sequence of actions?
|
|
32
|
+
- What standards or guidelines apply?
|
|
33
|
+
|
|
34
|
+
**Examples:**
|
|
35
|
+
- "Read the customer feedback, categorize by sentiment, identify top 3 themes, provide quantitative summary"
|
|
36
|
+
- "Follow the company style guide for technical documentation"
|
|
37
|
+
- "Use a three-paragraph structure: problem, solution, next steps"
|
|
38
|
+
|
|
39
|
+
### D - Do
|
|
40
|
+
**Purpose:** Specify actions the LLM should take, language to use, structures to include, and information that must be present.
|
|
41
|
+
|
|
42
|
+
**Questions to Ask:**
|
|
43
|
+
- What MUST be included in the response?
|
|
44
|
+
- What language or terminology should be used?
|
|
45
|
+
- What structure should be followed?
|
|
46
|
+
- What tone or style is required?
|
|
47
|
+
|
|
48
|
+
**Examples:**
|
|
49
|
+
- "DO use professional, empathetic language"
|
|
50
|
+
- "DO include specific metrics and data points"
|
|
51
|
+
- "DO cite sources for all factual claims"
|
|
52
|
+
- "DO start with an executive summary"
|
|
53
|
+
- "DO use bullet points for lists over 3 items"
|
|
54
|
+
|
|
55
|
+
### D - Don't
|
|
56
|
+
**Purpose:** Highlight actions or elements to avoid, preventing common errors or misinterpretations.
|
|
57
|
+
|
|
58
|
+
**Questions to Ask:**
|
|
59
|
+
- What should absolutely NOT be included?
|
|
60
|
+
- What mistakes should be avoided?
|
|
61
|
+
- What language or approaches are inappropriate?
|
|
62
|
+
- What common errors need prevention?
|
|
63
|
+
|
|
64
|
+
**Examples:**
|
|
65
|
+
- "DON'T use technical jargon without explanation"
|
|
66
|
+
- "DON'T make assumptions about user expertise"
|
|
67
|
+
- "DON'T include information older than 6 months"
|
|
68
|
+
- "DON'T exceed 500 words"
|
|
69
|
+
- "DON'T use passive voice"
|
|
70
|
+
|
|
71
|
+
### E - Examples
|
|
72
|
+
**Purpose:** Provide concrete examples of desired outcomes or responses.
|
|
73
|
+
|
|
74
|
+
**Questions to Ask:**
|
|
75
|
+
- What does good output look like?
|
|
76
|
+
- Can you show 2-3 reference examples?
|
|
77
|
+
- What format should be followed?
|
|
78
|
+
- What quality level is expected?
|
|
79
|
+
|
|
80
|
+
**Examples:**
|
|
81
|
+
- "Example of good response: [detailed example]"
|
|
82
|
+
- "See attached sample reports for formatting"
|
|
83
|
+
- "Similar to our previous Q3 analysis format"
|
|
84
|
+
|
|
85
|
+
### C - Context (User Content)
|
|
86
|
+
**Purpose:** Provide data or background information for the LLM to reference.
|
|
87
|
+
|
|
88
|
+
**Questions to Ask:**
|
|
89
|
+
- What background information is needed?
|
|
90
|
+
- What data is being provided?
|
|
91
|
+
- What context affects the task?
|
|
92
|
+
- What constraints exist in the situation?
|
|
93
|
+
|
|
94
|
+
**Examples:**
|
|
95
|
+
- "Context: This is for a B2B SaaS company in healthcare sector"
|
|
96
|
+
- "User Content: Attached customer feedback CSV with 500 entries"
|
|
97
|
+
- "Background: Previous campaign had 15% conversion rate"
|
|
98
|
+
|
|
99
|
+
## Template Structure
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
TASK TYPE:
|
|
103
|
+
[Clear indication of activity type]
|
|
104
|
+
|
|
105
|
+
INSTRUCTIONS:
|
|
106
|
+
[Specific steps and guidelines]
|
|
107
|
+
1. [Step 1]
|
|
108
|
+
2. [Step 2]
|
|
109
|
+
3. [Continue...]
|
|
110
|
+
|
|
111
|
+
DO:
|
|
112
|
+
- [Action or element to include]
|
|
113
|
+
- [Required approach or language]
|
|
114
|
+
- [Structure to follow]
|
|
115
|
+
|
|
116
|
+
DON'T:
|
|
117
|
+
- [Action or element to avoid]
|
|
118
|
+
- [Error to prevent]
|
|
119
|
+
- [Inappropriate approach]
|
|
120
|
+
|
|
121
|
+
EXAMPLES:
|
|
122
|
+
[Concrete examples of desired outcome]
|
|
123
|
+
Example 1: [...]
|
|
124
|
+
Example 2: [...]
|
|
125
|
+
|
|
126
|
+
CONTEXT:
|
|
127
|
+
[Background information and user-provided content]
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Complete Example
|
|
131
|
+
|
|
132
|
+
### Before TIDD-EC:
|
|
133
|
+
"Help with customer complaint response."
|
|
134
|
+
|
|
135
|
+
### After TIDD-EC:
|
|
136
|
+
```
|
|
137
|
+
TASK TYPE:
|
|
138
|
+
Customer Support Response - Complaint Resolution
|
|
139
|
+
|
|
140
|
+
INSTRUCTIONS:
|
|
141
|
+
1. Acknowledge the customer's frustration and validate their concern
|
|
142
|
+
2. Apologize for the inconvenience caused
|
|
143
|
+
3. Explain what happened (if known) in simple terms
|
|
144
|
+
4. Provide a concrete solution or next steps
|
|
145
|
+
5. Include timeline for resolution
|
|
146
|
+
6. Offer additional support contact information
|
|
147
|
+
|
|
148
|
+
DO:
|
|
149
|
+
- Use empathetic, professional language
|
|
150
|
+
- Personalize the response with customer name
|
|
151
|
+
- Provide specific action items with timeframes
|
|
152
|
+
- Include direct contact information for follow-up
|
|
153
|
+
- Express genuine concern for their experience
|
|
154
|
+
- Keep response between 150-250 words
|
|
155
|
+
|
|
156
|
+
DON'T:
|
|
157
|
+
- Make excuses or deflect blame
|
|
158
|
+
- Use template language that sounds robotic
|
|
159
|
+
- Make promises you can't keep
|
|
160
|
+
- Include technical jargon or system error codes
|
|
161
|
+
- Use passive voice ("mistakes were made")
|
|
162
|
+
- Exceed 250 words or write less than 150
|
|
163
|
+
|
|
164
|
+
EXAMPLES:
|
|
165
|
+
Example 1 - Good Response:
|
|
166
|
+
"Dear Sarah, I'm truly sorry that your order arrived damaged. I understand how
|
|
167
|
+
frustrating this must be, especially since you needed it for this weekend's event.
|
|
168
|
+
This happened because of a packaging error in our warehouse. Here's what I'm doing
|
|
169
|
+
to fix this: (1) I'm sending a replacement via overnight shipping at no charge -
|
|
170
|
+
you'll have it by Friday 2 PM, (2) You'll receive a full refund for the original
|
|
171
|
+
order within 24 hours. If you have any concerns, please reach me directly at
|
|
172
|
+
sarah.smith@company.com or 555-1234. We value your business and will make this right."
|
|
173
|
+
|
|
174
|
+
Example 2 - Bad Response (What to Avoid):
|
|
175
|
+
"We apologize for any inconvenience. Due to system errors, your order was damaged.
|
|
176
|
+
Please contact our support team for further assistance. Ticket #12345."
|
|
177
|
+
|
|
178
|
+
CONTEXT:
|
|
179
|
+
- Company: E-commerce retailer specializing in home goods
|
|
180
|
+
- Customer: Premium member who shops regularly
|
|
181
|
+
- Issue: Damaged item received, needed for event
|
|
182
|
+
- Previous interactions: Generally positive, 4.5/5 satisfaction rating
|
|
183
|
+
- Company policy: Full refunds + replacement for damaged items
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Best Use Cases
|
|
187
|
+
|
|
188
|
+
### 1. Customer Support & Chatbots ✅
|
|
189
|
+
**Why TIDD-EC Excels:**
|
|
190
|
+
- Explicit dos/don'ts prevent common customer service mistakes
|
|
191
|
+
- Examples ensure consistent tone and quality
|
|
192
|
+
- Clear boundaries improve response accuracy
|
|
193
|
+
|
|
194
|
+
**Example Scenarios:**
|
|
195
|
+
- Complaint resolution
|
|
196
|
+
- Product inquiries
|
|
197
|
+
- Refund requests
|
|
198
|
+
- Technical support responses
|
|
199
|
+
|
|
200
|
+
### 2. Data Analysis & Reporting ✅
|
|
201
|
+
**Why TIDD-EC Excels:**
|
|
202
|
+
- Structured approach ensures completeness
|
|
203
|
+
- Dos/don'ts prevent analytical errors
|
|
204
|
+
- Examples standardize report format
|
|
205
|
+
|
|
206
|
+
**Example Scenarios:**
|
|
207
|
+
- Market research summaries
|
|
208
|
+
- Social media analysis
|
|
209
|
+
- Competitive intelligence reports
|
|
210
|
+
- Survey data interpretation
|
|
211
|
+
|
|
212
|
+
### 3. Technical Documentation ✅
|
|
213
|
+
**Why TIDD-EC Excels:**
|
|
214
|
+
- Clear instructions ensure consistency
|
|
215
|
+
- Don'ts prevent common documentation errors
|
|
216
|
+
- Examples show proper format and depth
|
|
217
|
+
|
|
218
|
+
**Example Scenarios:**
|
|
219
|
+
- API documentation
|
|
220
|
+
- User guides
|
|
221
|
+
- Installation instructions
|
|
222
|
+
- Troubleshooting guides
|
|
223
|
+
|
|
224
|
+
### 4. Content Translation ✅
|
|
225
|
+
**Why TIDD-EC Excels:**
|
|
226
|
+
- Dos specify required preservation (tone, meaning)
|
|
227
|
+
- Don'ts prevent cultural missteps
|
|
228
|
+
- Context ensures appropriate localization
|
|
229
|
+
|
|
230
|
+
**Example Scenarios:**
|
|
231
|
+
- Technical content translation
|
|
232
|
+
- Marketing material localization
|
|
233
|
+
- Legal document translation
|
|
234
|
+
- Product description adaptation
|
|
235
|
+
|
|
236
|
+
### 5. Constraint-Heavy Tasks ✅
|
|
237
|
+
**Why TIDD-EC Excels:**
|
|
238
|
+
- Explicit boundaries through dos/don'ts
|
|
239
|
+
- Prevents scope creep
|
|
240
|
+
- Ensures compliance with requirements
|
|
241
|
+
|
|
242
|
+
**Example Scenarios:**
|
|
243
|
+
- Regulatory compliance content
|
|
244
|
+
- Legal document generation
|
|
245
|
+
- Medical/healthcare content
|
|
246
|
+
- Financial reporting
|
|
247
|
+
|
|
248
|
+
## Selection Criteria
|
|
249
|
+
|
|
250
|
+
### Choose TIDD-EC when:
|
|
251
|
+
- ✅ Task requires very clear boundaries
|
|
252
|
+
- ✅ Need to explicitly state what NOT to do
|
|
253
|
+
- ✅ Common errors need prevention
|
|
254
|
+
- ✅ Quality consistency is critical
|
|
255
|
+
- ✅ Working with constrained domains (legal, medical, technical)
|
|
256
|
+
- ✅ Explicit examples significantly improve output
|
|
257
|
+
- ✅ Precision and accuracy matter more than creativity
|
|
258
|
+
|
|
259
|
+
### Avoid TIDD-EC when:
|
|
260
|
+
- ❌ Task is simple and straightforward (use RTF)
|
|
261
|
+
- ❌ Creative freedom is more important than constraints
|
|
262
|
+
- ❌ Open-ended exploration is the goal
|
|
263
|
+
- ❌ Dos/don'ts would limit beneficial creativity
|
|
264
|
+
- ❌ Task doesn't have clear right/wrong approaches
|
|
265
|
+
|
|
266
|
+
## TIDD-EC vs. Other Frameworks
|
|
267
|
+
|
|
268
|
+
### TIDD-EC vs. CO-STAR
|
|
269
|
+
|
|
270
|
+
| Aspect | TIDD-EC | CO-STAR |
|
|
271
|
+
|--------|---------|---------|
|
|
272
|
+
| **Focus** | Precision & boundaries | Communication & audience |
|
|
273
|
+
| **Unique Strength** | Explicit dos/don'ts | Tone & audience targeting |
|
|
274
|
+
| **Best For** | Constrained tasks | Content creation |
|
|
275
|
+
| **Creativity** | More constrained | More flexible |
|
|
276
|
+
| **Error Prevention** | Explicit | Implicit |
|
|
277
|
+
|
|
278
|
+
**Use TIDD-EC for**: Technical tasks, customer support, data analysis
|
|
279
|
+
**Use CO-STAR for**: Marketing content, blog posts, creative writing
|
|
280
|
+
|
|
281
|
+
### TIDD-EC vs. RISEN
|
|
282
|
+
|
|
283
|
+
| Aspect | TIDD-EC | RISEN |
|
|
284
|
+
|--------|---------|-------|
|
|
285
|
+
| **Focus** | Explicit guidance | Process & methodology |
|
|
286
|
+
| **Constraints** | Dos/Don'ts | Narrowing |
|
|
287
|
+
| **Examples** | Required component | Not required |
|
|
288
|
+
| **Best For** | High-precision tasks | Multi-step processes |
|
|
289
|
+
|
|
290
|
+
**Use TIDD-EC for**: Tasks requiring explicit positive/negative guidance
|
|
291
|
+
**Use RISEN for**: Complex workflows with sequential steps
|
|
292
|
+
|
|
293
|
+
### TIDD-EC vs. RISE-IE
|
|
294
|
+
|
|
295
|
+
| Aspect | TIDD-EC | RISE-IE |
|
|
296
|
+
|--------|---------|---------|
|
|
297
|
+
| **Focus** | Precision guidance | Data transformation |
|
|
298
|
+
| **Input Spec** | Context component | Input component |
|
|
299
|
+
| **Constraints** | Dos/Don'ts | Expectations |
|
|
300
|
+
| **Best For** | Constrained tasks | Analytical tasks |
|
|
301
|
+
|
|
302
|
+
**Use TIDD-EC for**: When explicit dos/don'ts add value
|
|
303
|
+
**Use RISE-IE for**: Standard data processing without heavy constraints
|
|
304
|
+
|
|
305
|
+
## Common Mistakes
|
|
306
|
+
|
|
307
|
+
### 1. Vague Dos/Don'ts
|
|
308
|
+
**Bad**:
|
|
309
|
+
- DO: "Be professional"
|
|
310
|
+
- DON'T: "Make errors"
|
|
311
|
+
|
|
312
|
+
**Good**:
|
|
313
|
+
- DO: "Use formal language, address customer by name, include specific metrics"
|
|
314
|
+
- DON'T: "Use contractions, include unverified information, exceed 300 words"
|
|
315
|
+
|
|
316
|
+
### 2. Contradictory Instructions
|
|
317
|
+
**Bad**:
|
|
318
|
+
```
|
|
319
|
+
DO: Be comprehensive and thorough
|
|
320
|
+
DON'T: Exceed 100 words
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
**Good**:
|
|
324
|
+
```
|
|
325
|
+
DO: Include top 3 key points with supporting data
|
|
326
|
+
DON'T: Include tangential information or exceed 150 words
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
### 3. Missing Context
|
|
330
|
+
**Bad**:
|
|
331
|
+
```
|
|
332
|
+
CONTEXT: Customer complaint
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
**Good**:
|
|
336
|
+
```
|
|
337
|
+
CONTEXT:
|
|
338
|
+
- Customer: Premium subscriber, 2 years
|
|
339
|
+
- Issue: Billing error, overcharged $50
|
|
340
|
+
- Previous contact: Positive interactions
|
|
341
|
+
- Company policy: Full refund + 10% credit for errors
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### 4. Generic Examples
|
|
345
|
+
**Bad**:
|
|
346
|
+
```
|
|
347
|
+
EXAMPLES: Write a good response
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
**Good**:
|
|
351
|
+
```
|
|
352
|
+
EXAMPLES:
|
|
353
|
+
"Dear John, I've reviewed your account and I see exactly what happened. Due to
|
|
354
|
+
a system error, you were charged twice for your March subscription. I've immediately
|
|
355
|
+
processed a $50 refund to your original payment method (arrives in 3-5 business days)
|
|
356
|
+
and added a $5 account credit as an apology. This won't happen again - we've fixed
|
|
357
|
+
the system issue. Please let me know if you have any questions. - Sarah"
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
## Tips for Effective Use
|
|
361
|
+
|
|
362
|
+
### 1. Make Dos/Don'ts Specific
|
|
363
|
+
- Instead of "use good grammar" → "avoid sentence fragments, use active voice, check spelling"
|
|
364
|
+
- Instead of "be clear" → "define technical terms, use numbered lists, include headers"
|
|
365
|
+
|
|
366
|
+
### 2. Provide Concrete Examples
|
|
367
|
+
- Show both good and bad examples when helpful
|
|
368
|
+
- Include real or realistic examples, not abstract descriptions
|
|
369
|
+
- Match examples to the exact task type
|
|
370
|
+
|
|
371
|
+
### 3. Balance Constraints
|
|
372
|
+
- Enough guidance to prevent errors
|
|
373
|
+
- Not so many restrictions that creativity is stifled
|
|
374
|
+
- Focus dos/don'ts on high-impact areas
|
|
375
|
+
|
|
376
|
+
### 4. Use Context Effectively
|
|
377
|
+
- Include relevant background that affects the task
|
|
378
|
+
- Provide data or information the LLM needs to reference
|
|
379
|
+
- Mention constraints from the business/domain context
|
|
380
|
+
|
|
381
|
+
## Variations and Combinations
|
|
382
|
+
|
|
383
|
+
### TIDD-EC + Chain of Thought
|
|
384
|
+
For analytical tasks requiring both precision and reasoning:
|
|
385
|
+
```
|
|
386
|
+
[Standard TIDD-EC structure]
|
|
387
|
+
|
|
388
|
+
ADDITIONAL INSTRUCTION:
|
|
389
|
+
Show your reasoning step-by-step before providing the final answer.
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### TIDD-EC Light (TIDD)
|
|
393
|
+
For simpler tasks that don't need all components:
|
|
394
|
+
```
|
|
395
|
+
TASK TYPE: [task]
|
|
396
|
+
INSTRUCTIONS: [steps]
|
|
397
|
+
DO: [requirements]
|
|
398
|
+
DON'T: [restrictions]
|
|
399
|
+
```
|
|
400
|
+
(Omit Examples and Context if not needed)
|
|
401
|
+
|
|
402
|
+
### TIDD-EC + Style Guide
|
|
403
|
+
For content requiring adherence to brand standards:
|
|
404
|
+
```
|
|
405
|
+
[Standard TIDD-EC structure]
|
|
406
|
+
|
|
407
|
+
STYLE GUIDE:
|
|
408
|
+
- Tone: [specific tone]
|
|
409
|
+
- Voice: [first person / third person / etc.]
|
|
410
|
+
- Terminology: [approved terms list]
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
## Quick Reference
|
|
414
|
+
|
|
415
|
+
| Component | Focus | Key Question |
|
|
416
|
+
|-----------|-------|--------------|
|
|
417
|
+
| **T**ask Type | Category | "What kind of task is this?" |
|
|
418
|
+
| **I**nstructions | Steps | "What are the exact steps?" |
|
|
419
|
+
| **D**o | Requirements | "What MUST be included?" |
|
|
420
|
+
| **D**on't | Restrictions | "What must be AVOIDED?" |
|
|
421
|
+
| **E**xamples | Samples | "What does good look like?" |
|
|
422
|
+
| **C**ontext | Background | "What information is relevant?" |
|
|
423
|
+
|
|
424
|
+
## Assessment Checklist
|
|
425
|
+
|
|
426
|
+
When applying TIDD-EC, verify:
|
|
427
|
+
- [ ] Task type clearly defines the activity category
|
|
428
|
+
- [ ] Instructions are specific and sequential
|
|
429
|
+
- [ ] Dos specify concrete actions and requirements
|
|
430
|
+
- [ ] Don'ts prevent specific errors or approaches
|
|
431
|
+
- [ ] Dos and don'ts don't contradict each other
|
|
432
|
+
- [ ] Examples are concrete and realistic
|
|
433
|
+
- [ ] Examples match the task type and requirements
|
|
434
|
+
- [ ] Context provides necessary background
|
|
435
|
+
- [ ] Context includes relevant constraints
|
|
436
|
+
- [ ] All components work together coherently
|
|
437
|
+
|
|
438
|
+
## Research Sources
|
|
439
|
+
|
|
440
|
+
Based on authoritative sources documenting TIDD-EC alongside CO-STAR:
|
|
441
|
+
|
|
442
|
+
1. **Mastering Prompt Engineering: A Guide to the CO-STAR and TIDD-EC Frameworks** - Vivas.AI, Medium
|
|
443
|
+
- [https://vivasai01.medium.com/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks-3334588cb908](https://vivasai01.medium.com/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks-3334588cb908)
|
|
444
|
+
|
|
445
|
+
2. **Mastering Prompt Engineering: A Guide to the CO-STAR and TIDD-EC Frameworks** - GPT Teams
|
|
446
|
+
- [https://gptteams.ai/articles/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks](https://gptteams.ai/articles/mastering-prompt-engineering-a-guide-to-the-co-star-and-tidd-ec-frameworks)
|
|
447
|
+
|
|
448
|
+
3. **In conversation with AI - when Prompt Engineering meets Linguistics** - Scott Logic Blog
|
|
449
|
+
- [https://blog.scottlogic.com/2024/07/12/when-prompt-engineering-meets-linguistics.html](https://blog.scottlogic.com/2024/07/12/when-prompt-engineering-meets-linguistics.html)
|
|
450
|
+
|
|
451
|
+
## Key Takeaways
|
|
452
|
+
|
|
453
|
+
1. ✅ TIDD-EC excels in high-precision tasks requiring clear boundaries
|
|
454
|
+
2. ✅ The explicit "Dos and Don'ts" structure prevents common errors
|
|
455
|
+
3. ✅ Ideal for customer support, data analysis, technical documentation
|
|
456
|
+
4. ✅ Examples component ensures quality consistency
|
|
457
|
+
5. ✅ More constrained than CO-STAR, more explicit than RISEN
|
|
458
|
+
6. ✅ Best when accuracy and compliance matter more than creativity
|
|
459
|
+
7. ⚠️ Can be overkill for simple tasks or creative work
|
|
460
|
+
|
|
461
|
+
## Summary
|
|
462
|
+
|
|
463
|
+
TIDD-EC is a precision-focused framework that shines in scenarios requiring:
|
|
464
|
+
- **Explicit boundaries** (dos and don'ts)
|
|
465
|
+
- **Error prevention** (common mistakes explicitly avoided)
|
|
466
|
+
- **Quality consistency** (examples set standards)
|
|
467
|
+
- **Clear task definition** (task type categorization)
|
|
468
|
+
- **Complete context** (background information provided)
|
|
469
|
+
|
|
470
|
+
Use TIDD-EC when the cost of errors is high, precision matters more than creativity, and you can clearly articulate both what should and shouldn't be done.
|