Lesson

Add a learned pattern (lesson) that Ralph will remember for future stories.

allierays 11f8379 984 B Updated

File contents

Add Lesson

The user wants to add a lesson - a pattern or rule that Ralph should remember for all future work.

Get the pattern from the user. Ask:

  1. What's the pattern or rule? (e.g., "Always use select_related for foreign keys")
  2. What category? (frontend, backend, general, testing)

Then run:

npx agentic-loop lesson "THE PATTERN HERE" CATEGORY

Examples:

npx agentic-loop lesson "Never hardcode AI model names - use env vars" backend
npx agentic-loop lesson "Always add data-testid for Playwright tests" frontend
npx agentic-loop lesson "Use useCallback for event handlers passed to children" frontend
npx agentic-loop lesson "Always paginate list endpoints" backend

After adding, confirm: "Added lesson. Ralph will include this in every future story prompt."

To see all lessons:

npx agentic-loop lessons

allierays/agentic-loop/tree/main/.claude/skills/lesson commit 11f8379d84

Frequently asked questions

npx skillmds@latest add allierays/lesson