From the-pensieve-plugin
Interactive repair walk for one project meta note — computes a full drift report (file diff + structural checks + verification against the remote), then walks the user through each finding one at a time with yes/no/edit/skip, applying accepted changes via `pensieve-update-meta` and finally bumping `sync.last_synced_commit` to current HEAD. Use this skill when SessionStart reports moderate/heavy drift, when `pensieve-verify-project` shows mismatch, or whenever the user says "reconcile this project". Trigger phrases: "run reconcile", "/pensieve-reconcile", "fix the project meta", "the drift detector fired, repair it", "walk me through the project drift".
How this skill is triggered — by the user, by Claude, or both
Slash command
/the-pensieve-plugin:pensieve-reconcileThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The full repair flow. Slower than `pensieve-update-meta` (multi-step, interactive, may make several MCP calls) but the only way to bring a drifted project meta back to truth.
The full repair flow. Slower than pensieve-update-meta (multi-step, interactive, may make several MCP calls) but the only way to bring a drifted project meta back to truth.
slug: defaults to the current repo's slug (from the SessionStart status block). If you're not inside a git repo, the user must supply it.Combine multiple signals:
git -C <repo_path> diff --name-only <last_synced_commit>..HEAD for the file list. Split into doc files (regex from config) and code files.docs.* path in the frontmatter, check whether it exists in the working tree at <repo_path>. List the missing ones.git -C <repo_path> symbolic-ref refs/remotes/origin/HEAD to detect default branch changes against the stored default_branch.read_note(identifier="projects/<slug>") to load current frontmatter for comparison.git -C <repo_path> log --oneline <last_synced_commit>..HEAD -- <doc paths> to surface noteworthy commits for narrative-body candidates.If slug is not the current repo, also invoke pensieve-verify-project first to get the remote view — local checks alone don't cover the case where the local clone is itself out of date.
For each finding, present it concisely and ask the user. One question at a time. Do not batch.
Templates:
docs.context = CONTEXT.md but no such file exists in the repo. Options: (1) remove the field, (2) point it at a different path, (3) leave as-is and flag for later." → wait for the user.default_branch: master, repo has main. Update?" → wait.docs/adr/0007-something.md was modified in the diff. Want me to read it and propose a frontmatter or narrative update?" → wait.docs/adr/0009-new-decision.md added since last sync — should it be in the docs.adrs glob or referenced explicitly?" → wait.sync.last_synced_commit will be bumped at the end. OK?" → wait.For each accepted finding, call pensieve-update-meta with the targeted field and value. This keeps the mirror write central to one skill — never call edit_note directly from this skill.
If the user wants a narrative-body addition (e.g. "mention the new ADR in the project notes"), call edit_note once at the end for the body change, then immediately call ${CLAUDE_PLUGIN_ROOT}/scripts/write-mirror.sh <slug> with the post-update frontmatter to refresh the mirror. (The body change doesn't affect the mirror's content but the slug-level edit must still re-sync the mirror file as a precaution against partial writes.)
After all findings are processed:
git -C <repo_path> rev-parse HEAD.pensieve-update-meta to set:
sync.last_synced_commit = current HEADsync.last_synced_at = todaysync.last_verified_at = todaysync.last_seen_drift.files_changed = 0sync.last_seen_drift.doc_files_changed = 0sync.last_seen_drift.paths_missing = 0sync.last_seen_drift.default_branch_changed = falseTell the user that — and still bump sync.last_verified_at so the verify TTL is happy. No other writes.
pensieve-update-meta. Batch operations make rollback messy.sync.last_synced_commit bump is the only place this commit field is touched. Other skills must not write it.npx claudepluginhub niklas-flaig/nfl-agent-memory-plugins --plugin the-pensieve-pluginProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.