CMD Guide
HomeCareer & Job Search

Prompt Fundamentals

Step 2 in the Career & Job Search path · 2 concepts · 0 problems

0 / 2 complete

📘 Learn Prompt Fundamentals from zero

Start from zero: a prompt is the instruction you hand an AI model. Within a single call the model sees only the words in front of it — it cannot infer your goal, your stack, or your standards. So the quality of the output is capped by the quality of the prompt.

Analogy: treat the model as a fast, capable freelancer who starts the instant you message and never asks a clarifying question. Say "make me a logo" and you get a logo — probably not yours. Say "a minimalist logo for a fintech startup named Ledger, navy and white, no text, conveying trust" and you get something usable. Same freelancer; the brief is the whole difference.

The canonical scaffold is RTCF: role (who the model acts as), task (the precise action), context (facts it can't infer), and format (the shape of the output) — plus a fifth lever, constraints (length limits, guardrails, what to refuse).

Worked example. Weak: "Help with my resume." Strong: "You are a senior backend hiring manager. I have 3 years in Java/Spring. Rewrite this bullet — 'worked on the payments API' — as one STAR-format line, under 25 words, leading with an action verb and ending with a quantified result." The strong version names a role that can actually judge the work (a hiring manager assesses bullet quality; a recruiter screens for keywords), supplies context, gives one crisp task, and pins the format and constraints. The output goes from filler to interview-ready.

Key insight: the model mirrors your specificity — every ambiguity you leave becomes an assumption it makes for you. Close the ambiguities and you control the result.

✨ Added by the guide to build intuition — not from the source course.

🎯 Guided practice

  1. Easy — turn a vague ask into a structured prompt.

    Goal: get a strong GitHub README from "write a README for my project."

    Step 1 — add a role: "You are an open-source maintainer reviewing a project for newcomer clarity."

    Step 2 — add context the model can't infer: "Project: TaskFlow, a CLI task manager in Python; stores tasks in local JSON; single-user."

    Step 3 — pin the task and format: "Write a README with these sections, in order: one-line description, Install, Usage example, Features (bulleted)."

    Pattern learned: Role + Task + Context + Format. Each element you add removes one assumption the model would otherwise make for you.

  2. Medium — design a reusable, parameterized template for portfolio bullets.

    Goal: a prompt you can rerun for any project, not a one-off.

    Step 1 — identify the variables that change per run (target role, the raw note) and mark them with explicit placeholders.

    Step 2 — write the template: "You are a senior hiring manager for a {ROLE} position. Convert this raw note into one STAR-format resume bullet, under 25 words, leading with an action verb and ending with a quantified result. Note: {RAW_NOTE}."

    Step 3 — add a guardrail (constraint): "If the note contains no metric, ask me for one instead of inventing a number." This blocks fabricated stats — a fireable problem on a real resume, and a known LLM failure mode (hallucination).

    Step 4 — test on two different inputs and confirm both obey the word limit and format. If one drifts, tighten the constraint wording or add a one-shot example of a correct bullet.

    Pattern learned: promote a good one-off into a parameterized template with explicit constraints — the prompt analog of writing a reusable function instead of copy-pasting code.

  3. Harder — use a few-shot prompt when the shape is hard to describe.

    Goal: generate consistent project-pitch lines for a portfolio when adjectives alone keep missing the mark.

    Step 1 — recognize the case: you've described the format in words ("punchy, one sentence, impact-first") and the model still drifts. The fix is to show, not tell.

    Step 2 — supply 2-3 examples of input-to-output, then the real input: "Examples — Note: built a URL shortener → Pitch: 'Shipped a URL shortener handling 10k redirects/day at p99 under 20ms.' Note: made a chat app → Pitch: 'Built a real-time chat app for 500 concurrent users over WebSockets.' Now do this one — Note: {RAW_NOTE}."

    Step 3 — keep examples representative: the model pattern-matches on them, so a sloppy example teaches sloppy output. Two clean examples beat a paragraph of instructions.

    Pattern learned: zero-shot (instruction only) is the default; switch to few-shot (instruction + worked examples) when the desired shape is easier to demonstrate than to specify. This is a distinct prompt type, not just a longer prompt.

✨ Added by the guide — work these before the full problem set.

Lessons in this topic

🧠 Review & recall

Active recall is what moves a topic into long-term memory. Flip each card before revealing, then test yourself — your results are saved on this device.

Flashcard
What are the three key elements of a strong prompt according to the lesson?
tap to reveal →
Structure (how you organize the request), clarity (making your intent unambiguous with direct language), and context (the background information the AI can't infer, like your role, industry, or audience).
💡 SCC: Structure, Clarity, Context — the compass that points the AI.
Flashcard
What three pieces make up a well-structured prompt's 'backbone'?
tap to reveal →
Your Goal (the exact action, e.g. summarize, rewrite, compare, analyze), the Topic/Subject (the specific subject matter), and the Desired Format (bullet points, a paragraph, or a list of steps).
💡 Goal → Topic → Format = the blueprint.
Flashcard
What is the RTCF scaffold and its fifth lever?
tap to reveal →
Role (who the model acts as), Task (the precise action), Context (facts it can't infer), and Format (the shape of the output) — plus a fifth lever, Constraints (length limits, guardrails, what to refuse).
💡 RTCF + Constraints — 'Role, Task, Context, Format, then Constrain.'
Flashcard
Name the four common prompt mistakes to avoid.
tap to reveal →
Being too general (e.g. 'Help me with my writing'), overloading the prompt with many unrelated asks, ignoring the reader/audience, and skipping revisions instead of changing the prompt and retrying.
💡 Vague, Overloaded, Reader-blind, No-revisions = VORN.
Flashcard
What are the three types of prompts for portfolio creation and what does each do?
tap to reveal →
Brainstorming prompts jumpstart creativity (fresh angles, titles, taglines), fact-checking prompts maintain accuracy (verify stats, figures, technical details), and style-enhancement prompts fine-tune language (tone, readability, formality).
💡 Brainstorm → Fact-check → Style = ideate, verify, polish.
Flashcard
When should you switch from a zero-shot prompt to a few-shot prompt?
tap to reveal →
Zero-shot (instruction only) is the default; switch to few-shot (instruction plus 2-3 worked input-to-output examples) when the desired shape is easier to demonstrate than to specify and the model keeps drifting despite descriptive words.
💡 When telling fails, show — examples beat adjectives.
Q1. A learner writes: 'Maybe try to shorten this text?' The lesson would flag this as violating which principle?
Q2. You want ChatGPT to verify that 'Python is commonly used for web development and data analysis' before adding it to your portfolio. Which prompt type is this?
Q3. In the worked resume example, the strong prompt names the role as 'a senior backend hiring manager' rather than 'a recruiter.' Why does that choice matter?
Q4. Which prompt best follows the lesson's structure guidance (goal + topic + format)?
Q5. In the parameterized portfolio-bullet template, why add the guardrail 'If the note contains no metric, ask me for one instead of inventing a number'?