Repository navigation
feat(skills): add code-rationale to trace why code has its shape - #262
Merged
Merged
Conversation
Inline port of pstack why: the session queries each evidence category itself, synthesizes per a confidence-tier framework, and checks the load-bearing claims with the skeptic agent before presenting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ource handling Add the MIT license text, skip sources whose scope cannot contain records about the target, state the skeptic's real constraint (no MCP tools), and keep an empty search out of the Direct tier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
コードが「なぜ」いまの形になっているのかを、根拠と確度を付けて調べるスキル
code-rationaleを足します。cursor/plugins の pstackwhy(MIT)を移植したものです。上流は、証拠の種類ごとに調査役のエージェントを並列で立て、まとめ役のエージェントを 1 つ足します。この移植では、すべてを 1 つのセッションの中で順に行います。調査役を絞るには定義にサーバー名を書く必要がありますが、このリポジトリは公開されているので、業務環境のサーバー名は書けません。逆に絞らずに起動すると、書き込み系のツールまで渡ってしまいます。生成と評価を分ける役は、まとめ役のエージェントではなく、既存の
skepticに担わせます。答えの要になる引用を反証させます。変更内容
home/dot_claude/skills/code-rationale/SKILL.md: 手順の本体。起点はコード(blame、log、PR 本文、ADR、メモリ)に置く。使えるソースはセッションのツール一覧から見つけ、7 種類に分ける。そのうえで種類ごとに検索して結果をまとめ、最後にskepticで確かめるreferences/epistemics.md: 5 段階の確度(Direct、Supported、Inferred、Speculative、Unknown)と、それぞれの書き方references/output-template.md: 出力の形(The Question から Confidence Summary まで)LICENSE: 上流の MIT の全文業務環境に固有のソースの使い方は、このリポジトリには入れません。スキルのディレクトリに
references/local-sources.mdがあれば読む、という形にしました。このファイルは手元だけに置きます。そのため、スキルのディレクトリをexact_にしてはいけません。レビューの観点
skepticは MCP を使えない: コード以外のソースから引いた主張は、引用した部分をskepticへの依頼に貼り、元のソースは main session が自分で確かめます。そのぶん、コード以外の主張については、生成と評価の分離が弱くなりますskepticの分も含む)検証
Red(スキルなし)と Green(スキルあり)を、同じ質問で比べました。
main.tmplの署名鍵は business と personal で分かれているのか(答えは ADR 0004 にある)skepticは 10 件の主張をすべて確認したhistory-limitは 50000 なのか(答えはどこにも記録されていない)レビューは
spec-reviewer、comment-reviewer、prose-reviewerの 3 つにかけ、CRITICAL は 0 件でした。IMPORTANT は 3 件出たので、すべて直しました(MIT の許諾文がない、ソースの種類の数を本文に書いている、skepticの制約の書き方が不正確)。🤖 Generated with Claude Code