本文へ移動
cccskills
無料GitHub で公開

recall-rationale

Recall why a past change was made, drawing on Codex session history when available and falling back to commit diff and surrounding code. Use when the user asks to "recall the rationale", "find the rationale", "look up the rationale", "why did I do X", "why did we do X", "why was this changed", or "find the transcript for this commit".

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Recall Rationale

Recover why a change was made. Prefer Codex session history when it can be found; otherwise derive the explanation from git history and current code.

Inputs

Accept any of:

  • A commit SHA
  • A file path, optionally with a line number (<path>:<line>)
  • A reviewer question plus surrounding context
  • A passage with no commit behind it, because the project is not a git repository or the change is uncommitted

If only a file is given, use git blame to resolve the commit that last touched the line.

Step 1: Resolve the Commit

Resolve the target commit:

git rev-parse <sha>
git blame -L <line>,<line> -- <path>

Collect the commit subject, changed files, and relevant diff:

git show --stat --oneline <sha>
git show -- <path>

When there is no commit to resolve, because the project is not a git repository or git blame finds no commit for the line (it reports Not Committed Yet, or fails because the file is untracked), skip the git commands and carry a distinctive stretch of the passage's current text into Step 2, taken from a single line and free of quotes and backslashes, which session files store escaped.

Step 2: Search Codex Session History

If Codex session files are available, search them for the commit SHA, touched file paths, branch name, and distinctive user request text. Without a commit, search for the passage text instead, list the matching files with rg -l, and keep only those whose first-line session_meta record has a cwd at or inside the project directory.

Write the patterns to a file with apply_patch, one per line, then match them literally:

rg -F -f <pattern-file> ~/.codex/sessions

-F is required, not just safer: an unescaped $ inside request text is a regex anchor and silently drops the match.

Read only the smallest relevant transcript excerpts. Prefer sessions close to the commit time and sessions that mention both the file and the task. Without a commit, disregard matches from this search itself (the pattern-file write and the search commands), prefer sessions whose tool calls carry the passage and that mention it often, break ties by recency, and read around the chosen session's last mention when the question is about the passage's current state.

If no matching session is found, continue with the fallback path.

Step 3: Synthesize

If session rationale was found:

  • Lead with the why. The diff already shows the what.
  • Quote or paraphrase only the relevant rationale.
  • Keep the explanation to one or two paragraphs.

If no session rationale was found:

  • Read the commit diff, when there is one, and the surrounding current code.
  • Infer the most likely rationale from the code, tests, plan/spec artifacts, and PR context.
  • Mark the output as fallback-derived.

Step 4: Output

When session rationale was found:

**Commit:** <short-sha> — <subject>
**Session:** <session reference>

<one or two paragraphs of rationale>

When no session rationale was found:

**Commit:** <short-sha> — <subject>
**Session:** none found

<fallback explanation derived from git history and current code>

In either shape, without a commit, write the first line as **Commit:** none (not a git repository) or **Commit:** none (uncommitted).

Then call update_plan to mark this step completed and continue with the next step of the active workflow.

Rules

  • Treat session excerpts as evidence, not ground truth.
  • Do not read full transcript files unless excerpts are insufficient.
  • If current code contradicts a remembered rationale, note the discrepancy.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Apply findings by making the suggested code changes. Applies accepted verdicts, escalates ambiguous findings to the user, and offers to note genuine improvements for later. Use when the user asks to "apply findings", "apply fixes", "apply suggestions", "apply accepted findings", "fix the findings", or "apply the review results".

日本語の概要は準備中です。原文の説明を表示しています。

tobihagemann/turbo4092026年10月13日 更新

Audit the turbo skill lessons that /self-improve writes into this repo's .turbo/handoff/ from other projects, apply the ones the user approves, delete the consumed handoffs, commit and push, and update the installed Turbo skills. Use when the user asks to "read .turbo/handoff and let me know what you think", "read the handoff files and let me know what you think", "review the lesson handoffs", "apply the self-improve handoffs", or "process the turbo handoffs".

日本語の概要は準備中です。原文の説明を表示しています。

tobihagemann/turbo4092026年10月13日 更新

Assess project-wide structural technical debt: complexity hotspots, deprecated API usage, duplication clusters, architecture rot, and low-value tests. Ranks findings by impact and refactor effort into a report at .turbo/technical-debt.md. Use when the user asks to "assess technical debt", "find technical debt", "review technical debt", "what should we refactor", "find refactoring candidates", "where is the code rot", "what's our worst code", "find low-value tests", or "which tests can we delete". Analysis-only — does not modify code.

日本語の概要は準備中です。原文の説明を表示しています。

tobihagemann/turbo4092026年10月13日 更新

Shared changelog conventions and formatting rules referenced by /create-changelog and /update-changelog. Not typically invoked directly.

日本語の概要は準備中です。原文の説明を表示しています。

tobihagemann/turbo4092026年10月13日 更新

Shared changelog conventions and formatting rules referenced by $create-changelog and $update-changelog. Not typically invoked directly.

日本語の概要は準備中です。原文の説明を表示しています。

tobihagemann/turbo4092026年10月13日 更新

Run a non-interactive Claude Code print-mode call from Codex. Use when the user asks to "claude print", "ask claude", "run claude", "consult claude", or when a Codex Turbo skill needs Claude as an independent peer reviewer.

日本語の概要は準備中です。原文の説明を表示しています。

tobihagemann/turbo4092026年10月13日 更新

tobihagemann のスキルをすべて見る

このスキルの問題を報告する