Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全

Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全 is a skill for Claude Code from s977043/river-review. It costs 286 tokens per session (4,951 once invoked), scanned A, original, MIT.

A code review check for whether new requirements and domain knowledge are reflected in names, responsibilities, and module boundaries without losing important design history.

In plain words
What is it for?
It reviews refactors and feature changes against the diff, comments, architecture records, and related design history, then reports questions without changing the code.
Why use it?
Refactoring can make code look cleaner while leaving old assumptions in place or removing constraints and decisions that future maintainers need.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 138 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit It reviews refactors and feature changes against the diff, comments, architecture records, and related design history, then reports questions without changing the code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/knowledge-to-code-alignment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add s977043/river-review --skill knowledge-to-code-alignment
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 138 skills, 18 commands, 5 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/knowledge-to-code-alignment/github.svg)](https://agentmods.dev/skills/s977043/river-review/knowledge-to-code-alignment)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/knowledge-to-code-alignment"><img src="https://agentmods.dev/badge/skills/s977043/river-review/knowledge-to-code-alignment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/knowledge-to-code-alignment"><img src="https://agentmods.dev/badge/skills/s977043/river-review/knowledge-to-code-alignment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 286 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00286 $0.04951
Opus 5 $0.00143 $0.02475
Sonnet 5 $0.00057 $0.00990
Haiku 4.5 $0.00029 $0.00495

Measured 5d ago against content hash e0c555787045, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/midstream/knowledge-to-code-alignment/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Origin / 由来

inspired by:

  • https://agilejourney.uzabase.com/entry/2026/07/16/103000 — リファクタリングを単なるコード整理ではなく、開発によって更新されたチームの理解と、コードが表現する過去の理解との差分を同期する活動として捉える論。

上記は観測された考え方の紹介であり、本文の転載・著者による endorsement を含まない(nominative fair use)。命名は skills/README.md Naming に従い value を表す新規名として付与した。

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: 新知識のコード反映と設計知識の保全は意味的判断が主だが、Knowledge Delta(比較基準)が discover できない差分では実行を止めるゲートが必要。

Goal / 目的

リファクタリング・機能変更の diff に対し、次を diff-time で確認する。テストが通るだけでは見つからない「設計知識の消失」と「古い理解の残存」を検出する。

  1. 新知識の反映: 今回新しく得た要求・ドメイン知識・制約(Knowledge Delta)が、命名(naming)と責務(responsibility)へ反映されているか。
  2. 境界の表現: モジュール/関数の境界(boundary)が、古い理解ではなく現在の understanding を表現しているか。意図がコメントだけで補足され、コード構造へ反映されていない状態になっていないか。
  3. 設計知識の保全: ADR・過去 PR・コメントに残る過去の design history(設計判断・制約・例外・運用知識)を、今回の変更で失っていないか。

report-only。finding/question のみを出力し、自動修正・自動マージはしない。

Non-goals / 扱わないこと(委譲表)

  • ドメイン用語の一貫性: 同一概念の別名・別概念の同名という命名ドリフトは ubiquitous-language-naming が担う。本 skill は用語の一貫性ではなく、新知識が命名・責務へ反映されたか(Knowledge Delta の反映)を見る。
  • 集約・コンテキスト境界の設計判断: 境界づけられたコンテキスト・集約境界の妥当性は bounded-context-language が artifact ベースで担う。本 skill は diff 上の関数/モジュール境界が現在の理解を表現するかに集中する。
  • 投機的抽象化・caller special-case: 将来予測に基づく過剰抽象化・共有基盤への継ぎ接ぎは altitude-generalization が担う。本 skill は「新知識の反映不足」「設計知識の消失」を見る。
  • スコープ逸脱・前提破壊: 指摘対応ループでのスコープ creep・成立済み前提の破壊は fix-scope-integrity が担う。
  • 振る舞い変更と構造変更の分離: 外部挙動維持・振る舞い/構造変更の混在判定は behavior-structure-separation(sibling)が担う。本 skill は挙動ではなく知識の反映・保全を見る。
  • 完了主張の反証: 「全部置換した」「-N%削減」等の完了主張の grep 反証は refactor-claim-audit が担う。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限り NO_REVIEW を返す。

  • inputContext に diff が含まれている。
  • 差分がリポジトリ内で実行されるコードに触れる(docs・コメントのみの差分は対象外)。
  • Knowledge Delta の signaldiff から discover できる。具体的には次のいずれか: diff の追加/削除された hunk・差分内のコメント(// ...# ... 等)・差分内に現れる issue/ADR 参照(#1573ADR-012 等)・コミットや PR 本文が供給されている場合はその記述に、「新しく得た要求・ドメイン知識・制約」または「過去の設計判断・制約」が読み取れる。PlanGate が Knowledge Delta を提供する場合はそれを入力とする。
  • ビルド成果物・生成物(dist/***.map・lockfile・自動生成 manifest)は Gate 判定からもレビュー対象からも除外する。

Read the full file on GitHub · 192 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 192 lines · 286 tokens per session scan A e0c555787045

Subscribe to this mod's changes

Knowledge-to-Code Alignment 新知識のコード反映・設計知識の保全 is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 286 tokens to every session and 4,951 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

logic-health

Sweep a directory, module, or full codebase for logic correctness and produce a scored health dashboard with systemic patterns. Trigger when the user requests a health view — "audit the whole codebase", "health check", "health overview", "logic health overview", "audit src/", "audit auth and payments modules", "where…

hyhmrright/logic-lens · 180 tokens

logic-diff

Compare two code versions for semantic equivalence via semi-formal tracing of both versions side-by-side. Trigger when the user shares a refactor, rewrite, migration, or A/B implementation and wants to confirm behavior is unchanged — "did I break anything", "is this equivalent", "are these equivalent", "semantically…

hyhmrright/logic-lens · 192 tokens

omnicheck-gitlab

Use when checking if MR review findings have been applied — verifies both OmniForge-generated and human reviewer comments against the current diff, posts nudge replies on unaddressed threads.

nexiouscaliver/OmniForge · 41 tokens

omnicheck-github

Use when checking if PR review findings have been applied — verifies both OmniForge-generated and human reviewer comments against the current diff, posts nudge replies on unaddressed threads.

nexiouscaliver/OmniForge · 40 tokens

omnicreate-gitlab

Use when creating a GitLab merge request (OmniForge). Auto-populates title and description from commits, supports draft MRs, labels, assignees, reviewers, and issue linking.

nexiouscaliver/OmniForge · 45 tokens

adversarial-review

Cross-host adversarial review of implementation plans, code/diffs/configs, or prompts/skill definitions. Classifies the artifact, routes the heavy critique to the agent that is NOT the host, cross-validates against independent host-side analysis, and returns material findings with severity and a verdict. Plan/code…

robertoecf/adversarial-review · 149 tokens