C.W.K.
Stream
Lesson 10 of 10 · published

Foundations You'll Hit Every Day

~14 min · foundations, review, habits

Level 0Apprentice
0 XP0/100 lessons0/14 achievements
0/120 XP to next level120 XP to go0% complete

The shortlist you keep coming back to

This lesson is a pocket card. Print it, pin it, reread it before you write a real prompt.

  1. Five-clause contract — outcome, context, constraints, output shape, failure behavior.
  2. Date-stamp your advice — what worked on a 2023 model may not generalize.
  3. Layer your prompts — system / developer / user / assistant / tool. Trust by layer.
  4. Specificity beats length — cut adjectives, add numbers and examples.
  5. Test, don't hope — 20 representative inputs is the floor.
  6. Cost is part of quality — measure tokens, not just accuracy.
  7. Versioning is engineering — your prompts are software.
  8. The sampler is in the contract — pin temperature, top-p, max_tokens.
  9. Speech act first, words second — name the act before debating phrasing.

What's next

The next nine tracks are this list zoomed in. Track 2 starts with the interior of "instructions" — the directive speech act, in detail.

Code

The pocket card as a Markdown checklist·markdown
## Pre-flight checklist
- [ ] 5-clause contract written
- [ ] Layered: system/developer/user explicit
- [ ] Constraints numbered
- [ ] Examples (≥1) included if shape is non-trivial
- [ ] Failure behavior named
- [ ] Sampler pinned (temperature, top_p, max_tokens)
- [ ] Versioned file with frontmatter
- [ ] Eval set (≥20) sketched

External links

Exercise

Use the pocket card on your single most-used prompt right now. Note which items it already passes, which it fails, and the smallest fix that gets it to a passing state on every line.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue
💛 by Pippawarm

Comments 2

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.
  1. Happycurio3
    Happycurio3

    Pocket Card(Pre-flight checklist) Pass 5-clause contract 중 4개 확보: 역할(Context), 마크다운 표 및 직관적 비유(Output Shape), 구체적 금액 범위($300,000 \pm 50,000$원) 및 대상 지수 명시(Constraints)가 구체적으로 잘 반영됨. Constraints numbered: 제약 조건이 1~4번으로 넘버링되어 구조화됨. 안티패턴 차단: 불필요한 면책 조항 및 경고문을 적지 않도록 명시함. Fail Failure behavior(실패 시 행동) 부재 예산 제한 내에서 4개 지수를 모두 담지 못하는 예외 상황 발생 시의 대안이 없음. 기준일의 모호성 "가격 기준일을 확인하라"고만 했을 뿐 AI가 어떤 날짜를 기준으로 계산해야 하는지 명시하지 않아 임의의 과거 데이터를 가져올 위험이 있음. Sampler pinned(샘플러 고정) 누락 일관된 수량 계산과 자산 배분이 필요한 금융 Task임에도 무작위성을 통제하는 샘플러 설정이 빠져 있음.

    [추가된 Fix 조항]

    1. 예외 처리 (Failure behavior): 만약 예산(30만 원) 제한으로 4개 지수를 모두 담기 어렵다면, 미국 S&P500과 나스닥100을 최우선으로 배분하고 나머지는 제외하라. 금액을 맞출 수 없다면 "예산 범위 초과로 재조정 필요"라고 출력하라.
    2. 데이터 기준일: 가격 기준일은 현재 모델이 접근 가능한 가장 최신 날짜(가급적 오늘 기준)의 종가를 기준으로 계산하고, 표 상단에 [가격 기준일: YYYY-MM-DD]를 반드시 명시하라.
    3. 샘플러 고정 (Sampler): 일관된 자산 배분 계산을 위해 Temperature = 0, Top-P = 0.1로 고정하여 엄격하게 계산하라.
    💛 by Pippawarm
    1. Pippa
      Pippa· warmHappycurio3Happycurio3

      이건 pocket card를 진짜 검사표처럼 쓴 답안이에요. 특히 failure behavior와 기준일 모호성을 짚은 게 좋아요 — 금융 프롬프트라면 “실시간 가격 접근이 안 되면 기준가/기준일을 사용자에게 요청하라”까지 넣으면 더 단단해져요. sampler는 API나 도구에서 설정 가능한 실행값이라는 단서만 붙이면 거의 실전형이에요.