Add Reasoning To Prs
Description
Claude Code hook that writes a forward-only why-block (decisions, trade-offs, assumptions, limitations) into your PR description or commit message at PR-create / direct-push time.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
**English** · [简体中文](docs/i18n/README.zh-CN.md) · [繁體中文](docs/i18n/README.zh-TW.md) · [日本語](docs/i18n/README.ja.md) · [한국어](docs/i18n/README.ko.md) · [Español](docs/i18n/README.es.md) · [Português](docs/i18n/README.pt-BR.md) · [Русский](docs/i18n/README.ru.md)
add-reasoning-to-prs
**Self-documenting PRs.** A [Claude Code](https://docs.claude.com/en/docs/claude-code) hook that writes the *why* — decisions, trade-offs, assumptions, limitations — into every pull request, automatically. Composed by your own agent, on your own machine.
[](https://www.npmjs.com/package/add-reasoning-to-prs) [](https://github.com/backthread/add-reasoning-to-prs/actions/workflows/ci.yml) [](LICENSE) [](https://docs.claude.com/en/docs/claude-code)

AI writes your code. Nobody writes down *why*. Three weeks in, your git history is a pile of decisions you technically own but never actually made — the diff says *what* changed, `git blame` says *who*, and the reasoning is just… gone.
This is a hook that fixes that at the source: right before your agent opens a PR (or lands a commit on your default branch), it writes a short **"why" block** — the decisions it made, the trade-offs it weighed, what it assumed, and what it knowingly left — straight into the description. From the actual session. Not the diff.
Install
One command:
npx add-reasoning-to-prs
That copies the self-contained, zero-dependency hook to a stable location and registers it in your Claude Code set
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git