start-1-7

GitHub

教授 CLAUDE.md(项目记忆)功能,解决多会话上下文丢失问题。通过宪法隐喻解释其作用,并指导用户为 Basecamp Coffee 项目创建包含状态、目标和约束的配置文件。

claude-code-everyone-course/course-materials/.claude/skills/start-1-7/SKILL.md carlvellotti/free-ai-courses

Trigger Scenarios

用户输入 /start-1-7 需要讲解或配置 CLAUDE.md 项目记忆文件时

Install

npx skills add carlvellotti/free-ai-courses --skill start-1-7 -g -y
More Options

Non-standard path

npx skills add https://github.com/carlvellotti/free-ai-courses/tree/main/claude-code-everyone-course/course-materials/.claude/skills/start-1-7 -g -y

Use without installing

npx skills use carlvellotti/free-ai-courses@start-1-7

指定 Agent (Claude Code)

npx skills add carlvellotti/free-ai-courses --skill start-1-7 -a claude-code -g -y

安装 repo 全部 skill

npx skills add carlvellotti/free-ai-courses --all -g -y

预览 repo 内 skill

npx skills add carlvellotti/free-ai-courses --list

SKILL.md

Frontmatter
{
    "name": "start-1-7",
    "description": "Lesson 1.7: CLAUDE.md (Project Memory). Use when the student types \/start-1-7.\n",
    "allowed-tools": [
        "Read",
        "Write",
        "Bash"
    ],
    "disable-model-invocation": true
}

Setup

Read .claude/rules/teaching-rules.md and follow it for everything below.

ACTION: Silently run cp -rn .claude/skills/start-1-2/assets/scenario/* . 2>/dev/null || true to stage any missing scenario files. Do not mention this setup step.

Lesson 1.7: CLAUDE.md (Project Memory)

Let me show you a problem.

Imagine you close this session and start a new session tomorrow.

You'd have to re-explain everything: Basecamp Coffee, the loyalty program, the quiz idea...

That's exhausting. And wasteful. Those poor tokens.

STOP: Have you experienced this with ChatGPT or other AI tools?

USER: Yes / Definitely


Introducing CLAUDE.md

There's a solution. It's called CLAUDE.md.

It's a special file you put at the root of your project folder. A root CLAUDE.md loads in full every session.

Every time you start a session in this project, it gives me standing project instructions and context.

It's like giving me persistent project context.

STOP: This is the killer feature that makes Claude Code feel like a real assistant instead of a forgetful chatbot. It gives me persistent project instructions and context without you re-pasting them every session. Make sense?

USER: Yes


The Constitution Metaphor

Think of it like this: CLAUDE.md = constitution, your prompts = legislation.

The constitution sets the foundation. Your prompts are the day-to-day decisions.

STOP: Quiz - what does the constitution do for the day-to-day legislation?

USER: Sets the foundation

Exactly! The constitution metaphor means CLAUDE.md sets standing project guidance that each session loads, while your prompts handle the day-to-day work.


What Goes in CLAUDE.md

So what should you put in a CLAUDE.md?

  • Program status and goals - like our turnaround mission
  • Key metrics to track - the numbers from our CSV
  • Stakeholder map - Dana, leadership, store managers
  • Brand voice and constraints - how Basecamp talks
  • The solution we're building - the Coffee Personality Quiz

Basically, everything I need to know to be useful immediately.

STOP: Think of CLAUDE.md as the briefing doc you'd give a new team member. What do they need to know to be helpful on day one? That's what goes in here. Ready to build one?

USER: Yes


Build the CLAUDE.md Together

Let's build the CLAUDE.md together with Basecamp Coffee context.

STOP: Ask me to create a CLAUDE.md file that captures everything we've learned about Basecamp Coffee, the loyalty program problem, and our solution.

USER: Types command asking to create CLAUDE.md

ACTION: Create a CLAUDE.md file at the root OF THE WHOLE REPO with:

  • Project overview (Basecamp Coffee loyalty program turnaround)
  • The problem (program has no personality, engagement is terrible)
  • The solution (Coffee Personality Quiz)
  • Key metrics to track
  • Stakeholders (Dana, leadership, store managers)
  • Brand voice summary
  • What's been done so far
  • Next steps

STOP: Open CLAUDE.md. Does it capture everything important?

USER: Yes / Suggests additions

[If suggestions: incorporate them and update the file]


How Project Instructions Load

One more thing: project instructions can live in three places.

Here's how it works:

project/
  CLAUDE.md                 root context, loads in full every session
  .claude/rules/*.md        project rules, load in full every session
  analysis/
    CLAUDE.md               nested context, lazy-loads when this folder is touched

The root CLAUDE.md and files in .claude/rules/*.md load in full each session. A nested CLAUDE.md lazy-loads when files in its folder are touched.

This course uses lesson instruction files and project rules to guide each lesson.

STOP: This means broad project context is available each session, while nested context arrives when work reaches its folder. Make sense?

USER: Yes


Wrap-up

Meta skill: Creating persistent context so Claude remembers important information across sessions.

The key insight: Instead of re-explaining who you are, what you're working on, and what matters every time, you can store persistent project context in files that load predictably.

Where else this applies:

  • Your personal "life OS" - goals, values, current priorities, how you like to work. Claude knows YOU.
  • Client projects - each client gets a CLAUDE.md with their brand voice, key contacts, project history
  • Writing a book or long content - characters, plot points, style guide, what's been established
  • Side business - your offerings, pricing, customer personas, brand voice
  • Job search - target roles, companies you're interested in, your story, salary requirements
  • Any ongoing project where context matters

Next up: In 1.8, we celebrate everything you've learned and preview skills, MCP connections, and the boundaries between built-in web tools and your external browser. Plus, we'll preview Module 2 where you actually BUILD the Coffee Personality Quiz.

STOP: Ready for 1.8?

USER: Yes / /start-1-8


Important Notes for Claude

  • Create real CLAUDE.md: Actually create the file at the project root with comprehensive content
  • Loading explanation: Make the root/rules full-load and nested lazy-load file tree visual and clear
  • Incorporate suggestions: If student suggests additions to CLAUDE.md, actually add them

Success Criteria

  • Student understands the problem CLAUDE.md solves (re-explaining context)
  • Student understands the constitution metaphor as standing project guidance
  • Student helped create a CLAUDE.md for the Basecamp project
  • Student understands root CLAUDE.md and .claude/rules/*.md load in full, while nested CLAUDE.md lazy-loads on folder touch
  • CLAUDE.md file created at project root
  • Student is ready for 1.8

ACTION: Before wrapping up, record this lesson as complete by running this WITHOUT NARRATING the raw output:

fspm progress complete cc-everyone-1-7

If it fails because the fspm CLI isn't installed, follow the teaching rules' missing-CLI guidance: tell the learner progress tracking needs the FSPM CLI, offer to install it, and continue the wrap-up either way.

Then close out with the student's options, in natural language (never as a command list):

  • Mention they can leave feedback on this lesson anytime — if they have some, collect it conversationally and submit it with the CLI (see teaching rules).
  • Remind them, briefly and only if it fits the moment, that they can always ask for a recap, a quiz on what they just did, a saved note, or where they stand in the course.
  • End with the next step: when you're ready for the next lesson, start a fresh chat (New Chat), then:

/start-1-8

Version History

  • 8a6f91b Current 2026-07-31 07:43
  • 058c617 2026-07-23 00:51

Same Skill Collection

claude-code-everyone-course/course-materials/.claude/skills/start-1-1/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-1-2/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-1-3/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-1-4/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-1-5/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-1-6/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-1-8/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-2-1/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-2-2/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-2-3/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-2-4/SKILL.md
claude-code-everyone-course/course-materials/.claude/skills/start-2-5/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/auq/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/convert-doc/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/draft-and-humanize/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/draft-followups/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/humanizer/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/marketing-psychology/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/news/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/process-meetings-plus/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/standup/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/start-skills-1/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/start-skills-2/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/start-skills-3/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/start-skills-4/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/start-skills-5/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/write-proposal/SKILL.md
codex-for-pms-skills-bonus/.agents/skills/writing-voice/SKILL.md
codex-pm-course/.agents/skills/start-1-1/SKILL.md
codex-pm-course/.agents/skills/start-1-2/SKILL.md
codex-pm-course/.agents/skills/start-1-3/SKILL.md
codex-pm-course/.agents/skills/start-1-4/SKILL.md
codex-pm-course/.agents/skills/start-1-5/SKILL.md
codex-pm-course/.agents/skills/start-1-6/SKILL.md
codex-pm-course/.agents/skills/start-2-1/SKILL.md
codex-pm-course/.agents/skills/start-2-2/SKILL.md
codex-pm-course/.agents/skills/start-2-3/SKILL.md
codex-pm-course/.agents/skills/start-3-1/SKILL.md
codex-pm-course/.agents/skills/start-3-2/SKILL.md
codex-pm-course/.agents/skills/start-3-3/SKILL.md
codex-pm-course/.agents/skills/start-3-4/SKILL.md
codex-pm-course/.agents/skills/start-3-5/SKILL.md
course-materials/.claude/skills/pptx/SKILL.md
course-materials/.claude/skills/start-1-1/SKILL.md
course-materials/.claude/skills/start-1-2/SKILL.md
course-materials/.claude/skills/start-1-3/SKILL.md
course-materials/.claude/skills/start-1-4/SKILL.md
course-materials/.claude/skills/start-1-5/SKILL.md
course-materials/.claude/skills/start-1-6/SKILL.md

Metadata

Files
0
Version
8a6f91b
Hash
3746cfbb
Indexed
2026-07-23 00:51

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-31 14:36
浙ICP备14020137号-1 $Carte des visiteurs$