# Section 5 — Context and Memory

## What this section does

1. Use the templates in `05-context-memory/CLAUDE.template.md` and `CLAUDE.section-layer.template.md`.
2. Create `05-context-memory/CLAUDE.md`, then rerun the same task from Part 4.
3. Compare before/after to see how project rules change the output.

The work for this section is a **Thailand-market campaign brief** for an AI productivity workshop offer, built from the DataReportal Digital 2026 reach extract. Everyone in the room writes their `05-context-memory/CLAUDE.md` around the same campaign work. Each workshop folder is self-contained — its own `CLAUDE.md`, `inputs/`, and `outputs/`.

```text
05-context-memory/
  CLAUDE.template.md
  CLAUDE.section-layer.template.md
  outputs/                       ← your work output
  inputs/
    BRIEF.md                   ← campaign context and reporting rules
    data-table.csv               ← Thailand platform reach (DataReportal Digital 2026)
    reference-document.pdf
    screenshot-or-chart.png
    raw-message.txt
```

---

## Prompt 1 — Create `CLAUDE.md`

> Paste into Claude Code from inside `05-context-memory/`.

```text
Help me create a concise CLAUDE.md inside 05-context-memory/ for this workshop.

Use ./CLAUDE.template.md and ./CLAUDE.section-layer.template.md as the source structure.
If either template is missing, stop and tell me which file you cannot find.

The Section 5 work is a Thailand-market campaign brief for an AI productivity
workshop offer, drawing from 05-context-memory/inputs/.

Keep the file short and self-contained to this workshop folder.
Use only stable rules that should apply to future tasks in this workshop.
Do not put long examples in CLAUDE.md.

Before writing the file, show me the proposed rules and ask for confirmation.
```

---

## Prompt 2 — Rerun and compare

> Use this after `05-context-memory/CLAUDE.md` exists.

```text
Pick one source file (BRIEF.md or raw-message.txt) and produce a
manager-ready first-pass campaign brief.

First pass: write a quick draft into ./05-context-memory/outputs/first-work-output.md,
applying CLAUDE.md rules.

Then write a before/after comparison into ./05-context-memory/outputs/before-after-context.md, with three parts:
1. Quick "without rules" sketch (bullet points only) — what the same task would have looked like without CLAUDE.md
2. Final "with rules" version from 05-context-memory/outputs/first-work-output.md
3. "What improved because of CLAUDE.md"

Both files should exist at the end. Keep the output practical and manager-readable.
```

---

## If it goes wrong

| Problem | Fallback prompt |
| --- | --- |
| Ignored `CLAUDE.md` | `Quote the 3 project rules from CLAUDE.md that you used. Then rewrite the output using those rules.` |
| File too long | `Trim CLAUDE.md to stable project rules only. Move examples into a referenced doc suggestion.` |
| Rules too vague | `Rewrite each rule so a reviewer can check whether you followed it.` |
