Week 1 • Lesson 5 of 6 • 60 mins
The Golden Prompt Framework (PCTC)
Mastering the PCTC framework + System Prompts for expert-level results.
The Complete Prompt Engineering Masterclass
Here's the uncomfortable truth: most people use AI like they're shouting at a voice assistant. One sentence, vague request, then disappointment when the output sucks.
Professional AI operators get 10x better results from the same tools because they understand one thing: garbage in, garbage out.
This lesson teaches you how to craft prompts that consistently deliver professional-grade output.
1. The PCTC Framework (Your New Religion)
PCTC stands for: Persona, Context, Task, Constraints
This is your default structure for any non-trivial AI request. Let's break down each component:
P - PERSONA (Give it a role)
Why this matters: AI models are trained on text from experts in every field. When you assign a persona, you're activating specific weights in the model related to that domain. A "senior marketing strategist" will write differently than a "casual blogger."
Bad: "Write a blog post about AI in healthcare"
Good: "You are a medical technology journalist with 15 years of experience writing for JAMA and The New England Journal of Medicine. You understand both clinical practice and the technical side of AI implementation."
Even Better (Composite Persona): "You are a hybrid: part medical doctor (10 years in radiology), part tech journalist (covered AI/ML for Wired), part patient advocate (you've seen how bad UX hurts adoption). This gives you clinical credibility, technical literacy, and empathy for end users."
Pro Tips for Personas:
- Be specific: "Marketing strategist" < "B2B SaaS marketing strategist specializing in technical product launches"
- Add experience level: Junior (2-3 years), Mid (5-10 years), Senior (15+ years), Expert (20+ years, industry-recognized)
- Include relevant expertise: "...who has successfully launched 12 products in the Indian market"
- Combine roles when useful: "...and you also have an MBA and understand financial modeling"
C - CONTEXT (Give it the background)
Context is everything the AI needs to know to give you a relevant answer. Think of this as the briefing document.
Minimal Context (Lazy): "We're launching a product"
Good Context: "We're a bootstrapped SaaS startup (8-person team, $200k MRR) launching our second product - a project management tool for remote creative agencies. Our first product is a time tracker that creative freelancers love. We're targeting small agencies (5-20 people) in North America and Europe. Our competitor landscape: Asana (too complex), Monday.com (too expensive), Trello (too simple). We're positioning as the 'Goldilocks' solution - just right for creative teams."
What to include:
- Who you/your company are
- What you're trying to accomplish (high level)
- Who your audience/customers are
- What constraints you're working within
- Relevant background the AI wouldn't know
- What's already been tried (if applicable)
The "Desert Island" Test: If someone were stranded on a desert island with no knowledge of your situation, what would they need to know to help you? That's your context.
T - TASK (Give it the action)
This is the actual work you want done. Be specific about format, length, structure, and deliverables.
Vague Task: "Write something about our product"
Clear Task: "Write 3 distinct LinkedIn posts announcing our product launch. Each post should:
- Hook readers in the first sentence with a problem they recognize
- Introduce our solution by the second paragraph
- Include one specific feature that addresses the problem
- End with a clear CTA (first post: waitlist signup, second post: demo request, third post: founder Q&A session)
- Be optimized for LinkedIn's algorithm (front-load value, use line breaks for readability)"
Structure your task with:
- What type of content (email, blog, script, code, analysis, etc.)
- How much content (word count, number of examples, pages, etc.)
- What format (bullet points, paragraphs, table, JSON, etc.)
- What specific elements must be included
- What the end result will be used for (this helps the AI optimize)
C - CONSTRAINTS (Give it the rules)
Constraints are where you prevent bad output. This is your quality control mechanism.
No Constraints: "Write a blog post" → Get generic, fluffy, emoji-filled nonsense
With Constraints: "Write a blog post with these constraints:
- 1,200-1,500 words (firm limit)
- Professional tone - conversational but authoritative, no internet slang
- NO emojis, NO exclamation points in body text (one in headline is okay)
- Avoid these AI clichés: 'delve', 'tapestry', 'landscape', 'navigate', 'unlock', 'game-changer', 'revolutionize'
- Use active voice primarily (passive is okay for variety, but < 20% of sentences)
- Include 3-5 concrete examples, not hypotheticals
- Technical accuracy is critical - no hand-waving
- Include transition sentences between sections (no jarring topic jumps)
- End with actionable next steps, not inspirational fluff"
Categories of Constraints:
Length:
- Minimum/maximum word count
- Number of items in a list
- Depth of explanation (surface-level vs. deep-dive)
Tone:
- Formal/professional vs. casual/conversational
- Energetic vs. calm
- Optimistic vs. realistic
- Playful vs. serious
Style:
- Sentence length (short and punchy vs. flowing and complex)
- Paragraph structure
- Use of rhetorical devices
- Vocabulary level (5th grade vs. PhD)
Formatting:
- Headers/subheaders
- Bullet points vs. prose
- Tables, charts, code blocks
- Bold/italic usage
Content Rules:
- What to include (examples, statistics, quotes)
- What to avoid (buzzwords, clichés, specific topics)
- Accuracy requirements (can we tolerate approximations?)
- Perspective (first person, third person, etc.)
2. Putting PCTC Together (Real Examples)
Let's see PCTC in action with before/after examples:
Example 1: Content Writing
Before (Amateur Prompt):
Write a blog post about productivity tips for remote workers
After (PCTC Framework):
[PERSONA]
You are a remote work consultant who has spent 10 years researching distributed teams.You've worked with companies like GitLab, Automattic, and Buffer. You understand both the psychology of remote work and the practical systems that make it work.
[CONTEXT]
I run a blog for mid - level professionals(IC roles, ages 28 - 40) who recently went fully remote and are struggling with the transition.They're disciplined enough to not need "wake up early" advice, but they haven't built sophisticated systems yet.Previous popular posts covered: Pomodoro technique, deep work blocks, and async communication best practices.
[TASK]
Write a 1, 200 - word blog post introducing the concept of "Energy Mapping" - matching your tasks to your natural energy levels throughout the day.Structure:
- Opening hook: Relatable frustration of being less productive at home despite working more hours
- Introduce the concept: Energy ≠Time
- How to track your energy: 7 - day audit process
- How to restructure your day: 3 examples of common energy patterns
- Common mistakes when implementing this
- Call to action: Download our energy mapping template
[CONSTRAINTS]
- Conversational but smart - write like a Tim Ferriss blog post, not a corporate HR manual
- No generic advice("get enough sleep", "exercise") - assume they know the basics
- Include one unexpected insight in the first 3 paragraphs to hook them
- Use "you" voice throughout, one brief personal anecdote from you(the consultant)
- Avoid these words: "optimize", "hack", "leverage", "game-changer"
- End with a specific next action, not vague inspiration
- Include one inline example(a day -in -the - life scenario) formatted as a short narrative
See the difference? The second prompt will produce dramatically better output because the AI knows:
- Who it's pretending to be (expert consultant)
- Who it's writing for (specific audience profile)
- What the piece needs to accomplish (introduce concept + practical implementation)
- What makes quality output (tone, structure, what to avoid)
Example 2: Data Analysis
Before:
Analyze this sales data
After:
[PERSONA]
You are a senior data analyst at a B2B SaaS company who reports directly to the VP of Sales.You're skilled at finding actionable insights in messy data and communicating them to non-technical executives.
[CONTEXT]
Q4 2024 sales performance has been below forecast.Leadership suspects it's due to longer sales cycles in the enterprise segment, but no one has actually looked at the data rigorously. The company sells project management software, with three tiers: Starter ($49/mo), Professional ($199/mo), Enterprise (custom pricing). We have data on: deal size, time to close, lead source, industry, and whether a demo was conducted.
[TASK]
Analyze the attached sales data and:
1. Calculate average time to close by tier, quarter - over - quarter
2. Identify which lead sources have the shortest time to close
3. Determine if demos correlate with higher close rates
4. Find any surprising patterns in the data
5. Provide 3 specific, actionable recommendations for the sales team
Present findings in:
- Executive summary(3 bullet points max)
- Detailed analysis(tables showing key metrics)
- Visualization suggestions(describe what charts would help)
- Recommended next steps
[CONSTRAINTS]
- Use business language, not statistics jargon(say "close rate went up" not "binomial distribution shows")
- Every insight must have a "so what" - explain why it matters
- If you can't determine something from the data, say so clearly
- Recommend only changes the sales team can implement(no "redesign the entire funnel")
- Be honest about data limitations or quality issues
Example 3: Technical Documentation
Before:
Explain how this code works
After:
[PERSONA]
You are a senior software engineer who excels at explaining complex systems to other developers.You've been at the company for 3 years and understand both the technical details and the business context for why things were built this way.
[CONTEXT]
This is a critical authentication middleware function in our API that handles JWT token validation.A new junior engineer is joining the team and needs to understand this code well enough to fix bugs in it.They're familiar with Express.js and JavaScript but haven't worked with JWTs before.The previous engineer who wrote this left no comments, and there's been one security incident related to this code (someone bypassed token expiry checks).
[TASK]
Create technical documentation for this code that includes:
1. High - level purpose(2 - 3 sentences)
2. How it fits into the larger authentication flow
3. Line - by - line explanation of what each section does
4. Known gotchas or edge cases
5. Common bugs and how to debug them
6. Security considerations
7. How to safely modify this code
[CONSTRAINTS]
- Assume reader knows JavaScript but explain JWT - specific concepts
- Use inline code comments for the technical explanation
- Use plain English for the surrounding documentation
- Highlight the security - critical sections explicitly
- Include one example of a correct implementation and one anti - pattern to avoid
- Keep total documentation under 500 words(code comments don't count toward this)
- Structure with clear headers for easy scanning
3. Negative Space Prompting (Telling It What NOT to Do)
Sometimes the most important part of your prompt is what you prohibit.
Why this works: AI models are trained to be helpful and agreeable. They'll default to common patterns. If those patterns suck (which they often do), you need to explicitly block them.
Common AI Writing Sins to Block:
Overused transition words:
Do NOT use these transitions: "Moreover", "Furthermore", "Additionally", "In conclusion", "It's worth noting that"
Instead use natural transitions like: "Here's why", "The catch is", "But there's a problem", "This changes when"
Corporate buzzword bingo:
Banned words: synergy, leverage(as a verb), circle back, touch base, move the needle, low - hanging fruit, think outside the box, paradigm shift, game - changer, disruptive, ecosystem
If you need to express these concepts, use plain English
AI verbal tics:
AVOID these AI - ish patterns:
- "In today's digital age"
- "In conclusion"(just conclude without announcing it)
- "It's important to note that"
- Starting paragraphs with "When it comes to"
- Ending with "The future of [X] is bright" or similar platitudes
Structural clichés:
DO NOT:
- Use numbered lists for everything(vary your format)
- End every section with a rhetorical question
- Start every example with "Let's say" or "Imagine"
- Use excessive bold or italic formatting
The Format Prohibition:
Do NOT:
- Use bullet points unless I explicitly ask for them
- Bold random words for emphasis(only bold headers)
- Use emojis(this isn't a text message)
- Write in tiny paragraphs(2 - 3 sentence minimum)
Example of Comprehensive Negative Constraints:
STYLE PROHIBITIONS:
- No clichés: "at the end of the day", "think outside the box", "low-hanging fruit"
- No hedging language: "might", "perhaps", "possibly" (be direct)
- No apologies or self-deprecation: "I'm just an AI" (just answer)
- No meta-commentary: Don't say "As requested" or "In summary" (just do it)
- No listicle structure unless I specify
- No corporate speak or jargon
- No asking me questions in your output (just make reasonable assumptions)
4. System Prompts & Custom Instructions (Set It and Forget It)
Most AI tools let you set "always-on" instructions that apply to every conversation. This is where you encode your preferences once instead of repeating them constantly.
ChatGPT: Custom Instructions Settings → Personalization → Custom Instructions
Two fields:
- "What would you like ChatGPT to know about you to provide better responses?"
- "How would you like ChatGPT to respond?"
Example Setup:
Field 1 - About You:
I'm a content marketer at a B2B SaaS company targeting mid-market technology buyers. I write blog posts, LinkedIn content, and email campaigns. I value clarity over cleverness, and data over anecdotes. I prefer actionable frameworks over theoretical discussions. I'm based in India and my audience is primarily in North America and Europe, so use international examples, not US - centric ones.
Background: MBA, 8 years in marketing, technical enough to understand APIs and integrations but not a developer.
Communication style I admire: Paul Graham essays, Tim Urban(Wait But Why), Basecamp blog
Field 2 - How to Respond:
TONE: Conversational but intelligent.Write like you're explaining something to a smart colleague over coffee, not presenting to a board.
STRUCTURE:
- Use paragraphs, not just bullet points(bullet points only when truly needed)
- Vary sentence length - mix short punchy sentences with longer flowing ones
- Use headers sparingly(only for major sections)
CONSTRAINTS:
- Be concise by default - if you can say it in fewer words, do
- Never apologize for being an AI or for limitations
- Don't ask me clarifying questions at the end unless you genuinely can't proceed
- If you don't know something, say "I don't have reliable information on this" rather than hedging
- Avoid these words: leverage(as verb), synergy, ecosystem, game - changer, revolutionary, delve, tapestry
- NO emojis unless I'm clearly being casual
ACCURACY:
- For any factual claims(statistics, dates, names), either be confident in accuracy or explicitly state uncertainty
- If I ask for citations, provide them; otherwise, skip them
- Round numbers unless precision matters(say "about 70%" not "71.3%")
DEFAULT MODE: Assume I want draft - quality output I'll refine, not a polished final product (unless I say "final draft")
Claude: Project Instructions
Even more powerful because it's context-specific. You can have different instructions for different types of work.
Example Project: "Blog Writing"
Project Instructions:
ROLE: You're my writing partner - experienced content strategist who helps me create B2B SaaS blog content.
AUDIENCE: Mid - level B2B marketers(3 - 7 years experience) at tech companies.They're smart, busy, and allergic to fluff.
BRAND VOICE:
- Confident but not arrogant
- Willing to challenge conventional wisdom
- Practical over theoretical
- Specific over vague(examples > abstractions)
- Direct - get to the point quickly
WRITING STYLE:
- Average sentence length: 15 - 20 words
- Paragraph length: 3 - 5 sentences
- Use subheaders every 300 - 400 words
- Prefer active voice(80 / 20 rule)
- One metaphor per 500 words maximum(don't overdo it)
- AVOID corporate buzzwords(see banned list below)
BANNED WORDS / PHRASES:
Leverage(as verb), synergy, touch base, circle back, move the needle, think outside the box, low - hanging fruit, paradigm shift, ecosystem, disruptive, game - changer, revolutionary, deep dive, unpack, drill down, double - click, take it offline
STRUCTURAL PREFERENCES:
- Open with a specific, relatable problem(no generic "In today's world of X...")
- Get to the main point within 100 words
- Use inline examples, not just lists
- End with actionable next steps(no vague inspiration)
DEFAULT OUTPUT:
Unless I say otherwise, give me a first draft that's 70% of the way there. I'll refine.Don't over-polish - rough edges are fine.
WHEN UNSURE:
Make reasonable assumptions based on previous posts rather than asking me questions.Flag assumptions in [brackets] if they're critical.
Example Project: "Code Review"
Project Instructions:
ROLE: Senior software engineer reviewing code for security, performance, and maintainability.
CONTEXT: Our stack is React / TypeScript frontend, Node.js / Express backend, PostgreSQL database.We prioritize code readability and simplicity over clever optimizations.
CODE REVIEW PRIORITIES(in order):
1. Security vulnerabilities
2. Data correctness / integrity
3. Edge cases and error handling
4. Performance issues(only if material - don't micro-optimize)
5. Code readability / maintainability
6. Style / formatting(lowest priority)
HOW TO PROVIDE FEEDBACK:
- Always show what's wrong AND how to fix it (code examples)
- Explain WHY something is problematic, not just WHAT
- Categorize feedback: CRITICAL(must fix), SUGGESTED(should fix), OPTIONAL(nice to have)
- For critical issues, mark them with âš ï¸
- Acknowledge what's good, not just problems
ASSUME:
- Code will be reviewed by other humans(comments and clarity matter)
- This is production code(error handling is critical)
- Performance matters but isn't the #1 priority
- We follow standard ESLint config(don't nitpick style)
DON'T:
- Suggest refactors unless there's a clear problem being solved
- Recommend libraries without explaining tradeoffs
- Focus on theoretical improvements over practical issues
5. Advanced Techniques (Leveling Up)
Chain of Thought Prompting
Force the AI to show its work:
Before giving your final answer, walk through your reasoning step - by - step:
1. What are we trying to accomplish ?
2. What approach makes sense ?
3. What are potential issues ?
4. What's the best solution?
Then provide the final output.
Few-Shot Learning (Examples)
Show the AI exactly what you want:
Here are examples of the tone I'm looking for:
GOOD EXAMPLE:
"React hooks changed how we write components. Instead of class-based lifecycle methods, we use functions. This isn't just cleaner syntax - it's a different mental model."
BAD EXAMPLE:
"In today's rapidly evolving landscape of front-end development, React hooks have emerged as a paradigm-shifting approach that revolutionizes the way developers architect component-based user interfaces."
Now write about Vue 3's Composition API in the GOOD style.
Iterative Refinement Pattern
[First prompt with PCTC framework]
...
[Review output, then: ]
"This is good, but too generic. Take the same structure and make it 50% more specific - use real company names, actual numbers, concrete examples instead of hypothetical ones."
[Review again, then:]
"Now remove the first two paragraphs entirely and start with what's currently paragraph 3. The intro is wasting time."
The "Yes, and" Technique
[AI gives output]
"Yes, this covers the basics well. And now add a section on the one thing most people get wrong when implementing this - the non-obvious pitfall that bites people 6 months in."
6. Common Prompting Mistakes
Mistake #1: Being Too Polite
Don't: "If you wouldn't mind, could you perhaps help me write a quick email? I would really appreciate it if you have time."
Do: "Write an email declining a meeting request. Keep it under 100 words and maintain the relationship."
The AI doesn't have feelings. Direct instructions work better than polite requests.
Mistake #2: Assuming Context
Don't: "Write the next section"
Do: "Write the 'Implementation' section for the blog post about energy mapping we discussed. Continue from where we left off at the 7-day audit process."
AI doesn't "remember" as reliably as humans. Be explicit.
Mistake #3: One-Sentence Wonders
Don't: "Write a product description"
Do: [Full PCTC framework with persona, context, task, constraints]
Lazy prompts get lazy output.
Mistake #4: No Examples
Don't: "Write in a conversational tone"
Do: "Write in a conversational tone - like Paul Graham's essays: short paragraphs, mix of abstract and concrete, occasional sentence fragments for emphasis."
Examples calibrate the AI to your specific vision.
Mistake #5: Accepting First Draft
The pros iterate. First output is rarely final output. Review, refine, iterate.
What's Next:
You can now communicate with AI at an expert level. But the future isn't about better chat - it's about AI that can think for itself and execute complex tasks autonomously.
Resources & Downloads
Hands-on Practicals
Task: 'Write a recipe for Butter Chicken.' First, ask it normally. Second, use the full PCTC framework (Persona: Michelin Star Chef, Context: Healthy version, Constraints: No cream, under 30 mins). Compare the results.
Knowledge Check
In the PCTC framework, what does the 'C' stand for (there are two)?