1.7k vshulcz

deja-reflect Skill

带 deja-vu 的会话结束反思与记忆整理。回顾做了哪些决定、哪些命令出错以及如何修复,并用 deja remember 记录持久的项目规则或决定,让下次会话直接带着它们开始。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Run an end-of-session reflection over the current task and record only durable, non-obvious project facts in deja-vu.

Workflow

  1. Inspect what was already recorded or hit in this project:
  • Run deja notes to check existing promoted decisions so you do not duplicate or contradict an active rule. (If deja is not on PATH, run npx -y @vshulcz/deja-vu ....)
  • Run deja friction to see recurring command failures across sessions.
  1. Distill durable findings from this session:
  • Keep: architectural invariants, required flags/commands that were non-obvious, rejected approaches and why they failed, user-stated project rules.
  • Skip: anything already obvious from reading the code, temporary debugging steps, or one-off typos.
  1. Confirm with the user before writing:
  • Present the 1–3 concise one-line facts you propose to store.
  • Once confirmed, store each via the deja MCP tool (mode: "remember") or in the shell:
     deja remember "<concise self-contained decision and why>" --tag <topic>
  • If an older note was superseded by today's work, mark it with deja promote --state superseded --note "".