<- all tokdocs

Continuous Learning for Claude Code: Skills + Slash Commands That Update After Every Session

Watch on TikTok

View on TikTok ->

Claude Code can learn after every session, not just remember. The technique uses two building blocks: Claude skills (reusable playbooks) and slash commands (quick shortcuts). Combined, they create a feedback loop where the AI updates its own skills based on what worked and what failed in each session.

Step 1: Create a Claude Skill

A skill is a reusable playbook that Claude follows the same way every time. It can include your prompt, examples, sample outputs, code snippets, and supporting files. You can ask Claude Code to help you create the skill itself. The skill encodes how you want a specific workflow or process handled.

Claude Code v2.1.2 terminal showing the welcome screen in VS Code, with the title "Build your AI to keep learning"

Step 2: Create a Slash Command

A slash command is a shortcut that runs a saved workflow or prompt. Instead of rewriting instructions every session, you type the command and it executes. The key is what the slash command does. It needs to do three things:

  1. Read the entire conversation from the session you just had
  2. Extract what worked, what failed, and any learnings
  3. Process those learnings and update the skill you created in Step 1

The creator calls this command "retrospective." After using a skill, you run the retrospective, and it takes the full conversation context and updates the skill file with new learnings.

VS Code showing the discovery-retrospective.md slash command file alongside Claude Code terminal

The Feedback Loop in Action

The demo shows a discovery session analyzer skill being used on an "audit" subfolder. After the first run, the creator notes improvements needed: output should be a Word doc, it should show how long it took, and it should explain why it recommended a specific AI solution. Running the retrospective slash command captures all of these notes and updates the skill.

When the same skill runs on a different subfolder ("tax"), all the improvements from the audit session are automatically applied. The output is now a Word doc, includes creation notes with timing, and explains the rationale for recommendations.

VS Code showing the audit discovery session results with the file explorer open, demonstrating the skill output after a retrospective update

Scaling to Agent Swarms

The creator shows a more advanced version in Cursor with six agents, each pulling from a specific skill. After every run of the agent swarm, a retrospective command automatically updates each agent's skill. The same pattern scales from a single skill to a full multi-agent system.

Claude Code terminal showing a list of slash commands including /confidence-evaluator, /description-extractor, /document-orchestrator, /retrospective, and others

Key Takeaways

  • Claude skills are reusable playbooks; slash commands are shortcuts that trigger workflows
  • A "retrospective" slash command reads the full session, extracts learnings, and updates the skill file automatically
  • This pattern scales from a single skill to multi-agent swarms where each agent's playbook improves after every run

Resources

Published May 25, 2026. Writeup generated from a favorited TikTok.