Skip to content
Back to skills

Lessons Sync

ASecurity

Use at session start/end or after adding a root lesson, to copy new entries from ~/.claude/memory/lessons/{stack}.md into the current project's memory/lessons/{stack}.md. Append-only, never overwrites project-specific entries; syncs all stacks or one named stack.

  • 7 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 29, 2026
ai-agentsnextjs

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add Tekkiiiii/the-agency --skill lessons-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lessons Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lessons Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tekkiiiii-lessons-sync/badge)](https://www.skillsdirectory.com/skills/tekkiiiii-lessons-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lessons-sync
description: "Use at session start/end or after adding a root lesson, to copy new entries from ~/.claude/memory/lessons/{stack}.md into the current project's memory/lessons/{stack}.md. Append-only, never overwrites project-specific entries; syncs all stacks or one named stack."
---

# Lesson Sync — Root to Nested

Sync `~/.claude/memory/lessons/{stack}.md` (root canonical) to the current project's `memory/lessons/{stack}.md` (nested copy).

---

## Step 1: Determine current project

Read `medium-term.md` at `~/.claude/memory/medium-term.md` to find the current project and its stacks.

---

## Step 2: Determine stacks to sync

**If no argument provided:** sync ALL stacks for the current project (from medium-term.md project table).

**If argument provided** (e.g., `/lessons-sync vercel`): sync only that stack.

---

## Step 3: Sync each stack

For each stack to sync:

1. Read `~/.claude/memory/lessons/{stack}.md` (root)
2. Read `{project}/memory/lessons/{stack}.md` (nested, if exists)
3. If nested doesn't exist: copy root to nested location
4. If nested exists: find entries in root that are NOT in nested, append those entries to nested

**Sync rule**: Root is always canonical. Nested may have extra entries (project-specific). Do NOT remove extra entries from nested. Only ADD entries from root.

**Format for new entries**: Same format as root file. Entries are identifiable by the `[YYYY-MM-DD]` date prefix.

---

## Step 4: Report

After sync:
```
Synced {n} stacks for {project}:
  ✓ vercel.md    (3 new entries)
  ✓ nextjs.md    (1 new entry)
  ✗ windows.md   (already up to date)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.