热核代码审查_thermo-nuclear-review
以下为本文档的中文说明该技能用于执行热核Thermo-Nuclear级别的代码审查是一种极其严格和深入的代码评审方法。它深入检查代码的每一处细节涵盖性能优化、安全性、可维护性和架构设计等各个方面。适用于对代码质量有极高要求的项目确保代码达到最高标准。热核审查的命名暗示了其审查强度和彻底性它不仅仅检查表面的代码风格问题而是深入到架构设计、性能瓶颈和安全缺陷等深层次问题。热核代码审查是一种极致的代码质量评审方法其严格程度远超常规的代码审查。该方法审查代码的每一个细节不仅仅关注功能和正确性还深入检查性能优化算法复杂度、内存分配模式、IO效率、安全性输入验证、认证授权、数据保护、可维护性代码组织、命名规范、注释质量和架构设计模块化、耦合度、扩展性。该方法适用于对可靠性、安全性和性能有极致要求的关键系统如金融交易系统、医疗设备和航天软件等领域。热核代码审查代表着代码质量评审的最高标准其名称源自核聚变反应的意象意味着审查过程要产生足够的高温和高压来检验代码的每一个原子级细节。该方法不仅仅关注代码的功能正确性更从多维度审视代码质量性能方面审查算法复杂度、内存分配和IO效率安全方面审查输入验证、认证授权和数据保护可维护性方面审查代码组织、命名规范和模块化程度。适用于对代码质量有极致要求的关键系统。Thermo-Nuclear Code Quality ReviewUse this skill for an unusually strict review focused on implementation quality, maintainability, abstraction quality, and codebase health.Above all, this skill should push the reviewer to beambitiousabout code structure. Do not merely identify local cleanup opportunities. Actively search for “code judo” moves: restructurings that preserve behavior while making the implementation dramatically simpler, smaller, more direct, and more elegant.Core PromptStart from this baseline:Perform a deep code quality audit of the current branch’s changes.Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior.Work to improve abstractions, modularity, reduce Spaghetti code, improve succinctness and legibility.Be ambitious, if there is a clear path to improving the implementation that involves restructuring some of the codebase, go for it.Be extremely thorough and rigorous. Measure twice, cut once.Non-Negotiable Additional StandardsApply the baseline prompt above, plus these explicit review rules:Be ambitious about structural simplification.Do not stop at “this could be a bit cleaner.”Look for opportunities to reframe the change so that whole branches, helpers, modes, conditionals, or layers disappear entirely.Prefer the solution that makes the code feel inevitable in hindsight.Assume there is often a “code judo” move available: a re-organization that uses the existing architecture more effectively and makes the change dramatically simpler and more elegant.If you see a path to delete complexity rather than rearrange it, push hard for that path.Do not let a PR push a file from under 1k lines to over 1k lines without a very strong reason.Treat this as a strong code-quality smell by default.Prefer extracting helpers, subcomponents, modules, or local abstractions instead of letting a file sprawl past 1000 lines.If the diff crosses that threshold, explicitly ask whether the code should be decomposed first.Only waive this if there is a compelling structural reason and the resulting file is still clearly organized.Do not allow random spaghetti growth in existing code.Be highly suspicious of new ad-hoc conditionals, scattered special cases, or one-off branches inserted into unrelated flows.If a change adds “weird if statements in random places”, treat that as a design problem, not a stylistic nit.Prefer pushing the logic into a dedicated abstraction, helper, state machine, policy object, or separate module instead of tangling an existing path.Call out changes that make the surrounding code harder to reason about, even if they technically work.Bias toward cleaning the design, not just accepting working code.If behavior can stay the same while the structure becomes meaningfully cleaner, push for the cleaner version.Do not rubber-stamp “it works” implementations that leave the codebase messier.Strongly prefer simplifications that remove moving pieces altogether over refactors that merely spread the same complexity around.Prefer direct, boring, maintainable code over hacky or magical code.Treat brittle, ad-hoc, or “magic” behavior as a code-quality problem.Be skeptical of generic mechanisms that hide simple>Primary Review QuestionsFor every meaningful change, ask:Is there a “code judo” move that would make this dramatically simpler?Can this change be reframed so fewer concepts, branches, or helper layers are needed?Does this improve or worsen the local architecture?Did the diff add branching complexity where a better abstraction should exist?Did a previously cohesive module become more coupled, more stateful, or harder to scan?Is this logic living in the right file and layer?Did this change enlarge a file or component past a healthy size boundary?Are there repeated conditionals that signal a missing model or missing helper?Is the implementation direct and legible, or does it rely on special cases and incidental control flow?Is this abstraction actually earning its keep, or is it just a wrapper?Did the diff introduce casts, optionality, or ad-hoc object shapes that obscure the real invariant?Is this logic living in the canonical layer, or did the diff leak details across a boundary?Is this orchestration more sequential or less atomic than it needs to be?What to Flag AggressivelyEscalate findings when you see:A complicated implementation where a cleaner reframing could delete whole categories of complexity.Refactors that move code around but fail to reduce the number of concepts a reader must hold in their head.A file crossing 1000 lines due to the PR, especially if the new code could be split out.New conditionals bolted onto unrelated code paths.One-off booleans, nullable modes, or flags that complicate existing control flow.Feature-specific logic leaking into general-purpose modules.Generic “magic” handling that hides simple structure and makes the code harder to reason about.Thin wrappers or identity abstractions that add indirection without simplifying anything.Unnecessary casts,any,unknown, or optional params that muddy the real contract.Copy-pasted logic instead of extracted helpers.Narrow edge-case handling implemented in the middle of an already busy function.Refactors that technically pass tests but make the code less modular or less readable.“Temporary” branching that is likely to become permanent debt.Bespoke helpers where the codebase already has a canonical utility for the job.Logic added in the wrong layer/package when it should live somewhere more central.Sequential async flow where obviously independent work could stay simpler and clearer with parallel execution.Partial-update logic that leaves state less atomic than necessary.Preferred RemediesWhen you identify a code-quality problem, prefer suggestions like:Delete a whole layer of indirection rather than polishing it.Reframe the state model so conditionals disappear instead of getting centralized.Change the ownership boundary so the feature becomes a natural extension of an existing abstraction.Turn special-case logic into a simpler default flow with fewer exceptions.Extract a helper or pure function.Split a large file into smaller focused modules.Move feature-specific logic behind a dedicated abstraction.Replace condition chains with a typed model or explicit dispatcher.Separate orchestration from business logic.Collapse duplicate branches into a single clearer flow.Delete wrappers that do not meaningfully clarify the API.Reuse the existing canonical helper instead of introducing a near-duplicate.Make type boundaries more explicit so the control flow gets simpler.Move the logic to the package/module/layer that already owns the concept.Parallelize independent work when that also simplifies the orchestration.Restructure related updates into a more atomic flow when partial state would be harder to reason about.Do not be satisfied with “maybe rename this” feedback when the real issue is structural.Do not be satisfied with a merely cleaner version of the same messy idea if there is a plausible path to a much simpler idea.Review ToneBe direct, serious, and demanding about quality.Do not be rude, but do not soften major maintainability issues into mild suggestions.If the code is making the codebase messier, say so clearly.If the implementation missed an opportunity for a dramatic simplification, say that clearly too.Good phrases:this pushes the file past 1k lines. can we decompose this first?this adds another special-case branch into an already busy flow. can we move this behind its own abstraction?this works, but it makes the surrounding code more spaghetti. lets keep the behavior and restructure the implementation.this feels like feature logic leaking into a shared path. can we isolate it?this abstraction seems unnecessary. can we just keep the direct flow?why does this need a cast / optional here? can we make the boundary more explicit instead?this looks like a bespoke helper for something we already have elsewhere. can we reuse the canonical one?i think theres a code-judo move here that makes this much simpler. can we reframe this so these branches disappear?this refactor moves complexity around, but doesnt really delete it. is there a way to make the model itself simpler?Output ExpectationsPrioritize findings in this order:Structural code-quality regressionsMissed opportunities for dramatic simplification / code-judo restructuringSpaghetti / branching complexity increasesBoundary / abstraction / type-contract problems that make the code harder to reason aboutFile-size and decomposition concernsModularity and abstraction issuesLegibility and maintainability concernsDo not flood the review with low-value nits if there are larger structural issues.Prefer a smaller number of high-conviction comments over a long list of cosmetic notes.Approval BarDo not approve merely because behavior seems correct.The bar for approval is:no clear structural regressionno obvious missed opportunity to make the implementation dramatically simpler when such a path is visibleno unjustified file-size explosionno obvious spaghetti-growth from special-case branchingno obviously hacky or magical abstraction that makes the code harder to reason aboutno unnecessary wrapper/cast/optionality churn obscuring the real designno clear architecture-boundary leak or avoidable canonical-helper duplicationno missed opportunity for an obvious decomposition that would materially improve maintainabilityTreat these as presumptive blockers unless the author can justify them clearly:the PR preserves a lot of incidental complexity when there is a plausible code-judo move that would delete itthe PR pushes a file from below 1000 lines to above 1000 linesthe PR adds ad-hoc branching that makes an existing flow more tangledthe PR solves a local problem by scattering feature checks across shared codethe PR adds an unnecessary abstraction, wrapper, or cast-heavy contract that makes the design more indirectthe PR duplicates an existing helper or puts logic in the wrong layer when there is a clear canonical homeIf those conditions are not met, leave explicit, actionable feedback and push for a cleaner decomposition.

相关新闻

Jellium Desktop vs 官方Web界面:10个你不知道的优势

Jellium Desktop vs 官方Web界面:10个你不知道的优势

Jellium Desktop vs 官方Web界面:10个你不知道的优势 【免费下载链接】jellium-desktop An unofficial desktop client for Jellyfin 项目地址: https://gitcode.com/gh_mirrors/je/jellium-desktop Jellium Desktop 是一款非官方的 Jellyfin 桌面客户端&…

2026/10/13 21:31:35 阅读更多 →
餐厅预订管理_pp-table-reservation-goat

餐厅预订管理_pp-table-reservation-goat

以下为本文档的中文说明该技能是统一的餐厅预订CLI工具,同时支持OpenTable、Tock和Resy三大主流预订平台。它提供一次搜索多个预订网络的功能,监控目标餐厅的可预约时段变化,并在出现取消释出的名额时自动捕获预订。适用于美食爱好者和频繁外…

2026/10/13 21:32:18 阅读更多 →
为什么头部金融科技公司集体切换至Kimi K2?——基于17家客户POC数据的性能对比白皮书

为什么头部金融科技公司集体切换至Kimi K2?——基于17家客户POC数据的性能对比白皮书

更多请点击: https://codechina.net 第一章:Kimi K2架构演进与战略定位 Kimi K2是月之暗面推出的全新大模型推理架构,其核心目标是在保持千亿级参数规模的同时,显著提升长上下文处理效率与端到端响应一致性。相较于初代Kimi架构&…

2026/10/9 10:31:07 阅读更多 →

最新新闻

同步发电机突然三相短路暂态过程Simulink仿真实现与分析

同步发电机突然三相短路暂态过程Simulink仿真实现与分析

同步发电机的突然三相短路,基本上每个学电机和电力系统的人都绕不过去。教材里那一串用暂态电抗、次暂态电抗、时间常数堆出来的公式,推导过程极其劝退,算出来的冲击电流倍数也让人没什么实感。前阵子我刚好用Simulink把同步发电机突然三相短…

2026/10/13 21:32:27 阅读更多 →
CATIA V5基础教程:界面认知与鼠标中键、指南针操作详解

CATIA V5基础教程:界面认知与鼠标中键、指南针操作详解

简介:CATIA基础教程基本操作PPT学习教案是一份面向CATIA V5初学者的入门教学课件,重点解决新手不熟悉界面布局、不掌握基本交互的问题。课件从工作界面认知入手,系统讲解菜单栏的常见菜单分类、公共工具栏(视图、图形属性、测量&a…

2026/10/13 21:32:27 阅读更多 →
同步发电机突然三相短路Simulink仿真与暂态波形解读

同步发电机突然三相短路Simulink仿真与暂态波形解读

同步发电机突然三相短路,是电力系统教科书里反复强调的重头戏,也是每个电气工程专业学生绕不过去的坎。很多人把理论背得滚瓜烂熟,但一问他短路电流里为什么有直流分量、次暂态和暂态到底怎么从波形上看出来,就支支吾吾了。这篇内…

2026/10/13 21:32:27 阅读更多 →
Codex新模型接入指南:解决模型选择与配置不生效问题

Codex新模型接入指南:解决模型选择与配置不生效问题

最近遇到一个特别典型的问题:某个新发布的大模型,在官方网站和聊天界面里用得挺欢,但只要换到 Codex 这种命令行编程工具里,要么报model not found,要么始终在用旧的 Base 模型,新模型的上下文窗口和推理能…

2026/10/13 21:32:27 阅读更多 →
VLC时钟控制原理与毫秒级音视频同步实战

VLC时钟控制原理与毫秒级音视频同步实战

1. 项目概述:这不是调时间,是给视频流装上“精准节拍器”“vlc时钟控制”——这五个字在普通用户眼里可能只是“VLC播放器里那个不起眼的设置项”,但在音视频处理、直播推流、多机同步、教育录播、工业视觉检测等真实场景中,它本质…

2026/10/13 21:32:27 阅读更多 →
Qt MinGW 编译 PCL 全家桶:Boost/Eigen/FLANN/Qhull/VTK 完整指南

Qt MinGW 编译 PCL 全家桶:Boost/Eigen/FLANN/Qhull/VTK 完整指南

简介:本资源面向需要在Windows平台使用Qt与MinGW工具链构建三维点云应用的C开发者,提供PCL点云库及其全套依赖的编译成果。PCL专注三维点云采集、预处理、特征提取与表面重建,Qt负责跨平台图形界面,MinGW提供原生Windows编译工具链…

2026/10/13 21:31:26 阅读更多 →

日新闻

物联网系统集成避坑指南:从选型到验收的关键要点

物联网系统集成避坑指南:从选型到验收的关键要点

做了这么多年物联网系统集成的项目,我最大的感受是,大部分坑不是出在技术前沿,而是出在一些看起来很平常的地方。设备选了便宜的、协议没问清楚、现场没摸透、验收标准写得含糊——这些细枝末节,最后都会变成延期、超支和扯皮的大…

2026/10/13 0:00:57 阅读更多 →
ESP32舵机控制全攻略:从PWM原理到高级玩法与常见故障排查

ESP32舵机控制全攻略:从PWM原理到高级玩法与常见故障排查

如果你玩ESP32有一阵子了,很难不碰到舵机控制这道坎。做智能小车要转方向,做机械臂要抬关节,做云台要偏航俯仰,背后都是同一个东西在干活:舵机。而我见过太多人卡在“代码能编译、舵机就是不听话”这个阶段&#xff0c…

2026/10/13 0:00:57 阅读更多 →
CAN总线原理与STM32实战:抗干扰、仲裁、错误处理全解析

CAN总线原理与STM32实战:抗干扰、仲裁、错误处理全解析

1. 为什么CAN总线至今仍是工业现场的“硬通货”?——从汽车底盘到智能温室的真实需求你有没有拆过一辆老款燃油车的中控台?或者调试过某高校实验室里那台跑着Modbus协议却频频丢帧的PLC控制柜?又或者,在某个农业物联网项目里&…

2026/10/13 0:00:57 阅读更多 →

周新闻

流感时间序列预测实战:ARIMA/LSTM全流程拆解与避坑指南

流感时间序列预测实战:ARIMA/LSTM全流程拆解与避坑指南

简介:基于 ARIMA、LSTM、Transformer 等模型的流感时间序列预测 Python 源码,面向计算机相关专业课程设计与期末大作业学生,以及项目实战学习者。内容覆盖预处理、平稳性检验、定阶、残差分析、多模型对比预测的完整时序建模流程,…

2026/10/13 2:54:56 阅读更多 →
影刀RPA新手教程:键盘模拟输入实战——输入文本与模拟按键的区别

影刀RPA新手教程:键盘模拟输入实战——输入文本与模拟按键的区别

影刀RPA新手教程:键盘模拟输入实战——输入文本与模拟按键的区别 做影刀RPA自动化,十个新手有八个栽在"往输入框里填东西"这件事上:要么填不进去,要么填了一半,要么直接把原来内容追加在后面。这背后的根因&…

2026/10/13 16:22:04 阅读更多 →
影刀RPA新手教程:阅文起点小说数据采集实战——书籍信息与章节内容

影刀RPA新手教程:阅文起点小说数据采集实战——书籍信息与章节内容

影刀RPA新手教程:阅文起点小说数据采集实战——书籍信息与章节内容 1. 认识影刀:什么场景该用RPA采小说数据 起点中文网的页面结构相对稳定——分类榜单、书籍详情、章节内容三块独立页面,跳转链路清晰。这种场景非常适合影刀自动化&#x…

2026/10/13 1:58:08 阅读更多 →

月新闻

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/12 21:05:09 阅读更多 →
Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/13 14:57:39 阅读更多 →
黑夜航拍船只数据集训练YOLOV5模型全流程解析

黑夜航拍船只数据集训练YOLOV5模型全流程解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/12 18:11:17 阅读更多 →