一键导入
review-changes
Use after completing a feature or before merging to perform a risk-scored review of changed code, check test coverage, and assess blast radius
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use after completing a feature or before merging to perform a risk-scored review of changed code, check test coverage, and assess blast radius
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when encountering unexpected behavior, failing tests, API errors, or runtime panics in Tundra — before proposing any fix
Use when you need to understand codebase structure, locate code, or trace relationships before making changes or answering architecture questions
Use when planning or executing a refactor — rename, extract, move, or delete code — to prevent breaking callers or missing affected files
| name | review-changes |
| description | Use after completing a feature or before merging to perform a risk-scored review of changed code, check test coverage, and assess blast radius |
The knowledge graph scores changed code by risk and maps execution paths. Use it to produce a structured review that surfaces what matters without reading every modified line.
Core principle: Risk-score first, then read. High-risk untested code blocks merge. Low-risk well-tested code gets a pass.
get_minimal_context(task="review recent changes")
detect_changes()
Returns each changed function with a risk score (0–1) and reason. Focus on anything ≥0.7.
get_affected_flows(changed_nodes=[...]) // use node_ids from detect_changes
Shows which named execution paths pass through the changed code. A change in a flow touched by auth, billing, or deployment deserves higher scrutiny.
query_graph(node_id="...", pattern="tests_for")
Do this for every function with risk ≥0.7. No tests = flag it.
get_impact_radius(node_id="...") // for highest-risk nodes only
Shows callers two levels up. Unexpected callers = hidden coupling = risk.
get_review_context(node_ids=[...]) // token-efficient source snippets
Only for untested high-risk functions. Don't read everything.
Group findings by risk tier:
Critical (risk ≥0.8, no tests, in auth/billing/deploy flow)
Important (risk ≥0.6, or tested but flow is sensitive)
Low (risk <0.6, tested)
End with: merge recommendation (ready / needs fixes / needs discussion).
| Area | Why risky |
|---|---|
tundrad-auth | Session/token/passkey logic; regression = security hole |
tundrad-crypto | EncryptedField<T> changes can corrupt stored secrets |
migrations/ | Up-only; wrong schema change requires new forward migration |
audit_log writes | Every mutation handler must write audit row — check for missing calls |
tundrad-api/src/lib.rs | Route registration — missing .patch() or wrong HTTP verb is silent |
Panel routeTree.gen.ts | Manual maintenance; wrong type maps cause runtime router panics |
audit_log insertunwrap() inside an HTTP handlerbytea column