[{"data":1,"prerenderedAt":5664},["ShallowReactive",2],{"article-/topics/ai/ai-code-review-refactoring-suggestions":3,"related-ai":1614,"content-query-yDEDLsjsOT":4376},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":12,"image":18,"featured":6,"readingTime":19,"body":20,"_type":1609,"_id":1610,"_source":1611,"_file":1612,"_stem":1613,"_extension":1384},"/topics/ai/ai-code-review-refactoring-suggestions","ai",false,"","AI 代码审查与重构建议：怎样把问题清单变成可落地改造","代码审查里最难的不是发现问题，而是把分散意见变成可执行的重构动作。本文系统讲清 AI 辅助 code review 的边界、重构优先级、失败案例、回归清单和团队落地方式。","2026-04-14","HTMLPAGE 团队",[13,14,15,16,17],"AI Code Review","Refactoring","Cursor","GitHub Copilot","软件质量","/images/topics/ai/code-generation.jpg",14,{"type":21,"children":22,"toc":1573},"root",[23,31,36,61,66,75,112,118,123,152,157,165,171,176,181,261,266,289,294,300,305,312,317,335,340,358,363,369,373,391,395,413,418,441,447,452,457,581,586,591,596,639,644,669,674,680,685,696,701,707,712,723,728,736,741,747,783,789,812,818,841,846,852,857,862,867,872,895,900,905,910,915,938,943,948,961,966,979,984,992,997,1002,1007,1013,1018,1024,1029,1035,1040,1046,1051,1056,1061,1230,1235,1241,1246,1251,1312,1317,1335,1340,1345,1368,1374,1379,1390,1395,1401,1406,1411,1416,1434,1439,1444,1449,1487,1492,1497,1502,1507,1530,1535,1568],{"type":24,"tag":25,"props":26,"children":27},"element","p",{},[28],{"type":29,"value":30},"text","很多团队已经会让 AI 帮忙发现问题，但真正卡住的，往往是下一步。",{"type":24,"tag":25,"props":32,"children":33},{},[34],{"type":29,"value":35},"评论区、PR、代码助手、Lint、监控告警，全都在告诉你“这里可以优化”“那里需要重构”，可一旦要落地，团队马上会遇到 4 个现实问题：",{"type":24,"tag":37,"props":38,"children":39},"ul",{},[40,46,51,56],{"type":24,"tag":41,"props":42,"children":43},"li",{},[44],{"type":29,"value":45},"问题很多，但不知道先改什么",{"type":24,"tag":41,"props":47,"children":48},{},[49],{"type":29,"value":50},"审查意见分散，改动边界越来越大",{"type":24,"tag":41,"props":52,"children":53},{},[54],{"type":29,"value":55},"一上来就做大重构，结果回归成本失控",{"type":24,"tag":41,"props":57,"children":58},{},[59],{"type":29,"value":60},"AI 给了建议，但没有变成清晰的执行步骤",{"type":24,"tag":25,"props":62,"children":63},{},[64],{"type":29,"value":65},"所以这篇文章不讨论“AI 能不能做代码审查”，而是专门回答一个更实际的问题：",{"type":24,"tag":67,"props":68,"children":69},"blockquote",{},[70],{"type":24,"tag":25,"props":71,"children":72},{},[73],{"type":29,"value":74},"怎样把 AI 发现的问题，转成一组可以排期、可以实施、可以回归的重构建议。",{"type":24,"tag":25,"props":76,"children":77},{},[78,80,87,89,95,96,102,104,110],{"type":29,"value":79},"如果你还在补基础能力，建议先看 ",{"type":24,"tag":81,"props":82,"children":84},"a",{"href":83},"/topics/ai/cursor-code-review-prompts",[85],{"type":29,"value":86},"Cursor Code Review 提示词怎么写",{"type":29,"value":88},"、",{"type":24,"tag":81,"props":90,"children":92},{"href":91},"/topics/ai/cursor-safe-multi-file-changes",[93],{"type":29,"value":94},"Cursor 多文件改动怎么做才安全",{"type":29,"value":88},{"type":24,"tag":81,"props":97,"children":99},{"href":98},"/topics/ai/code-generation-prompt-best-practices",[100],{"type":29,"value":101},"代码生成提示词最佳实践",{"type":29,"value":103}," 和 ",{"type":24,"tag":81,"props":105,"children":107},{"href":106},"/topics/ai/cursor-team-workflow-review-gates",[108],{"type":29,"value":109},"Cursor 在真实项目里怎么落地",{"type":29,"value":111},"。这几篇分别解决“怎么审”“怎么拆”“怎么生成”“怎么进流程”，本文承接的是中间那一层：怎么把 review 结果变成改造动作。",{"type":24,"tag":113,"props":114,"children":116},"h2",{"id":115},"这篇解决什么问题",[117],{"type":29,"value":115},{"type":24,"tag":25,"props":119,"children":120},{},[121],{"type":29,"value":122},"这篇文章主要解决 5 个问题：",{"type":24,"tag":124,"props":125,"children":126},"ol",{},[127,132,137,142,147],{"type":24,"tag":41,"props":128,"children":129},{},[130],{"type":29,"value":131},"AI 审查发现的问题，为什么经常停留在口头建议",{"type":24,"tag":41,"props":133,"children":134},{},[135],{"type":29,"value":136},"什么问题应该立即修，什么问题适合进入重构 backlog",{"type":24,"tag":41,"props":138,"children":139},{},[140],{"type":29,"value":141},"怎样把“重构建议”拆成可执行、可回滚的小批次",{"type":24,"tag":41,"props":143,"children":144},{},[145],{"type":29,"value":146},"如何避免 AI 把团队带进过度设计或无效重写",{"type":24,"tag":41,"props":148,"children":149},{},[150],{"type":29,"value":151},"怎样给 reviewer、开发者和负责人一份统一的改造清单",{"type":24,"tag":25,"props":153,"children":154},{},[155],{"type":29,"value":156},"一句话结论是：",{"type":24,"tag":67,"props":158,"children":159},{},[160],{"type":24,"tag":25,"props":161,"children":162},{},[163],{"type":29,"value":164},"高质量的重构建议，不是“把代码写得更优雅”，而是把风险、收益、范围和回归成本同时讲清楚。",{"type":24,"tag":113,"props":166,"children":168},{"id":167},"为什么很多-ai-审查意见最后没有被执行",[169],{"type":29,"value":170},"为什么很多 AI 审查意见最后没有被执行",{"type":24,"tag":25,"props":172,"children":173},{},[174],{"type":29,"value":175},"AI 做 code review 时，常常能列出一长串问题：命名不一致、逻辑重复、异常处理分散、组件职责过重、缓存策略不稳定、类型定义过宽。",{"type":24,"tag":25,"props":177,"children":178},{},[179],{"type":29,"value":180},"看起来都对，但团队仍然很难采取行动。原因通常不是不认同，而是缺少下面这 4 个关键信息：",{"type":24,"tag":182,"props":183,"children":184},"table",{},[185,204],{"type":24,"tag":186,"props":187,"children":188},"thead",{},[189],{"type":24,"tag":190,"props":191,"children":192},"tr",{},[193,199],{"type":24,"tag":194,"props":195,"children":196},"th",{},[197],{"type":29,"value":198},"缺的不是意见，而是",{"type":24,"tag":194,"props":200,"children":201},{},[202],{"type":29,"value":203},"没有它会怎样",{"type":24,"tag":205,"props":206,"children":207},"tbody",{},[208,222,235,248],{"type":24,"tag":190,"props":209,"children":210},{},[211,217],{"type":24,"tag":212,"props":213,"children":214},"td",{},[215],{"type":29,"value":216},"风险等级",{"type":24,"tag":212,"props":218,"children":219},{},[220],{"type":29,"value":221},"团队无法判断该不该优先处理",{"type":24,"tag":190,"props":223,"children":224},{},[225,230],{"type":24,"tag":212,"props":226,"children":227},{},[228],{"type":29,"value":229},"改动范围",{"type":24,"tag":212,"props":231,"children":232},{},[233],{"type":29,"value":234},"容易把局部修复演变成全局重构",{"type":24,"tag":190,"props":236,"children":237},{},[238,243],{"type":24,"tag":212,"props":239,"children":240},{},[241],{"type":29,"value":242},"预期收益",{"type":24,"tag":212,"props":244,"children":245},{},[246],{"type":29,"value":247},"业务方和 reviewer 不知道为什么要付这笔成本",{"type":24,"tag":190,"props":249,"children":250},{},[251,256],{"type":24,"tag":212,"props":252,"children":253},{},[254],{"type":29,"value":255},"回归清单",{"type":24,"tag":212,"props":257,"children":258},{},[259],{"type":29,"value":260},"改完以后没人知道要测什么",{"type":24,"tag":25,"props":262,"children":263},{},[264],{"type":29,"value":265},"所以真正有用的 AI 重构建议，至少要回答 4 个问题：",{"type":24,"tag":37,"props":267,"children":268},{},[269,274,279,284],{"type":24,"tag":41,"props":270,"children":271},{},[272],{"type":29,"value":273},"这个问题不改，会有什么具体风险",{"type":24,"tag":41,"props":275,"children":276},{},[277],{"type":29,"value":278},"这次只改到哪一层",{"type":24,"tag":41,"props":280,"children":281},{},[282],{"type":29,"value":283},"改完会得到什么稳定收益",{"type":24,"tag":41,"props":285,"children":286},{},[287],{"type":29,"value":288},"谁来验证，怎么验证",{"type":24,"tag":25,"props":290,"children":291},{},[292],{"type":29,"value":293},"没有这些信息，AI 审查再细，也只是把模糊焦虑换成另一种模糊焦虑。",{"type":24,"tag":113,"props":295,"children":297},{"id":296},"先分清两类问题缺陷修复和结构重构",[298],{"type":29,"value":299},"先分清两类问题：缺陷修复和结构重构",{"type":24,"tag":25,"props":301,"children":302},{},[303],{"type":29,"value":304},"很多 review 之所以难推进，是因为把两种完全不同的事情混在一起了。",{"type":24,"tag":306,"props":307,"children":309},"h3",{"id":308},"第一类缺陷修复",[310],{"type":29,"value":311},"第一类：缺陷修复",{"type":24,"tag":25,"props":313,"children":314},{},[315],{"type":29,"value":316},"特点是：",{"type":24,"tag":37,"props":318,"children":319},{},[320,325,330],{"type":24,"tag":41,"props":321,"children":322},{},[323],{"type":29,"value":324},"已经出现错误、回归或用户投诉",{"type":24,"tag":41,"props":326,"children":327},{},[328],{"type":29,"value":329},"问题通常可以定位到具体链路",{"type":24,"tag":41,"props":331,"children":332},{},[333],{"type":29,"value":334},"优先目标是止损，而不是美化结构",{"type":24,"tag":25,"props":336,"children":337},{},[338],{"type":29,"value":339},"比如：",{"type":24,"tag":37,"props":341,"children":342},{},[343,348,353],{"type":24,"tag":41,"props":344,"children":345},{},[346],{"type":29,"value":347},"登录失败时错误提示泄漏上游状态码",{"type":24,"tag":41,"props":349,"children":350},{},[351],{"type":29,"value":352},"表单提交重复请求导致重复创建订单",{"type":24,"tag":41,"props":354,"children":355},{},[356],{"type":29,"value":357},"数据表格筛选切换后缓存失效，结果错乱",{"type":24,"tag":25,"props":359,"children":360},{},[361],{"type":29,"value":362},"这类问题要优先修复行为正确性，不适合顺手做大重构。",{"type":24,"tag":306,"props":364,"children":366},{"id":365},"第二类结构重构",[367],{"type":29,"value":368},"第二类：结构重构",{"type":24,"tag":25,"props":370,"children":371},{},[372],{"type":29,"value":316},{"type":24,"tag":37,"props":374,"children":375},{},[376,381,386],{"type":24,"tag":41,"props":377,"children":378},{},[379],{"type":29,"value":380},"代码还能跑，但维护成本明显上升",{"type":24,"tag":41,"props":382,"children":383},{},[384],{"type":29,"value":385},"继续堆功能会持续放大风险",{"type":24,"tag":41,"props":387,"children":388},{},[389],{"type":29,"value":390},"更适合拆批次推进，而不是一次性改完",{"type":24,"tag":25,"props":392,"children":393},{},[394],{"type":29,"value":339},{"type":24,"tag":37,"props":396,"children":397},{},[398,403,408],{"type":24,"tag":41,"props":399,"children":400},{},[401],{"type":29,"value":402},"一个页面组件同时负责请求、格式化、渲染和埋点",{"type":24,"tag":41,"props":404,"children":405},{},[406],{"type":29,"value":407},"多个表单共享一套松散的错误处理逻辑",{"type":24,"tag":41,"props":409,"children":410},{},[411],{"type":29,"value":412},"AI 调用链散落在组件、store、server route 三层里，没有统一边界",{"type":24,"tag":25,"props":414,"children":415},{},[416],{"type":29,"value":417},"如果你不先把这两类任务分开，团队就会陷入一种很典型的混乱：",{"type":24,"tag":37,"props":419,"children":420},{},[421,426,431,436],{"type":24,"tag":41,"props":422,"children":423},{},[424],{"type":29,"value":425},"本来只想修一个 bug",{"type":24,"tag":41,"props":427,"children":428},{},[429],{"type":29,"value":430},"结果把架构问题也一起翻出来",{"type":24,"tag":41,"props":432,"children":433},{},[434],{"type":29,"value":435},"改动越来越大",{"type":24,"tag":41,"props":437,"children":438},{},[439],{"type":29,"value":440},"最后谁都不敢合",{"type":24,"tag":113,"props":442,"children":444},{"id":443},"ai-重构建议应该怎么分级",[445],{"type":29,"value":446},"AI 重构建议应该怎么分级",{"type":24,"tag":25,"props":448,"children":449},{},[450],{"type":29,"value":451},"我更推荐把 AI 的建议按“影响范围 + 风险 + 回报周期”来分，而不是按“看起来严不严重”。",{"type":24,"tag":25,"props":453,"children":454},{},[455],{"type":29,"value":456},"可以直接用下面这个四级模型。",{"type":24,"tag":182,"props":458,"children":459},{},[460,486],{"type":24,"tag":186,"props":461,"children":462},{},[463],{"type":24,"tag":190,"props":464,"children":465},{},[466,471,476,481],{"type":24,"tag":194,"props":467,"children":468},{},[469],{"type":29,"value":470},"级别",{"type":24,"tag":194,"props":472,"children":473},{},[474],{"type":29,"value":475},"适用问题",{"type":24,"tag":194,"props":477,"children":478},{},[479],{"type":29,"value":480},"动作建议",{"type":24,"tag":194,"props":482,"children":483},{},[484],{"type":29,"value":485},"时间窗口",{"type":24,"tag":205,"props":487,"children":488},{},[489,512,535,558],{"type":24,"tag":190,"props":490,"children":491},{},[492,497,502,507],{"type":24,"tag":212,"props":493,"children":494},{},[495],{"type":29,"value":496},"P0",{"type":24,"tag":212,"props":498,"children":499},{},[500],{"type":29,"value":501},"已影响线上行为、安全、数据正确性",{"type":24,"tag":212,"props":503,"children":504},{},[505],{"type":29,"value":506},"立即修复，不做扩展重构",{"type":24,"tag":212,"props":508,"children":509},{},[510],{"type":29,"value":511},"当期",{"type":24,"tag":190,"props":513,"children":514},{},[515,520,525,530],{"type":24,"tag":212,"props":516,"children":517},{},[518],{"type":29,"value":519},"P1",{"type":24,"tag":212,"props":521,"children":522},{},[523],{"type":29,"value":524},"高概率继续引发回归的结构问题",{"type":24,"tag":212,"props":526,"children":527},{},[528],{"type":29,"value":529},"拆成 1 到 3 个小任务优先处理",{"type":24,"tag":212,"props":531,"children":532},{},[533],{"type":29,"value":534},"当前迭代",{"type":24,"tag":190,"props":536,"children":537},{},[538,543,548,553],{"type":24,"tag":212,"props":539,"children":540},{},[541],{"type":29,"value":542},"P2",{"type":24,"tag":212,"props":544,"children":545},{},[546],{"type":29,"value":547},"可维护性问题明显，但暂不阻塞业务",{"type":24,"tag":212,"props":549,"children":550},{},[551],{"type":29,"value":552},"进入 backlog，等相关需求一起处理",{"type":24,"tag":212,"props":554,"children":555},{},[556],{"type":29,"value":557},"近期",{"type":24,"tag":190,"props":559,"children":560},{},[561,566,571,576],{"type":24,"tag":212,"props":562,"children":563},{},[564],{"type":29,"value":565},"P3",{"type":24,"tag":212,"props":567,"children":568},{},[569],{"type":29,"value":570},"风格统一、命名优化、局部抽象建议",{"type":24,"tag":212,"props":572,"children":573},{},[574],{"type":29,"value":575},"不单独立项，跟随相关改动顺带做",{"type":24,"tag":212,"props":577,"children":578},{},[579],{"type":29,"value":580},"低优先级",{"type":24,"tag":25,"props":582,"children":583},{},[584],{"type":29,"value":585},"这个分级最大的价值，是阻止团队把“所有问题都值得现在处理”当成默认前提。",{"type":24,"tag":306,"props":587,"children":589},{"id":588},"一个反例",[590],{"type":29,"value":588},{"type":24,"tag":25,"props":592,"children":593},{},[594],{"type":29,"value":595},"AI 在审查一个表单模块时给出 8 条建议：",{"type":24,"tag":124,"props":597,"children":598},{},[599,604,609,614,619,624,629,634],{"type":24,"tag":41,"props":600,"children":601},{},[602],{"type":29,"value":603},"输入校验重复",{"type":24,"tag":41,"props":605,"children":606},{},[607],{"type":29,"value":608},"错误提示文案不统一",{"type":24,"tag":41,"props":610,"children":611},{},[612],{"type":29,"value":613},"提交函数命名不一致",{"type":24,"tag":41,"props":615,"children":616},{},[617],{"type":29,"value":618},"缺少 loading 防抖",{"type":24,"tag":41,"props":620,"children":621},{},[622],{"type":29,"value":623},"hooks 返回结构不一致",{"type":24,"tag":41,"props":625,"children":626},{},[627],{"type":29,"value":628},"表单状态和 UI 耦合太深",{"type":24,"tag":41,"props":630,"children":631},{},[632],{"type":29,"value":633},"文件名风格不统一",{"type":24,"tag":41,"props":635,"children":636},{},[637],{"type":29,"value":638},"注释缺失",{"type":24,"tag":25,"props":640,"children":641},{},[642],{"type":29,"value":643},"这里真正应该优先做的，可能是：",{"type":24,"tag":37,"props":645,"children":646},{},[647,659,664],{"type":24,"tag":41,"props":648,"children":649},{},[650,657],{"type":24,"tag":651,"props":652,"children":654},"code",{"className":653},[],[655],{"type":29,"value":656},"loading",{"type":29,"value":658}," 防抖和重复提交问题，属于 P0/P1",{"type":24,"tag":41,"props":660,"children":661},{},[662],{"type":29,"value":663},"错误提示统一和 hooks 输出统一，属于 P1",{"type":24,"tag":41,"props":665,"children":666},{},[667],{"type":29,"value":668},"文件命名和注释缺失，大概率只是 P3",{"type":24,"tag":25,"props":670,"children":671},{},[672],{"type":29,"value":673},"如果 AI 不能帮你完成这样的分级，它给出的就不是“重构建议”，只是“问题罗列”。",{"type":24,"tag":113,"props":675,"children":677},{"id":676},"一个可直接复用的-ai-提示词模板",[678],{"type":29,"value":679},"一个可直接复用的 AI 提示词模板",{"type":24,"tag":25,"props":681,"children":682},{},[683],{"type":29,"value":684},"下面这版适合把 code review 结果转成重构动作。",{"type":24,"tag":686,"props":687,"children":691},"pre",{"className":688,"code":690,"language":29,"meta":7},[689],"language-text","请基于以下审查问题，输出一份可执行的重构建议。\n\n上下文：\n- 项目类型：\u003C例如 Nuxt 内容站 / React SaaS 后台>\n- 本次目标：\u003C一句话说明>\n- 改动范围限制：\u003C允许修改哪些文件/模块>\n- 非目标：\u003C这次明确不处理什么>\n\n请按以下格式输出：\n1. 问题分类：缺陷修复 / 结构重构 / 风格优化\n2. 优先级：P0 / P1 / P2 / P3\n3. 影响范围：涉及文件、调用链、依赖方\n4. 建议动作：拆成 1-3 个最小任务\n5. 预期收益：降低什么风险或成本\n6. 回归检查点：每个任务改完要验证什么\n\n要求：\n- 不要给泛泛的“建议优化”\n- 只输出能落地的改动建议\n- 如果某项建议收益不足以覆盖改动成本，请明确写“不建议当前处理”\n",[692],{"type":24,"tag":651,"props":693,"children":694},{"__ignoreMap":7},[695],{"type":29,"value":690},{"type":24,"tag":25,"props":697,"children":698},{},[699],{"type":29,"value":700},"这版模板的关键不是“句子写得专业”，而是把 AI 输出强行变成工程语言。",{"type":24,"tag":113,"props":702,"children":704},{"id":703},"怎样把一条建议拆成-3-个以内的任务",[705],{"type":29,"value":706},"怎样把一条建议拆成 3 个以内的任务",{"type":24,"tag":25,"props":708,"children":709},{},[710],{"type":29,"value":711},"重构建议失控，通常不是因为方向错，而是因为任务切得太大。",{"type":24,"tag":25,"props":713,"children":714},{},[715,717],{"type":29,"value":716},"一个更稳的规则是：",{"type":24,"tag":718,"props":719,"children":720},"strong",{},[721],{"type":29,"value":722},"每条建议只允许落成 1 到 3 个最小任务。",{"type":24,"tag":25,"props":724,"children":725},{},[726],{"type":29,"value":727},"例如，AI 给出一句话建议：",{"type":24,"tag":67,"props":729,"children":730},{},[731],{"type":24,"tag":25,"props":732,"children":733},{},[734],{"type":29,"value":735},"当前文章编辑页把表单状态、自动保存、封面上传和发布流程耦合在一起，建议做组件与状态层重构。",{"type":24,"tag":25,"props":737,"children":738},{},[739],{"type":29,"value":740},"这句话本身没错，但直接执行一定会很危险。更合理的拆法是：",{"type":24,"tag":306,"props":742,"children":744},{"id":743},"任务-1先分离自动保存逻辑",[745],{"type":29,"value":746},"任务 1：先分离自动保存逻辑",{"type":24,"tag":37,"props":748,"children":749},{},[750,755,773,778],{"type":24,"tag":41,"props":751,"children":752},{},[753],{"type":29,"value":754},"目标：把自动保存从页面组件提取到独立 composable",{"type":24,"tag":41,"props":756,"children":757},{},[758,760,766,767],{"type":29,"value":759},"范围：只改 ",{"type":24,"tag":651,"props":761,"children":763},{"className":762},[],[764],{"type":29,"value":765},"EditorPage",{"type":29,"value":88},{"type":24,"tag":651,"props":768,"children":770},{"className":769},[],[771],{"type":29,"value":772},"useAutoSaveDraft",{"type":24,"tag":41,"props":774,"children":775},{},[776],{"type":29,"value":777},"收益：降低页面副作用复杂度",{"type":24,"tag":41,"props":779,"children":780},{},[781],{"type":29,"value":782},"回归：手动输入、切换页面、断网恢复、重复保存保护",{"type":24,"tag":306,"props":784,"children":786},{"id":785},"任务-2统一发布状态与错误映射",[787],{"type":29,"value":788},"任务 2：统一发布状态与错误映射",{"type":24,"tag":37,"props":790,"children":791},{},[792,797,802,807],{"type":24,"tag":41,"props":793,"children":794},{},[795],{"type":29,"value":796},"目标：让“草稿保存失败 / 发布失败 / 上传失败”走同一套错误模型",{"type":24,"tag":41,"props":798,"children":799},{},[800],{"type":29,"value":801},"范围：只改状态映射和 toast 展示",{"type":24,"tag":41,"props":803,"children":804},{},[805],{"type":29,"value":806},"收益：减少前端提示不一致",{"type":24,"tag":41,"props":808,"children":809},{},[810],{"type":29,"value":811},"回归：三类失败路径提示一致且可追踪",{"type":24,"tag":306,"props":813,"children":815},{"id":814},"任务-3最后再处理-ui-拆分",[816],{"type":29,"value":817},"任务 3：最后再处理 UI 拆分",{"type":24,"tag":37,"props":819,"children":820},{},[821,826,831,836],{"type":24,"tag":41,"props":822,"children":823},{},[824],{"type":29,"value":825},"目标：将封面区、正文区、发布区拆成独立子组件",{"type":24,"tag":41,"props":827,"children":828},{},[829],{"type":29,"value":830},"范围：只做渲染层拆分，不改变业务协议",{"type":24,"tag":41,"props":832,"children":833},{},[834],{"type":29,"value":835},"收益：提高后续维护和测试效率",{"type":24,"tag":41,"props":837,"children":838},{},[839],{"type":29,"value":840},"回归：布局、输入状态、发布流程无回退",{"type":24,"tag":25,"props":842,"children":843},{},[844],{"type":29,"value":845},"这样拆的好处，是每一步都有独立收益，也都能独立回滚。",{"type":24,"tag":113,"props":847,"children":849},{"id":848},"一个常见失败案例ai-把局部问题升级成全局重构",[850],{"type":29,"value":851},"一个常见失败案例：AI 把局部问题升级成全局重构",{"type":24,"tag":25,"props":853,"children":854},{},[855],{"type":29,"value":856},"这是最常见也最危险的情况之一。",{"type":24,"tag":306,"props":858,"children":860},{"id":859},"场景",[861],{"type":29,"value":859},{"type":24,"tag":25,"props":863,"children":864},{},[865],{"type":29,"value":866},"团队只想修一个“评论提交后列表不刷新的问题”。",{"type":24,"tag":25,"props":868,"children":869},{},[870],{"type":29,"value":871},"AI 审查后给出建议：",{"type":24,"tag":37,"props":873,"children":874},{},[875,880,885,890],{"type":24,"tag":41,"props":876,"children":877},{},[878],{"type":29,"value":879},"评论列表状态管理混乱",{"type":24,"tag":41,"props":881,"children":882},{},[883],{"type":29,"value":884},"建议统一改为全局 store",{"type":24,"tag":41,"props":886,"children":887},{},[888],{"type":29,"value":889},"评论、点赞、作者信息都应该做实体归一化",{"type":24,"tag":41,"props":891,"children":892},{},[893],{"type":29,"value":894},"最好顺便统一接口缓存策略",{"type":24,"tag":25,"props":896,"children":897},{},[898],{"type":29,"value":899},"这些建议从架构角度并不一定错，但对当前任务来说完全越界了。",{"type":24,"tag":306,"props":901,"children":903},{"id":902},"真正的问题",[904],{"type":29,"value":902},{"type":24,"tag":25,"props":906,"children":907},{},[908],{"type":29,"value":909},"不是评论系统不值得重构，而是这次任务的目标只是修一个用户可见 bug。",{"type":24,"tag":25,"props":911,"children":912},{},[913],{"type":29,"value":914},"如果此时直接按 AI 的建议做，结果通常是：",{"type":24,"tag":37,"props":916,"children":917},{},[918,923,928,933],{"type":24,"tag":41,"props":919,"children":920},{},[921],{"type":29,"value":922},"文件数量暴增",{"type":24,"tag":41,"props":924,"children":925},{},[926],{"type":29,"value":927},"回归路径成倍增加",{"type":24,"tag":41,"props":929,"children":930},{},[931],{"type":29,"value":932},"reviewer 无法确认修 bug 是否真的完成",{"type":24,"tag":41,"props":934,"children":935},{},[936],{"type":29,"value":937},"发版窗口被结构性改动占满",{"type":24,"tag":306,"props":939,"children":941},{"id":940},"更稳的处理方式",[942],{"type":29,"value":940},{"type":24,"tag":25,"props":944,"children":945},{},[946],{"type":29,"value":947},"应该把 AI 输出改写成两段：",{"type":24,"tag":124,"props":949,"children":950},{},[951,956],{"type":24,"tag":41,"props":952,"children":953},{},[954],{"type":29,"value":955},"当前必须修的行为问题",{"type":24,"tag":41,"props":957,"children":958},{},[959],{"type":29,"value":960},"可作为后续 backlog 的结构问题",{"type":24,"tag":25,"props":962,"children":963},{},[964],{"type":29,"value":965},"例如：",{"type":24,"tag":37,"props":967,"children":968},{},[969,974],{"type":24,"tag":41,"props":970,"children":971},{},[972],{"type":29,"value":973},"当前修复：提交成功后本地列表与服务端响应保持一致",{"type":24,"tag":41,"props":975,"children":976},{},[977],{"type":29,"value":978},"后续建议：评论域状态管理可以在下个迭代独立治理",{"type":24,"tag":25,"props":980,"children":981},{},[982],{"type":29,"value":983},"这就是 AI 重构建议里最重要的纪律之一：",{"type":24,"tag":67,"props":985,"children":986},{},[987],{"type":24,"tag":25,"props":988,"children":989},{},[990],{"type":29,"value":991},"能进入 backlog 的，不要伪装成当前必须完成的事项。",{"type":24,"tag":113,"props":993,"children":995},{"id":994},"什么样的建议应该被拒绝",[996],{"type":29,"value":994},{"type":24,"tag":25,"props":998,"children":999},{},[1000],{"type":29,"value":1001},"不是所有看起来“合理”的重构建议都值得做。",{"type":24,"tag":25,"props":1003,"children":1004},{},[1005],{"type":29,"value":1006},"下面这几类，我更建议直接拒绝或暂缓：",{"type":24,"tag":306,"props":1008,"children":1010},{"id":1009},"_1-收益讲不清",[1011],{"type":29,"value":1012},"1. 收益讲不清",{"type":24,"tag":25,"props":1014,"children":1015},{},[1016],{"type":29,"value":1017},"如果 AI 只能说“可读性更高”“更优雅”，但无法说清减少什么维护成本、降低什么回归概率，那通常不值得当期推进。",{"type":24,"tag":306,"props":1019,"children":1021},{"id":1020},"_2-依赖面太大",[1022],{"type":29,"value":1023},"2. 依赖面太大",{"type":24,"tag":25,"props":1025,"children":1026},{},[1027],{"type":29,"value":1028},"如果一条建议会同时影响组件协议、接口结构、埋点、测试和内容模型，那它就不是一个“顺手优化”，而是一项独立工程任务。",{"type":24,"tag":306,"props":1030,"children":1032},{"id":1031},"_3-没有清晰回归方式",[1033],{"type":29,"value":1034},"3. 没有清晰回归方式",{"type":24,"tag":25,"props":1036,"children":1037},{},[1038],{"type":29,"value":1039},"如果团队改完之后说不清要测什么，这类建议就不适合当前迭代。",{"type":24,"tag":306,"props":1041,"children":1043},{"id":1042},"_4-把风格问题包装成架构问题",[1044],{"type":29,"value":1045},"4. 把风格问题包装成架构问题",{"type":24,"tag":25,"props":1047,"children":1048},{},[1049],{"type":29,"value":1050},"命名不一致、注释不统一、导入顺序零散，当然值得改，但别把它们包装成“必须做的架构升级”。",{"type":24,"tag":113,"props":1052,"children":1054},{"id":1053},"用一个表格把建议讲清楚",[1055],{"type":29,"value":1053},{"type":24,"tag":25,"props":1057,"children":1058},{},[1059],{"type":29,"value":1060},"如果你希望 reviewer、开发者、负责人能快速对齐，最有效的方法不是写大段 prose，而是生成一张统一的行动表。",{"type":24,"tag":182,"props":1062,"children":1063},{},[1064,1100],{"type":24,"tag":186,"props":1065,"children":1066},{},[1067],{"type":24,"tag":190,"props":1068,"children":1069},{},[1070,1075,1080,1085,1090,1095],{"type":24,"tag":194,"props":1071,"children":1072},{},[1073],{"type":29,"value":1074},"问题",{"type":24,"tag":194,"props":1076,"children":1077},{},[1078],{"type":29,"value":1079},"分类",{"type":24,"tag":194,"props":1081,"children":1082},{},[1083],{"type":29,"value":1084},"优先级",{"type":24,"tag":194,"props":1086,"children":1087},{},[1088],{"type":29,"value":1089},"最小动作",{"type":24,"tag":194,"props":1091,"children":1092},{},[1093],{"type":29,"value":1094},"非目标",{"type":24,"tag":194,"props":1096,"children":1097},{},[1098],{"type":29,"value":1099},"回归点",{"type":24,"tag":205,"props":1101,"children":1102},{},[1103,1135,1167,1198],{"type":24,"tag":190,"props":1104,"children":1105},{},[1106,1111,1116,1120,1125,1130],{"type":24,"tag":212,"props":1107,"children":1108},{},[1109],{"type":29,"value":1110},"登录重复提交",{"type":24,"tag":212,"props":1112,"children":1113},{},[1114],{"type":29,"value":1115},"缺陷修复",{"type":24,"tag":212,"props":1117,"children":1118},{},[1119],{"type":29,"value":496},{"type":24,"tag":212,"props":1121,"children":1122},{},[1123],{"type":29,"value":1124},"增加提交锁与按钮禁用",{"type":24,"tag":212,"props":1126,"children":1127},{},[1128],{"type":29,"value":1129},"不重写认证流程",{"type":24,"tag":212,"props":1131,"children":1132},{},[1133],{"type":29,"value":1134},"连点、弱网、超时",{"type":24,"tag":190,"props":1136,"children":1137},{},[1138,1143,1148,1152,1157,1162],{"type":24,"tag":212,"props":1139,"children":1140},{},[1141],{"type":29,"value":1142},"错误提示不一致",{"type":24,"tag":212,"props":1144,"children":1145},{},[1146],{"type":29,"value":1147},"结构重构",{"type":24,"tag":212,"props":1149,"children":1150},{},[1151],{"type":29,"value":519},{"type":24,"tag":212,"props":1153,"children":1154},{},[1155],{"type":29,"value":1156},"统一错误映射层",{"type":24,"tag":212,"props":1158,"children":1159},{},[1160],{"type":29,"value":1161},"不调整接口协议",{"type":24,"tag":212,"props":1163,"children":1164},{},[1165],{"type":29,"value":1166},"三类失败提示",{"type":24,"tag":190,"props":1168,"children":1169},{},[1170,1175,1179,1183,1188,1193],{"type":24,"tag":212,"props":1171,"children":1172},{},[1173],{"type":29,"value":1174},"hooks 输出结构混乱",{"type":24,"tag":212,"props":1176,"children":1177},{},[1178],{"type":29,"value":1147},{"type":24,"tag":212,"props":1180,"children":1181},{},[1182],{"type":29,"value":542},{"type":24,"tag":212,"props":1184,"children":1185},{},[1186],{"type":29,"value":1187},"统一返回对象签名",{"type":24,"tag":212,"props":1189,"children":1190},{},[1191],{"type":29,"value":1192},"不重写全部表单",{"type":24,"tag":212,"props":1194,"children":1195},{},[1196],{"type":29,"value":1197},"主要调用方不报错",{"type":24,"tag":190,"props":1199,"children":1200},{},[1201,1206,1211,1215,1220,1225],{"type":24,"tag":212,"props":1202,"children":1203},{},[1204],{"type":29,"value":1205},"命名风格不统一",{"type":24,"tag":212,"props":1207,"children":1208},{},[1209],{"type":29,"value":1210},"风格优化",{"type":24,"tag":212,"props":1212,"children":1213},{},[1214],{"type":29,"value":565},{"type":24,"tag":212,"props":1216,"children":1217},{},[1218],{"type":29,"value":1219},"跟随相关改动顺带处理",{"type":24,"tag":212,"props":1221,"children":1222},{},[1223],{"type":29,"value":1224},"不单独立项",{"type":24,"tag":212,"props":1226,"children":1227},{},[1228],{"type":29,"value":1229},"lint 通过",{"type":24,"tag":25,"props":1231,"children":1232},{},[1233],{"type":29,"value":1234},"这张表的价值，在于它逼着所有人对“现在做什么，不做什么”形成明确共识。",{"type":24,"tag":113,"props":1236,"children":1238},{"id":1237},"团队里谁负责把-ai-建议变成任务",[1239],{"type":29,"value":1240},"团队里谁负责把 AI 建议变成任务",{"type":24,"tag":25,"props":1242,"children":1243},{},[1244],{"type":29,"value":1245},"这个责任不能模糊。",{"type":24,"tag":25,"props":1247,"children":1248},{},[1249],{"type":29,"value":1250},"一个更清晰的分工是：",{"type":24,"tag":182,"props":1252,"children":1253},{},[1254,1270],{"type":24,"tag":186,"props":1255,"children":1256},{},[1257],{"type":24,"tag":190,"props":1258,"children":1259},{},[1260,1265],{"type":24,"tag":194,"props":1261,"children":1262},{},[1263],{"type":29,"value":1264},"角色",{"type":24,"tag":194,"props":1266,"children":1267},{},[1268],{"type":29,"value":1269},"负责什么",{"type":24,"tag":205,"props":1271,"children":1272},{},[1273,1286,1299],{"type":24,"tag":190,"props":1274,"children":1275},{},[1276,1281],{"type":24,"tag":212,"props":1277,"children":1278},{},[1279],{"type":29,"value":1280},"执行开发者",{"type":24,"tag":212,"props":1282,"children":1283},{},[1284],{"type":29,"value":1285},"整理 AI 发现的问题，并给出初步分级",{"type":24,"tag":190,"props":1287,"children":1288},{},[1289,1294],{"type":24,"tag":212,"props":1290,"children":1291},{},[1292],{"type":29,"value":1293},"Reviewer",{"type":24,"tag":212,"props":1295,"children":1296},{},[1297],{"type":29,"value":1298},"判断是否越界，确认优先级是否合理",{"type":24,"tag":190,"props":1300,"children":1301},{},[1302,1307],{"type":24,"tag":212,"props":1303,"children":1304},{},[1305],{"type":29,"value":1306},"负责人",{"type":24,"tag":212,"props":1308,"children":1309},{},[1310],{"type":29,"value":1311},"决定是否进入当前迭代，还是进入 backlog",{"type":24,"tag":25,"props":1313,"children":1314},{},[1315],{"type":29,"value":1316},"最怕的情况是：",{"type":24,"tag":37,"props":1318,"children":1319},{},[1320,1325,1330],{"type":24,"tag":41,"props":1321,"children":1322},{},[1323],{"type":29,"value":1324},"开发者觉得“AI 已经说了”",{"type":24,"tag":41,"props":1326,"children":1327},{},[1328],{"type":29,"value":1329},"reviewer 觉得“开发者自己判断吧”",{"type":24,"tag":41,"props":1331,"children":1332},{},[1333],{"type":29,"value":1334},"负责人只在上线前才看到改动过大",{"type":24,"tag":25,"props":1336,"children":1337},{},[1338],{"type":29,"value":1339},"所以在团队工作流里，AI 建议必须经过一次“任务翻译”。",{"type":24,"tag":25,"props":1341,"children":1342},{},[1343],{"type":29,"value":1344},"如果你正在用 Cursor 或 Copilot 推真实项目，最好把这个动作固化成 PR 模板中的一个小节：",{"type":24,"tag":37,"props":1346,"children":1347},{},[1348,1353,1358,1363],{"type":24,"tag":41,"props":1349,"children":1350},{},[1351],{"type":29,"value":1352},"本次 AI 审查发现的问题",{"type":24,"tag":41,"props":1354,"children":1355},{},[1356],{"type":29,"value":1357},"本次决定处理的问题",{"type":24,"tag":41,"props":1359,"children":1360},{},[1361],{"type":29,"value":1362},"本次明确不处理的问题",{"type":24,"tag":41,"props":1364,"children":1365},{},[1366],{"type":29,"value":1367},"后续可进入 backlog 的建议",{"type":24,"tag":113,"props":1369,"children":1371},{"id":1370},"一个可执行的-pr-附言模板",[1372],{"type":29,"value":1373},"一个可执行的 PR 附言模板",{"type":24,"tag":25,"props":1375,"children":1376},{},[1377],{"type":29,"value":1378},"下面这版很适合直接放进描述里：",{"type":24,"tag":686,"props":1380,"children":1385},{"className":1381,"code":1383,"language":1384,"meta":7},[1382],"language-md","### AI 审查后的处理决策\n\n- 本次处理：\n  - 统一提交 loading 锁\n  - 统一错误提示映射\n\n- 本次不处理：\n  - 表单域模型全面重构\n  - 公共 hooks 全量统一\n\n- 原因：\n  - 当前目标是修复重复提交与错误提示不一致\n  - 其余建议影响面过大，已转入 backlog\n\n- 回归检查点：\n  - 连续点击提交按钮不得触发重复请求\n  - 网络失败、业务失败、成功状态提示正确\n  - 现有埋点与成功跳转不受影响\n","md",[1386],{"type":24,"tag":651,"props":1387,"children":1388},{"__ignoreMap":7},[1389],{"type":29,"value":1383},{"type":24,"tag":25,"props":1391,"children":1392},{},[1393],{"type":29,"value":1394},"这类附言的作用，是防止评审过程变成“每个人都按自己理解在看同一个 PR”。",{"type":24,"tag":113,"props":1396,"children":1398},{"id":1397},"ai-时代的重构不是追求一次做对而是持续降低修改成本",[1399],{"type":29,"value":1400},"AI 时代的重构，不是追求一次做对，而是持续降低修改成本",{"type":24,"tag":25,"props":1402,"children":1403},{},[1404],{"type":29,"value":1405},"AI 让发现问题变得更快，但也让团队更容易产生一种错觉：既然问题都找出来了，那不如一次改干净。",{"type":24,"tag":25,"props":1407,"children":1408},{},[1409],{"type":29,"value":1410},"这恰恰是风险的开始。",{"type":24,"tag":25,"props":1412,"children":1413},{},[1414],{"type":29,"value":1415},"对大多数内容站、SaaS 后台、前端应用来说，更现实的目标应该是：",{"type":24,"tag":37,"props":1417,"children":1418},{},[1419,1424,1429],{"type":24,"tag":41,"props":1420,"children":1421},{},[1422],{"type":29,"value":1423},"先修行为错误",{"type":24,"tag":41,"props":1425,"children":1426},{},[1427],{"type":29,"value":1428},"再修高频回归点",{"type":24,"tag":41,"props":1430,"children":1431},{},[1432],{"type":29,"value":1433},"最后才处理抽象质量和风格一致性",{"type":24,"tag":25,"props":1435,"children":1436},{},[1437],{"type":29,"value":1438},"真正好的 AI 重构建议，不会催着团队“大翻修”，而是帮助团队更稳地降低下一次修改成本。",{"type":24,"tag":113,"props":1440,"children":1442},{"id":1441},"一份可直接复用的检查清单",[1443],{"type":29,"value":1441},{"type":24,"tag":25,"props":1445,"children":1446},{},[1447],{"type":29,"value":1448},"在把 AI 审查意见落地前，先过这张表：",{"type":24,"tag":37,"props":1450,"children":1451},{},[1452,1457,1462,1467,1472,1477,1482],{"type":24,"tag":41,"props":1453,"children":1454},{},[1455],{"type":29,"value":1456},"这个问题属于缺陷修复、结构重构，还是风格优化",{"type":24,"tag":41,"props":1458,"children":1459},{},[1460],{"type":29,"value":1461},"不处理它，未来两周内会不会继续造成真实风险",{"type":24,"tag":41,"props":1463,"children":1464},{},[1465],{"type":29,"value":1466},"这次是否能限制在 1 到 3 个文件或一个清晰链路",{"type":24,"tag":41,"props":1468,"children":1469},{},[1470],{"type":29,"value":1471},"回归动作是否能在当前迭代内完成",{"type":24,"tag":41,"props":1473,"children":1474},{},[1475],{"type":29,"value":1476},"建议收益是否明显高于改动成本",{"type":24,"tag":41,"props":1478,"children":1479},{},[1480],{"type":29,"value":1481},"有没有把 backlog 问题误放进当前任务",{"type":24,"tag":41,"props":1483,"children":1484},{},[1485],{"type":29,"value":1486},"reviewer 是否知道这次明确不处理什么",{"type":24,"tag":25,"props":1488,"children":1489},{},[1490],{"type":29,"value":1491},"如果这 7 条里有 3 条答不上来，就不应该直接进入实施。",{"type":24,"tag":113,"props":1493,"children":1495},{"id":1494},"总结",[1496],{"type":29,"value":1494},{"type":24,"tag":25,"props":1498,"children":1499},{},[1500],{"type":29,"value":1501},"AI 辅助代码审查真正值钱的地方，不是帮你多找几个问题，而是帮助团队更快形成“该做什么、不该做什么、怎么拆、怎么验”的共识。",{"type":24,"tag":25,"props":1503,"children":1504},{},[1505],{"type":29,"value":1506},"所以一份高质量的重构建议，至少应该满足 4 个标准：",{"type":24,"tag":37,"props":1508,"children":1509},{},[1510,1515,1520,1525],{"type":24,"tag":41,"props":1511,"children":1512},{},[1513],{"type":29,"value":1514},"有优先级，不是问题堆砌",{"type":24,"tag":41,"props":1516,"children":1517},{},[1518],{"type":29,"value":1519},"有范围限制，不会无限扩散",{"type":24,"tag":41,"props":1521,"children":1522},{},[1523],{"type":29,"value":1524},"有收益说明，不靠抽象正确性说服人",{"type":24,"tag":41,"props":1526,"children":1527},{},[1528],{"type":29,"value":1529},"有回归清单，改完知道怎么验",{"type":24,"tag":25,"props":1531,"children":1532},{},[1533],{"type":29,"value":1534},"如果你接下来要继续把 AI 用在真实项目里，建议按这个顺序读下去：",{"type":24,"tag":124,"props":1536,"children":1537},{},[1538,1545,1552,1559],{"type":24,"tag":41,"props":1539,"children":1540},{},[1541],{"type":24,"tag":81,"props":1542,"children":1543},{"href":83},[1544],{"type":29,"value":86},{"type":24,"tag":41,"props":1546,"children":1547},{},[1548],{"type":24,"tag":81,"props":1549,"children":1550},{"href":91},[1551],{"type":29,"value":94},{"type":24,"tag":41,"props":1553,"children":1554},{},[1555],{"type":24,"tag":81,"props":1556,"children":1557},{"href":106},[1558],{"type":29,"value":109},{"type":24,"tag":41,"props":1560,"children":1561},{},[1562],{"type":24,"tag":81,"props":1563,"children":1565},{"href":1564},"/topics/ai/ai-debugging-guide",[1566],{"type":29,"value":1567},"AI 辅助调试与问题排查",{"type":24,"tag":25,"props":1569,"children":1570},{},[1571],{"type":29,"value":1572},"当 review、拆批次、回归和发布这几层串起来之后，AI 给出的“重构建议”才会真正从聊天内容变成工程资产。",{"title":7,"searchDepth":1574,"depth":1574,"links":1575},3,[1576,1578,1579,1583,1586,1587,1592,1597,1603,1604,1605,1606,1607,1608],{"id":115,"depth":1577,"text":115},2,{"id":167,"depth":1577,"text":170},{"id":296,"depth":1577,"text":299,"children":1580},[1581,1582],{"id":308,"depth":1574,"text":311},{"id":365,"depth":1574,"text":368},{"id":443,"depth":1577,"text":446,"children":1584},[1585],{"id":588,"depth":1574,"text":588},{"id":676,"depth":1577,"text":679},{"id":703,"depth":1577,"text":706,"children":1588},[1589,1590,1591],{"id":743,"depth":1574,"text":746},{"id":785,"depth":1574,"text":788},{"id":814,"depth":1574,"text":817},{"id":848,"depth":1577,"text":851,"children":1593},[1594,1595,1596],{"id":859,"depth":1574,"text":859},{"id":902,"depth":1574,"text":902},{"id":940,"depth":1574,"text":940},{"id":994,"depth":1577,"text":994,"children":1598},[1599,1600,1601,1602],{"id":1009,"depth":1574,"text":1012},{"id":1020,"depth":1574,"text":1023},{"id":1031,"depth":1574,"text":1034},{"id":1042,"depth":1574,"text":1045},{"id":1053,"depth":1577,"text":1053},{"id":1237,"depth":1577,"text":1240},{"id":1370,"depth":1577,"text":1373},{"id":1397,"depth":1577,"text":1400},{"id":1441,"depth":1577,"text":1441},{"id":1494,"depth":1577,"text":1494},"markdown","content:topics:ai:ai-code-review-refactoring-suggestions.md","content","topics/ai/ai-code-review-refactoring-suggestions.md","topics/ai/ai-code-review-refactoring-suggestions",[1615,2765,3714],{"_path":1616,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1617,"description":1618,"date":1619,"topic":5,"author":11,"tags":1620,"image":1625,"imageAlt":1626,"pexelsPhotoId":1627,"pexelsUrl":1628,"readingTime":1629,"body":1630,"_type":1609,"_id":2762,"_source":1611,"_file":2763,"_stem":2764,"_extension":1384},"/topics/ai/cursor-keyboard-shortcuts-cheatsheet","Cursor 快捷键速查表（macOS/Windows）：从“会用”到“能提效”的 10 个工作流","把 Cursor 常用快捷键按任务分组（查代码、改代码、多文件、对话、审查与回滚），给出可直接照抄的工作流与最小回归清单，避免“快捷键背了也没变快”。","2026-03-02",[15,1621,1622,1623,1624],"快捷键","AI IDE","VS Code","开发效率","/images/topics/ai/cursor-keyboard-shortcuts-cheatsheet.jpg","彩色机械键盘与鼠标的工作台面",34563105,"https://www.pexels.com/photo/colorful-mechanical-keyboard-and-mouse-setup-34563105/",12,{"type":21,"children":1631,"toc":2736},[1632,1637,1655,1660,1687,1692,1728,1732,1738,1743,1776,1781,1804,1807,1813,1818,2036,2044,2047,2053,2059,2078,2086,2107,2112,2118,2133,2164,2169,2182,2188,2207,2225,2233,2238,2244,2249,2270,2278,2284,2289,2312,2317,2323,2336,2342,2360,2378,2384,2395,2413,2419,2430,2436,2441,2484,2487,2493,2501,2554,2557,2563,2569,2574,2579,2602,2620,2625,2650,2653,2659,2665,2670,2676,2681,2687,2692,2695,2701],{"type":24,"tag":25,"props":1633,"children":1634},{},[1635],{"type":29,"value":1636},"如果你在搜“Cursor 快捷键”，你大概率不是想背一张表，而是想解决这类问题：",{"type":24,"tag":37,"props":1638,"children":1639},{},[1640,1645,1650],{"type":24,"tag":41,"props":1641,"children":1642},{},[1643],{"type":29,"value":1644},"为什么我用了 AI，还是很慢？（对话来回太多、改动不可控）",{"type":24,"tag":41,"props":1646,"children":1647},{},[1648],{"type":29,"value":1649},"为什么它“看起来懂了”，却改错文件/改出回归？（上下文与范围没锁住）",{"type":24,"tag":41,"props":1651,"children":1652},{},[1653],{"type":29,"value":1654},"多文件改动怎么做得安全？（验收、回滚、最小回归集）",{"type":24,"tag":25,"props":1656,"children":1657},{},[1658],{"type":29,"value":1659},"这篇文章给你两份东西：",{"type":24,"tag":124,"props":1661,"children":1662},{},[1663,1675],{"type":24,"tag":41,"props":1664,"children":1665},{},[1666,1668,1673],{"type":29,"value":1667},"一张",{"type":24,"tag":718,"props":1669,"children":1670},{},[1671],{"type":29,"value":1672},"按任务分组",{"type":29,"value":1674},"的快捷键表（不是按功能堆在一起）",{"type":24,"tag":41,"props":1676,"children":1677},{},[1678,1680,1685],{"type":29,"value":1679},"一套“从需求到落地”的",{"type":24,"tag":718,"props":1681,"children":1682},{},[1683],{"type":29,"value":1684},"最小闭环工作流",{"type":29,"value":1686},"（每一步都有快捷键）",{"type":24,"tag":25,"props":1688,"children":1689},{},[1690],{"type":29,"value":1691},"想看系统玩法：",{"type":24,"tag":37,"props":1693,"children":1694},{},[1695,1706,1717],{"type":24,"tag":41,"props":1696,"children":1697},{},[1698,1700],{"type":29,"value":1699},"入门教程看：",{"type":24,"tag":81,"props":1701,"children":1703},{"href":1702},"/topics/ai/cursor-tutorial",[1704],{"type":29,"value":1705},"Cursor 使用教程（2026）",{"type":24,"tag":41,"props":1707,"children":1708},{},[1709,1711],{"type":29,"value":1710},"进阶玩法看：",{"type":24,"tag":81,"props":1712,"children":1714},{"href":1713},"/topics/ai/cursor-editor-guide",[1715],{"type":29,"value":1716},"Cursor 编辑器深度玩法",{"type":24,"tag":41,"props":1718,"children":1719},{},[1720,1722],{"type":29,"value":1721},"规则与忽略看：",{"type":24,"tag":81,"props":1723,"children":1725},{"href":1724},"/topics/ai/cursor-rules-cursorrules",[1726],{"type":29,"value":1727},"Cursor Rules 与 .cursorrules",{"type":24,"tag":1729,"props":1730,"children":1731},"hr",{},[],{"type":24,"tag":113,"props":1733,"children":1735},{"id":1734},"先给结论提效不是按得快而是闭环更短",[1736],{"type":29,"value":1737},"先给结论：提效不是“按得快”，而是“闭环更短”",{"type":24,"tag":25,"props":1739,"children":1740},{},[1741],{"type":29,"value":1742},"你可以把 Cursor 的快捷键理解为 3 条流水线：",{"type":24,"tag":37,"props":1744,"children":1745},{},[1746,1756,1766],{"type":24,"tag":41,"props":1747,"children":1748},{},[1749,1754],{"type":24,"tag":718,"props":1750,"children":1751},{},[1752],{"type":29,"value":1753},"改一小段",{"type":29,"value":1755},"（内联编辑）：把改动限制在一个函数/一段样式",{"type":24,"tag":41,"props":1757,"children":1758},{},[1759,1764],{"type":24,"tag":718,"props":1760,"children":1761},{},[1762],{"type":29,"value":1763},"改一组文件",{"type":29,"value":1765},"（Composer）：把改动限制在一组明确文件，并要求输出 diff + 验收点",{"type":24,"tag":41,"props":1767,"children":1768},{},[1769,1774],{"type":24,"tag":718,"props":1770,"children":1771},{},[1772],{"type":29,"value":1773},"聊清楚再动手",{"type":29,"value":1775},"（侧边对话）：先对齐目标、范围、验收、回滚",{"type":24,"tag":25,"props":1777,"children":1778},{},[1779],{"type":29,"value":1780},"当你觉得“它乱改/改太大”时，往往不是快捷键没记住，而是缺了两件事：",{"type":24,"tag":37,"props":1782,"children":1783},{},[1784,1794],{"type":24,"tag":41,"props":1785,"children":1786},{},[1787,1789],{"type":29,"value":1788},"没有在动手前锁定",{"type":24,"tag":718,"props":1790,"children":1791},{},[1792],{"type":29,"value":1793},"范围",{"type":24,"tag":41,"props":1795,"children":1796},{},[1797,1799],{"type":29,"value":1798},"没有在接受改动前准备",{"type":24,"tag":718,"props":1800,"children":1801},{},[1802],{"type":29,"value":1803},"验收/回滚",{"type":24,"tag":1729,"props":1805,"children":1806},{},[],{"type":24,"tag":113,"props":1808,"children":1810},{"id":1809},"快捷键速查表按任务分组",[1811],{"type":29,"value":1812},"快捷键速查表（按任务分组）",{"type":24,"tag":25,"props":1814,"children":1815},{},[1816],{"type":29,"value":1817},"说明：下表按“你正在做什么”组织，而不是按“功能名字”组织。不同版本快捷键可能略有差异，但核心逻辑一致。",{"type":24,"tag":182,"props":1819,"children":1820},{},[1821,1847],{"type":24,"tag":186,"props":1822,"children":1823},{},[1824],{"type":24,"tag":190,"props":1825,"children":1826},{},[1827,1832,1837,1842],{"type":24,"tag":194,"props":1828,"children":1829},{},[1830],{"type":29,"value":1831},"任务",{"type":24,"tag":194,"props":1833,"children":1834},{},[1835],{"type":29,"value":1836},"macOS",{"type":24,"tag":194,"props":1838,"children":1839},{},[1840],{"type":29,"value":1841},"Windows",{"type":24,"tag":194,"props":1843,"children":1844},{},[1845],{"type":29,"value":1846},"你该在什么时候用",{"type":24,"tag":205,"props":1848,"children":1849},{},[1850,1881,1912,1943,1974,2005],{"type":24,"tag":190,"props":1851,"children":1852},{},[1853,1858,1867,1876],{"type":24,"tag":212,"props":1854,"children":1855},{},[1856],{"type":29,"value":1857},"改一小段（最安全）",{"type":24,"tag":212,"props":1859,"children":1860},{},[1861],{"type":24,"tag":651,"props":1862,"children":1864},{"className":1863},[],[1865],{"type":29,"value":1866},"Cmd + K",{"type":24,"tag":212,"props":1868,"children":1869},{},[1870],{"type":24,"tag":651,"props":1871,"children":1873},{"className":1872},[],[1874],{"type":29,"value":1875},"Ctrl + K",{"type":24,"tag":212,"props":1877,"children":1878},{},[1879],{"type":29,"value":1880},"只想改一个函数/一段 CSS，不想动别的",{"type":24,"tag":190,"props":1882,"children":1883},{},[1884,1889,1898,1907],{"type":24,"tag":212,"props":1885,"children":1886},{},[1887],{"type":29,"value":1888},"打开 AI 对话（先对齐再动手）",{"type":24,"tag":212,"props":1890,"children":1891},{},[1892],{"type":24,"tag":651,"props":1893,"children":1895},{"className":1894},[],[1896],{"type":29,"value":1897},"Cmd + L",{"type":24,"tag":212,"props":1899,"children":1900},{},[1901],{"type":24,"tag":651,"props":1902,"children":1904},{"className":1903},[],[1905],{"type":29,"value":1906},"Ctrl + L",{"type":24,"tag":212,"props":1908,"children":1909},{},[1910],{"type":29,"value":1911},"需要澄清目标、制定步骤、给验收点",{"type":24,"tag":190,"props":1913,"children":1914},{},[1915,1920,1929,1938],{"type":24,"tag":212,"props":1916,"children":1917},{},[1918],{"type":29,"value":1919},"多文件编辑（有组织地改一组文件）",{"type":24,"tag":212,"props":1921,"children":1922},{},[1923],{"type":24,"tag":651,"props":1924,"children":1926},{"className":1925},[],[1927],{"type":29,"value":1928},"Cmd + I",{"type":24,"tag":212,"props":1930,"children":1931},{},[1932],{"type":24,"tag":651,"props":1933,"children":1935},{"className":1934},[],[1936],{"type":29,"value":1937},"Ctrl + I",{"type":24,"tag":212,"props":1939,"children":1940},{},[1941],{"type":29,"value":1942},"改动涉及多个文件：组件+样式+测试",{"type":24,"tag":190,"props":1944,"children":1945},{},[1946,1951,1960,1969],{"type":24,"tag":212,"props":1947,"children":1948},{},[1949],{"type":29,"value":1950},"把选中代码加入对话上下文",{"type":24,"tag":212,"props":1952,"children":1953},{},[1954],{"type":24,"tag":651,"props":1955,"children":1957},{"className":1956},[],[1958],{"type":29,"value":1959},"Cmd + Shift + L",{"type":24,"tag":212,"props":1961,"children":1962},{},[1963],{"type":24,"tag":651,"props":1964,"children":1966},{"className":1965},[],[1967],{"type":29,"value":1968},"Ctrl + Shift + L",{"type":24,"tag":212,"props":1970,"children":1971},{},[1972],{"type":29,"value":1973},"让 AI 只看你选的片段（降低噪音）",{"type":24,"tag":190,"props":1975,"children":1976},{},[1977,1982,1991,2000],{"type":24,"tag":212,"props":1978,"children":1979},{},[1980],{"type":29,"value":1981},"接受当前建议",{"type":24,"tag":212,"props":1983,"children":1984},{},[1985],{"type":24,"tag":651,"props":1986,"children":1988},{"className":1987},[],[1989],{"type":29,"value":1990},"Cmd + Y",{"type":24,"tag":212,"props":1992,"children":1993},{},[1994],{"type":24,"tag":651,"props":1995,"children":1997},{"className":1996},[],[1998],{"type":29,"value":1999},"Ctrl + Y",{"type":24,"tag":212,"props":2001,"children":2002},{},[2003],{"type":29,"value":2004},"你已经准备好验收/回滚，并确认改动范围",{"type":24,"tag":190,"props":2006,"children":2007},{},[2008,2013,2022,2031],{"type":24,"tag":212,"props":2009,"children":2010},{},[2011],{"type":29,"value":2012},"拒绝当前建议",{"type":24,"tag":212,"props":2014,"children":2015},{},[2016],{"type":24,"tag":651,"props":2017,"children":2019},{"className":2018},[],[2020],{"type":29,"value":2021},"Cmd + N",{"type":24,"tag":212,"props":2023,"children":2024},{},[2025],{"type":24,"tag":651,"props":2026,"children":2028},{"className":2027},[],[2029],{"type":29,"value":2030},"Ctrl + N",{"type":24,"tag":212,"props":2032,"children":2033},{},[2034],{"type":29,"value":2035},"改得太大、改错方向，立刻收手",{"type":24,"tag":67,"props":2037,"children":2038},{},[2039],{"type":24,"tag":25,"props":2040,"children":2041},{},[2042],{"type":29,"value":2043},"小技巧：把“改一小段”当默认路径。只有当你能清晰写出“会改哪几类文件、怎么验收”时再进入多文件。",{"type":24,"tag":1729,"props":2045,"children":2046},{},[],{"type":24,"tag":113,"props":2048,"children":2050},{"id":2049},"_10-个可直接照抄的提效工作流每个都能闭环",[2051],{"type":29,"value":2052},"10 个可直接照抄的提效工作流（每个都能闭环）",{"type":24,"tag":306,"props":2054,"children":2056},{"id":2055},"工作流-1需求计划小步改新手最稳",[2057],{"type":29,"value":2058},"工作流 1：需求→计划→小步改（新手最稳）",{"type":24,"tag":124,"props":2060,"children":2061},{},[2062,2073],{"type":24,"tag":41,"props":2063,"children":2064},{},[2065,2071],{"type":24,"tag":651,"props":2066,"children":2068},{"className":2067},[],[2069],{"type":29,"value":2070},"Cmd/Ctrl + L",{"type":29,"value":2072}," 打开对话",{"type":24,"tag":41,"props":2074,"children":2075},{},[2076],{"type":29,"value":2077},"先发这段（可复制）：",{"type":24,"tag":67,"props":2079,"children":2080},{},[2081],{"type":24,"tag":25,"props":2082,"children":2083},{},[2084],{"type":29,"value":2085},"目标：……\n范围：只修改以下文件/模块：……\n非目标：……（明确不做）\n验收：……（可测试/可手动检查）\n输出格式：先给计划，再逐步执行；每一步写出 diff 摘要。",{"type":24,"tag":124,"props":2087,"children":2088},{"start":1574},[2089,2094],{"type":24,"tag":41,"props":2090,"children":2091},{},[2092],{"type":29,"value":2093},"让 AI 先给“计划（3~6 步）”，你确认后再执行",{"type":24,"tag":41,"props":2095,"children":2096},{},[2097,2099,2105],{"type":29,"value":2098},"任何一步涉及改代码：优先回到编辑区，选中片段用 ",{"type":24,"tag":651,"props":2100,"children":2102},{"className":2101},[],[2103],{"type":29,"value":2104},"Cmd/Ctrl + K",{"type":29,"value":2106}," 小步改",{"type":24,"tag":25,"props":2108,"children":2109},{},[2110],{"type":29,"value":2111},"为什么有效：你把“想法”变成了“可执行约束”，这就是 GEO（面向 AI/模型的可理解结构）。",{"type":24,"tag":306,"props":2113,"children":2115},{"id":2114},"工作流-2只改一个函数高频低风险",[2116],{"type":29,"value":2117},"工作流 2：只改一个函数（高频、低风险）",{"type":24,"tag":37,"props":2119,"children":2120},{},[2121],{"type":24,"tag":41,"props":2122,"children":2123},{},[2124,2126,2131],{"type":29,"value":2125},"选中函数 → ",{"type":24,"tag":651,"props":2127,"children":2129},{"className":2128},[],[2130],{"type":29,"value":2104},{"type":29,"value":2132}," → 输入指令：",{"type":24,"tag":67,"props":2134,"children":2135},{},[2136,2141],{"type":24,"tag":25,"props":2137,"children":2138},{},[2139],{"type":29,"value":2140},"把这段改成更可读：",{"type":24,"tag":37,"props":2142,"children":2143},{},[2144,2149,2154,2159],{"type":24,"tag":41,"props":2145,"children":2146},{},[2147],{"type":29,"value":2148},"用 async/await",{"type":24,"tag":41,"props":2150,"children":2151},{},[2152],{"type":29,"value":2153},"错误处理不要吞掉",{"type":24,"tag":41,"props":2155,"children":2156},{},[2157],{"type":29,"value":2158},"添加类型（若可推断）",{"type":24,"tag":41,"props":2160,"children":2161},{},[2162],{"type":29,"value":2163},"不要改函数签名",{"type":24,"tag":25,"props":2165,"children":2166},{},[2167],{"type":29,"value":2168},"验收方式（强制）：",{"type":24,"tag":37,"props":2170,"children":2171},{},[2172,2177],{"type":24,"tag":41,"props":2173,"children":2174},{},[2175],{"type":29,"value":2176},"输出前后函数行为一致（输入/输出）",{"type":24,"tag":41,"props":2178,"children":2179},{},[2180],{"type":29,"value":2181},"失败分支有可观测日志（不要悄悄 return null）",{"type":24,"tag":306,"props":2183,"children":2185},{"id":2184},"工作流-3多文件改动先定文件清单",[2186],{"type":29,"value":2187},"工作流 3：多文件改动（先定“文件清单”）",{"type":24,"tag":124,"props":2189,"children":2190},{},[2191,2202],{"type":24,"tag":41,"props":2192,"children":2193},{},[2194,2200],{"type":24,"tag":651,"props":2195,"children":2197},{"className":2196},[],[2198],{"type":29,"value":2199},"Cmd/Ctrl + I",{"type":29,"value":2201}," 进入多文件",{"type":24,"tag":41,"props":2203,"children":2204},{},[2205],{"type":29,"value":2206},"先让 AI 输出：",{"type":24,"tag":37,"props":2208,"children":2209},{},[2210,2215,2220],{"type":24,"tag":41,"props":2211,"children":2212},{},[2213],{"type":29,"value":2214},"预计会改哪些文件（最多 5 个）",{"type":24,"tag":41,"props":2216,"children":2217},{},[2218],{"type":29,"value":2219},"每个文件改什么",{"type":24,"tag":41,"props":2221,"children":2222},{},[2223],{"type":29,"value":2224},"每一步怎么验收",{"type":24,"tag":124,"props":2226,"children":2227},{"start":1574},[2228],{"type":24,"tag":41,"props":2229,"children":2230},{},[2231],{"type":29,"value":2232},"你确认文件清单后再开始生成改动",{"type":24,"tag":25,"props":2234,"children":2235},{},[2236],{"type":29,"value":2237},"关键点：多文件最容易翻车的是“它把你没想到的文件也改了”。所以文件清单是第一道闸门。",{"type":24,"tag":306,"props":2239,"children":2241},{"id":2240},"工作流-4把上下文噪音砍掉防跑偏",[2242],{"type":29,"value":2243},"工作流 4：把“上下文噪音”砍掉（防跑偏）",{"type":24,"tag":25,"props":2245,"children":2246},{},[2247],{"type":29,"value":2248},"当你怀疑它在胡说/乱改时：",{"type":24,"tag":37,"props":2250,"children":2251},{},[2252,2265],{"type":24,"tag":41,"props":2253,"children":2254},{},[2255,2257,2263],{"type":29,"value":2256},"只选择关键代码片段 → ",{"type":24,"tag":651,"props":2258,"children":2260},{"className":2259},[],[2261],{"type":29,"value":2262},"Cmd/Ctrl + Shift + L",{"type":29,"value":2264}," 加入对话",{"type":24,"tag":41,"props":2266,"children":2267},{},[2268],{"type":29,"value":2269},"然后在对话里要求：",{"type":24,"tag":67,"props":2271,"children":2272},{},[2273],{"type":24,"tag":25,"props":2274,"children":2275},{},[2276],{"type":29,"value":2277},"只基于我提供的代码片段回答，不要假设其它文件存在。",{"type":24,"tag":306,"props":2279,"children":2281},{"id":2280},"工作流-5生成变更说明让-code-review-变快",[2282],{"type":29,"value":2283},"工作流 5：生成变更说明（让 code review 变快）",{"type":24,"tag":25,"props":2285,"children":2286},{},[2287],{"type":29,"value":2288},"改完后在对话里让它输出：",{"type":24,"tag":37,"props":2290,"children":2291},{},[2292,2297,2302,2307],{"type":24,"tag":41,"props":2293,"children":2294},{},[2295],{"type":29,"value":2296},"改动摘要（3~7 条）",{"type":24,"tag":41,"props":2298,"children":2299},{},[2300],{"type":29,"value":2301},"风险点（依赖/边界条件）",{"type":24,"tag":41,"props":2303,"children":2304},{},[2305],{"type":29,"value":2306},"回滚方式",{"type":24,"tag":41,"props":2308,"children":2309},{},[2310],{"type":29,"value":2311},"验收步骤",{"type":24,"tag":25,"props":2313,"children":2314},{},[2315],{"type":29,"value":2316},"这套结构能直接贴进 PR 描述。",{"type":24,"tag":306,"props":2318,"children":2320},{"id":2319},"工作流-6写最小回归集不写回归-等事故",[2321],{"type":29,"value":2322},"工作流 6：写“最小回归集”（不写回归 = 等事故）",{"type":24,"tag":25,"props":2324,"children":2325},{},[2326,2328,2334],{"type":29,"value":2327},"每次改动都至少做 10 条最小回归（见下文清单）。你可以把它写在 ",{"type":24,"tag":651,"props":2329,"children":2331},{"className":2330},[],[2332],{"type":29,"value":2333},"README",{"type":29,"value":2335}," 或团队 wiki。",{"type":24,"tag":306,"props":2337,"children":2339},{"id":2338},"工作流-7把接受建议变成最后一步",[2340],{"type":29,"value":2341},"工作流 7：把“接受建议”变成最后一步",{"type":24,"tag":25,"props":2343,"children":2344},{},[2345,2351,2353,2358],{"type":24,"tag":651,"props":2346,"children":2348},{"className":2347},[],[2349],{"type":29,"value":2350},"Cmd/Ctrl + Y",{"type":29,"value":2352}," 应该是",{"type":24,"tag":718,"props":2354,"children":2355},{},[2356],{"type":29,"value":2357},"最后一步",{"type":29,"value":2359},"：",{"type":24,"tag":37,"props":2361,"children":2362},{},[2363,2368,2373],{"type":24,"tag":41,"props":2364,"children":2365},{},[2366],{"type":29,"value":2367},"你已经看过 diff",{"type":24,"tag":41,"props":2369,"children":2370},{},[2371],{"type":29,"value":2372},"你能说清楚“怎么验收”",{"type":24,"tag":41,"props":2374,"children":2375},{},[2376],{"type":29,"value":2377},"你知道“怎么回滚”",{"type":24,"tag":306,"props":2379,"children":2381},{"id":2380},"工作流-8拒绝建议不是失败是风控动作",[2382],{"type":29,"value":2383},"工作流 8：拒绝建议不是失败，是风控动作",{"type":24,"tag":25,"props":2385,"children":2386},{},[2387,2393],{"type":24,"tag":651,"props":2388,"children":2390},{"className":2389},[],[2391],{"type":29,"value":2392},"Cmd/Ctrl + N",{"type":29,"value":2394}," 的使用时机：",{"type":24,"tag":37,"props":2396,"children":2397},{},[2398,2403,2408],{"type":24,"tag":41,"props":2399,"children":2400},{},[2401],{"type":29,"value":2402},"它开始改你没提过的东西（范围漂移）",{"type":24,"tag":41,"props":2404,"children":2405},{},[2406],{"type":29,"value":2407},"它改了 10 个文件但你只想改 1 个",{"type":24,"tag":41,"props":2409,"children":2410},{},[2411],{"type":29,"value":2412},"它为了“更优雅”引入新依赖/新抽象",{"type":24,"tag":306,"props":2414,"children":2416},{"id":2415},"工作流-9重复任务做成模板提示词不是一次性",[2417],{"type":29,"value":2418},"工作流 9：重复任务做成模板（提示词不是一次性）",{"type":24,"tag":25,"props":2420,"children":2421},{},[2422,2424,2428],{"type":29,"value":2423},"把高频任务（比如“写组件+样式+验收”）固化成模板，放进 Rules（见：",{"type":24,"tag":81,"props":2425,"children":2426},{"href":1724},[2427],{"type":29,"value":1727},{"type":29,"value":2429},"）。",{"type":24,"tag":306,"props":2431,"children":2433},{"id":2432},"工作流-10把快捷键表做成你自己的任务表",[2434],{"type":29,"value":2435},"工作流 10：把“快捷键表”做成你自己的任务表",{"type":24,"tag":25,"props":2437,"children":2438},{},[2439],{"type":29,"value":2440},"你不需要记住所有快捷键，只需要记住：",{"type":24,"tag":37,"props":2442,"children":2443},{},[2444,2454,2464,2474],{"type":24,"tag":41,"props":2445,"children":2446},{},[2447,2449],{"type":29,"value":2448},"小步改：",{"type":24,"tag":651,"props":2450,"children":2452},{"className":2451},[],[2453],{"type":29,"value":2104},{"type":24,"tag":41,"props":2455,"children":2456},{},[2457,2459],{"type":29,"value":2458},"先对齐：",{"type":24,"tag":651,"props":2460,"children":2462},{"className":2461},[],[2463],{"type":29,"value":2070},{"type":24,"tag":41,"props":2465,"children":2466},{},[2467,2469],{"type":29,"value":2468},"多文件：",{"type":24,"tag":651,"props":2470,"children":2472},{"className":2471},[],[2473],{"type":29,"value":2199},{"type":24,"tag":41,"props":2475,"children":2476},{},[2477,2479],{"type":29,"value":2478},"上下文聚焦：",{"type":24,"tag":651,"props":2480,"children":2482},{"className":2481},[],[2483],{"type":29,"value":2262},{"type":24,"tag":1729,"props":2485,"children":2486},{},[],{"type":24,"tag":113,"props":2488,"children":2490},{"id":2489},"必交付物-1最小回归任务清单10-条通用",[2491],{"type":29,"value":2492},"必交付物 1：最小回归任务清单（10 条，通用）",{"type":24,"tag":67,"props":2494,"children":2495},{},[2496],{"type":24,"tag":25,"props":2497,"children":2498},{},[2499],{"type":29,"value":2500},"这份清单的意义：让每次 AI 改动都能“被验证”。否则你只是把不可控变成了更快的不可控。",{"type":24,"tag":124,"props":2502,"children":2503},{},[2504,2509,2514,2519,2524,2529,2534,2539,2544,2549],{"type":24,"tag":41,"props":2505,"children":2506},{},[2507],{"type":29,"value":2508},"关键路径能跑通（手动点击/请求一次）",{"type":24,"tag":41,"props":2510,"children":2511},{},[2512],{"type":29,"value":2513},"错误路径能触发（模拟一次失败输入）",{"type":24,"tag":41,"props":2515,"children":2516},{},[2517],{"type":29,"value":2518},"控制台无新增错误（至少关注 1 次真实操作）",{"type":24,"tag":41,"props":2520,"children":2521},{},[2522],{"type":29,"value":2523},"关键 UI 未错位（移动端/桌面端各看一眼）",{"type":24,"tag":41,"props":2525,"children":2526},{},[2527],{"type":29,"value":2528},"刷新后状态正确（尤其是表单/列表）",{"type":24,"tag":41,"props":2530,"children":2531},{},[2532],{"type":29,"value":2533},"路由跳转没断（从入口到目标页）",{"type":24,"tag":41,"props":2535,"children":2536},{},[2537],{"type":29,"value":2538},"相关接口未改变契约（字段名/类型）",{"type":24,"tag":41,"props":2540,"children":2541},{},[2542],{"type":29,"value":2543},"性能没有明显退化（首屏、交互卡顿）",{"type":24,"tag":41,"props":2545,"children":2546},{},[2547],{"type":29,"value":2548},"回滚方案可执行（知道回滚哪几个文件/commit）",{"type":24,"tag":41,"props":2550,"children":2551},{},[2552],{"type":29,"value":2553},"写下“这次改动解决了什么、风险是什么”（可贴 PR）",{"type":24,"tag":1729,"props":2555,"children":2556},{},[],{"type":24,"tag":113,"props":2558,"children":2560},{"id":2559},"必交付物-2失败案例复盘真实会发生",[2561],{"type":29,"value":2562},"必交付物 2：失败案例复盘（真实会发生）",{"type":24,"tag":306,"props":2564,"children":2566},{"id":2565},"现象快捷键用得很熟但交付还是慢",[2567],{"type":29,"value":2568},"现象：快捷键用得很熟，但交付还是慢",{"type":24,"tag":25,"props":2570,"children":2571},{},[2572],{"type":29,"value":2573},"典型原因：你把 Cursor 当成“更聪明的搜索框”，不断对话，直到它给出你想要的答案。",{"type":24,"tag":25,"props":2575,"children":2576},{},[2577],{"type":29,"value":2578},"复现路径：",{"type":24,"tag":37,"props":2580,"children":2581},{},[2582,2587,2592,2597],{"type":24,"tag":41,"props":2583,"children":2584},{},[2585],{"type":29,"value":2586},"你直接说“把页面做得更好看、更高级”",{"type":24,"tag":41,"props":2588,"children":2589},{},[2590],{"type":29,"value":2591},"AI 开始大改样式、抽象组件、甚至引入新依赖",{"type":24,"tag":41,"props":2593,"children":2594},{},[2595],{"type":29,"value":2596},"你为了省事按了“接受建议”",{"type":24,"tag":41,"props":2598,"children":2599},{},[2600],{"type":29,"value":2601},"最后发现：设计没统一、移动端崩、甚至埋了性能问题",{"type":24,"tag":25,"props":2603,"children":2604},{},[2605,2607,2611,2613,2618],{"type":29,"value":2606},"根因：缺少",{"type":24,"tag":718,"props":2608,"children":2609},{},[2610],{"type":29,"value":1793},{"type":29,"value":2612},"与",{"type":24,"tag":718,"props":2614,"children":2615},{},[2616],{"type":29,"value":2617},"验收",{"type":29,"value":2619},"。",{"type":24,"tag":25,"props":2621,"children":2622},{},[2623],{"type":29,"value":2624},"修复方式（可照抄）：",{"type":24,"tag":37,"props":2626,"children":2627},{},[2628,2633,2645],{"type":24,"tag":41,"props":2629,"children":2630},{},[2631],{"type":29,"value":2632},"把需求拆成 3 个可验证目标：例如“按钮样式统一”“首屏 CTA 更明显”“移动端间距不挤”",{"type":24,"tag":41,"props":2634,"children":2635},{},[2636,2638,2643],{"type":29,"value":2637},"每个目标只用 ",{"type":24,"tag":651,"props":2639,"children":2641},{"className":2640},[],[2642],{"type":29,"value":2104},{"type":29,"value":2644}," 改一个局部",{"type":24,"tag":41,"props":2646,"children":2647},{},[2648],{"type":29,"value":2649},"每次接受建议前跑一遍“最小回归集”",{"type":24,"tag":1729,"props":2651,"children":2652},{},[],{"type":24,"tag":113,"props":2654,"children":2656},{"id":2655},"faq高频问题",[2657],{"type":29,"value":2658},"FAQ（高频问题）",{"type":24,"tag":306,"props":2660,"children":2662},{"id":2661},"q1我应该先记快捷键还是先学工作流",[2663],{"type":29,"value":2664},"Q1：我应该先记快捷键还是先学工作流？",{"type":24,"tag":25,"props":2666,"children":2667},{},[2668],{"type":29,"value":2669},"先学工作流。快捷键只是把工作流的步骤变短。",{"type":24,"tag":306,"props":2671,"children":2673},{"id":2672},"q2为什么我一用多文件就容易翻车",[2674],{"type":29,"value":2675},"Q2：为什么我一用多文件就容易翻车？",{"type":24,"tag":25,"props":2677,"children":2678},{},[2679],{"type":29,"value":2680},"因为多文件意味着范围更大、依赖更多、验收更难。先锁定“文件清单 + 每步验收”，再让它动手。",{"type":24,"tag":306,"props":2682,"children":2684},{"id":2683},"q3有没有万能提示词",[2685],{"type":29,"value":2686},"Q3：有没有“万能提示词”？",{"type":24,"tag":25,"props":2688,"children":2689},{},[2690],{"type":29,"value":2691},"没有，但有“万能结构”：目标、范围、非目标、验收、输出格式。",{"type":24,"tag":1729,"props":2693,"children":2694},{},[],{"type":24,"tag":113,"props":2696,"children":2698},{"id":2697},"延伸阅读建议按顺序",[2699],{"type":29,"value":2700},"延伸阅读（建议按顺序）",{"type":24,"tag":37,"props":2702,"children":2703},{},[2704,2711,2718,2725],{"type":24,"tag":41,"props":2705,"children":2706},{},[2707],{"type":24,"tag":81,"props":2708,"children":2709},{"href":1702},[2710],{"type":29,"value":1705},{"type":24,"tag":41,"props":2712,"children":2713},{},[2714],{"type":24,"tag":81,"props":2715,"children":2716},{"href":1713},[2717],{"type":29,"value":1716},{"type":24,"tag":41,"props":2719,"children":2720},{},[2721],{"type":24,"tag":81,"props":2722,"children":2723},{"href":1724},[2724],{"type":29,"value":1727},{"type":24,"tag":41,"props":2726,"children":2727},{},[2728,2730],{"type":29,"value":2729},"如果你更关心“网页制作落地”：看这篇 ",{"type":24,"tag":81,"props":2731,"children":2733},{"href":2732},"/topics/practical-tips/htmlpage-quick-landing-page",[2734],{"type":29,"value":2735},"3 分钟用 HTMLPAGE 做落地页",{"title":7,"searchDepth":1574,"depth":1574,"links":2737},[2738,2739,2740,2752,2753,2756,2761],{"id":1734,"depth":1577,"text":1737},{"id":1809,"depth":1577,"text":1812},{"id":2049,"depth":1577,"text":2052,"children":2741},[2742,2743,2744,2745,2746,2747,2748,2749,2750,2751],{"id":2055,"depth":1574,"text":2058},{"id":2114,"depth":1574,"text":2117},{"id":2184,"depth":1574,"text":2187},{"id":2240,"depth":1574,"text":2243},{"id":2280,"depth":1574,"text":2283},{"id":2319,"depth":1574,"text":2322},{"id":2338,"depth":1574,"text":2341},{"id":2380,"depth":1574,"text":2383},{"id":2415,"depth":1574,"text":2418},{"id":2432,"depth":1574,"text":2435},{"id":2489,"depth":1577,"text":2492},{"id":2559,"depth":1577,"text":2562,"children":2754},[2755],{"id":2565,"depth":1574,"text":2568},{"id":2655,"depth":1577,"text":2658,"children":2757},[2758,2759,2760],{"id":2661,"depth":1574,"text":2664},{"id":2672,"depth":1574,"text":2675},{"id":2683,"depth":1574,"text":2686},{"id":2697,"depth":1577,"text":2700},"content:topics:ai:cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet",{"_path":2766,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2767,"description":2768,"date":2769,"topic":5,"author":11,"tags":2770,"image":2773,"imageAlt":2774,"pexelsPhotoId":2775,"pexelsUrl":2776,"readingTime":2777,"body":2778,"_type":1609,"_id":3711,"_source":1611,"_file":3712,"_stem":3713,"_extension":1384},"/topics/ai/cursor-vs-copilot-vscode-workflow","Cursor vs GitHub Copilot vs VS Code：怎么选、怎么搭配、怎么把风险关在笼子里","用“任务类型×风险×验收成本”的选择矩阵解释 Cursor/Copilot/VS Code 的差异，并给出一套可落地的协作工作流（范围闸门、最小回归集、回滚策略）。","2026-03-01",[15,16,1623,2771,2772],"AI 编程","工作流","/images/topics/ai/cursor-vs-copilot-vscode-workflow.jpg","团队在电脑前进行协作讨论",1181371,"https://www.pexels.com/photo/man-wearing-blue-dress-shirt-1181371/",15,{"type":21,"children":2779,"toc":3689},[2780,2785,2790,2808,2813,2831,2834,2840,2845,2876,2881,2884,2890,2898,3102,3110,3123,3126,3132,3138,3151,3156,3169,3175,3180,3213,3219,3224,3242,3245,3251,3256,3262,3267,3300,3306,3319,3324,3337,3343,3355,3361,3366,3379,3384,3387,3393,3398,3519,3522,3528,3538,3547,3565,3574,3582,3591,3609,3612,3618,3624,3629,3635,3640,3643,3648],{"type":24,"tag":25,"props":2781,"children":2782},{},[2783],{"type":29,"value":2784},"“Cursor 和 Copilot 到底有什么区别？”",{"type":24,"tag":25,"props":2786,"children":2787},{},[2788],{"type":29,"value":2789},"这个问题问得越早越好，因为你一旦把工具选错，后面所有痛苦都不是“提示词不够好”，而是：",{"type":24,"tag":37,"props":2791,"children":2792},{},[2793,2798,2803],{"type":24,"tag":41,"props":2794,"children":2795},{},[2796],{"type":29,"value":2797},"改动不可控（范围漂移、改错文件）",{"type":24,"tag":41,"props":2799,"children":2800},{},[2801],{"type":29,"value":2802},"验收成本爆炸（不知道要测什么）",{"type":24,"tag":41,"props":2804,"children":2805},{},[2806],{"type":29,"value":2807},"团队协作崩盘（没有闸门、没有回滚）",{"type":24,"tag":25,"props":2809,"children":2810},{},[2811],{"type":29,"value":2812},"这篇文章用一张选择矩阵 + 一套可执行工作流，帮你做到两件事：",{"type":24,"tag":124,"props":2814,"children":2815},{},[2816,2821],{"type":24,"tag":41,"props":2817,"children":2818},{},[2819],{"type":29,"value":2820},"知道什么时候用 Cursor、什么时候用 Copilot、什么时候“纯 VS Code 更快”",{"type":24,"tag":41,"props":2822,"children":2823},{},[2824,2826],{"type":29,"value":2825},"就算用 AI，也能把风险关在笼子里：",{"type":24,"tag":718,"props":2827,"children":2828},{},[2829],{"type":29,"value":2830},"可审查、可验证、可回滚",{"type":24,"tag":1729,"props":2832,"children":2833},{},[],{"type":24,"tag":113,"props":2835,"children":2837},{"id":2836},"结论先说三者不是互斥而是分工",[2838],{"type":29,"value":2839},"结论先说：三者不是互斥，而是分工",{"type":24,"tag":25,"props":2841,"children":2842},{},[2843],{"type":29,"value":2844},"你可以把它们看成三层能力：",{"type":24,"tag":37,"props":2846,"children":2847},{},[2848,2857,2867],{"type":24,"tag":41,"props":2849,"children":2850},{},[2851,2855],{"type":24,"tag":718,"props":2852,"children":2853},{},[2854],{"type":29,"value":1623},{"type":29,"value":2856},"：编辑器与生态（调试、插件、任务、终端、语言服务）",{"type":24,"tag":41,"props":2858,"children":2859},{},[2860,2865],{"type":24,"tag":718,"props":2861,"children":2862},{},[2863],{"type":29,"value":2864},"Copilot",{"type":29,"value":2866},"：代码补全与局部建议（“我正在写这一行/这一段”）",{"type":24,"tag":41,"props":2868,"children":2869},{},[2870,2874],{"type":24,"tag":718,"props":2871,"children":2872},{},[2873],{"type":29,"value":15},{"type":29,"value":2875},"：以项目为单位的 AI 协作（对话、索引、多文件编辑、规则）",{"type":24,"tag":25,"props":2877,"children":2878},{},[2879],{"type":29,"value":2880},"最常见的误区是：把“局部补全能力”当作“能做架构与多文件落地”。",{"type":24,"tag":1729,"props":2882,"children":2883},{},[],{"type":24,"tag":113,"props":2885,"children":2887},{"id":2886},"选择矩阵按任务类型选工具不是按偏好",[2888],{"type":29,"value":2889},"选择矩阵：按任务类型选工具（不是按偏好）",{"type":24,"tag":67,"props":2891,"children":2892},{},[2893],{"type":24,"tag":25,"props":2894,"children":2895},{},[2896],{"type":29,"value":2897},"你只要把自己的任务放进表格，就能得到推荐路径。",{"type":24,"tag":182,"props":2899,"children":2900},{},[2901,2933],{"type":24,"tag":186,"props":2902,"children":2903},{},[2904],{"type":24,"tag":190,"props":2905,"children":2906},{},[2907,2912,2918,2923,2928],{"type":24,"tag":194,"props":2908,"children":2909},{},[2910],{"type":29,"value":2911},"任务类型",{"type":24,"tag":194,"props":2913,"children":2915},{"align":2914},"right",[2916],{"type":29,"value":2917},"风险",{"type":24,"tag":194,"props":2919,"children":2920},{"align":2914},[2921],{"type":29,"value":2922},"验收成本",{"type":24,"tag":194,"props":2924,"children":2925},{},[2926],{"type":29,"value":2927},"更推荐",{"type":24,"tag":194,"props":2929,"children":2930},{},[2931],{"type":29,"value":2932},"为什么",{"type":24,"tag":205,"props":2934,"children":2935},{},[2936,2963,2996,3022,3049,3076],{"type":24,"tag":190,"props":2937,"children":2938},{},[2939,2944,2949,2953,2958],{"type":24,"tag":212,"props":2940,"children":2941},{},[2942],{"type":29,"value":2943},"写一段代码/补一个 if",{"type":24,"tag":212,"props":2945,"children":2946},{"align":2914},[2947],{"type":29,"value":2948},"低",{"type":24,"tag":212,"props":2950,"children":2951},{"align":2914},[2952],{"type":29,"value":2948},{"type":24,"tag":212,"props":2954,"children":2955},{},[2956],{"type":29,"value":2957},"Copilot / Cursor 内联编辑",{"type":24,"tag":212,"props":2959,"children":2960},{},[2961],{"type":29,"value":2962},"局部建议足够，成本最低",{"type":24,"tag":190,"props":2964,"children":2965},{},[2966,2971,2976,2980,2991],{"type":24,"tag":212,"props":2967,"children":2968},{},[2969],{"type":29,"value":2970},"重构一个函数",{"type":24,"tag":212,"props":2972,"children":2973},{"align":2914},[2974],{"type":29,"value":2975},"中",{"type":24,"tag":212,"props":2977,"children":2978},{"align":2914},[2979],{"type":29,"value":2975},{"type":24,"tag":212,"props":2981,"children":2982},{},[2983,2985],{"type":29,"value":2984},"Cursor ",{"type":24,"tag":651,"props":2986,"children":2988},{"className":2987},[],[2989],{"type":29,"value":2990},"内联编辑",{"type":24,"tag":212,"props":2992,"children":2993},{},[2994],{"type":29,"value":2995},"需要解释、需要约束输出",{"type":24,"tag":190,"props":2997,"children":2998},{},[2999,3004,3008,3012,3017],{"type":24,"tag":212,"props":3000,"children":3001},{},[3002],{"type":29,"value":3003},"改一个组件 + 样式",{"type":24,"tag":212,"props":3005,"children":3006},{"align":2914},[3007],{"type":29,"value":2975},{"type":24,"tag":212,"props":3009,"children":3010},{"align":2914},[3011],{"type":29,"value":2975},{"type":24,"tag":212,"props":3013,"children":3014},{},[3015],{"type":29,"value":3016},"Cursor（小范围多文件）",{"type":24,"tag":212,"props":3018,"children":3019},{},[3020],{"type":29,"value":3021},"需要同时改模板与样式",{"type":24,"tag":190,"props":3023,"children":3024},{},[3025,3030,3035,3039,3044],{"type":24,"tag":212,"props":3026,"children":3027},{},[3028],{"type":29,"value":3029},"改 3~5 个文件（组件+api+测试）",{"type":24,"tag":212,"props":3031,"children":3032},{"align":2914},[3033],{"type":29,"value":3034},"高",{"type":24,"tag":212,"props":3036,"children":3037},{"align":2914},[3038],{"type":29,"value":3034},{"type":24,"tag":212,"props":3040,"children":3041},{},[3042],{"type":29,"value":3043},"Cursor Composer + 闸门",{"type":24,"tag":212,"props":3045,"children":3046},{},[3047],{"type":29,"value":3048},"需要计划、验收、回滚",{"type":24,"tag":190,"props":3050,"children":3051},{},[3052,3057,3062,3066,3071],{"type":24,"tag":212,"props":3053,"children":3054},{},[3055],{"type":29,"value":3056},"重写一段架构/引入新依赖",{"type":24,"tag":212,"props":3058,"children":3059},{"align":2914},[3060],{"type":29,"value":3061},"很高",{"type":24,"tag":212,"props":3063,"children":3064},{"align":2914},[3065],{"type":29,"value":3061},{"type":24,"tag":212,"props":3067,"children":3068},{},[3069],{"type":29,"value":3070},"先人脑设计 + VS Code 实现",{"type":24,"tag":212,"props":3072,"children":3073},{},[3074],{"type":29,"value":3075},"AI 易发散，最好先设计再执行",{"type":24,"tag":190,"props":3077,"children":3078},{},[3079,3084,3088,3092,3097],{"type":24,"tag":212,"props":3080,"children":3081},{},[3082],{"type":29,"value":3083},"排查线上问题/性能抖动",{"type":24,"tag":212,"props":3085,"children":3086},{"align":2914},[3087],{"type":29,"value":3034},{"type":24,"tag":212,"props":3089,"children":3090},{"align":2914},[3091],{"type":29,"value":3061},{"type":24,"tag":212,"props":3093,"children":3094},{},[3095],{"type":29,"value":3096},"VS Code + 工具链优先，AI 辅助归纳",{"type":24,"tag":212,"props":3098,"children":3099},{},[3100],{"type":29,"value":3101},"需要证据，不要“猜”",{"type":24,"tag":25,"props":3103,"children":3104},{},[3105],{"type":24,"tag":718,"props":3106,"children":3107},{},[3108],{"type":29,"value":3109},"一句话规则：",{"type":24,"tag":37,"props":3111,"children":3112},{},[3113,3118],{"type":24,"tag":41,"props":3114,"children":3115},{},[3116],{"type":29,"value":3117},"当你的改动可以用“10 条最小回归集”覆盖时，用 Cursor。",{"type":24,"tag":41,"props":3119,"children":3120},{},[3121],{"type":29,"value":3122},"当你的改动无法验证时，先别让 AI 动手。",{"type":24,"tag":1729,"props":3124,"children":3125},{},[],{"type":24,"tag":113,"props":3127,"children":3129},{"id":3128},"差异拆解到底差在哪里",[3130],{"type":29,"value":3131},"差异拆解：到底差在哪里？",{"type":24,"tag":306,"props":3133,"children":3135},{"id":3134},"_1-上下文来源补全-vs-项目索引",[3136],{"type":29,"value":3137},"1) 上下文来源：补全 vs 项目索引",{"type":24,"tag":37,"props":3139,"children":3140},{},[3141,3146],{"type":24,"tag":41,"props":3142,"children":3143},{},[3144],{"type":29,"value":3145},"Copilot 更擅长：你正在写的这几行、当前文件的局部上下文",{"type":24,"tag":41,"props":3147,"children":3148},{},[3149],{"type":29,"value":3150},"Cursor 更擅长：项目级索引 + 多文件关联理解",{"type":24,"tag":25,"props":3152,"children":3153},{},[3154],{"type":29,"value":3155},"因此：",{"type":24,"tag":37,"props":3157,"children":3158},{},[3159,3164],{"type":24,"tag":41,"props":3160,"children":3161},{},[3162],{"type":29,"value":3163},"写代码片段：Copilot 速度更快",{"type":24,"tag":41,"props":3165,"children":3166},{},[3167],{"type":29,"value":3168},"改一坨工程：Cursor 更有胜算（但更需要闸门）",{"type":24,"tag":306,"props":3170,"children":3172},{"id":3171},"_2-交互方式你能不能控制范围",[3173],{"type":29,"value":3174},"2) 交互方式：你能不能控制范围",{"type":24,"tag":25,"props":3176,"children":3177},{},[3178],{"type":29,"value":3179},"范围控制的三个层级：",{"type":24,"tag":124,"props":3181,"children":3182},{},[3183,3193,3203],{"type":24,"tag":41,"props":3184,"children":3185},{},[3186,3188],{"type":29,"value":3187},"内联编辑（选中一段）→ ",{"type":24,"tag":718,"props":3189,"children":3190},{},[3191],{"type":29,"value":3192},"最强范围控制",{"type":24,"tag":41,"props":3194,"children":3195},{},[3196,3198],{"type":29,"value":3197},"Composer 多文件（先列文件清单）→ ",{"type":24,"tag":718,"props":3199,"children":3200},{},[3201],{"type":29,"value":3202},"可控但要闸门",{"type":24,"tag":41,"props":3204,"children":3205},{},[3206,3208],{"type":29,"value":3207},"大对话（泛目标）→ ",{"type":24,"tag":718,"props":3209,"children":3210},{},[3211],{"type":29,"value":3212},"最容易跑偏",{"type":24,"tag":306,"props":3214,"children":3216},{"id":3215},"_3-输出形态建议-vs-可审查的变更",[3217],{"type":29,"value":3218},"3) 输出形态：建议 vs 可审查的变更",{"type":24,"tag":25,"props":3220,"children":3221},{},[3222],{"type":29,"value":3223},"最好的 AI 输出不是“给我一段代码”，而是：",{"type":24,"tag":37,"props":3225,"children":3226},{},[3227,3232,3237],{"type":24,"tag":41,"props":3228,"children":3229},{},[3230],{"type":29,"value":3231},"改动摘要（做了什么）",{"type":24,"tag":41,"props":3233,"children":3234},{},[3235],{"type":29,"value":3236},"diff 级别的可审查变更",{"type":24,"tag":41,"props":3238,"children":3239},{},[3240],{"type":29,"value":3241},"验收步骤与回滚方案",{"type":24,"tag":1729,"props":3243,"children":3244},{},[],{"type":24,"tag":113,"props":3246,"children":3248},{"id":3247},"一套可落地的团队工作流把风险关住",[3249],{"type":29,"value":3250},"一套可落地的团队工作流（把风险关住）",{"type":24,"tag":25,"props":3252,"children":3253},{},[3254],{"type":29,"value":3255},"下面这套流程，你可以直接写进团队规范：",{"type":24,"tag":306,"props":3257,"children":3259},{"id":3258},"step-1先写任务单geo-友好结构",[3260],{"type":29,"value":3261},"Step 1：先写任务单（GEO 友好结构）",{"type":24,"tag":25,"props":3263,"children":3264},{},[3265],{"type":29,"value":3266},"模板：",{"type":24,"tag":37,"props":3268,"children":3269},{},[3270,3275,3280,3285,3290,3295],{"type":24,"tag":41,"props":3271,"children":3272},{},[3273],{"type":29,"value":3274},"目标：……",{"type":24,"tag":41,"props":3276,"children":3277},{},[3278],{"type":29,"value":3279},"背景：……",{"type":24,"tag":41,"props":3281,"children":3282},{},[3283],{"type":29,"value":3284},"范围：只改这些文件/模块：……",{"type":24,"tag":41,"props":3286,"children":3287},{},[3288],{"type":29,"value":3289},"非目标：不做哪些事情：……",{"type":24,"tag":41,"props":3291,"children":3292},{},[3293],{"type":29,"value":3294},"验收：如何判断完成（可测试/可观察）：……",{"type":24,"tag":41,"props":3296,"children":3297},{},[3298],{"type":29,"value":3299},"回滚：如果失败怎么撤回：……",{"type":24,"tag":306,"props":3301,"children":3303},{"id":3302},"step-2用范围闸门限制-ai",[3304],{"type":29,"value":3305},"Step 2：用“范围闸门”限制 AI",{"type":24,"tag":37,"props":3307,"children":3308},{},[3309,3314],{"type":24,"tag":41,"props":3310,"children":3311},{},[3312],{"type":29,"value":3313},"单文件改动：优先 Cursor 内联编辑",{"type":24,"tag":41,"props":3315,"children":3316},{},[3317],{"type":29,"value":3318},"多文件改动：必须先让 AI 输出“文件清单（≤5）+ 每步验收”",{"type":24,"tag":25,"props":3320,"children":3321},{},[3322],{"type":29,"value":3323},"如果 AI 输出的文件清单超过 5 个：",{"type":24,"tag":37,"props":3325,"children":3326},{},[3327,3332],{"type":24,"tag":41,"props":3328,"children":3329},{},[3330],{"type":29,"value":3331},"不是它太强，是任务太大",{"type":24,"tag":41,"props":3333,"children":3334},{},[3335],{"type":29,"value":3336},"你需要拆任务，而不是继续推进",{"type":24,"tag":306,"props":3338,"children":3340},{"id":3339},"step-3最小回归集10-条",[3341],{"type":29,"value":3342},"Step 3：最小回归集（10 条）",{"type":24,"tag":25,"props":3344,"children":3345},{},[3346,3348,3353],{"type":29,"value":3347},"每次接受改动前必须跑（可参考：",{"type":24,"tag":81,"props":3349,"children":3350},{"href":1616},[3351],{"type":29,"value":3352},"Cursor 快捷键速查表",{"type":29,"value":3354}," 里的清单）。",{"type":24,"tag":306,"props":3356,"children":3358},{"id":3357},"step-4回滚策略不用等事故才想",[3359],{"type":29,"value":3360},"Step 4：回滚策略（不用等事故才想）",{"type":24,"tag":25,"props":3362,"children":3363},{},[3364],{"type":29,"value":3365},"回滚最常见的两条路：",{"type":24,"tag":37,"props":3367,"children":3368},{},[3369,3374],{"type":24,"tag":41,"props":3370,"children":3371},{},[3372],{"type":29,"value":3373},"git 回滚 commit",{"type":24,"tag":41,"props":3375,"children":3376},{},[3377],{"type":29,"value":3378},"对关键文件保留前版本（至少能快速恢复）",{"type":24,"tag":25,"props":3380,"children":3381},{},[3382],{"type":29,"value":3383},"你需要做到：任何一轮 AI 改动都能在 5 分钟内撤回。",{"type":24,"tag":1729,"props":3385,"children":3386},{},[],{"type":24,"tag":113,"props":3388,"children":3390},{"id":3389},"必交付物对比矩阵可复制",[3391],{"type":29,"value":3392},"必交付物：对比矩阵（可复制）",{"type":24,"tag":25,"props":3394,"children":3395},{},[3396],{"type":29,"value":3397},"下面这张表可以直接贴到你的团队 wiki：",{"type":24,"tag":182,"props":3399,"children":3400},{},[3401,3424],{"type":24,"tag":186,"props":3402,"children":3403},{},[3404],{"type":24,"tag":190,"props":3405,"children":3406},{},[3407,3412,3416,3420],{"type":24,"tag":194,"props":3408,"children":3409},{},[3410],{"type":29,"value":3411},"维度",{"type":24,"tag":194,"props":3413,"children":3414},{},[3415],{"type":29,"value":1623},{"type":24,"tag":194,"props":3417,"children":3418},{},[3419],{"type":29,"value":2864},{"type":24,"tag":194,"props":3421,"children":3422},{},[3423],{"type":29,"value":15},{"type":24,"tag":205,"props":3425,"children":3426},{},[3427,3450,3473,3496],{"type":24,"tag":190,"props":3428,"children":3429},{},[3430,3435,3440,3445],{"type":24,"tag":212,"props":3431,"children":3432},{},[3433],{"type":29,"value":3434},"强项",{"type":24,"tag":212,"props":3436,"children":3437},{},[3438],{"type":29,"value":3439},"工具链、调试、生态",{"type":24,"tag":212,"props":3441,"children":3442},{},[3443],{"type":29,"value":3444},"补全与局部建议",{"type":24,"tag":212,"props":3446,"children":3447},{},[3448],{"type":29,"value":3449},"项目上下文、多文件落地",{"type":24,"tag":190,"props":3451,"children":3452},{},[3453,3458,3463,3468],{"type":24,"tag":212,"props":3454,"children":3455},{},[3456],{"type":29,"value":3457},"适合任务",{"type":24,"tag":212,"props":3459,"children":3460},{},[3461],{"type":29,"value":3462},"排查、调试、验证",{"type":24,"tag":212,"props":3464,"children":3465},{},[3466],{"type":29,"value":3467},"写一段、补一段",{"type":24,"tag":212,"props":3469,"children":3470},{},[3471],{"type":29,"value":3472},"改一段、改一组文件",{"type":24,"tag":190,"props":3474,"children":3475},{},[3476,3481,3486,3491],{"type":24,"tag":212,"props":3477,"children":3478},{},[3479],{"type":29,"value":3480},"最大风险",{"type":24,"tag":212,"props":3482,"children":3483},{},[3484],{"type":29,"value":3485},"无",{"type":24,"tag":212,"props":3487,"children":3488},{},[3489],{"type":29,"value":3490},"过度依赖建议",{"type":24,"tag":212,"props":3492,"children":3493},{},[3494],{"type":29,"value":3495},"范围漂移、多文件回归",{"type":24,"tag":190,"props":3497,"children":3498},{},[3499,3504,3509,3514],{"type":24,"tag":212,"props":3500,"children":3501},{},[3502],{"type":29,"value":3503},"必须搭配",{"type":24,"tag":212,"props":3505,"children":3506},{},[3507],{"type":29,"value":3508},"规范与检查",{"type":24,"tag":212,"props":3510,"children":3511},{},[3512],{"type":29,"value":3513},"代码评审",{"type":24,"tag":212,"props":3515,"children":3516},{},[3517],{"type":29,"value":3518},"闸门 + 最小回归集",{"type":24,"tag":1729,"props":3520,"children":3521},{},[],{"type":24,"tag":113,"props":3523,"children":3525},{"id":3524},"失败案例多文件看似成功实际埋雷",[3526],{"type":29,"value":3527},"失败案例：多文件“看似成功”，实际埋雷",{"type":24,"tag":25,"props":3529,"children":3530},{},[3531,3536],{"type":24,"tag":718,"props":3532,"children":3533},{},[3534],{"type":29,"value":3535},"现象",{"type":29,"value":3537},"：AI 说“我已经把所有地方都改了”，你也接受了，结果上线后 404 或样式错位。",{"type":24,"tag":25,"props":3539,"children":3540},{},[3541,3546],{"type":24,"tag":718,"props":3542,"children":3543},{},[3544],{"type":29,"value":3545},"复现条件",{"type":29,"value":2359},{"type":24,"tag":37,"props":3548,"children":3549},{},[3550,3555,3560],{"type":24,"tag":41,"props":3551,"children":3552},{},[3553],{"type":29,"value":3554},"你给了一个大目标（例如“把所有按钮统一成主题色”）",{"type":24,"tag":41,"props":3556,"children":3557},{},[3558],{"type":29,"value":3559},"它改了组件、样式、甚至主题配置",{"type":24,"tag":41,"props":3561,"children":3562},{},[3563],{"type":29,"value":3564},"你没有按页面模块走一遍，直接合并",{"type":24,"tag":25,"props":3566,"children":3567},{},[3568,3573],{"type":24,"tag":718,"props":3569,"children":3570},{},[3571],{"type":29,"value":3572},"根因",{"type":29,"value":2359},{"type":24,"tag":37,"props":3575,"children":3576},{},[3577],{"type":24,"tag":41,"props":3578,"children":3579},{},[3580],{"type":29,"value":3581},"改动范围大，但验收仍按“小改动”的方式做（只看一处）",{"type":24,"tag":25,"props":3583,"children":3584},{},[3585,3590],{"type":24,"tag":718,"props":3586,"children":3587},{},[3588],{"type":29,"value":3589},"修复",{"type":29,"value":2359},{"type":24,"tag":37,"props":3592,"children":3593},{},[3594,3599,3604],{"type":24,"tag":41,"props":3595,"children":3596},{},[3597],{"type":29,"value":3598},"强制把任务拆成“模块级目标”：Hero、Feature、Pricing、Form",{"type":24,"tag":41,"props":3600,"children":3601},{},[3602],{"type":29,"value":3603},"每个模块改完就验收一次",{"type":24,"tag":41,"props":3605,"children":3606},{},[3607],{"type":29,"value":3608},"验收通过再进入下一个模块",{"type":24,"tag":1729,"props":3610,"children":3611},{},[],{"type":24,"tag":113,"props":3613,"children":3615},{"id":3614},"faq",[3616],{"type":29,"value":3617},"FAQ",{"type":24,"tag":306,"props":3619,"children":3621},{"id":3620},"q1我已经用了-cursor为什么还要用-copilot",[3622],{"type":29,"value":3623},"Q1：我已经用了 Cursor，为什么还要用 Copilot？",{"type":24,"tag":25,"props":3625,"children":3626},{},[3627],{"type":29,"value":3628},"因为“补全”这种高频低风险任务，Copilot 的交互成本更低；Cursor 更适合需要解释与约束的改动。",{"type":24,"tag":306,"props":3630,"children":3632},{"id":3631},"q2什么时候应该完全不用-ai",[3633],{"type":29,"value":3634},"Q2：什么时候应该完全不用 AI？",{"type":24,"tag":25,"props":3636,"children":3637},{},[3638],{"type":29,"value":3639},"当你无法定义验收标准时。比如“更高级”“更好看”这种目标，先做信息结构与设计规则，再让 AI 帮你落地局部。",{"type":24,"tag":1729,"props":3641,"children":3642},{},[],{"type":24,"tag":113,"props":3644,"children":3646},{"id":3645},"延伸阅读",[3647],{"type":29,"value":3645},{"type":24,"tag":37,"props":3649,"children":3650},{},[3651,3660,3669,3678],{"type":24,"tag":41,"props":3652,"children":3653},{},[3654,3656],{"type":29,"value":3655},"Cursor 入门：",{"type":24,"tag":81,"props":3657,"children":3658},{"href":1702},[3659],{"type":29,"value":1705},{"type":24,"tag":41,"props":3661,"children":3662},{},[3663,3665],{"type":29,"value":3664},"Cursor 进阶：",{"type":24,"tag":81,"props":3666,"children":3667},{"href":1713},[3668],{"type":29,"value":1716},{"type":24,"tag":41,"props":3670,"children":3671},{},[3672,3674],{"type":29,"value":3673},"规则配置：",{"type":24,"tag":81,"props":3675,"children":3676},{"href":1724},[3677],{"type":29,"value":1727},{"type":24,"tag":41,"props":3679,"children":3680},{},[3681,3683],{"type":29,"value":3682},"Copilot 实战：",{"type":24,"tag":81,"props":3684,"children":3686},{"href":3685},"/topics/ai/github-copilot-tips",[3687],{"type":29,"value":3688},"GitHub Copilot 实用技巧",{"title":7,"searchDepth":1574,"depth":1574,"links":3690},[3691,3692,3693,3698,3704,3705,3706,3710],{"id":2836,"depth":1577,"text":2839},{"id":2886,"depth":1577,"text":2889},{"id":3128,"depth":1577,"text":3131,"children":3694},[3695,3696,3697],{"id":3134,"depth":1574,"text":3137},{"id":3171,"depth":1574,"text":3174},{"id":3215,"depth":1574,"text":3218},{"id":3247,"depth":1577,"text":3250,"children":3699},[3700,3701,3702,3703],{"id":3258,"depth":1574,"text":3261},{"id":3302,"depth":1574,"text":3305},{"id":3339,"depth":1574,"text":3342},{"id":3357,"depth":1574,"text":3360},{"id":3389,"depth":1577,"text":3392},{"id":3524,"depth":1577,"text":3527},{"id":3614,"depth":1577,"text":3617,"children":3707},[3708,3709],{"id":3620,"depth":1574,"text":3623},{"id":3631,"depth":1574,"text":3634},{"id":3645,"depth":1577,"text":3645},"content:topics:ai:cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow",{"_path":3715,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3716,"description":3717,"date":3718,"topic":5,"author":11,"tags":3719,"image":3724,"featured":3725,"readingTime":2777,"body":3726,"_type":1609,"_id":4373,"_source":1611,"_file":4374,"_stem":4375,"_extension":1384},"/topics/ai/ai-debugging-troubleshooting-guide","AI 辅助调试与问题排查：让 AI 成为你的调试搭档","深入探讨如何利用 AI 工具提升调试效率，包括错误信息分析、日志解读、性能问题定位、复杂 bug 排查等实战场景，构建 AI 驱动的调试工作流。","2026-01-18",[3720,3721,3722,1624,3723],"AI 调试","问题排查","Debug","错误处理","/images/topics/ai/ai-debugging-guide.jpg",true,{"type":21,"children":3727,"toc":4344},[3728,3733,3739,3744,3749,3754,3760,3766,3771,3779,3807,3815,3838,3844,3854,3863,3871,3879,3912,3920,3950,3963,3971,3976,3984,3992,4003,4009,4017,4028,4036,4045,4051,4057,4062,4071,4077,4082,4091,4097,4103,4112,4118,4127,4133,4144,4150,4156,4165,4171,4180,4186,4192,4200,4206,4215,4223,4231,4234,4240,4245,4264,4276,4279,4285,4290,4299,4304,4307,4313,4318,4336],{"type":24,"tag":113,"props":3729,"children":3731},{"id":3730},"ai-辅助调试与问题排查",[3732],{"type":29,"value":1567},{"type":24,"tag":113,"props":3734,"children":3736},{"id":3735},"引言调试的痛与-ai-的解药",[3737],{"type":29,"value":3738},"引言：调试的痛与 AI 的解药",{"type":24,"tag":25,"props":3740,"children":3741},{},[3742],{"type":29,"value":3743},"调试是每个程序员的日常，也是最消耗时间和精力的工作之一。我们都有过这样的经历：盯着一个莫名其妙的错误信息，翻遍 Stack Overflow，尝试各种方案，几个小时后才发现是一个愚蠢的拼写错误。",{"type":24,"tag":25,"props":3745,"children":3746},{},[3747],{"type":29,"value":3748},"AI 工具的出现，正在改变调试的方式。不是替代你的思考，而是加速你的分析过程——帮你快速理解错误、缩小排查范围、验证假设。",{"type":24,"tag":25,"props":3750,"children":3751},{},[3752],{"type":29,"value":3753},"这篇文章分享我在实际项目中使用 AI 辅助调试的经验和方法论。",{"type":24,"tag":113,"props":3755,"children":3757},{"id":3756},"第一部分建立-ai-调试的思维模型",[3758],{"type":29,"value":3759},"第一部分：建立 AI 调试的思维模型",{"type":24,"tag":306,"props":3761,"children":3763},{"id":3762},"_11-ai-在调试中的角色",[3764],{"type":29,"value":3765},"1.1 AI 在调试中的角色",{"type":24,"tag":25,"props":3767,"children":3768},{},[3769],{"type":29,"value":3770},"把 AI 想象成一个经验丰富但不了解你项目的高级工程师。它：",{"type":24,"tag":25,"props":3772,"children":3773},{},[3774],{"type":24,"tag":718,"props":3775,"children":3776},{},[3777],{"type":29,"value":3778},"擅长的事情：",{"type":24,"tag":37,"props":3780,"children":3781},{},[3782,3787,3792,3797,3802],{"type":24,"tag":41,"props":3783,"children":3784},{},[3785],{"type":29,"value":3786},"解读错误信息的含义",{"type":24,"tag":41,"props":3788,"children":3789},{},[3790],{"type":29,"value":3791},"提供可能的原因列表",{"type":24,"tag":41,"props":3793,"children":3794},{},[3795],{"type":29,"value":3796},"给出排查方向建议",{"type":24,"tag":41,"props":3798,"children":3799},{},[3800],{"type":29,"value":3801},"解释复杂的技术概念",{"type":24,"tag":41,"props":3803,"children":3804},{},[3805],{"type":29,"value":3806},"生成调试代码片段",{"type":24,"tag":25,"props":3808,"children":3809},{},[3810],{"type":24,"tag":718,"props":3811,"children":3812},{},[3813],{"type":29,"value":3814},"不擅长的事情：",{"type":24,"tag":37,"props":3816,"children":3817},{},[3818,3823,3828,3833],{"type":24,"tag":41,"props":3819,"children":3820},{},[3821],{"type":29,"value":3822},"了解你的业务逻辑",{"type":24,"tag":41,"props":3824,"children":3825},{},[3826],{"type":29,"value":3827},"知道你的代码历史",{"type":24,"tag":41,"props":3829,"children":3830},{},[3831],{"type":29,"value":3832},"理解项目特定的约定",{"type":24,"tag":41,"props":3834,"children":3835},{},[3836],{"type":29,"value":3837},"做出架构级判断",{"type":24,"tag":306,"props":3839,"children":3841},{"id":3840},"_12-有效提问的结构",[3842],{"type":29,"value":3843},"1.2 有效提问的结构",{"type":24,"tag":686,"props":3845,"children":3849},{"code":3846,"language":1609,"meta":7,"className":3847},"## 高效的调试提问模板\n\n**问题描述**\n[简洁描述遇到的问题]\n\n**错误信息**\n",[3848],"language-markdown",[3850],{"type":24,"tag":651,"props":3851,"children":3852},{"__ignoreMap":7},[3853],{"type":29,"value":3846},{"type":24,"tag":25,"props":3855,"children":3856},{},[3857],{"type":24,"tag":3858,"props":3859,"children":3860},"span",{},[3861],{"type":29,"value":3862},"完整的错误信息，不要截断",{"type":24,"tag":686,"props":3864,"children":3866},{"code":3865},"\n**相关代码**\n```javascript\n[精简但完整的相关代码]\n",[3867],{"type":24,"tag":651,"props":3868,"children":3869},{"__ignoreMap":7},[3870],{"type":29,"value":3865},{"type":24,"tag":25,"props":3872,"children":3873},{},[3874],{"type":24,"tag":718,"props":3875,"children":3876},{},[3877],{"type":29,"value":3878},"环境信息",{"type":24,"tag":37,"props":3880,"children":3881},{},[3882,3892,3902],{"type":24,"tag":41,"props":3883,"children":3884},{},[3885,3887],{"type":29,"value":3886},"运行环境：",{"type":24,"tag":3858,"props":3888,"children":3889},{},[3890],{"type":29,"value":3891},"Node 版本/浏览器版本",{"type":24,"tag":41,"props":3893,"children":3894},{},[3895,3897],{"type":29,"value":3896},"框架版本：",{"type":24,"tag":3858,"props":3898,"children":3899},{},[3900],{"type":29,"value":3901},"相关框架版本",{"type":24,"tag":41,"props":3903,"children":3904},{},[3905,3907],{"type":29,"value":3906},"操作系统：",{"type":24,"tag":3858,"props":3908,"children":3909},{},[3910],{"type":29,"value":3911},"如果相关",{"type":24,"tag":25,"props":3913,"children":3914},{},[3915],{"type":24,"tag":718,"props":3916,"children":3917},{},[3918],{"type":29,"value":3919},"已尝试的方案",{"type":24,"tag":37,"props":3921,"children":3922},{},[3923,3937],{"type":24,"tag":41,"props":3924,"children":3925},{},[3926,3931,3932],{"type":24,"tag":3858,"props":3927,"children":3928},{},[3929],{"type":29,"value":3930},"方案1",{"type":29,"value":2359},{"type":24,"tag":3858,"props":3933,"children":3934},{},[3935],{"type":29,"value":3936},"结果",{"type":24,"tag":41,"props":3938,"children":3939},{},[3940,3945,3946],{"type":24,"tag":3858,"props":3941,"children":3942},{},[3943],{"type":29,"value":3944},"方案2",{"type":29,"value":2359},{"type":24,"tag":3858,"props":3947,"children":3948},{},[3949],{"type":29,"value":3936},{"type":24,"tag":25,"props":3951,"children":3952},{},[3953,3958],{"type":24,"tag":718,"props":3954,"children":3955},{},[3956],{"type":29,"value":3957},"期望的结果",{"type":24,"tag":3858,"props":3959,"children":3960},{},[3961],{"type":29,"value":3962},"描述期望的行为",{"type":24,"tag":686,"props":3964,"children":3966},{"code":3965},"\n### 1.3 分级调试策略\n\n",[3967],{"type":24,"tag":651,"props":3968,"children":3969},{"__ignoreMap":7},[3970],{"type":29,"value":3965},{"type":24,"tag":25,"props":3972,"children":3973},{},[3974],{"type":29,"value":3975},"┌───────────────────────────────────────────────────────────┐\n│                    AI 辅助调试决策树                        │\n├───────────────────────────────────────────────────────────┤\n│                                                           │\n│  Level 1：简单错误（5分钟内解决）                           │\n│  ├── 语法错误、拼写错误                                    │\n│  ├── 方法：直接复制错误信息给 AI                           │\n│  └── 工具：Copilot Chat / ChatGPT                        │\n│                                                           │\n│  Level 2：中等复杂度（30分钟内解决）                        │\n│  ├── 类型错误、逻辑错误、API 使用错误                      │\n│  ├── 方法：提供错误信息 + 相关代码 + 上下文                 │\n│  └── 工具：Cursor Chat / Claude                          │\n│                                                           │\n│  Level 3：复杂问题（需要深入分析）                          │\n│  ├── 竞态条件、内存泄漏、性能问题                          │\n│  ├── 方法：详细描述场景 + 提供多个文件 + 讨论               │\n│  └── 工具：Cursor Composer / 专门的 AI 会话                │\n│                                                           │\n│  Level 4：架构级问题                                       │\n│  ├── 设计缺陷、技术债务                                    │\n│  ├── 方法：AI 辅助分析 + 人工判断                          │\n│  └── 工具：与团队讨论 + AI 作为顾问                        │\n│                                                           │\n└───────────────────────────────────────────────────────────┘",{"type":24,"tag":686,"props":3977,"children":3979},{"code":3978},"\n## 第二部分：错误信息分析\n\n### 2.1 前端错误分析\n\n**场景 1：React 错误边界触发**\n\n```typescript\n// 错误信息：\n// Error: Hydration failed because the initial UI does not match \n// what was rendered on the server.\n\n// 提问方式：\n/**\n * 我在 Next.js 14 App Router 项目中遇到这个错误：\n * \n * Error: Hydration failed because the initial UI does not match \n * what was rendered on the server.\n * \n * 相关代码：\n */\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState(false);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n\n// AI 会分析出：\n// 1. 服务端渲染时 localStorage 不可用，默认 false\n// 2. 客户端 hydration 时可能是 true\n// 3. 导致服务端和客户端渲染结果不一致\n\n// AI 建议的解决方案：\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState\u003Cboolean | null>(null);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  // 初始状态显示加载中，避免 hydration 不匹配\n  if (isLoggedIn === null) {\n    return \u003Cdiv>加载中...\u003C/div>;\n  }\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n",[3980],{"type":24,"tag":651,"props":3981,"children":3982},{"__ignoreMap":7},[3983],{"type":29,"value":3978},{"type":24,"tag":25,"props":3985,"children":3986},{},[3987],{"type":24,"tag":718,"props":3988,"children":3989},{},[3990],{"type":29,"value":3991},"场景 2：Vue 响应式警告",{"type":24,"tag":686,"props":3993,"children":3998},{"code":3994,"language":3995,"meta":7,"className":3996},"// 警告信息：\n// [Vue warn]: Property \"xxx\" was accessed during render but is not \n// defined on instance.\n\n// 提问方式：\n/**\n * Vue 3 项目中出现这个警告：\n * [Vue warn]: Property \"userInfo\" was accessed during render \n * but is not defined on instance.\n * \n * 组件代码：\n */\n\u003Ctemplate>\n  \u003Cdiv>{{ userInfo.name }}\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo } = await useFetch('/api/user');\n\u003C/script>\n\n// AI 分析：\n// 1. useFetch 是异步的，初始渲染时 userInfo 可能是 undefined\n// 2. 直接访问 userInfo.name 会报错\n\n// AI 建议：\n\u003Ctemplate>\n  \u003Cdiv v-if=\"userInfo\">{{ userInfo.name }}\u003C/div>\n  \u003Cdiv v-else>加载中...\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo, pending } = await useFetch('/api/user');\n\u003C/script>\n","typescript",[3997],"language-typescript",[3999],{"type":24,"tag":651,"props":4000,"children":4001},{"__ignoreMap":7},[4002],{"type":29,"value":3994},{"type":24,"tag":306,"props":4004,"children":4006},{"id":4005},"_22-后端错误分析",[4007],{"type":29,"value":4008},"2.2 后端错误分析",{"type":24,"tag":25,"props":4010,"children":4011},{},[4012],{"type":24,"tag":718,"props":4013,"children":4014},{},[4015],{"type":29,"value":4016},"场景 1：Node.js 内存问题",{"type":24,"tag":686,"props":4018,"children":4023},{"code":4019,"language":4020,"meta":7,"className":4021},"// 错误信息：\n// FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n// JavaScript heap out of memory\n\n// 提问方式（包含上下文）：\n/**\n * Node.js 服务运行几小时后崩溃，错误信息：\n * FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n * JavaScript heap out of memory\n * \n * 服务功能：处理 CSV 文件上传，每次约 100MB\n * \n * 处理代码：\n */\nasync function processCSV(filePath) {\n  const content = fs.readFileSync(filePath, 'utf-8');\n  const rows = content.split('\\n');\n  const results = [];\n  \n  for (const row of rows) {\n    const processed = await processRow(row);\n    results.push(processed);\n  }\n  \n  return results;\n}\n\n// AI 分析会指出：\n// 1. 一次性读取整个文件到内存\n// 2. 所有处理结果累积在 results 数组\n// 3. 建议使用流式处理\n\n// AI 提供的优化方案：\nconst { createReadStream } = require('fs');\nconst { createInterface } = require('readline');\n\nasync function processCSVStream(filePath, onRow) {\n  const fileStream = createReadStream(filePath);\n  const rl = createInterface({\n    input: fileStream,\n    crlfDelay: Infinity\n  });\n  \n  let count = 0;\n  for await (const line of rl) {\n    await onRow(line);\n    count++;\n    \n    // 每处理 1000 行，给 GC 机会运行\n    if (count % 1000 === 0) {\n      await new Promise(r => setImmediate(r));\n    }\n  }\n}\n","javascript",[4022],"language-javascript",[4024],{"type":24,"tag":651,"props":4025,"children":4026},{"__ignoreMap":7},[4027],{"type":29,"value":4019},{"type":24,"tag":25,"props":4029,"children":4030},{},[4031],{"type":24,"tag":718,"props":4032,"children":4033},{},[4034],{"type":29,"value":4035},"场景 2：数据库连接问题",{"type":24,"tag":686,"props":4037,"children":4040},{"code":4038,"language":3995,"meta":7,"className":4039},"// 错误信息：\n// Error: Connection pool exhausted - \n// max connections (10) already in use\n\n// 提问方式：\n/**\n * PostgreSQL 连接池耗尽错误，高并发时出现：\n * Error: Connection pool exhausted\n * \n * 当前配置：\n * - max connections: 10\n * - 并发请求: 约 100/秒\n * \n * 数据库调用代码：\n */\nasync function getUserData(userId: string) {\n  const client = await pool.connect();\n  try {\n    const user = await client.query('SELECT * FROM users WHERE id = $1', [userId]);\n    const orders = await client.query('SELECT * FROM orders WHERE user_id = $1', [userId]);\n    const payments = await client.query('SELECT * FROM payments WHERE user_id = $1', [userId]);\n    return { user: user.rows[0], orders: orders.rows, payments: payments.rows };\n  } finally {\n    client.release();\n  }\n}\n\n// AI 会分析出多个可能原因并给出综合方案\n",[3997],[4041],{"type":24,"tag":651,"props":4042,"children":4043},{"__ignoreMap":7},[4044],{"type":29,"value":4038},{"type":24,"tag":113,"props":4046,"children":4048},{"id":4047},"第三部分日志分析与问题定位",[4049],{"type":29,"value":4050},"第三部分：日志分析与问题定位",{"type":24,"tag":306,"props":4052,"children":4054},{"id":4053},"_31-结构化日志分析",[4055],{"type":29,"value":4056},"3.1 结构化日志分析",{"type":24,"tag":25,"props":4058,"children":4059},{},[4060],{"type":29,"value":4061},"当面对大量日志时，让 AI 帮你快速定位问题：",{"type":24,"tag":686,"props":4063,"children":4066},{"code":4064,"language":4020,"meta":7,"className":4065},"// 提问示例：\n/**\n * 分析以下日志，找出导致请求失败的原因：\n * \n * 日志片段：\n */\nconst logs = `\n2024-01-15 10:23:45.123 INFO  [req-abc123] 收到请求 POST /api/order\n2024-01-15 10:23:45.125 DEBUG [req-abc123] 用户认证通过 userId=u001\n2024-01-15 10:23:45.130 DEBUG [req-abc123] 开始库存检查 productId=p001\n2024-01-15 10:23:45.145 DEBUG [req-abc123] 库存检查通过 available=50\n2024-01-15 10:23:45.150 DEBUG [req-abc123] 开始创建订单\n2024-01-15 10:23:45.200 DEBUG [req-abc123] 数据库连接获取成功\n2024-01-15 10:23:45.250 ERROR [req-abc123] 订单创建失败 error=\"deadlock detected\"\n2024-01-15 10:23:45.251 WARN  [req-abc123] 事务回滚\n2024-01-15 10:23:45.255 INFO  [req-abc123] 响应 500 耗时 132ms\n`;\n\n// AI 分析结果会包括：\n// 1. 问题定位：数据库死锁\n// 2. 可能原因：并发订单创建导致锁竞争\n// 3. 排查建议：检查事务隔离级别、锁顺序\n",[4022],[4067],{"type":24,"tag":651,"props":4068,"children":4069},{"__ignoreMap":7},[4070],{"type":29,"value":4064},{"type":24,"tag":306,"props":4072,"children":4074},{"id":4073},"_32-创建调试日志",[4075],{"type":29,"value":4076},"3.2 创建调试日志",{"type":24,"tag":25,"props":4078,"children":4079},{},[4080],{"type":29,"value":4081},"让 AI 帮你生成调试用的日志代码：",{"type":24,"tag":686,"props":4083,"children":4086},{"code":4084,"language":3995,"meta":7,"className":4085},"// 请求：\n// \"为这个函数添加详细的调试日志，包括入参、关键步骤、耗时和结果\"\n\n// 原代码：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const inventory = await checkInventory(order.items);\n  const payment = await processPayment(order.userId, order.total);\n  const result = await createOrder(order, payment.transactionId);\n  return result;\n}\n\n// AI 生成的带日志版本：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const requestId = generateRequestId();\n  const startTime = performance.now();\n  \n  logger.info({\n    requestId,\n    event: 'order_processing_start',\n    orderId: order.id,\n    userId: order.userId,\n    itemCount: order.items.length,\n    total: order.total\n  });\n  \n  try {\n    // 库存检查\n    const inventoryStart = performance.now();\n    const inventory = await checkInventory(order.items);\n    logger.debug({\n      requestId,\n      event: 'inventory_check_complete',\n      duration: performance.now() - inventoryStart,\n      available: inventory.allAvailable\n    });\n    \n    // 支付处理\n    const paymentStart = performance.now();\n    const payment = await processPayment(order.userId, order.total);\n    logger.debug({\n      requestId,\n      event: 'payment_complete',\n      duration: performance.now() - paymentStart,\n      transactionId: payment.transactionId\n    });\n    \n    // 创建订单\n    const createStart = performance.now();\n    const result = await createOrder(order, payment.transactionId);\n    logger.debug({\n      requestId,\n      event: 'order_created',\n      duration: performance.now() - createStart,\n      resultOrderId: result.orderId\n    });\n    \n    logger.info({\n      requestId,\n      event: 'order_processing_complete',\n      duration: performance.now() - startTime,\n      success: true\n    });\n    \n    return result;\n  } catch (error) {\n    logger.error({\n      requestId,\n      event: 'order_processing_failed',\n      duration: performance.now() - startTime,\n      error: error.message,\n      stack: error.stack\n    });\n    throw error;\n  }\n}\n",[3997],[4087],{"type":24,"tag":651,"props":4088,"children":4089},{"__ignoreMap":7},[4090],{"type":29,"value":4084},{"type":24,"tag":113,"props":4092,"children":4094},{"id":4093},"第四部分性能问题排查",[4095],{"type":29,"value":4096},"第四部分：性能问题排查",{"type":24,"tag":306,"props":4098,"children":4100},{"id":4099},"_41-前端性能分析",[4101],{"type":29,"value":4102},"4.1 前端性能分析",{"type":24,"tag":686,"props":4104,"children":4107},{"code":4105,"language":3995,"meta":7,"className":4106},"// 场景：页面加载慢，需要分析原因\n\n// 提问方式：\n/**\n * 页面首屏加载需要 5 秒，以下是 Performance API 数据，\n * 请分析性能瓶颈：\n */\nconst performanceData = {\n  // Navigation Timing\n  dns: 50,           // DNS 查询\n  tcp: 100,          // TCP 连接\n  ttfb: 800,         // 首字节时间\n  download: 200,     // 文档下载\n  domParsing: 300,   // DOM 解析\n  domContentLoaded: 1500,\n  load: 5000,\n  \n  // Resource Timing (主要资源)\n  resources: [\n    { name: 'main.js', size: '2.5MB', duration: 1200 },\n    { name: 'vendor.js', size: '1.8MB', duration: 900 },\n    { name: 'styles.css', size: '500KB', duration: 300 },\n    { name: 'hero-image.jpg', size: '3MB', duration: 1500 },\n  ],\n  \n  // Long Tasks\n  longTasks: [\n    { startTime: 1600, duration: 800, name: 'script-evaluation' },\n    { startTime: 2500, duration: 400, name: 'layout' }\n  ]\n};\n\n// AI 会分析出：\n// 1. JS bundle 过大（4.3MB），需要代码分割\n// 2. 图片未优化（3MB 的 hero 图片）\n// 3. 存在长任务阻塞主线程\n// 并给出具体优化建议\n",[3997],[4108],{"type":24,"tag":651,"props":4109,"children":4110},{"__ignoreMap":7},[4111],{"type":29,"value":4105},{"type":24,"tag":306,"props":4113,"children":4115},{"id":4114},"_42-内存泄漏排查",[4116],{"type":29,"value":4117},"4.2 内存泄漏排查",{"type":24,"tag":686,"props":4119,"children":4122},{"code":4120,"language":3995,"meta":7,"className":4121},"// 场景：应用运行一段时间后变卡\n\n// 提问方式：\n/**\n * React 应用运行一段时间后内存持续增长，以下是 Heap Snapshot 对比：\n * \n * 初始状态：50MB\n * 运行 1 小时后：150MB\n * 运行 2 小时后：280MB\n * \n * Retained objects 增长最快的：\n * - (closure) - 增长 50MB\n * - HTMLDivElement - 增长 30MB\n * - Array - 增长 20MB\n * \n * 可疑代码：\n */\nfunction DataDashboard() {\n  const [data, setData] = useState([]);\n  const chartRef = useRef(null);\n  \n  useEffect(() => {\n    // 每秒刷新数据\n    const interval = setInterval(async () => {\n      const newData = await fetchLatestData();\n      setData(prev => [...prev, ...newData]);  // 数据不断累积\n    }, 1000);\n    \n    // 初始化图表\n    const chart = new Chart(chartRef.current, {\n      // 配置...\n    });\n    \n    // 没有 cleanup！\n  }, []);\n  \n  return \u003Ccanvas ref={chartRef} />;\n}\n\n// AI 会指出：\n// 1. interval 没有清理\n// 2. Chart 实例没有销毁\n// 3. data 无限增长\n// 并提供修复代码\n",[3997],[4123],{"type":24,"tag":651,"props":4124,"children":4125},{"__ignoreMap":7},[4126],{"type":29,"value":4120},{"type":24,"tag":306,"props":4128,"children":4130},{"id":4129},"_43-数据库查询优化",[4131],{"type":29,"value":4132},"4.3 数据库查询优化",{"type":24,"tag":686,"props":4134,"children":4139},{"code":4135,"language":4136,"meta":7,"className":4137},"-- 场景：查询很慢，让 AI 分析执行计划\n\n-- 提问方式：\n-- 以下查询在数据量大时很慢（orders 表 1000 万行），\n-- 执行计划如下，请分析并优化：\n\nEXPLAIN ANALYZE\nSELECT o.*, u.name, u.email\nFROM orders o\nJOIN users u ON o.user_id = u.id\nWHERE o.status = 'pending'\n  AND o.created_at > '2024-01-01'\nORDER BY o.created_at DESC\nLIMIT 20;\n\n-- 执行计划：\n/*\nSort  (cost=156847.23..157847.23 rows=400000 width=250)\n  Sort Key: o.created_at DESC\n  ->  Hash Join  (cost=1500.00..89847.23 rows=400000 width=250)\n        Hash Cond: (o.user_id = u.id)\n        ->  Seq Scan on orders o  (cost=0.00..85000.00 rows=400000)\n              Filter: ((status = 'pending') AND (created_at > '2024-01-01'))\n        ->  Hash  (cost=1000.00..1000.00 rows=50000 width=100)\n              ->  Seq Scan on users u  (cost=0.00..1000.00 rows=50000)\nPlanning Time: 0.5 ms\nExecution Time: 3500 ms\n*/\n\n-- AI 会分析出问题并建议：\n-- 1. orders 表全表扫描 - 需要复合索引\n-- 2. 建议创建索引：\nCREATE INDEX idx_orders_status_created ON orders(status, created_at DESC);\n\n-- 3. 如果 status 选择性不高，考虑部分索引：\nCREATE INDEX idx_orders_pending ON orders(created_at DESC) \nWHERE status = 'pending';\n","sql",[4138],"language-sql",[4140],{"type":24,"tag":651,"props":4141,"children":4142},{"__ignoreMap":7},[4143],{"type":29,"value":4135},{"type":24,"tag":113,"props":4145,"children":4147},{"id":4146},"第五部分复杂-bug-排查",[4148],{"type":29,"value":4149},"第五部分：复杂 Bug 排查",{"type":24,"tag":306,"props":4151,"children":4153},{"id":4152},"_51-竞态条件",[4154],{"type":29,"value":4155},"5.1 竞态条件",{"type":24,"tag":686,"props":4157,"children":4160},{"code":4158,"language":3995,"meta":7,"className":4159},"// 场景：偶发的数据不一致问题\n\n// 提问方式：\n/**\n * 用户反馈偶尔看到错误的账户余额，但刷新后正常。\n * 怀疑是竞态条件，以下是相关代码：\n */\nasync function updateBalance(userId: string, amount: number) {\n  // 读取当前余额\n  const user = await db.users.findOne({ id: userId });\n  const newBalance = user.balance + amount;\n  \n  // 更新余额\n  await db.users.update({ id: userId }, { balance: newBalance });\n  \n  // 记录交易\n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: newBalance,\n    createdAt: new Date()\n  });\n  \n  return newBalance;\n}\n\n// 并发调用场景：\n// 用户同时发起两笔交易：+100 和 -50\n// 期望结果：原余额 1000 → 1050\n// 实际可能：原余额 1000 → 1100 或 950\n\n// AI 会分析竞态条件并提供解决方案：\nasync function updateBalanceAtomic(userId: string, amount: number) {\n  // 方案 1：使用数据库原子操作\n  const result = await db.users.findOneAndUpdate(\n    { id: userId },\n    { $inc: { balance: amount } },\n    { returnDocument: 'after' }\n  );\n  \n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: result.balance,\n    createdAt: new Date()\n  });\n  \n  return result.balance;\n}\n\n// 方案 2：使用乐观锁\nasync function updateBalanceOptimistic(userId: string, amount: number) {\n  const maxRetries = 3;\n  \n  for (let i = 0; i \u003C maxRetries; i++) {\n    const user = await db.users.findOne({ id: userId });\n    const newBalance = user.balance + amount;\n    \n    const updated = await db.users.updateOne(\n      { id: userId, version: user.version },\n      { balance: newBalance, version: user.version + 1 }\n    );\n    \n    if (updated.modifiedCount === 1) {\n      await db.transactions.create({...});\n      return newBalance;\n    }\n    \n    // 版本冲突，重试\n    await sleep(10 * (i + 1));\n  }\n  \n  throw new Error('Update failed after retries');\n}\n",[3997],[4161],{"type":24,"tag":651,"props":4162,"children":4163},{"__ignoreMap":7},[4164],{"type":29,"value":4158},{"type":24,"tag":306,"props":4166,"children":4168},{"id":4167},"_52-分布式系统问题",[4169],{"type":29,"value":4170},"5.2 分布式系统问题",{"type":24,"tag":686,"props":4172,"children":4175},{"code":4173,"language":3995,"meta":7,"className":4174},"// 场景：微服务间的数据不一致\n\n// 提问方式：\n/**\n * 订单服务和库存服务偶尔出现数据不一致：\n * - 订单显示已创建\n * - 库存未扣减\n * \n * 当前流程：\n */\n// Order Service\nasync function createOrder(orderData) {\n  // 1. 调用库存服务扣减库存\n  await inventoryService.deduct(orderData.items);\n  \n  // 2. 创建订单\n  const order = await orderRepository.create(orderData);\n  \n  // 3. 发送订单创建事件\n  await eventBus.publish('order.created', order);\n  \n  return order;\n}\n\n// 问题分析：如果步骤 2 或 3 失败，库存已经扣减但订单未创建\n\n// AI 会建议使用 Saga 模式或事务发件箱模式\n",[3997],[4176],{"type":24,"tag":651,"props":4177,"children":4178},{"__ignoreMap":7},[4179],{"type":29,"value":4173},{"type":24,"tag":113,"props":4181,"children":4183},{"id":4182},"第六部分ai-调试工作流",[4184],{"type":29,"value":4185},"第六部分：AI 调试工作流",{"type":24,"tag":306,"props":4187,"children":4189},{"id":4188},"_61-我的调试流程",[4190],{"type":29,"value":4191},"6.1 我的调试流程",{"type":24,"tag":686,"props":4193,"children":4195},{"code":4194},"┌────────────────────────────────────────────────────────────┐\n│                    AI 辅助调试工作流                         │\n├────────────────────────────────────────────────────────────┤\n│                                                            │\n│  Step 1: 问题收集                                          │\n│  ├── 复制完整错误信息                                       │\n│  ├── 截图相关日志                                          │\n│  └── 记录复现步骤                                          │\n│                                                            │\n│  Step 2: 快速分析                                          │\n│  ├── 将错误信息发给 AI                                      │\n│  ├── 获取可能原因列表                                       │\n│  └── 评估哪些最可能                                         │\n│                                                            │\n│  Step 3: 深入调查                                          │\n│  ├── 根据 AI 建议添加日志/断点                              │\n│  ├── 收集更多信息                                          │\n│  └── 再次询问 AI（带新信息）                                │\n│                                                            │\n│  Step 4: 验证修复                                          │\n│  ├── AI 生成修复代码                                        │\n│  ├── 人工审查确认                                          │\n│  └── 测试验证                                               │\n│                                                            │\n│  Step 5: 预防措施                                          │\n│  ├── AI 建议类似问题的预防方法                              │\n│  ├── 添加相关测试用例                                       │\n│  └── 更新文档/知识库                                        │\n│                                                            │\n└────────────────────────────────────────────────────────────┘\n",[4196],{"type":24,"tag":651,"props":4197,"children":4198},{"__ignoreMap":7},[4199],{"type":29,"value":4194},{"type":24,"tag":306,"props":4201,"children":4203},{"id":4202},"_62-调试对话模板",[4204],{"type":29,"value":4205},"6.2 调试对话模板",{"type":24,"tag":686,"props":4207,"children":4210},{"code":4208,"language":1609,"meta":7,"className":4209},"## 第一轮：问题描述\n\n我遇到了一个问题：[简述问题]\n\n错误信息：\n",[3848],[4211],{"type":24,"tag":651,"props":4212,"children":4213},{"__ignoreMap":7},[4214],{"type":29,"value":4208},{"type":24,"tag":25,"props":4216,"children":4217},{},[4218],{"type":24,"tag":3858,"props":4219,"children":4220},{},[4221],{"type":29,"value":4222},"粘贴完整错误",{"type":24,"tag":686,"props":4224,"children":4226},{"code":4225},"\n相关代码：\n```javascript\n[粘贴代码]\n",[4227],{"type":24,"tag":651,"props":4228,"children":4229},{"__ignoreMap":7},[4230],{"type":29,"value":4225},{"type":24,"tag":1729,"props":4232,"children":4233},{},[],{"type":24,"tag":113,"props":4235,"children":4237},{"id":4236},"第二轮补充信息",[4238],{"type":29,"value":4239},"第二轮：补充信息",{"type":24,"tag":25,"props":4241,"children":4242},{},[4243],{"type":29,"value":4244},"根据你的建议，我添加了日志，发现：",{"type":24,"tag":37,"props":4246,"children":4247},{},[4248,4256],{"type":24,"tag":41,"props":4249,"children":4250},{},[4251],{"type":24,"tag":3858,"props":4252,"children":4253},{},[4254],{"type":29,"value":4255},"发现 1",{"type":24,"tag":41,"props":4257,"children":4258},{},[4259],{"type":24,"tag":3858,"props":4260,"children":4261},{},[4262],{"type":29,"value":4263},"发现 2",{"type":24,"tag":25,"props":4265,"children":4266},{},[4267,4269,4274],{"type":29,"value":4268},"这是否说明问题出在 ",{"type":24,"tag":3858,"props":4270,"children":4271},{},[4272],{"type":29,"value":4273},"你的猜测",{"type":29,"value":4275},"？",{"type":24,"tag":1729,"props":4277,"children":4278},{},[],{"type":24,"tag":113,"props":4280,"children":4282},{"id":4281},"第三轮确认修复",[4283],{"type":29,"value":4284},"第三轮：确认修复",{"type":24,"tag":25,"props":4286,"children":4287},{},[4288],{"type":29,"value":4289},"我按照你的建议修改了代码：",{"type":24,"tag":686,"props":4291,"children":4294},{"code":4292,"language":4020,"meta":7,"className":4293},"[粘贴修改后的代码]\n",[4022],[4295],{"type":24,"tag":651,"props":4296,"children":4297},{"__ignoreMap":7},[4298],{"type":29,"value":4292},{"type":24,"tag":25,"props":4300,"children":4301},{},[4302],{"type":29,"value":4303},"请确认这个修复是否正确，以及是否有其他潜在问题。",{"type":24,"tag":1729,"props":4305,"children":4306},{},[],{"type":24,"tag":113,"props":4308,"children":4310},{"id":4309},"第四轮预防",[4311],{"type":29,"value":4312},"第四轮：预防",{"type":24,"tag":25,"props":4314,"children":4315},{},[4316],{"type":29,"value":4317},"这个问题已解决。请建议：",{"type":24,"tag":124,"props":4319,"children":4320},{},[4321,4326,4331],{"type":24,"tag":41,"props":4322,"children":4323},{},[4324],{"type":29,"value":4325},"如何防止类似问题再次发生？",{"type":24,"tag":41,"props":4327,"children":4328},{},[4329],{"type":29,"value":4330},"应该添加什么测试用例？",{"type":24,"tag":41,"props":4332,"children":4333},{},[4334],{"type":29,"value":4335},"有什么最佳实践可以参考？",{"type":24,"tag":686,"props":4337,"children":4339},{"code":4338},"\n## 结语：AI 是放大器，不是替代品\n\nAI 调试工具能够显著加速问题排查过程，但它不能替代你的思考。最有价值的能力组合是：\n\n- **你的领域知识** + **AI 的广博见识**\n- **你对项目的理解** + **AI 的分析能力**\n- **你的判断力** + **AI 的执行速度**\n\n调试的本质是假设-验证的循环。AI 帮你更快地生成假设、更高效地验证假设，但做出最终判断的还是你。\n\n学会与 AI 高效协作调试，不是依赖 AI 给你答案，而是让 AI 帮你更快地找到自己的答案。\n\n---\n\n## 参考资源\n\n- [Chrome DevTools 官方文档](https://developer.chrome.com/docs/devtools)\n- [Node.js 调试指南](https://nodejs.org/en/docs/guides/debugging-getting-started)\n- [React DevTools 使用指南](https://react.dev/learn/react-developer-tools)\n",[4340],{"type":24,"tag":651,"props":4341,"children":4342},{"__ignoreMap":7},[4343],{"type":29,"value":4338},{"title":7,"searchDepth":1574,"depth":1574,"links":4345},[4346,4347,4348,4353,4357,4362,4366,4370,4371,4372],{"id":3730,"depth":1577,"text":1567},{"id":3735,"depth":1577,"text":3738},{"id":3756,"depth":1577,"text":3759,"children":4349},[4350,4351,4352],{"id":3762,"depth":1574,"text":3765},{"id":3840,"depth":1574,"text":3843},{"id":4005,"depth":1574,"text":4008},{"id":4047,"depth":1577,"text":4050,"children":4354},[4355,4356],{"id":4053,"depth":1574,"text":4056},{"id":4073,"depth":1574,"text":4076},{"id":4093,"depth":1577,"text":4096,"children":4358},[4359,4360,4361],{"id":4099,"depth":1574,"text":4102},{"id":4114,"depth":1574,"text":4117},{"id":4129,"depth":1574,"text":4132},{"id":4146,"depth":1577,"text":4149,"children":4363},[4364,4365],{"id":4152,"depth":1574,"text":4155},{"id":4167,"depth":1574,"text":4170},{"id":4182,"depth":1577,"text":4185,"children":4367},[4368,4369],{"id":4188,"depth":1574,"text":4191},{"id":4202,"depth":1574,"text":4205},{"id":4236,"depth":1577,"text":4239},{"id":4281,"depth":1577,"text":4284},{"id":4309,"depth":1577,"text":4312},"content:topics:ai:ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":4377,"image":18,"featured":6,"readingTime":19,"body":4378,"_type":1609,"_id":1610,"_source":1611,"_file":1612,"_stem":1613,"_extension":1384},[13,14,15,16,17],{"type":21,"children":4379,"toc":5630},[4380,4384,4388,4407,4411,4418,4442,4446,4450,4473,4477,4484,4488,4492,4496,4560,4564,4583,4587,4591,4595,4599,4603,4618,4622,4637,4641,4645,4649,4664,4668,4683,4687,4706,4710,4714,4718,4822,4826,4830,4834,4869,4873,4893,4897,4901,4905,4913,4917,4921,4925,4933,4937,4944,4948,4952,4982,4986,5005,5009,5028,5032,5036,5040,5044,5048,5052,5071,5075,5079,5083,5087,5106,5110,5114,5125,5129,5140,5144,5151,5155,5159,5163,5167,5171,5175,5179,5183,5187,5191,5195,5199,5203,5347,5351,5355,5359,5363,5416,5420,5435,5439,5443,5462,5466,5470,5478,5482,5486,5490,5494,5498,5513,5517,5521,5525,5556,5560,5564,5568,5572,5591,5595,5626],{"type":24,"tag":25,"props":4381,"children":4382},{},[4383],{"type":29,"value":30},{"type":24,"tag":25,"props":4385,"children":4386},{},[4387],{"type":29,"value":35},{"type":24,"tag":37,"props":4389,"children":4390},{},[4391,4395,4399,4403],{"type":24,"tag":41,"props":4392,"children":4393},{},[4394],{"type":29,"value":45},{"type":24,"tag":41,"props":4396,"children":4397},{},[4398],{"type":29,"value":50},{"type":24,"tag":41,"props":4400,"children":4401},{},[4402],{"type":29,"value":55},{"type":24,"tag":41,"props":4404,"children":4405},{},[4406],{"type":29,"value":60},{"type":24,"tag":25,"props":4408,"children":4409},{},[4410],{"type":29,"value":65},{"type":24,"tag":67,"props":4412,"children":4413},{},[4414],{"type":24,"tag":25,"props":4415,"children":4416},{},[4417],{"type":29,"value":74},{"type":24,"tag":25,"props":4419,"children":4420},{},[4421,4422,4426,4427,4431,4432,4436,4437,4441],{"type":29,"value":79},{"type":24,"tag":81,"props":4423,"children":4424},{"href":83},[4425],{"type":29,"value":86},{"type":29,"value":88},{"type":24,"tag":81,"props":4428,"children":4429},{"href":91},[4430],{"type":29,"value":94},{"type":29,"value":88},{"type":24,"tag":81,"props":4433,"children":4434},{"href":98},[4435],{"type":29,"value":101},{"type":29,"value":103},{"type":24,"tag":81,"props":4438,"children":4439},{"href":106},[4440],{"type":29,"value":109},{"type":29,"value":111},{"type":24,"tag":113,"props":4443,"children":4444},{"id":115},[4445],{"type":29,"value":115},{"type":24,"tag":25,"props":4447,"children":4448},{},[4449],{"type":29,"value":122},{"type":24,"tag":124,"props":4451,"children":4452},{},[4453,4457,4461,4465,4469],{"type":24,"tag":41,"props":4454,"children":4455},{},[4456],{"type":29,"value":131},{"type":24,"tag":41,"props":4458,"children":4459},{},[4460],{"type":29,"value":136},{"type":24,"tag":41,"props":4462,"children":4463},{},[4464],{"type":29,"value":141},{"type":24,"tag":41,"props":4466,"children":4467},{},[4468],{"type":29,"value":146},{"type":24,"tag":41,"props":4470,"children":4471},{},[4472],{"type":29,"value":151},{"type":24,"tag":25,"props":4474,"children":4475},{},[4476],{"type":29,"value":156},{"type":24,"tag":67,"props":4478,"children":4479},{},[4480],{"type":24,"tag":25,"props":4481,"children":4482},{},[4483],{"type":29,"value":164},{"type":24,"tag":113,"props":4485,"children":4486},{"id":167},[4487],{"type":29,"value":170},{"type":24,"tag":25,"props":4489,"children":4490},{},[4491],{"type":29,"value":175},{"type":24,"tag":25,"props":4493,"children":4494},{},[4495],{"type":29,"value":180},{"type":24,"tag":182,"props":4497,"children":4498},{},[4499,4513],{"type":24,"tag":186,"props":4500,"children":4501},{},[4502],{"type":24,"tag":190,"props":4503,"children":4504},{},[4505,4509],{"type":24,"tag":194,"props":4506,"children":4507},{},[4508],{"type":29,"value":198},{"type":24,"tag":194,"props":4510,"children":4511},{},[4512],{"type":29,"value":203},{"type":24,"tag":205,"props":4514,"children":4515},{},[4516,4527,4538,4549],{"type":24,"tag":190,"props":4517,"children":4518},{},[4519,4523],{"type":24,"tag":212,"props":4520,"children":4521},{},[4522],{"type":29,"value":216},{"type":24,"tag":212,"props":4524,"children":4525},{},[4526],{"type":29,"value":221},{"type":24,"tag":190,"props":4528,"children":4529},{},[4530,4534],{"type":24,"tag":212,"props":4531,"children":4532},{},[4533],{"type":29,"value":229},{"type":24,"tag":212,"props":4535,"children":4536},{},[4537],{"type":29,"value":234},{"type":24,"tag":190,"props":4539,"children":4540},{},[4541,4545],{"type":24,"tag":212,"props":4542,"children":4543},{},[4544],{"type":29,"value":242},{"type":24,"tag":212,"props":4546,"children":4547},{},[4548],{"type":29,"value":247},{"type":24,"tag":190,"props":4550,"children":4551},{},[4552,4556],{"type":24,"tag":212,"props":4553,"children":4554},{},[4555],{"type":29,"value":255},{"type":24,"tag":212,"props":4557,"children":4558},{},[4559],{"type":29,"value":260},{"type":24,"tag":25,"props":4561,"children":4562},{},[4563],{"type":29,"value":265},{"type":24,"tag":37,"props":4565,"children":4566},{},[4567,4571,4575,4579],{"type":24,"tag":41,"props":4568,"children":4569},{},[4570],{"type":29,"value":273},{"type":24,"tag":41,"props":4572,"children":4573},{},[4574],{"type":29,"value":278},{"type":24,"tag":41,"props":4576,"children":4577},{},[4578],{"type":29,"value":283},{"type":24,"tag":41,"props":4580,"children":4581},{},[4582],{"type":29,"value":288},{"type":24,"tag":25,"props":4584,"children":4585},{},[4586],{"type":29,"value":293},{"type":24,"tag":113,"props":4588,"children":4589},{"id":296},[4590],{"type":29,"value":299},{"type":24,"tag":25,"props":4592,"children":4593},{},[4594],{"type":29,"value":304},{"type":24,"tag":306,"props":4596,"children":4597},{"id":308},[4598],{"type":29,"value":311},{"type":24,"tag":25,"props":4600,"children":4601},{},[4602],{"type":29,"value":316},{"type":24,"tag":37,"props":4604,"children":4605},{},[4606,4610,4614],{"type":24,"tag":41,"props":4607,"children":4608},{},[4609],{"type":29,"value":324},{"type":24,"tag":41,"props":4611,"children":4612},{},[4613],{"type":29,"value":329},{"type":24,"tag":41,"props":4615,"children":4616},{},[4617],{"type":29,"value":334},{"type":24,"tag":25,"props":4619,"children":4620},{},[4621],{"type":29,"value":339},{"type":24,"tag":37,"props":4623,"children":4624},{},[4625,4629,4633],{"type":24,"tag":41,"props":4626,"children":4627},{},[4628],{"type":29,"value":347},{"type":24,"tag":41,"props":4630,"children":4631},{},[4632],{"type":29,"value":352},{"type":24,"tag":41,"props":4634,"children":4635},{},[4636],{"type":29,"value":357},{"type":24,"tag":25,"props":4638,"children":4639},{},[4640],{"type":29,"value":362},{"type":24,"tag":306,"props":4642,"children":4643},{"id":365},[4644],{"type":29,"value":368},{"type":24,"tag":25,"props":4646,"children":4647},{},[4648],{"type":29,"value":316},{"type":24,"tag":37,"props":4650,"children":4651},{},[4652,4656,4660],{"type":24,"tag":41,"props":4653,"children":4654},{},[4655],{"type":29,"value":380},{"type":24,"tag":41,"props":4657,"children":4658},{},[4659],{"type":29,"value":385},{"type":24,"tag":41,"props":4661,"children":4662},{},[4663],{"type":29,"value":390},{"type":24,"tag":25,"props":4665,"children":4666},{},[4667],{"type":29,"value":339},{"type":24,"tag":37,"props":4669,"children":4670},{},[4671,4675,4679],{"type":24,"tag":41,"props":4672,"children":4673},{},[4674],{"type":29,"value":402},{"type":24,"tag":41,"props":4676,"children":4677},{},[4678],{"type":29,"value":407},{"type":24,"tag":41,"props":4680,"children":4681},{},[4682],{"type":29,"value":412},{"type":24,"tag":25,"props":4684,"children":4685},{},[4686],{"type":29,"value":417},{"type":24,"tag":37,"props":4688,"children":4689},{},[4690,4694,4698,4702],{"type":24,"tag":41,"props":4691,"children":4692},{},[4693],{"type":29,"value":425},{"type":24,"tag":41,"props":4695,"children":4696},{},[4697],{"type":29,"value":430},{"type":24,"tag":41,"props":4699,"children":4700},{},[4701],{"type":29,"value":435},{"type":24,"tag":41,"props":4703,"children":4704},{},[4705],{"type":29,"value":440},{"type":24,"tag":113,"props":4707,"children":4708},{"id":443},[4709],{"type":29,"value":446},{"type":24,"tag":25,"props":4711,"children":4712},{},[4713],{"type":29,"value":451},{"type":24,"tag":25,"props":4715,"children":4716},{},[4717],{"type":29,"value":456},{"type":24,"tag":182,"props":4719,"children":4720},{},[4721,4743],{"type":24,"tag":186,"props":4722,"children":4723},{},[4724],{"type":24,"tag":190,"props":4725,"children":4726},{},[4727,4731,4735,4739],{"type":24,"tag":194,"props":4728,"children":4729},{},[4730],{"type":29,"value":470},{"type":24,"tag":194,"props":4732,"children":4733},{},[4734],{"type":29,"value":475},{"type":24,"tag":194,"props":4736,"children":4737},{},[4738],{"type":29,"value":480},{"type":24,"tag":194,"props":4740,"children":4741},{},[4742],{"type":29,"value":485},{"type":24,"tag":205,"props":4744,"children":4745},{},[4746,4765,4784,4803],{"type":24,"tag":190,"props":4747,"children":4748},{},[4749,4753,4757,4761],{"type":24,"tag":212,"props":4750,"children":4751},{},[4752],{"type":29,"value":496},{"type":24,"tag":212,"props":4754,"children":4755},{},[4756],{"type":29,"value":501},{"type":24,"tag":212,"props":4758,"children":4759},{},[4760],{"type":29,"value":506},{"type":24,"tag":212,"props":4762,"children":4763},{},[4764],{"type":29,"value":511},{"type":24,"tag":190,"props":4766,"children":4767},{},[4768,4772,4776,4780],{"type":24,"tag":212,"props":4769,"children":4770},{},[4771],{"type":29,"value":519},{"type":24,"tag":212,"props":4773,"children":4774},{},[4775],{"type":29,"value":524},{"type":24,"tag":212,"props":4777,"children":4778},{},[4779],{"type":29,"value":529},{"type":24,"tag":212,"props":4781,"children":4782},{},[4783],{"type":29,"value":534},{"type":24,"tag":190,"props":4785,"children":4786},{},[4787,4791,4795,4799],{"type":24,"tag":212,"props":4788,"children":4789},{},[4790],{"type":29,"value":542},{"type":24,"tag":212,"props":4792,"children":4793},{},[4794],{"type":29,"value":547},{"type":24,"tag":212,"props":4796,"children":4797},{},[4798],{"type":29,"value":552},{"type":24,"tag":212,"props":4800,"children":4801},{},[4802],{"type":29,"value":557},{"type":24,"tag":190,"props":4804,"children":4805},{},[4806,4810,4814,4818],{"type":24,"tag":212,"props":4807,"children":4808},{},[4809],{"type":29,"value":565},{"type":24,"tag":212,"props":4811,"children":4812},{},[4813],{"type":29,"value":570},{"type":24,"tag":212,"props":4815,"children":4816},{},[4817],{"type":29,"value":575},{"type":24,"tag":212,"props":4819,"children":4820},{},[4821],{"type":29,"value":580},{"type":24,"tag":25,"props":4823,"children":4824},{},[4825],{"type":29,"value":585},{"type":24,"tag":306,"props":4827,"children":4828},{"id":588},[4829],{"type":29,"value":588},{"type":24,"tag":25,"props":4831,"children":4832},{},[4833],{"type":29,"value":595},{"type":24,"tag":124,"props":4835,"children":4836},{},[4837,4841,4845,4849,4853,4857,4861,4865],{"type":24,"tag":41,"props":4838,"children":4839},{},[4840],{"type":29,"value":603},{"type":24,"tag":41,"props":4842,"children":4843},{},[4844],{"type":29,"value":608},{"type":24,"tag":41,"props":4846,"children":4847},{},[4848],{"type":29,"value":613},{"type":24,"tag":41,"props":4850,"children":4851},{},[4852],{"type":29,"value":618},{"type":24,"tag":41,"props":4854,"children":4855},{},[4856],{"type":29,"value":623},{"type":24,"tag":41,"props":4858,"children":4859},{},[4860],{"type":29,"value":628},{"type":24,"tag":41,"props":4862,"children":4863},{},[4864],{"type":29,"value":633},{"type":24,"tag":41,"props":4866,"children":4867},{},[4868],{"type":29,"value":638},{"type":24,"tag":25,"props":4870,"children":4871},{},[4872],{"type":29,"value":643},{"type":24,"tag":37,"props":4874,"children":4875},{},[4876,4885,4889],{"type":24,"tag":41,"props":4877,"children":4878},{},[4879,4884],{"type":24,"tag":651,"props":4880,"children":4882},{"className":4881},[],[4883],{"type":29,"value":656},{"type":29,"value":658},{"type":24,"tag":41,"props":4886,"children":4887},{},[4888],{"type":29,"value":663},{"type":24,"tag":41,"props":4890,"children":4891},{},[4892],{"type":29,"value":668},{"type":24,"tag":25,"props":4894,"children":4895},{},[4896],{"type":29,"value":673},{"type":24,"tag":113,"props":4898,"children":4899},{"id":676},[4900],{"type":29,"value":679},{"type":24,"tag":25,"props":4902,"children":4903},{},[4904],{"type":29,"value":684},{"type":24,"tag":686,"props":4906,"children":4908},{"className":4907,"code":690,"language":29,"meta":7},[689],[4909],{"type":24,"tag":651,"props":4910,"children":4911},{"__ignoreMap":7},[4912],{"type":29,"value":690},{"type":24,"tag":25,"props":4914,"children":4915},{},[4916],{"type":29,"value":700},{"type":24,"tag":113,"props":4918,"children":4919},{"id":703},[4920],{"type":29,"value":706},{"type":24,"tag":25,"props":4922,"children":4923},{},[4924],{"type":29,"value":711},{"type":24,"tag":25,"props":4926,"children":4927},{},[4928,4929],{"type":29,"value":716},{"type":24,"tag":718,"props":4930,"children":4931},{},[4932],{"type":29,"value":722},{"type":24,"tag":25,"props":4934,"children":4935},{},[4936],{"type":29,"value":727},{"type":24,"tag":67,"props":4938,"children":4939},{},[4940],{"type":24,"tag":25,"props":4941,"children":4942},{},[4943],{"type":29,"value":735},{"type":24,"tag":25,"props":4945,"children":4946},{},[4947],{"type":29,"value":740},{"type":24,"tag":306,"props":4949,"children":4950},{"id":743},[4951],{"type":29,"value":746},{"type":24,"tag":37,"props":4953,"children":4954},{},[4955,4959,4974,4978],{"type":24,"tag":41,"props":4956,"children":4957},{},[4958],{"type":29,"value":754},{"type":24,"tag":41,"props":4960,"children":4961},{},[4962,4963,4968,4969],{"type":29,"value":759},{"type":24,"tag":651,"props":4964,"children":4966},{"className":4965},[],[4967],{"type":29,"value":765},{"type":29,"value":88},{"type":24,"tag":651,"props":4970,"children":4972},{"className":4971},[],[4973],{"type":29,"value":772},{"type":24,"tag":41,"props":4975,"children":4976},{},[4977],{"type":29,"value":777},{"type":24,"tag":41,"props":4979,"children":4980},{},[4981],{"type":29,"value":782},{"type":24,"tag":306,"props":4983,"children":4984},{"id":785},[4985],{"type":29,"value":788},{"type":24,"tag":37,"props":4987,"children":4988},{},[4989,4993,4997,5001],{"type":24,"tag":41,"props":4990,"children":4991},{},[4992],{"type":29,"value":796},{"type":24,"tag":41,"props":4994,"children":4995},{},[4996],{"type":29,"value":801},{"type":24,"tag":41,"props":4998,"children":4999},{},[5000],{"type":29,"value":806},{"type":24,"tag":41,"props":5002,"children":5003},{},[5004],{"type":29,"value":811},{"type":24,"tag":306,"props":5006,"children":5007},{"id":814},[5008],{"type":29,"value":817},{"type":24,"tag":37,"props":5010,"children":5011},{},[5012,5016,5020,5024],{"type":24,"tag":41,"props":5013,"children":5014},{},[5015],{"type":29,"value":825},{"type":24,"tag":41,"props":5017,"children":5018},{},[5019],{"type":29,"value":830},{"type":24,"tag":41,"props":5021,"children":5022},{},[5023],{"type":29,"value":835},{"type":24,"tag":41,"props":5025,"children":5026},{},[5027],{"type":29,"value":840},{"type":24,"tag":25,"props":5029,"children":5030},{},[5031],{"type":29,"value":845},{"type":24,"tag":113,"props":5033,"children":5034},{"id":848},[5035],{"type":29,"value":851},{"type":24,"tag":25,"props":5037,"children":5038},{},[5039],{"type":29,"value":856},{"type":24,"tag":306,"props":5041,"children":5042},{"id":859},[5043],{"type":29,"value":859},{"type":24,"tag":25,"props":5045,"children":5046},{},[5047],{"type":29,"value":866},{"type":24,"tag":25,"props":5049,"children":5050},{},[5051],{"type":29,"value":871},{"type":24,"tag":37,"props":5053,"children":5054},{},[5055,5059,5063,5067],{"type":24,"tag":41,"props":5056,"children":5057},{},[5058],{"type":29,"value":879},{"type":24,"tag":41,"props":5060,"children":5061},{},[5062],{"type":29,"value":884},{"type":24,"tag":41,"props":5064,"children":5065},{},[5066],{"type":29,"value":889},{"type":24,"tag":41,"props":5068,"children":5069},{},[5070],{"type":29,"value":894},{"type":24,"tag":25,"props":5072,"children":5073},{},[5074],{"type":29,"value":899},{"type":24,"tag":306,"props":5076,"children":5077},{"id":902},[5078],{"type":29,"value":902},{"type":24,"tag":25,"props":5080,"children":5081},{},[5082],{"type":29,"value":909},{"type":24,"tag":25,"props":5084,"children":5085},{},[5086],{"type":29,"value":914},{"type":24,"tag":37,"props":5088,"children":5089},{},[5090,5094,5098,5102],{"type":24,"tag":41,"props":5091,"children":5092},{},[5093],{"type":29,"value":922},{"type":24,"tag":41,"props":5095,"children":5096},{},[5097],{"type":29,"value":927},{"type":24,"tag":41,"props":5099,"children":5100},{},[5101],{"type":29,"value":932},{"type":24,"tag":41,"props":5103,"children":5104},{},[5105],{"type":29,"value":937},{"type":24,"tag":306,"props":5107,"children":5108},{"id":940},[5109],{"type":29,"value":940},{"type":24,"tag":25,"props":5111,"children":5112},{},[5113],{"type":29,"value":947},{"type":24,"tag":124,"props":5115,"children":5116},{},[5117,5121],{"type":24,"tag":41,"props":5118,"children":5119},{},[5120],{"type":29,"value":955},{"type":24,"tag":41,"props":5122,"children":5123},{},[5124],{"type":29,"value":960},{"type":24,"tag":25,"props":5126,"children":5127},{},[5128],{"type":29,"value":965},{"type":24,"tag":37,"props":5130,"children":5131},{},[5132,5136],{"type":24,"tag":41,"props":5133,"children":5134},{},[5135],{"type":29,"value":973},{"type":24,"tag":41,"props":5137,"children":5138},{},[5139],{"type":29,"value":978},{"type":24,"tag":25,"props":5141,"children":5142},{},[5143],{"type":29,"value":983},{"type":24,"tag":67,"props":5145,"children":5146},{},[5147],{"type":24,"tag":25,"props":5148,"children":5149},{},[5150],{"type":29,"value":991},{"type":24,"tag":113,"props":5152,"children":5153},{"id":994},[5154],{"type":29,"value":994},{"type":24,"tag":25,"props":5156,"children":5157},{},[5158],{"type":29,"value":1001},{"type":24,"tag":25,"props":5160,"children":5161},{},[5162],{"type":29,"value":1006},{"type":24,"tag":306,"props":5164,"children":5165},{"id":1009},[5166],{"type":29,"value":1012},{"type":24,"tag":25,"props":5168,"children":5169},{},[5170],{"type":29,"value":1017},{"type":24,"tag":306,"props":5172,"children":5173},{"id":1020},[5174],{"type":29,"value":1023},{"type":24,"tag":25,"props":5176,"children":5177},{},[5178],{"type":29,"value":1028},{"type":24,"tag":306,"props":5180,"children":5181},{"id":1031},[5182],{"type":29,"value":1034},{"type":24,"tag":25,"props":5184,"children":5185},{},[5186],{"type":29,"value":1039},{"type":24,"tag":306,"props":5188,"children":5189},{"id":1042},[5190],{"type":29,"value":1045},{"type":24,"tag":25,"props":5192,"children":5193},{},[5194],{"type":29,"value":1050},{"type":24,"tag":113,"props":5196,"children":5197},{"id":1053},[5198],{"type":29,"value":1053},{"type":24,"tag":25,"props":5200,"children":5201},{},[5202],{"type":29,"value":1060},{"type":24,"tag":182,"props":5204,"children":5205},{},[5206,5236],{"type":24,"tag":186,"props":5207,"children":5208},{},[5209],{"type":24,"tag":190,"props":5210,"children":5211},{},[5212,5216,5220,5224,5228,5232],{"type":24,"tag":194,"props":5213,"children":5214},{},[5215],{"type":29,"value":1074},{"type":24,"tag":194,"props":5217,"children":5218},{},[5219],{"type":29,"value":1079},{"type":24,"tag":194,"props":5221,"children":5222},{},[5223],{"type":29,"value":1084},{"type":24,"tag":194,"props":5225,"children":5226},{},[5227],{"type":29,"value":1089},{"type":24,"tag":194,"props":5229,"children":5230},{},[5231],{"type":29,"value":1094},{"type":24,"tag":194,"props":5233,"children":5234},{},[5235],{"type":29,"value":1099},{"type":24,"tag":205,"props":5237,"children":5238},{},[5239,5266,5293,5320],{"type":24,"tag":190,"props":5240,"children":5241},{},[5242,5246,5250,5254,5258,5262],{"type":24,"tag":212,"props":5243,"children":5244},{},[5245],{"type":29,"value":1110},{"type":24,"tag":212,"props":5247,"children":5248},{},[5249],{"type":29,"value":1115},{"type":24,"tag":212,"props":5251,"children":5252},{},[5253],{"type":29,"value":496},{"type":24,"tag":212,"props":5255,"children":5256},{},[5257],{"type":29,"value":1124},{"type":24,"tag":212,"props":5259,"children":5260},{},[5261],{"type":29,"value":1129},{"type":24,"tag":212,"props":5263,"children":5264},{},[5265],{"type":29,"value":1134},{"type":24,"tag":190,"props":5267,"children":5268},{},[5269,5273,5277,5281,5285,5289],{"type":24,"tag":212,"props":5270,"children":5271},{},[5272],{"type":29,"value":1142},{"type":24,"tag":212,"props":5274,"children":5275},{},[5276],{"type":29,"value":1147},{"type":24,"tag":212,"props":5278,"children":5279},{},[5280],{"type":29,"value":519},{"type":24,"tag":212,"props":5282,"children":5283},{},[5284],{"type":29,"value":1156},{"type":24,"tag":212,"props":5286,"children":5287},{},[5288],{"type":29,"value":1161},{"type":24,"tag":212,"props":5290,"children":5291},{},[5292],{"type":29,"value":1166},{"type":24,"tag":190,"props":5294,"children":5295},{},[5296,5300,5304,5308,5312,5316],{"type":24,"tag":212,"props":5297,"children":5298},{},[5299],{"type":29,"value":1174},{"type":24,"tag":212,"props":5301,"children":5302},{},[5303],{"type":29,"value":1147},{"type":24,"tag":212,"props":5305,"children":5306},{},[5307],{"type":29,"value":542},{"type":24,"tag":212,"props":5309,"children":5310},{},[5311],{"type":29,"value":1187},{"type":24,"tag":212,"props":5313,"children":5314},{},[5315],{"type":29,"value":1192},{"type":24,"tag":212,"props":5317,"children":5318},{},[5319],{"type":29,"value":1197},{"type":24,"tag":190,"props":5321,"children":5322},{},[5323,5327,5331,5335,5339,5343],{"type":24,"tag":212,"props":5324,"children":5325},{},[5326],{"type":29,"value":1205},{"type":24,"tag":212,"props":5328,"children":5329},{},[5330],{"type":29,"value":1210},{"type":24,"tag":212,"props":5332,"children":5333},{},[5334],{"type":29,"value":565},{"type":24,"tag":212,"props":5336,"children":5337},{},[5338],{"type":29,"value":1219},{"type":24,"tag":212,"props":5340,"children":5341},{},[5342],{"type":29,"value":1224},{"type":24,"tag":212,"props":5344,"children":5345},{},[5346],{"type":29,"value":1229},{"type":24,"tag":25,"props":5348,"children":5349},{},[5350],{"type":29,"value":1234},{"type":24,"tag":113,"props":5352,"children":5353},{"id":1237},[5354],{"type":29,"value":1240},{"type":24,"tag":25,"props":5356,"children":5357},{},[5358],{"type":29,"value":1245},{"type":24,"tag":25,"props":5360,"children":5361},{},[5362],{"type":29,"value":1250},{"type":24,"tag":182,"props":5364,"children":5365},{},[5366,5380],{"type":24,"tag":186,"props":5367,"children":5368},{},[5369],{"type":24,"tag":190,"props":5370,"children":5371},{},[5372,5376],{"type":24,"tag":194,"props":5373,"children":5374},{},[5375],{"type":29,"value":1264},{"type":24,"tag":194,"props":5377,"children":5378},{},[5379],{"type":29,"value":1269},{"type":24,"tag":205,"props":5381,"children":5382},{},[5383,5394,5405],{"type":24,"tag":190,"props":5384,"children":5385},{},[5386,5390],{"type":24,"tag":212,"props":5387,"children":5388},{},[5389],{"type":29,"value":1280},{"type":24,"tag":212,"props":5391,"children":5392},{},[5393],{"type":29,"value":1285},{"type":24,"tag":190,"props":5395,"children":5396},{},[5397,5401],{"type":24,"tag":212,"props":5398,"children":5399},{},[5400],{"type":29,"value":1293},{"type":24,"tag":212,"props":5402,"children":5403},{},[5404],{"type":29,"value":1298},{"type":24,"tag":190,"props":5406,"children":5407},{},[5408,5412],{"type":24,"tag":212,"props":5409,"children":5410},{},[5411],{"type":29,"value":1306},{"type":24,"tag":212,"props":5413,"children":5414},{},[5415],{"type":29,"value":1311},{"type":24,"tag":25,"props":5417,"children":5418},{},[5419],{"type":29,"value":1316},{"type":24,"tag":37,"props":5421,"children":5422},{},[5423,5427,5431],{"type":24,"tag":41,"props":5424,"children":5425},{},[5426],{"type":29,"value":1324},{"type":24,"tag":41,"props":5428,"children":5429},{},[5430],{"type":29,"value":1329},{"type":24,"tag":41,"props":5432,"children":5433},{},[5434],{"type":29,"value":1334},{"type":24,"tag":25,"props":5436,"children":5437},{},[5438],{"type":29,"value":1339},{"type":24,"tag":25,"props":5440,"children":5441},{},[5442],{"type":29,"value":1344},{"type":24,"tag":37,"props":5444,"children":5445},{},[5446,5450,5454,5458],{"type":24,"tag":41,"props":5447,"children":5448},{},[5449],{"type":29,"value":1352},{"type":24,"tag":41,"props":5451,"children":5452},{},[5453],{"type":29,"value":1357},{"type":24,"tag":41,"props":5455,"children":5456},{},[5457],{"type":29,"value":1362},{"type":24,"tag":41,"props":5459,"children":5460},{},[5461],{"type":29,"value":1367},{"type":24,"tag":113,"props":5463,"children":5464},{"id":1370},[5465],{"type":29,"value":1373},{"type":24,"tag":25,"props":5467,"children":5468},{},[5469],{"type":29,"value":1378},{"type":24,"tag":686,"props":5471,"children":5473},{"className":5472,"code":1383,"language":1384,"meta":7},[1382],[5474],{"type":24,"tag":651,"props":5475,"children":5476},{"__ignoreMap":7},[5477],{"type":29,"value":1383},{"type":24,"tag":25,"props":5479,"children":5480},{},[5481],{"type":29,"value":1394},{"type":24,"tag":113,"props":5483,"children":5484},{"id":1397},[5485],{"type":29,"value":1400},{"type":24,"tag":25,"props":5487,"children":5488},{},[5489],{"type":29,"value":1405},{"type":24,"tag":25,"props":5491,"children":5492},{},[5493],{"type":29,"value":1410},{"type":24,"tag":25,"props":5495,"children":5496},{},[5497],{"type":29,"value":1415},{"type":24,"tag":37,"props":5499,"children":5500},{},[5501,5505,5509],{"type":24,"tag":41,"props":5502,"children":5503},{},[5504],{"type":29,"value":1423},{"type":24,"tag":41,"props":5506,"children":5507},{},[5508],{"type":29,"value":1428},{"type":24,"tag":41,"props":5510,"children":5511},{},[5512],{"type":29,"value":1433},{"type":24,"tag":25,"props":5514,"children":5515},{},[5516],{"type":29,"value":1438},{"type":24,"tag":113,"props":5518,"children":5519},{"id":1441},[5520],{"type":29,"value":1441},{"type":24,"tag":25,"props":5522,"children":5523},{},[5524],{"type":29,"value":1448},{"type":24,"tag":37,"props":5526,"children":5527},{},[5528,5532,5536,5540,5544,5548,5552],{"type":24,"tag":41,"props":5529,"children":5530},{},[5531],{"type":29,"value":1456},{"type":24,"tag":41,"props":5533,"children":5534},{},[5535],{"type":29,"value":1461},{"type":24,"tag":41,"props":5537,"children":5538},{},[5539],{"type":29,"value":1466},{"type":24,"tag":41,"props":5541,"children":5542},{},[5543],{"type":29,"value":1471},{"type":24,"tag":41,"props":5545,"children":5546},{},[5547],{"type":29,"value":1476},{"type":24,"tag":41,"props":5549,"children":5550},{},[5551],{"type":29,"value":1481},{"type":24,"tag":41,"props":5553,"children":5554},{},[5555],{"type":29,"value":1486},{"type":24,"tag":25,"props":5557,"children":5558},{},[5559],{"type":29,"value":1491},{"type":24,"tag":113,"props":5561,"children":5562},{"id":1494},[5563],{"type":29,"value":1494},{"type":24,"tag":25,"props":5565,"children":5566},{},[5567],{"type":29,"value":1501},{"type":24,"tag":25,"props":5569,"children":5570},{},[5571],{"type":29,"value":1506},{"type":24,"tag":37,"props":5573,"children":5574},{},[5575,5579,5583,5587],{"type":24,"tag":41,"props":5576,"children":5577},{},[5578],{"type":29,"value":1514},{"type":24,"tag":41,"props":5580,"children":5581},{},[5582],{"type":29,"value":1519},{"type":24,"tag":41,"props":5584,"children":5585},{},[5586],{"type":29,"value":1524},{"type":24,"tag":41,"props":5588,"children":5589},{},[5590],{"type":29,"value":1529},{"type":24,"tag":25,"props":5592,"children":5593},{},[5594],{"type":29,"value":1534},{"type":24,"tag":124,"props":5596,"children":5597},{},[5598,5605,5612,5619],{"type":24,"tag":41,"props":5599,"children":5600},{},[5601],{"type":24,"tag":81,"props":5602,"children":5603},{"href":83},[5604],{"type":29,"value":86},{"type":24,"tag":41,"props":5606,"children":5607},{},[5608],{"type":24,"tag":81,"props":5609,"children":5610},{"href":91},[5611],{"type":29,"value":94},{"type":24,"tag":41,"props":5613,"children":5614},{},[5615],{"type":24,"tag":81,"props":5616,"children":5617},{"href":106},[5618],{"type":29,"value":109},{"type":24,"tag":41,"props":5620,"children":5621},{},[5622],{"type":24,"tag":81,"props":5623,"children":5624},{"href":1564},[5625],{"type":29,"value":1567},{"type":24,"tag":25,"props":5627,"children":5628},{},[5629],{"type":29,"value":1572},{"title":7,"searchDepth":1574,"depth":1574,"links":5631},[5632,5633,5634,5638,5641,5642,5647,5652,5658,5659,5660,5661,5662,5663],{"id":115,"depth":1577,"text":115},{"id":167,"depth":1577,"text":170},{"id":296,"depth":1577,"text":299,"children":5635},[5636,5637],{"id":308,"depth":1574,"text":311},{"id":365,"depth":1574,"text":368},{"id":443,"depth":1577,"text":446,"children":5639},[5640],{"id":588,"depth":1574,"text":588},{"id":676,"depth":1577,"text":679},{"id":703,"depth":1577,"text":706,"children":5643},[5644,5645,5646],{"id":743,"depth":1574,"text":746},{"id":785,"depth":1574,"text":788},{"id":814,"depth":1574,"text":817},{"id":848,"depth":1577,"text":851,"children":5648},[5649,5650,5651],{"id":859,"depth":1574,"text":859},{"id":902,"depth":1574,"text":902},{"id":940,"depth":1574,"text":940},{"id":994,"depth":1577,"text":994,"children":5653},[5654,5655,5656,5657],{"id":1009,"depth":1574,"text":1012},{"id":1020,"depth":1574,"text":1023},{"id":1031,"depth":1574,"text":1034},{"id":1042,"depth":1574,"text":1045},{"id":1053,"depth":1577,"text":1053},{"id":1237,"depth":1577,"text":1240},{"id":1370,"depth":1577,"text":1373},{"id":1397,"depth":1577,"text":1400},{"id":1441,"depth":1577,"text":1441},{"id":1494,"depth":1577,"text":1494},1776174406962]