.claude/skills/sync/SKILL.md
Maintainer tool: audit curriculum against latest CC release, present update plan for approval, then execute. Does NOT commit.
npx skillsauth add suspicious-cow/cc-self-train syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a maintainer tool that updates the cc-self-train curriculum to match the latest Claude Code release. This is a two-phase process: Phase 1 audits and presents a plan for approval, Phase 2 executes after the maintainer approves.
Never modify existing steps in module files. Never commit changes — the maintainer reviews with git diff first.
The paper (Section 9) describes this as a six-phase pipeline: detect → fetch & triage → map → research → update → verify. Those phases map to the numbered steps below as follows:
| Paper phase | Skill step(s) | |---|---| | Detect version gap | Step 1 | | Fetch & triage changelog (with internal mapping) | Step 2 | | Map to modules/context files | Step 2 (second half) + Step 2.5 verification + Step 2.6 health check | | Research features | Step 3 | | Update files | Step 4 (context) + Step 5 (module steps) | | Verify integrity | Step 6 |
Step 7 is a post-run summary report, not part of the pipeline itself. Steps 2.5 and 2.6 are verification add-ons guarding the triage output; they refine phase 3 rather than introduce new phases.
Phase 1 researches changes and presents a structured update plan. It stops for maintainer approval before making any file changes.
context/changelog-cc.txt (the first line that is just a version number, e.g., 2.1.68). This is the local version (what the curriculum currently covers).curl -sf https://api.github.com/repos/anthropics/claude-code/releases/latest | grep -o '"tag_name"[^"]*"[^"]*"' | head -1 | grep -o '[0-9][0-9.]*'
Fetch the changelog. Try sources in order:
https://code.claude.com/docs/en/changeloghttps://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.mdExtract all entries between v{latest} and v{local}.
Triage each entry. Classify into skip or keep using these criteria:
SKIP (do not include in plan):
KEEP (always include):
/color or -n/fork → /branch, /output-style deprecated)GRAY AREA — keep if it changes documented behavior:
For items you keep, classify as:
Map each relevant entry to the affected module and context file:
| Feature Category | Module | Context File(s) |
|---|---|---|
| CLAUDE.md, /init, /memory, memory timestamps | 01 | claudemd.txt, auto-memory.txt |
| Keyboard shortcuts, input modes, /color, session naming | 01 | interactive-mode.txt |
| Plan mode, git integration, /branch (was /fork) | 02 | common-workflows.txt |
| Rules, CLAUDE.local.md, @imports, /compact | 03 | claudemd.txt |
| Skills, SKILL.md, frontmatter fields, bundled skills | 04 | skillsmd.txt |
| Hooks: PostToolUse, Stop, SessionStart, new events | 05 | hooks.txt, configure-hooks.txt |
| MCP servers, .mcp.json, elicitation, channels | 06 | mcp.txt, skills-plus-mcp.txt |
| Guard rails, PreToolUse, sandbox settings, permissions | 07 | hooks.txt |
| Subagents, .claude/agents/, agent teams, SendMessage | 08 | subagents.txt, agent-teams.txt |
| Tasks, TDD, /loop, cron scheduling | 09 | tasks.txt |
| Worktrees, plugins, eval, parallel dev | 10 | plugins.txt |
| IDE integration, Remote Control, VS Code features | 10 | ide-integration.txt |
| Models, effort levels, /effort, modelOverrides | 01 | models.txt |
| Voice mode, push-to-talk, language support | 01 | interactive-mode.txt |
| Status line, statusline scripts, rate_limits field | 01 | sl-guide.txt |
| System prompt, includeGitInstructions | 02/03 | prompt.txt |
| Feature selection guidance | (all) | when-to-use-features.txt |
If zero entries are curriculum-relevant → report "No curriculum-relevant changes found between v{local} and v{latest}." and stop.
Re-read the full changelog one more time. For each entry you marked as "skip", ask: "Would a CC learner benefit from knowing this changed?" If yes, move it to "keep". Common second-pass catches:
Before presenting the plan, assess curriculum balance:
### X.N headings before the Checkpoint.⚠️ Module Health Warning:
- Module 5 (Hooks) has 14 steps — 2.3x the size of Module 3 (6 steps)
- This sync would add 2 more steps to Module 5
- Consider: Could any of these features live in Module 7 (Guard Rails) instead?
For each significant change (not just minor tweaks):
subagent_type: "claude-code-guide" to research the feature. Prompt the agent with the changelog entry text and ask it to explain the feature's purpose, syntax, configuration, and any gotchas. Example prompt: "Explain the Claude Code feature: [changelog entry]. Include syntax, configuration options, and common pitfalls."context/*.txt) to understand current coverage depth and format.ls context/ and read the first 5-10 lines of every context file. For each changelog entry, check if ANY context file (not just the ones in the mapping table) already documents related functionality. If so, that context file needs updating too. This catches features that span multiple areas.Compile a structured plan with these sections:
Context files to update:
| File | Action | Summary |
|------|--------|---------|
| context/changelog-cc.txt | Prepend | Add v{X} through v{Y} entries |
| context/{file}.txt | Update/Create | {what to add/change/remove} |
Module steps to append:
| Module | Step # | Title | Persona | Content outline | |--------|--------|-------|---------|-----------------| | {NN} | {X.N} | {title} | {Guide/Collaborator/Peer/Launcher} | {1-2 sentence outline} |
New context files to create (if a wholly new feature area):
| File | Purpose |
|------|---------|
| context/{name}.txt | {what it covers} |
Completeness check before presenting plan:
context/*.txt file was considered — not just the ones in the mapping tablePresent the plan tables above. Then print:
---
Phase 1 complete. Review the plan above.
- "proceed" — execute all changes
- "skip X" — remove item X from the plan
- "also add Y" — add something to the plan
- "abort" — cancel sync
---
STOP HERE. Do not proceed to Phase 2 until the maintainer responds.
Phase 2 runs only after the maintainer approves the plan from Phase 1. Apply changes exactly as planned (with any modifications the maintainer requested).
Update context/changelog-cc.txt — prepend new entries in the same format (version header + bullet list). Keep existing entries intact.
Update affected context/*.txt files — read the file first, then apply the right action:
Create new context files if the plan calls for them. Match the format of existing context files.
For each new feature that maps to a module, update all 5 project variants (projects/canvas/modules/, projects/forge/modules/, projects/nexus/modules/, projects/sentinel/modules/, projects/byop/modules/). Never modify or renumber existing steps. For each file:
Read the file to understand its structure, existing steps, and the project's domain context.
Find the Checkpoint section at the bottom. The heading varies by project:
### Checkpoint## Checkpoint### Checkpoint### Checkpoint### CheckpointDetermine the next sequential step number by reading the last step before Checkpoint.
Insert a new step immediately before the Checkpoint heading. All projects use ### X.N Title format (e.g., ### 5.8 Explore Hook Variables).
Match the module's teaching persona. Module files use the intermediate row from CLAUDE.md's adaptive persona table:
Include a > **STOP** block if the feature introduces a new tool or concept that warrants a pause.
Add a checkbox to the Checkpoint list for the new feature.
For Changed features: do NOT modify existing steps. Append a brief note step before Checkpoint mentioning the updated behavior.
For Removed features: append a note step before Checkpoint explaining the removal and the recommended alternative. Do NOT delete existing steps.
Most new CC features fit cleanly into the existing 10-module structure. Occasionally, a feature is so foundational that appending it to an existing module would be misleading — it deserves more prominence than "Step 5.14" buried at the bottom of a module.
Signs a feature might be foundational:
When this happens, do NOT force it into an existing module. Instead:
After all file updates, verify every modified file.
git checkout -- context/<filename> and note the revert.> **STOP** blocks were broken or removedgit checkout -- projects/<project>/modules/<filename> and note the revert.Keep a list of all files that passed and all files that were reverted.
Write .claude/sync-report.md with the following sections:
# Curriculum Sync Report
Synced from CC v{local} to v{latest} on {date}
## Changes Approved
- {brief list of what the maintainer approved from the Phase 1 plan}
## Context Files Updated
- `context/changelog-cc.txt` — added v{latest} entries
- `context/{file}.txt` — {one-line summary of change}
## Module Steps Appended
- Module {N} ({title}): appended step {X.N} "{step title}" across all 5 projects
- Feature: {brief description}
## Reverted Files (failed verification)
- `projects/{project}/modules/{file}` — {reason for revert}
## Not Updated (no relevant changes)
- Module {N} — no changes needed
If no files were reverted, omit the "Reverted Files" section.
Then print a summary:
.claude/sync-report.md for details."git diff, then commit manually when satisfied."git add or git commit. The maintainer reviews and commits.development
Interactive onboarding — helps new users pick a project, verify their dev environment, and scaffold their project directory. Run this when someone first opens Claude Code in this repo.
tools
Run the full release — commit, version bump, tag, push, GitHub Releases, sparq sync. No confirmations needed.
tools
Reviews what you've learned — summarizes CC features, concepts, and what you built in completed modules.
tools
Runs a diagnostic check on your learning environment — verifies setup, project structure, tools, and module-specific requirements.