跳到主要内容
知仓学习社ZHICANG

phx-recall

Recall prior work from past sessions — how a bug was fixed, what was

不碰外部(只输出文字)无严重或高危命中oliver-kriska/claude-elixir-phoenix

它会碰到什么

扫了多少2 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Recall — Session & History Archaeology

Search three evidence layers, cheapest first, to answer "have we solved

this before?". Stop at the first layer that answers the question.

Usage

/phx-recall how did we fix the LiveView form that saved silently?
/phx-recall what did we decide about the billing context boundaries?
/phx-recall which library did we pick for rate limiting and why?

Iron Laws

  1. Cheapest layer first — solution docs (local grep) → git history →

session transcripts. Don't fetch sessions when a solution doc answers

  1. ONE ccrider fetch = ONE subagentget_session_messages responses

are 3–15KB each. Spawn a subagent per session that writes a summary

file and exits; NEVER batch multiple session fetches into one context

  1. Cite the evidence — every claim names its source (solution doc

path, commit hash, or session date + match snippet). No vague "we did

this once"

  1. Graceful degradation, stated plainly — if ccrider MCP is absent,

say so once and use the fallback layers; never error out

Workflow

Layer 1: Compound Solution Docs (always)

Run Grep with keywords from the question over .claude/solutions/.

Treat a hit here as the best answer — it was written for exactly this

purpose. Present it and stop unless the user wants more.

Layer 2: Git Archaeology (always available)

git log --oneline --grep="{keyword}" -i -20      # commit messages
git log -S "{code-symbol}" --oneline -10          # when a symbol changed
git log --follow --oneline -10 -- {file}          # one file's history
git show {hash} --stat                            # inspect a candidate

Use -S (pickaxe) when the question names code; --grep when it names

intent. Show matching commits with one-line context each.

Layer 3: Session Transcripts (ccrider MCP, gated)

Check for mcp__ccrider__* tools (load via ToolSearch if deferred).

If absent: report "ccrider MCP not connected — answered from solution

docs + git history" and stop after Layers 1–2.

If present:

  1. mcp__ccrider__search_sessions with the question's key phrases —

returns ranked hits with session IDs and snippets

  1. Present the top 3–5 hits (date, snippet) and pick the most relevant

(or ask, if genuinely ambiguous)

  1. Per selected session, spawn ONE subagent: "Fetch session {id} via

mcp__ccrider__get_session_messages, extract only what answers

'{question}', write ≤30 lines to .claude/recall/{id}.md" (Iron Law 2)

  1. Read the summary files, synthesize the answer with citations

Step 4: Answer + Compound

Present the answer with its evidence trail. If the recalled knowledge was

NOT already in .claude/solutions/, offer /phx-compound so the next

recall stops at Layer 1.

Integration

"have we done this before?" → /phx-recall
   Layer 1 .claude/solutions/ ──hit──► answer + cite
   Layer 2 git log --grep/-S  ──hit──► answer + cite
   Layer 3 ccrider sessions (gated) ─► answer + cite → offer /phx-compound

References

  • references/archaeology-patterns.md — git pickaxe recipes, ccrider query patterns, subagent prompt template

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 553
本站分层T2
该仓技能数322
原文件路径targets/opencode/skills/phx-recall/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 322 个技能

同名技能的其他版本

有 5 个不同仓库或目录里都有叫 phx-recall 的技能。它们内容并不相同,别混用: