[{"data":1,"prerenderedAt":3507},["ShallowReactive",2],{"article-/topics/ai/ai-agent-policy-dry-run-blast-radius-analysis":3,"related-ai":425,"content-query-6IhdgTslrj":3195},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":12,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":22,"_type":419,"_id":420,"_source":421,"_file":422,"_stem":423,"_extension":424},"/topics/ai/ai-agent-policy-dry-run-blast-radius-analysis","ai",false,"","AI agent Policy Dry-Run 与 Blast Radius Analysis：规则上线前怎么模拟影响面，而不是线上拦错人","AI agent 的 policy 一旦改错，伤害通常不是单点 bug，而是成片误拦、误放和误升级。本文讲清 dry-run、shadow decision、blast radius 与 rollout gate，让规则变更不再靠胆量上线。","2026-05-15","HTMLPAGE 团队",[13,14,15,16],"AI agent","Policy Dry-Run","Blast Radius","工程实践","/images/articles/ai-agent-policy-dry-run-blast-radius-analysis-featured.jpg","risk analysis dashboard laptop office",30309058,"https://www.pexels.com/photo/modern-trading-workstation-with-digital-charts-30309058/",16,{"type":23,"children":24,"toc":409},"root",[25,33,38,43,80,87,192,197,203,208,240,245,251,256,261,284,289,295,300,318,323,329,334,352,357,363,368,373,378],{"type":26,"tag":27,"props":28,"children":29},"element","p",{},[30],{"type":31,"value":32},"text","AI agent 平台只要真的把 policy 放进生产，迟早会遇到这样一种压力：你知道现在的规则不够好，想改；但你又知道一旦改错，系统伤害的不会只是一个请求，而是一整批租户、一整类任务，甚至一整条人工审核链。于是很多团队最后只能在两种坏选择里摇摆：要么让旧规则继续拖着平台走，要么硬着头皮上线，再祈祷没有大面积误伤。",{"type":26,"tag":27,"props":34,"children":35},{},[36],{"type":31,"value":37},"policy 之所以比普通配置更危险，是因为它天生带着“全局解释权”。同一条规则可能同时影响准入、工具调用、人工 review、外发动作和预算闸门。你改的也许只是一行阈值，系统改变的却可能是一整条行为路径。所以 policy 变更真正需要的，不是更谨慎的手工 review，而是上线前就能回答：这条规则如果今天生效，到底会多大范围地改变系统决策。",{"type":26,"tag":27,"props":39,"children":40},{},[41],{"type":31,"value":42},"这就是 dry-run 和 blast radius analysis 的价值。它们不是额外的繁文缛节，而是 policy 从“静态配置”变成“可运营决策系统”的分水岭。",{"type":26,"tag":27,"props":44,"children":45},{},[46,48,55,57,63,64,70,72,78],{"type":31,"value":47},"建议配合 ",{"type":26,"tag":49,"props":50,"children":52},"a",{"href":51},"/topics/ai/ai-agent-policy-engine-rule-layering",[53],{"type":31,"value":54},"AI agent Policy Engine 规则分层",{"type":31,"value":56},"、",{"type":26,"tag":49,"props":58,"children":60},{"href":59},"/topics/ai/ai-agent-feature-flag-release-strategy",[61],{"type":31,"value":62},"AI agent 灰度发布与功能开关",{"type":31,"value":56},{"type":26,"tag":49,"props":65,"children":67},{"href":66},"/topics/ai/ai-agent-plan-tier-entitlement-tool-gating",[68],{"type":31,"value":69},"AI agent Plan Tier Entitlement 与 Tool Gating",{"type":31,"value":71}," 和 ",{"type":26,"tag":49,"props":73,"children":75},{"href":74},"/topics/ai/ai-agent-evidence-provenance-trust-scoring",[76],{"type":31,"value":77},"AI agent 证据来源与可信度分层",{"type":31,"value":79}," 一起看。",{"type":26,"tag":81,"props":82,"children":84},"h2",{"id":83},"先分清policy-变更为什么比普通开关更难上线",[85],{"type":31,"value":86},"先分清：policy 变更为什么比普通开关更难上线",{"type":26,"tag":88,"props":89,"children":90},"table",{},[91,115],{"type":26,"tag":92,"props":93,"children":94},"thead",{},[95],{"type":26,"tag":96,"props":97,"children":98},"tr",{},[99,105,110],{"type":26,"tag":100,"props":101,"children":102},"th",{},[103],{"type":31,"value":104},"变更类型",{"type":26,"tag":100,"props":106,"children":107},{},[108],{"type":31,"value":109},"表面上像什么",{"type":26,"tag":100,"props":111,"children":112},{},[113],{"type":31,"value":114},"真正会影响什么",{"type":26,"tag":116,"props":117,"children":118},"tbody",{},[119,138,156,174],{"type":26,"tag":96,"props":120,"children":121},{},[122,128,133],{"type":26,"tag":123,"props":124,"children":125},"td",{},[126],{"type":31,"value":127},"阈值调整",{"type":26,"tag":123,"props":129,"children":130},{},[131],{"type":31,"value":132},"风险分数从 0.7 提到 0.8",{"type":26,"tag":123,"props":134,"children":135},{},[136],{"type":31,"value":137},"会不会把大量本来自动通过的 run 打进 review",{"type":26,"tag":96,"props":139,"children":140},{},[141,146,151],{"type":26,"tag":123,"props":142,"children":143},{},[144],{"type":31,"value":145},"规则新增",{"type":26,"tag":123,"props":147,"children":148},{},[149],{"type":31,"value":150},"多一条禁止外发条件",{"type":26,"tag":123,"props":152,"children":153},{},[154],{"type":31,"value":155},"哪些租户的关键流程会突然停住",{"type":26,"tag":96,"props":157,"children":158},{},[159,164,169],{"type":26,"tag":123,"props":160,"children":161},{},[162],{"type":31,"value":163},"规则顺序变更",{"type":26,"tag":123,"props":165,"children":166},{},[167],{"type":31,"value":168},"先执行 A 再执行 B",{"type":26,"tag":123,"props":170,"children":171},{},[172],{"type":31,"value":173},"不同 policy 的解释权是否被悄悄改写",{"type":26,"tag":96,"props":175,"children":176},{},[177,182,187],{"type":26,"tag":123,"props":178,"children":179},{},[180],{"type":31,"value":181},"例外收紧 / 放宽",{"type":26,"tag":123,"props":183,"children":184},{},[185],{"type":31,"value":186},"某类租户暂时例外",{"type":26,"tag":123,"props":188,"children":189},{},[190],{"type":31,"value":191},"平台边界是不是被整体推宽或推窄",{"type":26,"tag":27,"props":193,"children":194},{},[195],{"type":31,"value":196},"policy 的危险不在于它复杂，而在于它经常会把“局部修改”放大成“系统性行为变化”。",{"type":26,"tag":81,"props":198,"children":200},{"id":199},"dry-run-最有价值的不是通过率而是决策差异",[201],{"type":31,"value":202},"Dry-run 最有价值的不是通过率，而是“决策差异”",{"type":26,"tag":27,"props":204,"children":205},{},[206],{"type":31,"value":207},"很多团队做 dry-run 时，最先盯的是通过率有没有变化。这当然有价值，但还远远不够。真正能说明 policy 变更影响面的，通常是这些差异信号：",{"type":26,"tag":209,"props":210,"children":211},"ul",{},[212,225,230,235],{"type":26,"tag":213,"props":214,"children":215},"li",{},[216,218],{"type":31,"value":217},"本来会自动通过的任务，有多少会变成 ",{"type":26,"tag":219,"props":220,"children":222},"code",{"className":221},[],[223],{"type":31,"value":224},"needs_review",{"type":26,"tag":213,"props":226,"children":227},{},[228],{"type":31,"value":229},"本来会被拦截的任务，有多少会被放行",{"type":26,"tag":213,"props":231,"children":232},{},[233],{"type":31,"value":234},"哪类租户、哪类任务、哪类工具调用受影响最大",{"type":26,"tag":213,"props":236,"children":237},{},[238],{"type":31,"value":239},"变化集中在低风险长尾，还是集中在高风险核心场景",{"type":26,"tag":27,"props":241,"children":242},{},[243],{"type":31,"value":244},"也就是说，dry-run 真正要模拟的不是“规则能不能跑”，而是“规则如果真跑了，系统会在哪里开始像另一个系统”。",{"type":26,"tag":81,"props":246,"children":248},{"id":247},"blast-radius-要先按业务面切不要只看全局比例",[249],{"type":31,"value":250},"Blast radius 要先按业务面切，不要只看全局比例",{"type":26,"tag":27,"props":252,"children":253},{},[254],{"type":31,"value":255},"全局变化比例有时非常具有迷惑性。比如一条 policy 新规则只让全平台 2% 的请求改判，看上去不算大。可如果这 2% 里大部分都集中在高价值租户、关键发布任务或某个合规流程上，那它的 blast radius 一点也不小。",{"type":26,"tag":27,"props":257,"children":258},{},[259],{"type":31,"value":260},"所以分析影响面时，至少要分开看：",{"type":26,"tag":209,"props":262,"children":263},{},[264,269,274,279],{"type":26,"tag":213,"props":265,"children":266},{},[267],{"type":31,"value":268},"按租户 / 行业看差异",{"type":26,"tag":213,"props":270,"children":271},{},[272],{"type":31,"value":273},"按任务类型看差异",{"type":26,"tag":213,"props":275,"children":276},{},[277],{"type":31,"value":278},"按风险等级看差异",{"type":26,"tag":213,"props":280,"children":281},{},[282],{"type":31,"value":283},"按副作用等级看差异",{"type":26,"tag":27,"props":285,"children":286},{},[287],{"type":31,"value":288},"只有这样，你才不会被一个“整体影响不大”的数字骗过去。",{"type":26,"tag":81,"props":290,"children":292},{"id":291},"shadow-decision-很重要因为很多-policy-错误不会立刻爆炸",[293],{"type":31,"value":294},"Shadow decision 很重要，因为很多 policy 错误不会立刻爆炸",{"type":26,"tag":27,"props":296,"children":297},{},[298],{"type":31,"value":299},"policy 变更最难受的地方之一，是它并不总会立刻报错。很多错误生效后的第一反应只是：",{"type":26,"tag":209,"props":301,"children":302},{},[303,308,313],{"type":26,"tag":213,"props":304,"children":305},{},[306],{"type":31,"value":307},"review 队列开始慢慢变长",{"type":26,"tag":213,"props":309,"children":310},{},[311],{"type":31,"value":312},"某类任务突然更爱走人工兜底",{"type":26,"tag":213,"props":314,"children":315},{},[316],{"type":31,"value":317},"某些租户开始觉得系统“变谨慎了”或“变冲动了”",{"type":26,"tag":27,"props":319,"children":320},{},[321],{"type":31,"value":322},"这类变化如果没有 shadow decision 记录，团队很难确认到底是业务波动，还是 policy 本身改变了世界。所以更成熟的做法，是在一段时间内同时记录“旧规则怎么判”“新规则会怎么判”，先看差异，再谈放量。这样 policy 改动才不会总是靠主观自信上线。",{"type":26,"tag":81,"props":324,"children":326},{"id":325},"一个典型事故只想少一点误放结果把-review-队列打爆",[327],{"type":31,"value":328},"一个典型事故：只想少一点误放，结果把 review 队列打爆",{"type":26,"tag":27,"props":330,"children":331},{},[332],{"type":31,"value":333},"某团队想降低高风险外发的漏拦率，于是把风险阈值从 0.72 提到 0.81。离线回看时，整体通过率只下降了 3%，团队觉得问题不大，直接上线。三天后，平台没有明显报错，但用户体验开始明显变差。最终发现：",{"type":26,"tag":209,"props":335,"children":336},{},[337,342,347],{"type":26,"tag":213,"props":338,"children":339},{},[340],{"type":31,"value":341},"受影响最大的不是低风险长尾，而是高价值租户的日常任务",{"type":26,"tag":213,"props":343,"children":344},{},[345],{"type":31,"value":346},"大量原本自动完成的任务进入 review 队列",{"type":26,"tag":213,"props":348,"children":349},{},[350],{"type":31,"value":351},"review 队列的 aging 上升后，又反过来拖慢整个平台",{"type":26,"tag":27,"props":353,"children":354},{},[355],{"type":31,"value":356},"这就是典型的 blast radius 误判。团队最后补的不是更谨慎的人审，而是一套按租户、风险域和任务类型切开的 dry-run 差异报告。这个改动的关键不在于让规则更保守，而在于让上线前就知道“痛点会落在哪”。",{"type":26,"tag":81,"props":358,"children":360},{"id":359},"真正该先补的是把-policy-变更从配置动作升级成发布动作",[361],{"type":31,"value":362},"真正该先补的，是把 policy 变更从配置动作升级成发布动作",{"type":26,"tag":27,"props":364,"children":365},{},[366],{"type":31,"value":367},"如果你现在只能先补一层，优先不是更复杂的规则编辑器，而是让任何 policy 改动至少经过：dry-run、差异分析、blast radius 评估和 rollout gate。只要 policy 仍然能像普通配置一样被直接写入生产，它就永远会以“只是改了个小值”的姿态把风险推到线上。",{"type":26,"tag":27,"props":369,"children":370},{},[371],{"type":31,"value":372},"AI agent 最怕的不是规则很多，而是规则开始拥有系统级解释权之后，平台却还在用改 feature flag 的心态对待它。规则越重要，越要先学会在生效前看见它会改变什么。",{"type":26,"tag":27,"props":374,"children":375},{},[376],{"type":31,"value":377},"延伸阅读：",{"type":26,"tag":209,"props":379,"children":380},{},[381,388,395,402],{"type":26,"tag":213,"props":382,"children":383},{},[384],{"type":26,"tag":49,"props":385,"children":386},{"href":51},[387],{"type":31,"value":54},{"type":26,"tag":213,"props":389,"children":390},{},[391],{"type":26,"tag":49,"props":392,"children":393},{"href":59},[394],{"type":31,"value":62},{"type":26,"tag":213,"props":396,"children":397},{},[398],{"type":26,"tag":49,"props":399,"children":400},{"href":66},[401],{"type":31,"value":69},{"type":26,"tag":213,"props":403,"children":404},{},[405],{"type":26,"tag":49,"props":406,"children":407},{"href":74},[408],{"type":31,"value":77},{"title":7,"searchDepth":410,"depth":410,"links":411},3,[412,414,415,416,417,418],{"id":83,"depth":413,"text":86},2,{"id":199,"depth":413,"text":202},{"id":247,"depth":413,"text":250},{"id":291,"depth":413,"text":294},{"id":325,"depth":413,"text":328},{"id":359,"depth":413,"text":362},"markdown","content:topics:ai:ai-agent-policy-dry-run-blast-radius-analysis.md","content","topics/ai/ai-agent-policy-dry-run-blast-radius-analysis.md","topics/ai/ai-agent-policy-dry-run-blast-radius-analysis","md",[426,1581,2531],{"_path":427,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":428,"description":429,"date":430,"topic":5,"author":11,"tags":431,"image":437,"imageAlt":438,"pexelsPhotoId":439,"pexelsUrl":440,"readingTime":441,"body":442,"_type":419,"_id":1578,"_source":421,"_file":1579,"_stem":1580,"_extension":424},"/topics/ai/cursor-keyboard-shortcuts-cheatsheet","Cursor 快捷键速查表（macOS/Windows）：从“会用”到“能提效”的 10 个工作流","把 Cursor 常用快捷键按任务分组（查代码、改代码、多文件、对话、审查与回滚），给出可直接照抄的工作流与最小回归清单，避免“快捷键背了也没变快”。","2026-03-02",[432,433,434,435,436],"Cursor","快捷键","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":23,"children":443,"toc":1552},[444,449,467,472,501,506,542,546,552,557,590,595,618,621,627,632,850,859,862,868,875,894,902,923,928,934,949,980,985,998,1004,1023,1041,1049,1054,1060,1065,1086,1094,1100,1105,1128,1133,1139,1152,1158,1176,1194,1200,1211,1229,1235,1246,1252,1257,1300,1303,1309,1317,1370,1373,1379,1385,1390,1395,1418,1436,1441,1466,1469,1475,1481,1486,1492,1497,1503,1508,1511,1517],{"type":26,"tag":27,"props":445,"children":446},{},[447],{"type":31,"value":448},"如果你在搜“Cursor 快捷键”，你大概率不是想背一张表，而是想解决这类问题：",{"type":26,"tag":209,"props":450,"children":451},{},[452,457,462],{"type":26,"tag":213,"props":453,"children":454},{},[455],{"type":31,"value":456},"为什么我用了 AI，还是很慢？（对话来回太多、改动不可控）",{"type":26,"tag":213,"props":458,"children":459},{},[460],{"type":31,"value":461},"为什么它“看起来懂了”，却改错文件/改出回归？（上下文与范围没锁住）",{"type":26,"tag":213,"props":463,"children":464},{},[465],{"type":31,"value":466},"多文件改动怎么做得安全？（验收、回滚、最小回归集）",{"type":26,"tag":27,"props":468,"children":469},{},[470],{"type":31,"value":471},"这篇文章给你两份东西：",{"type":26,"tag":473,"props":474,"children":475},"ol",{},[476,489],{"type":26,"tag":213,"props":477,"children":478},{},[479,481,487],{"type":31,"value":480},"一张",{"type":26,"tag":482,"props":483,"children":484},"strong",{},[485],{"type":31,"value":486},"按任务分组",{"type":31,"value":488},"的快捷键表（不是按功能堆在一起）",{"type":26,"tag":213,"props":490,"children":491},{},[492,494,499],{"type":31,"value":493},"一套“从需求到落地”的",{"type":26,"tag":482,"props":495,"children":496},{},[497],{"type":31,"value":498},"最小闭环工作流",{"type":31,"value":500},"（每一步都有快捷键）",{"type":26,"tag":27,"props":502,"children":503},{},[504],{"type":31,"value":505},"想看系统玩法：",{"type":26,"tag":209,"props":507,"children":508},{},[509,520,531],{"type":26,"tag":213,"props":510,"children":511},{},[512,514],{"type":31,"value":513},"入门教程看：",{"type":26,"tag":49,"props":515,"children":517},{"href":516},"/topics/ai/cursor-tutorial",[518],{"type":31,"value":519},"Cursor 使用教程（2026）",{"type":26,"tag":213,"props":521,"children":522},{},[523,525],{"type":31,"value":524},"进阶玩法看：",{"type":26,"tag":49,"props":526,"children":528},{"href":527},"/topics/ai/cursor-editor-guide",[529],{"type":31,"value":530},"Cursor 编辑器深度玩法",{"type":26,"tag":213,"props":532,"children":533},{},[534,536],{"type":31,"value":535},"规则与忽略看：",{"type":26,"tag":49,"props":537,"children":539},{"href":538},"/topics/ai/cursor-rules-cursorrules",[540],{"type":31,"value":541},"Cursor Rules 与 .cursorrules",{"type":26,"tag":543,"props":544,"children":545},"hr",{},[],{"type":26,"tag":81,"props":547,"children":549},{"id":548},"先给结论提效不是按得快而是闭环更短",[550],{"type":31,"value":551},"先给结论：提效不是“按得快”，而是“闭环更短”",{"type":26,"tag":27,"props":553,"children":554},{},[555],{"type":31,"value":556},"你可以把 Cursor 的快捷键理解为 3 条流水线：",{"type":26,"tag":209,"props":558,"children":559},{},[560,570,580],{"type":26,"tag":213,"props":561,"children":562},{},[563,568],{"type":26,"tag":482,"props":564,"children":565},{},[566],{"type":31,"value":567},"改一小段",{"type":31,"value":569},"（内联编辑）：把改动限制在一个函数/一段样式",{"type":26,"tag":213,"props":571,"children":572},{},[573,578],{"type":26,"tag":482,"props":574,"children":575},{},[576],{"type":31,"value":577},"改一组文件",{"type":31,"value":579},"（Composer）：把改动限制在一组明确文件，并要求输出 diff + 验收点",{"type":26,"tag":213,"props":581,"children":582},{},[583,588],{"type":26,"tag":482,"props":584,"children":585},{},[586],{"type":31,"value":587},"聊清楚再动手",{"type":31,"value":589},"（侧边对话）：先对齐目标、范围、验收、回滚",{"type":26,"tag":27,"props":591,"children":592},{},[593],{"type":31,"value":594},"当你觉得“它乱改/改太大”时，往往不是快捷键没记住，而是缺了两件事：",{"type":26,"tag":209,"props":596,"children":597},{},[598,608],{"type":26,"tag":213,"props":599,"children":600},{},[601,603],{"type":31,"value":602},"没有在动手前锁定",{"type":26,"tag":482,"props":604,"children":605},{},[606],{"type":31,"value":607},"范围",{"type":26,"tag":213,"props":609,"children":610},{},[611,613],{"type":31,"value":612},"没有在接受改动前准备",{"type":26,"tag":482,"props":614,"children":615},{},[616],{"type":31,"value":617},"验收/回滚",{"type":26,"tag":543,"props":619,"children":620},{},[],{"type":26,"tag":81,"props":622,"children":624},{"id":623},"快捷键速查表按任务分组",[625],{"type":31,"value":626},"快捷键速查表（按任务分组）",{"type":26,"tag":27,"props":628,"children":629},{},[630],{"type":31,"value":631},"说明：下表按“你正在做什么”组织，而不是按“功能名字”组织。不同版本快捷键可能略有差异，但核心逻辑一致。",{"type":26,"tag":88,"props":633,"children":634},{},[635,661],{"type":26,"tag":92,"props":636,"children":637},{},[638],{"type":26,"tag":96,"props":639,"children":640},{},[641,646,651,656],{"type":26,"tag":100,"props":642,"children":643},{},[644],{"type":31,"value":645},"任务",{"type":26,"tag":100,"props":647,"children":648},{},[649],{"type":31,"value":650},"macOS",{"type":26,"tag":100,"props":652,"children":653},{},[654],{"type":31,"value":655},"Windows",{"type":26,"tag":100,"props":657,"children":658},{},[659],{"type":31,"value":660},"你该在什么时候用",{"type":26,"tag":116,"props":662,"children":663},{},[664,695,726,757,788,819],{"type":26,"tag":96,"props":665,"children":666},{},[667,672,681,690],{"type":26,"tag":123,"props":668,"children":669},{},[670],{"type":31,"value":671},"改一小段（最安全）",{"type":26,"tag":123,"props":673,"children":674},{},[675],{"type":26,"tag":219,"props":676,"children":678},{"className":677},[],[679],{"type":31,"value":680},"Cmd + K",{"type":26,"tag":123,"props":682,"children":683},{},[684],{"type":26,"tag":219,"props":685,"children":687},{"className":686},[],[688],{"type":31,"value":689},"Ctrl + K",{"type":26,"tag":123,"props":691,"children":692},{},[693],{"type":31,"value":694},"只想改一个函数/一段 CSS，不想动别的",{"type":26,"tag":96,"props":696,"children":697},{},[698,703,712,721],{"type":26,"tag":123,"props":699,"children":700},{},[701],{"type":31,"value":702},"打开 AI 对话（先对齐再动手）",{"type":26,"tag":123,"props":704,"children":705},{},[706],{"type":26,"tag":219,"props":707,"children":709},{"className":708},[],[710],{"type":31,"value":711},"Cmd + L",{"type":26,"tag":123,"props":713,"children":714},{},[715],{"type":26,"tag":219,"props":716,"children":718},{"className":717},[],[719],{"type":31,"value":720},"Ctrl + L",{"type":26,"tag":123,"props":722,"children":723},{},[724],{"type":31,"value":725},"需要澄清目标、制定步骤、给验收点",{"type":26,"tag":96,"props":727,"children":728},{},[729,734,743,752],{"type":26,"tag":123,"props":730,"children":731},{},[732],{"type":31,"value":733},"多文件编辑（有组织地改一组文件）",{"type":26,"tag":123,"props":735,"children":736},{},[737],{"type":26,"tag":219,"props":738,"children":740},{"className":739},[],[741],{"type":31,"value":742},"Cmd + I",{"type":26,"tag":123,"props":744,"children":745},{},[746],{"type":26,"tag":219,"props":747,"children":749},{"className":748},[],[750],{"type":31,"value":751},"Ctrl + I",{"type":26,"tag":123,"props":753,"children":754},{},[755],{"type":31,"value":756},"改动涉及多个文件：组件+样式+测试",{"type":26,"tag":96,"props":758,"children":759},{},[760,765,774,783],{"type":26,"tag":123,"props":761,"children":762},{},[763],{"type":31,"value":764},"把选中代码加入对话上下文",{"type":26,"tag":123,"props":766,"children":767},{},[768],{"type":26,"tag":219,"props":769,"children":771},{"className":770},[],[772],{"type":31,"value":773},"Cmd + Shift + L",{"type":26,"tag":123,"props":775,"children":776},{},[777],{"type":26,"tag":219,"props":778,"children":780},{"className":779},[],[781],{"type":31,"value":782},"Ctrl + Shift + L",{"type":26,"tag":123,"props":784,"children":785},{},[786],{"type":31,"value":787},"让 AI 只看你选的片段（降低噪音）",{"type":26,"tag":96,"props":789,"children":790},{},[791,796,805,814],{"type":26,"tag":123,"props":792,"children":793},{},[794],{"type":31,"value":795},"接受当前建议",{"type":26,"tag":123,"props":797,"children":798},{},[799],{"type":26,"tag":219,"props":800,"children":802},{"className":801},[],[803],{"type":31,"value":804},"Cmd + Y",{"type":26,"tag":123,"props":806,"children":807},{},[808],{"type":26,"tag":219,"props":809,"children":811},{"className":810},[],[812],{"type":31,"value":813},"Ctrl + Y",{"type":26,"tag":123,"props":815,"children":816},{},[817],{"type":31,"value":818},"你已经准备好验收/回滚，并确认改动范围",{"type":26,"tag":96,"props":820,"children":821},{},[822,827,836,845],{"type":26,"tag":123,"props":823,"children":824},{},[825],{"type":31,"value":826},"拒绝当前建议",{"type":26,"tag":123,"props":828,"children":829},{},[830],{"type":26,"tag":219,"props":831,"children":833},{"className":832},[],[834],{"type":31,"value":835},"Cmd + N",{"type":26,"tag":123,"props":837,"children":838},{},[839],{"type":26,"tag":219,"props":840,"children":842},{"className":841},[],[843],{"type":31,"value":844},"Ctrl + N",{"type":26,"tag":123,"props":846,"children":847},{},[848],{"type":31,"value":849},"改得太大、改错方向，立刻收手",{"type":26,"tag":851,"props":852,"children":853},"blockquote",{},[854],{"type":26,"tag":27,"props":855,"children":856},{},[857],{"type":31,"value":858},"小技巧：把“改一小段”当默认路径。只有当你能清晰写出“会改哪几类文件、怎么验收”时再进入多文件。",{"type":26,"tag":543,"props":860,"children":861},{},[],{"type":26,"tag":81,"props":863,"children":865},{"id":864},"_10-个可直接照抄的提效工作流每个都能闭环",[866],{"type":31,"value":867},"10 个可直接照抄的提效工作流（每个都能闭环）",{"type":26,"tag":869,"props":870,"children":872},"h3",{"id":871},"工作流-1需求计划小步改新手最稳",[873],{"type":31,"value":874},"工作流 1：需求→计划→小步改（新手最稳）",{"type":26,"tag":473,"props":876,"children":877},{},[878,889],{"type":26,"tag":213,"props":879,"children":880},{},[881,887],{"type":26,"tag":219,"props":882,"children":884},{"className":883},[],[885],{"type":31,"value":886},"Cmd/Ctrl + L",{"type":31,"value":888}," 打开对话",{"type":26,"tag":213,"props":890,"children":891},{},[892],{"type":31,"value":893},"先发这段（可复制）：",{"type":26,"tag":851,"props":895,"children":896},{},[897],{"type":26,"tag":27,"props":898,"children":899},{},[900],{"type":31,"value":901},"目标：……\n范围：只修改以下文件/模块：……\n非目标：……（明确不做）\n验收：……（可测试/可手动检查）\n输出格式：先给计划，再逐步执行；每一步写出 diff 摘要。",{"type":26,"tag":473,"props":903,"children":904},{"start":410},[905,910],{"type":26,"tag":213,"props":906,"children":907},{},[908],{"type":31,"value":909},"让 AI 先给“计划（3~6 步）”，你确认后再执行",{"type":26,"tag":213,"props":911,"children":912},{},[913,915,921],{"type":31,"value":914},"任何一步涉及改代码：优先回到编辑区，选中片段用 ",{"type":26,"tag":219,"props":916,"children":918},{"className":917},[],[919],{"type":31,"value":920},"Cmd/Ctrl + K",{"type":31,"value":922}," 小步改",{"type":26,"tag":27,"props":924,"children":925},{},[926],{"type":31,"value":927},"为什么有效：你把“想法”变成了“可执行约束”，这就是 GEO（面向 AI/模型的可理解结构）。",{"type":26,"tag":869,"props":929,"children":931},{"id":930},"工作流-2只改一个函数高频低风险",[932],{"type":31,"value":933},"工作流 2：只改一个函数（高频、低风险）",{"type":26,"tag":209,"props":935,"children":936},{},[937],{"type":26,"tag":213,"props":938,"children":939},{},[940,942,947],{"type":31,"value":941},"选中函数 → ",{"type":26,"tag":219,"props":943,"children":945},{"className":944},[],[946],{"type":31,"value":920},{"type":31,"value":948}," → 输入指令：",{"type":26,"tag":851,"props":950,"children":951},{},[952,957],{"type":26,"tag":27,"props":953,"children":954},{},[955],{"type":31,"value":956},"把这段改成更可读：",{"type":26,"tag":209,"props":958,"children":959},{},[960,965,970,975],{"type":26,"tag":213,"props":961,"children":962},{},[963],{"type":31,"value":964},"用 async/await",{"type":26,"tag":213,"props":966,"children":967},{},[968],{"type":31,"value":969},"错误处理不要吞掉",{"type":26,"tag":213,"props":971,"children":972},{},[973],{"type":31,"value":974},"添加类型（若可推断）",{"type":26,"tag":213,"props":976,"children":977},{},[978],{"type":31,"value":979},"不要改函数签名",{"type":26,"tag":27,"props":981,"children":982},{},[983],{"type":31,"value":984},"验收方式（强制）：",{"type":26,"tag":209,"props":986,"children":987},{},[988,993],{"type":26,"tag":213,"props":989,"children":990},{},[991],{"type":31,"value":992},"输出前后函数行为一致（输入/输出）",{"type":26,"tag":213,"props":994,"children":995},{},[996],{"type":31,"value":997},"失败分支有可观测日志（不要悄悄 return null）",{"type":26,"tag":869,"props":999,"children":1001},{"id":1000},"工作流-3多文件改动先定文件清单",[1002],{"type":31,"value":1003},"工作流 3：多文件改动（先定“文件清单”）",{"type":26,"tag":473,"props":1005,"children":1006},{},[1007,1018],{"type":26,"tag":213,"props":1008,"children":1009},{},[1010,1016],{"type":26,"tag":219,"props":1011,"children":1013},{"className":1012},[],[1014],{"type":31,"value":1015},"Cmd/Ctrl + I",{"type":31,"value":1017}," 进入多文件",{"type":26,"tag":213,"props":1019,"children":1020},{},[1021],{"type":31,"value":1022},"先让 AI 输出：",{"type":26,"tag":209,"props":1024,"children":1025},{},[1026,1031,1036],{"type":26,"tag":213,"props":1027,"children":1028},{},[1029],{"type":31,"value":1030},"预计会改哪些文件（最多 5 个）",{"type":26,"tag":213,"props":1032,"children":1033},{},[1034],{"type":31,"value":1035},"每个文件改什么",{"type":26,"tag":213,"props":1037,"children":1038},{},[1039],{"type":31,"value":1040},"每一步怎么验收",{"type":26,"tag":473,"props":1042,"children":1043},{"start":410},[1044],{"type":26,"tag":213,"props":1045,"children":1046},{},[1047],{"type":31,"value":1048},"你确认文件清单后再开始生成改动",{"type":26,"tag":27,"props":1050,"children":1051},{},[1052],{"type":31,"value":1053},"关键点：多文件最容易翻车的是“它把你没想到的文件也改了”。所以文件清单是第一道闸门。",{"type":26,"tag":869,"props":1055,"children":1057},{"id":1056},"工作流-4把上下文噪音砍掉防跑偏",[1058],{"type":31,"value":1059},"工作流 4：把“上下文噪音”砍掉（防跑偏）",{"type":26,"tag":27,"props":1061,"children":1062},{},[1063],{"type":31,"value":1064},"当你怀疑它在胡说/乱改时：",{"type":26,"tag":209,"props":1066,"children":1067},{},[1068,1081],{"type":26,"tag":213,"props":1069,"children":1070},{},[1071,1073,1079],{"type":31,"value":1072},"只选择关键代码片段 → ",{"type":26,"tag":219,"props":1074,"children":1076},{"className":1075},[],[1077],{"type":31,"value":1078},"Cmd/Ctrl + Shift + L",{"type":31,"value":1080}," 加入对话",{"type":26,"tag":213,"props":1082,"children":1083},{},[1084],{"type":31,"value":1085},"然后在对话里要求：",{"type":26,"tag":851,"props":1087,"children":1088},{},[1089],{"type":26,"tag":27,"props":1090,"children":1091},{},[1092],{"type":31,"value":1093},"只基于我提供的代码片段回答，不要假设其它文件存在。",{"type":26,"tag":869,"props":1095,"children":1097},{"id":1096},"工作流-5生成变更说明让-code-review-变快",[1098],{"type":31,"value":1099},"工作流 5：生成变更说明（让 code review 变快）",{"type":26,"tag":27,"props":1101,"children":1102},{},[1103],{"type":31,"value":1104},"改完后在对话里让它输出：",{"type":26,"tag":209,"props":1106,"children":1107},{},[1108,1113,1118,1123],{"type":26,"tag":213,"props":1109,"children":1110},{},[1111],{"type":31,"value":1112},"改动摘要（3~7 条）",{"type":26,"tag":213,"props":1114,"children":1115},{},[1116],{"type":31,"value":1117},"风险点（依赖/边界条件）",{"type":26,"tag":213,"props":1119,"children":1120},{},[1121],{"type":31,"value":1122},"回滚方式",{"type":26,"tag":213,"props":1124,"children":1125},{},[1126],{"type":31,"value":1127},"验收步骤",{"type":26,"tag":27,"props":1129,"children":1130},{},[1131],{"type":31,"value":1132},"这套结构能直接贴进 PR 描述。",{"type":26,"tag":869,"props":1134,"children":1136},{"id":1135},"工作流-6写最小回归集不写回归-等事故",[1137],{"type":31,"value":1138},"工作流 6：写“最小回归集”（不写回归 = 等事故）",{"type":26,"tag":27,"props":1140,"children":1141},{},[1142,1144,1150],{"type":31,"value":1143},"每次改动都至少做 10 条最小回归（见下文清单）。你可以把它写在 ",{"type":26,"tag":219,"props":1145,"children":1147},{"className":1146},[],[1148],{"type":31,"value":1149},"README",{"type":31,"value":1151}," 或团队 wiki。",{"type":26,"tag":869,"props":1153,"children":1155},{"id":1154},"工作流-7把接受建议变成最后一步",[1156],{"type":31,"value":1157},"工作流 7：把“接受建议”变成最后一步",{"type":26,"tag":27,"props":1159,"children":1160},{},[1161,1167,1169,1174],{"type":26,"tag":219,"props":1162,"children":1164},{"className":1163},[],[1165],{"type":31,"value":1166},"Cmd/Ctrl + Y",{"type":31,"value":1168}," 应该是",{"type":26,"tag":482,"props":1170,"children":1171},{},[1172],{"type":31,"value":1173},"最后一步",{"type":31,"value":1175},"：",{"type":26,"tag":209,"props":1177,"children":1178},{},[1179,1184,1189],{"type":26,"tag":213,"props":1180,"children":1181},{},[1182],{"type":31,"value":1183},"你已经看过 diff",{"type":26,"tag":213,"props":1185,"children":1186},{},[1187],{"type":31,"value":1188},"你能说清楚“怎么验收”",{"type":26,"tag":213,"props":1190,"children":1191},{},[1192],{"type":31,"value":1193},"你知道“怎么回滚”",{"type":26,"tag":869,"props":1195,"children":1197},{"id":1196},"工作流-8拒绝建议不是失败是风控动作",[1198],{"type":31,"value":1199},"工作流 8：拒绝建议不是失败，是风控动作",{"type":26,"tag":27,"props":1201,"children":1202},{},[1203,1209],{"type":26,"tag":219,"props":1204,"children":1206},{"className":1205},[],[1207],{"type":31,"value":1208},"Cmd/Ctrl + N",{"type":31,"value":1210}," 的使用时机：",{"type":26,"tag":209,"props":1212,"children":1213},{},[1214,1219,1224],{"type":26,"tag":213,"props":1215,"children":1216},{},[1217],{"type":31,"value":1218},"它开始改你没提过的东西（范围漂移）",{"type":26,"tag":213,"props":1220,"children":1221},{},[1222],{"type":31,"value":1223},"它改了 10 个文件但你只想改 1 个",{"type":26,"tag":213,"props":1225,"children":1226},{},[1227],{"type":31,"value":1228},"它为了“更优雅”引入新依赖/新抽象",{"type":26,"tag":869,"props":1230,"children":1232},{"id":1231},"工作流-9重复任务做成模板提示词不是一次性",[1233],{"type":31,"value":1234},"工作流 9：重复任务做成模板（提示词不是一次性）",{"type":26,"tag":27,"props":1236,"children":1237},{},[1238,1240,1244],{"type":31,"value":1239},"把高频任务（比如“写组件+样式+验收”）固化成模板，放进 Rules（见：",{"type":26,"tag":49,"props":1241,"children":1242},{"href":538},[1243],{"type":31,"value":541},{"type":31,"value":1245},"）。",{"type":26,"tag":869,"props":1247,"children":1249},{"id":1248},"工作流-10把快捷键表做成你自己的任务表",[1250],{"type":31,"value":1251},"工作流 10：把“快捷键表”做成你自己的任务表",{"type":26,"tag":27,"props":1253,"children":1254},{},[1255],{"type":31,"value":1256},"你不需要记住所有快捷键，只需要记住：",{"type":26,"tag":209,"props":1258,"children":1259},{},[1260,1270,1280,1290],{"type":26,"tag":213,"props":1261,"children":1262},{},[1263,1265],{"type":31,"value":1264},"小步改：",{"type":26,"tag":219,"props":1266,"children":1268},{"className":1267},[],[1269],{"type":31,"value":920},{"type":26,"tag":213,"props":1271,"children":1272},{},[1273,1275],{"type":31,"value":1274},"先对齐：",{"type":26,"tag":219,"props":1276,"children":1278},{"className":1277},[],[1279],{"type":31,"value":886},{"type":26,"tag":213,"props":1281,"children":1282},{},[1283,1285],{"type":31,"value":1284},"多文件：",{"type":26,"tag":219,"props":1286,"children":1288},{"className":1287},[],[1289],{"type":31,"value":1015},{"type":26,"tag":213,"props":1291,"children":1292},{},[1293,1295],{"type":31,"value":1294},"上下文聚焦：",{"type":26,"tag":219,"props":1296,"children":1298},{"className":1297},[],[1299],{"type":31,"value":1078},{"type":26,"tag":543,"props":1301,"children":1302},{},[],{"type":26,"tag":81,"props":1304,"children":1306},{"id":1305},"必交付物-1最小回归任务清单10-条通用",[1307],{"type":31,"value":1308},"必交付物 1：最小回归任务清单（10 条，通用）",{"type":26,"tag":851,"props":1310,"children":1311},{},[1312],{"type":26,"tag":27,"props":1313,"children":1314},{},[1315],{"type":31,"value":1316},"这份清单的意义：让每次 AI 改动都能“被验证”。否则你只是把不可控变成了更快的不可控。",{"type":26,"tag":473,"props":1318,"children":1319},{},[1320,1325,1330,1335,1340,1345,1350,1355,1360,1365],{"type":26,"tag":213,"props":1321,"children":1322},{},[1323],{"type":31,"value":1324},"关键路径能跑通（手动点击/请求一次）",{"type":26,"tag":213,"props":1326,"children":1327},{},[1328],{"type":31,"value":1329},"错误路径能触发（模拟一次失败输入）",{"type":26,"tag":213,"props":1331,"children":1332},{},[1333],{"type":31,"value":1334},"控制台无新增错误（至少关注 1 次真实操作）",{"type":26,"tag":213,"props":1336,"children":1337},{},[1338],{"type":31,"value":1339},"关键 UI 未错位（移动端/桌面端各看一眼）",{"type":26,"tag":213,"props":1341,"children":1342},{},[1343],{"type":31,"value":1344},"刷新后状态正确（尤其是表单/列表）",{"type":26,"tag":213,"props":1346,"children":1347},{},[1348],{"type":31,"value":1349},"路由跳转没断（从入口到目标页）",{"type":26,"tag":213,"props":1351,"children":1352},{},[1353],{"type":31,"value":1354},"相关接口未改变契约（字段名/类型）",{"type":26,"tag":213,"props":1356,"children":1357},{},[1358],{"type":31,"value":1359},"性能没有明显退化（首屏、交互卡顿）",{"type":26,"tag":213,"props":1361,"children":1362},{},[1363],{"type":31,"value":1364},"回滚方案可执行（知道回滚哪几个文件/commit）",{"type":26,"tag":213,"props":1366,"children":1367},{},[1368],{"type":31,"value":1369},"写下“这次改动解决了什么、风险是什么”（可贴 PR）",{"type":26,"tag":543,"props":1371,"children":1372},{},[],{"type":26,"tag":81,"props":1374,"children":1376},{"id":1375},"必交付物-2失败案例复盘真实会发生",[1377],{"type":31,"value":1378},"必交付物 2：失败案例复盘（真实会发生）",{"type":26,"tag":869,"props":1380,"children":1382},{"id":1381},"现象快捷键用得很熟但交付还是慢",[1383],{"type":31,"value":1384},"现象：快捷键用得很熟，但交付还是慢",{"type":26,"tag":27,"props":1386,"children":1387},{},[1388],{"type":31,"value":1389},"典型原因：你把 Cursor 当成“更聪明的搜索框”，不断对话，直到它给出你想要的答案。",{"type":26,"tag":27,"props":1391,"children":1392},{},[1393],{"type":31,"value":1394},"复现路径：",{"type":26,"tag":209,"props":1396,"children":1397},{},[1398,1403,1408,1413],{"type":26,"tag":213,"props":1399,"children":1400},{},[1401],{"type":31,"value":1402},"你直接说“把页面做得更好看、更高级”",{"type":26,"tag":213,"props":1404,"children":1405},{},[1406],{"type":31,"value":1407},"AI 开始大改样式、抽象组件、甚至引入新依赖",{"type":26,"tag":213,"props":1409,"children":1410},{},[1411],{"type":31,"value":1412},"你为了省事按了“接受建议”",{"type":26,"tag":213,"props":1414,"children":1415},{},[1416],{"type":31,"value":1417},"最后发现：设计没统一、移动端崩、甚至埋了性能问题",{"type":26,"tag":27,"props":1419,"children":1420},{},[1421,1423,1427,1429,1434],{"type":31,"value":1422},"根因：缺少",{"type":26,"tag":482,"props":1424,"children":1425},{},[1426],{"type":31,"value":607},{"type":31,"value":1428},"与",{"type":26,"tag":482,"props":1430,"children":1431},{},[1432],{"type":31,"value":1433},"验收",{"type":31,"value":1435},"。",{"type":26,"tag":27,"props":1437,"children":1438},{},[1439],{"type":31,"value":1440},"修复方式（可照抄）：",{"type":26,"tag":209,"props":1442,"children":1443},{},[1444,1449,1461],{"type":26,"tag":213,"props":1445,"children":1446},{},[1447],{"type":31,"value":1448},"把需求拆成 3 个可验证目标：例如“按钮样式统一”“首屏 CTA 更明显”“移动端间距不挤”",{"type":26,"tag":213,"props":1450,"children":1451},{},[1452,1454,1459],{"type":31,"value":1453},"每个目标只用 ",{"type":26,"tag":219,"props":1455,"children":1457},{"className":1456},[],[1458],{"type":31,"value":920},{"type":31,"value":1460}," 改一个局部",{"type":26,"tag":213,"props":1462,"children":1463},{},[1464],{"type":31,"value":1465},"每次接受建议前跑一遍“最小回归集”",{"type":26,"tag":543,"props":1467,"children":1468},{},[],{"type":26,"tag":81,"props":1470,"children":1472},{"id":1471},"faq高频问题",[1473],{"type":31,"value":1474},"FAQ（高频问题）",{"type":26,"tag":869,"props":1476,"children":1478},{"id":1477},"q1我应该先记快捷键还是先学工作流",[1479],{"type":31,"value":1480},"Q1：我应该先记快捷键还是先学工作流？",{"type":26,"tag":27,"props":1482,"children":1483},{},[1484],{"type":31,"value":1485},"先学工作流。快捷键只是把工作流的步骤变短。",{"type":26,"tag":869,"props":1487,"children":1489},{"id":1488},"q2为什么我一用多文件就容易翻车",[1490],{"type":31,"value":1491},"Q2：为什么我一用多文件就容易翻车？",{"type":26,"tag":27,"props":1493,"children":1494},{},[1495],{"type":31,"value":1496},"因为多文件意味着范围更大、依赖更多、验收更难。先锁定“文件清单 + 每步验收”，再让它动手。",{"type":26,"tag":869,"props":1498,"children":1500},{"id":1499},"q3有没有万能提示词",[1501],{"type":31,"value":1502},"Q3：有没有“万能提示词”？",{"type":26,"tag":27,"props":1504,"children":1505},{},[1506],{"type":31,"value":1507},"没有，但有“万能结构”：目标、范围、非目标、验收、输出格式。",{"type":26,"tag":543,"props":1509,"children":1510},{},[],{"type":26,"tag":81,"props":1512,"children":1514},{"id":1513},"延伸阅读建议按顺序",[1515],{"type":31,"value":1516},"延伸阅读（建议按顺序）",{"type":26,"tag":209,"props":1518,"children":1519},{},[1520,1527,1534,1541],{"type":26,"tag":213,"props":1521,"children":1522},{},[1523],{"type":26,"tag":49,"props":1524,"children":1525},{"href":516},[1526],{"type":31,"value":519},{"type":26,"tag":213,"props":1528,"children":1529},{},[1530],{"type":26,"tag":49,"props":1531,"children":1532},{"href":527},[1533],{"type":31,"value":530},{"type":26,"tag":213,"props":1535,"children":1536},{},[1537],{"type":26,"tag":49,"props":1538,"children":1539},{"href":538},[1540],{"type":31,"value":541},{"type":26,"tag":213,"props":1542,"children":1543},{},[1544,1546],{"type":31,"value":1545},"如果你更关心“网页制作落地”：看这篇 ",{"type":26,"tag":49,"props":1547,"children":1549},{"href":1548},"/topics/practical-tips/htmlpage-quick-landing-page",[1550],{"type":31,"value":1551},"3 分钟用 HTMLPAGE 做落地页",{"title":7,"searchDepth":410,"depth":410,"links":1553},[1554,1555,1556,1568,1569,1572,1577],{"id":548,"depth":413,"text":551},{"id":623,"depth":413,"text":626},{"id":864,"depth":413,"text":867,"children":1557},[1558,1559,1560,1561,1562,1563,1564,1565,1566,1567],{"id":871,"depth":410,"text":874},{"id":930,"depth":410,"text":933},{"id":1000,"depth":410,"text":1003},{"id":1056,"depth":410,"text":1059},{"id":1096,"depth":410,"text":1099},{"id":1135,"depth":410,"text":1138},{"id":1154,"depth":410,"text":1157},{"id":1196,"depth":410,"text":1199},{"id":1231,"depth":410,"text":1234},{"id":1248,"depth":410,"text":1251},{"id":1305,"depth":413,"text":1308},{"id":1375,"depth":413,"text":1378,"children":1570},[1571],{"id":1381,"depth":410,"text":1384},{"id":1471,"depth":413,"text":1474,"children":1573},[1574,1575,1576],{"id":1477,"depth":410,"text":1480},{"id":1488,"depth":410,"text":1491},{"id":1499,"depth":410,"text":1502},{"id":1513,"depth":413,"text":1516},"content:topics:ai:cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet",{"_path":1582,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1583,"description":1584,"date":1585,"topic":5,"author":11,"tags":1586,"image":1590,"imageAlt":1591,"pexelsPhotoId":1592,"pexelsUrl":1593,"readingTime":1594,"body":1595,"_type":419,"_id":2528,"_source":421,"_file":2529,"_stem":2530,"_extension":424},"/topics/ai/cursor-vs-copilot-vscode-workflow","Cursor vs GitHub Copilot vs VS Code：怎么选、怎么搭配、怎么把风险关在笼子里","用“任务类型×风险×验收成本”的选择矩阵解释 Cursor/Copilot/VS Code 的差异，并给出一套可落地的协作工作流（范围闸门、最小回归集、回滚策略）。","2026-03-01",[432,1587,435,1588,1589],"GitHub Copilot","AI 编程","工作流","/images/topics/ai/cursor-vs-copilot-vscode-workflow.jpg","团队在电脑前进行协作讨论",1181371,"https://www.pexels.com/photo/man-wearing-blue-dress-shirt-1181371/",15,{"type":23,"children":1596,"toc":2506},[1597,1602,1607,1625,1630,1648,1651,1657,1662,1693,1698,1701,1707,1715,1919,1927,1940,1943,1949,1955,1968,1973,1986,1992,1997,2030,2036,2041,2059,2062,2068,2073,2079,2084,2117,2123,2136,2141,2154,2160,2172,2178,2183,2196,2201,2204,2210,2215,2336,2339,2345,2355,2364,2382,2391,2399,2408,2426,2429,2435,2441,2446,2452,2457,2460,2465],{"type":26,"tag":27,"props":1598,"children":1599},{},[1600],{"type":31,"value":1601},"“Cursor 和 Copilot 到底有什么区别？”",{"type":26,"tag":27,"props":1603,"children":1604},{},[1605],{"type":31,"value":1606},"这个问题问得越早越好，因为你一旦把工具选错，后面所有痛苦都不是“提示词不够好”，而是：",{"type":26,"tag":209,"props":1608,"children":1609},{},[1610,1615,1620],{"type":26,"tag":213,"props":1611,"children":1612},{},[1613],{"type":31,"value":1614},"改动不可控（范围漂移、改错文件）",{"type":26,"tag":213,"props":1616,"children":1617},{},[1618],{"type":31,"value":1619},"验收成本爆炸（不知道要测什么）",{"type":26,"tag":213,"props":1621,"children":1622},{},[1623],{"type":31,"value":1624},"团队协作崩盘（没有闸门、没有回滚）",{"type":26,"tag":27,"props":1626,"children":1627},{},[1628],{"type":31,"value":1629},"这篇文章用一张选择矩阵 + 一套可执行工作流，帮你做到两件事：",{"type":26,"tag":473,"props":1631,"children":1632},{},[1633,1638],{"type":26,"tag":213,"props":1634,"children":1635},{},[1636],{"type":31,"value":1637},"知道什么时候用 Cursor、什么时候用 Copilot、什么时候“纯 VS Code 更快”",{"type":26,"tag":213,"props":1639,"children":1640},{},[1641,1643],{"type":31,"value":1642},"就算用 AI，也能把风险关在笼子里：",{"type":26,"tag":482,"props":1644,"children":1645},{},[1646],{"type":31,"value":1647},"可审查、可验证、可回滚",{"type":26,"tag":543,"props":1649,"children":1650},{},[],{"type":26,"tag":81,"props":1652,"children":1654},{"id":1653},"结论先说三者不是互斥而是分工",[1655],{"type":31,"value":1656},"结论先说：三者不是互斥，而是分工",{"type":26,"tag":27,"props":1658,"children":1659},{},[1660],{"type":31,"value":1661},"你可以把它们看成三层能力：",{"type":26,"tag":209,"props":1663,"children":1664},{},[1665,1674,1684],{"type":26,"tag":213,"props":1666,"children":1667},{},[1668,1672],{"type":26,"tag":482,"props":1669,"children":1670},{},[1671],{"type":31,"value":435},{"type":31,"value":1673},"：编辑器与生态（调试、插件、任务、终端、语言服务）",{"type":26,"tag":213,"props":1675,"children":1676},{},[1677,1682],{"type":26,"tag":482,"props":1678,"children":1679},{},[1680],{"type":31,"value":1681},"Copilot",{"type":31,"value":1683},"：代码补全与局部建议（“我正在写这一行/这一段”）",{"type":26,"tag":213,"props":1685,"children":1686},{},[1687,1691],{"type":26,"tag":482,"props":1688,"children":1689},{},[1690],{"type":31,"value":432},{"type":31,"value":1692},"：以项目为单位的 AI 协作（对话、索引、多文件编辑、规则）",{"type":26,"tag":27,"props":1694,"children":1695},{},[1696],{"type":31,"value":1697},"最常见的误区是：把“局部补全能力”当作“能做架构与多文件落地”。",{"type":26,"tag":543,"props":1699,"children":1700},{},[],{"type":26,"tag":81,"props":1702,"children":1704},{"id":1703},"选择矩阵按任务类型选工具不是按偏好",[1705],{"type":31,"value":1706},"选择矩阵：按任务类型选工具（不是按偏好）",{"type":26,"tag":851,"props":1708,"children":1709},{},[1710],{"type":26,"tag":27,"props":1711,"children":1712},{},[1713],{"type":31,"value":1714},"你只要把自己的任务放进表格，就能得到推荐路径。",{"type":26,"tag":88,"props":1716,"children":1717},{},[1718,1750],{"type":26,"tag":92,"props":1719,"children":1720},{},[1721],{"type":26,"tag":96,"props":1722,"children":1723},{},[1724,1729,1735,1740,1745],{"type":26,"tag":100,"props":1725,"children":1726},{},[1727],{"type":31,"value":1728},"任务类型",{"type":26,"tag":100,"props":1730,"children":1732},{"align":1731},"right",[1733],{"type":31,"value":1734},"风险",{"type":26,"tag":100,"props":1736,"children":1737},{"align":1731},[1738],{"type":31,"value":1739},"验收成本",{"type":26,"tag":100,"props":1741,"children":1742},{},[1743],{"type":31,"value":1744},"更推荐",{"type":26,"tag":100,"props":1746,"children":1747},{},[1748],{"type":31,"value":1749},"为什么",{"type":26,"tag":116,"props":1751,"children":1752},{},[1753,1780,1813,1839,1866,1893],{"type":26,"tag":96,"props":1754,"children":1755},{},[1756,1761,1766,1770,1775],{"type":26,"tag":123,"props":1757,"children":1758},{},[1759],{"type":31,"value":1760},"写一段代码/补一个 if",{"type":26,"tag":123,"props":1762,"children":1763},{"align":1731},[1764],{"type":31,"value":1765},"低",{"type":26,"tag":123,"props":1767,"children":1768},{"align":1731},[1769],{"type":31,"value":1765},{"type":26,"tag":123,"props":1771,"children":1772},{},[1773],{"type":31,"value":1774},"Copilot / Cursor 内联编辑",{"type":26,"tag":123,"props":1776,"children":1777},{},[1778],{"type":31,"value":1779},"局部建议足够，成本最低",{"type":26,"tag":96,"props":1781,"children":1782},{},[1783,1788,1793,1797,1808],{"type":26,"tag":123,"props":1784,"children":1785},{},[1786],{"type":31,"value":1787},"重构一个函数",{"type":26,"tag":123,"props":1789,"children":1790},{"align":1731},[1791],{"type":31,"value":1792},"中",{"type":26,"tag":123,"props":1794,"children":1795},{"align":1731},[1796],{"type":31,"value":1792},{"type":26,"tag":123,"props":1798,"children":1799},{},[1800,1802],{"type":31,"value":1801},"Cursor ",{"type":26,"tag":219,"props":1803,"children":1805},{"className":1804},[],[1806],{"type":31,"value":1807},"内联编辑",{"type":26,"tag":123,"props":1809,"children":1810},{},[1811],{"type":31,"value":1812},"需要解释、需要约束输出",{"type":26,"tag":96,"props":1814,"children":1815},{},[1816,1821,1825,1829,1834],{"type":26,"tag":123,"props":1817,"children":1818},{},[1819],{"type":31,"value":1820},"改一个组件 + 样式",{"type":26,"tag":123,"props":1822,"children":1823},{"align":1731},[1824],{"type":31,"value":1792},{"type":26,"tag":123,"props":1826,"children":1827},{"align":1731},[1828],{"type":31,"value":1792},{"type":26,"tag":123,"props":1830,"children":1831},{},[1832],{"type":31,"value":1833},"Cursor（小范围多文件）",{"type":26,"tag":123,"props":1835,"children":1836},{},[1837],{"type":31,"value":1838},"需要同时改模板与样式",{"type":26,"tag":96,"props":1840,"children":1841},{},[1842,1847,1852,1856,1861],{"type":26,"tag":123,"props":1843,"children":1844},{},[1845],{"type":31,"value":1846},"改 3~5 个文件（组件+api+测试）",{"type":26,"tag":123,"props":1848,"children":1849},{"align":1731},[1850],{"type":31,"value":1851},"高",{"type":26,"tag":123,"props":1853,"children":1854},{"align":1731},[1855],{"type":31,"value":1851},{"type":26,"tag":123,"props":1857,"children":1858},{},[1859],{"type":31,"value":1860},"Cursor Composer + 闸门",{"type":26,"tag":123,"props":1862,"children":1863},{},[1864],{"type":31,"value":1865},"需要计划、验收、回滚",{"type":26,"tag":96,"props":1867,"children":1868},{},[1869,1874,1879,1883,1888],{"type":26,"tag":123,"props":1870,"children":1871},{},[1872],{"type":31,"value":1873},"重写一段架构/引入新依赖",{"type":26,"tag":123,"props":1875,"children":1876},{"align":1731},[1877],{"type":31,"value":1878},"很高",{"type":26,"tag":123,"props":1880,"children":1881},{"align":1731},[1882],{"type":31,"value":1878},{"type":26,"tag":123,"props":1884,"children":1885},{},[1886],{"type":31,"value":1887},"先人脑设计 + VS Code 实现",{"type":26,"tag":123,"props":1889,"children":1890},{},[1891],{"type":31,"value":1892},"AI 易发散，最好先设计再执行",{"type":26,"tag":96,"props":1894,"children":1895},{},[1896,1901,1905,1909,1914],{"type":26,"tag":123,"props":1897,"children":1898},{},[1899],{"type":31,"value":1900},"排查线上问题/性能抖动",{"type":26,"tag":123,"props":1902,"children":1903},{"align":1731},[1904],{"type":31,"value":1851},{"type":26,"tag":123,"props":1906,"children":1907},{"align":1731},[1908],{"type":31,"value":1878},{"type":26,"tag":123,"props":1910,"children":1911},{},[1912],{"type":31,"value":1913},"VS Code + 工具链优先，AI 辅助归纳",{"type":26,"tag":123,"props":1915,"children":1916},{},[1917],{"type":31,"value":1918},"需要证据，不要“猜”",{"type":26,"tag":27,"props":1920,"children":1921},{},[1922],{"type":26,"tag":482,"props":1923,"children":1924},{},[1925],{"type":31,"value":1926},"一句话规则：",{"type":26,"tag":209,"props":1928,"children":1929},{},[1930,1935],{"type":26,"tag":213,"props":1931,"children":1932},{},[1933],{"type":31,"value":1934},"当你的改动可以用“10 条最小回归集”覆盖时，用 Cursor。",{"type":26,"tag":213,"props":1936,"children":1937},{},[1938],{"type":31,"value":1939},"当你的改动无法验证时，先别让 AI 动手。",{"type":26,"tag":543,"props":1941,"children":1942},{},[],{"type":26,"tag":81,"props":1944,"children":1946},{"id":1945},"差异拆解到底差在哪里",[1947],{"type":31,"value":1948},"差异拆解：到底差在哪里？",{"type":26,"tag":869,"props":1950,"children":1952},{"id":1951},"_1-上下文来源补全-vs-项目索引",[1953],{"type":31,"value":1954},"1) 上下文来源：补全 vs 项目索引",{"type":26,"tag":209,"props":1956,"children":1957},{},[1958,1963],{"type":26,"tag":213,"props":1959,"children":1960},{},[1961],{"type":31,"value":1962},"Copilot 更擅长：你正在写的这几行、当前文件的局部上下文",{"type":26,"tag":213,"props":1964,"children":1965},{},[1966],{"type":31,"value":1967},"Cursor 更擅长：项目级索引 + 多文件关联理解",{"type":26,"tag":27,"props":1969,"children":1970},{},[1971],{"type":31,"value":1972},"因此：",{"type":26,"tag":209,"props":1974,"children":1975},{},[1976,1981],{"type":26,"tag":213,"props":1977,"children":1978},{},[1979],{"type":31,"value":1980},"写代码片段：Copilot 速度更快",{"type":26,"tag":213,"props":1982,"children":1983},{},[1984],{"type":31,"value":1985},"改一坨工程：Cursor 更有胜算（但更需要闸门）",{"type":26,"tag":869,"props":1987,"children":1989},{"id":1988},"_2-交互方式你能不能控制范围",[1990],{"type":31,"value":1991},"2) 交互方式：你能不能控制范围",{"type":26,"tag":27,"props":1993,"children":1994},{},[1995],{"type":31,"value":1996},"范围控制的三个层级：",{"type":26,"tag":473,"props":1998,"children":1999},{},[2000,2010,2020],{"type":26,"tag":213,"props":2001,"children":2002},{},[2003,2005],{"type":31,"value":2004},"内联编辑（选中一段）→ ",{"type":26,"tag":482,"props":2006,"children":2007},{},[2008],{"type":31,"value":2009},"最强范围控制",{"type":26,"tag":213,"props":2011,"children":2012},{},[2013,2015],{"type":31,"value":2014},"Composer 多文件（先列文件清单）→ ",{"type":26,"tag":482,"props":2016,"children":2017},{},[2018],{"type":31,"value":2019},"可控但要闸门",{"type":26,"tag":213,"props":2021,"children":2022},{},[2023,2025],{"type":31,"value":2024},"大对话（泛目标）→ ",{"type":26,"tag":482,"props":2026,"children":2027},{},[2028],{"type":31,"value":2029},"最容易跑偏",{"type":26,"tag":869,"props":2031,"children":2033},{"id":2032},"_3-输出形态建议-vs-可审查的变更",[2034],{"type":31,"value":2035},"3) 输出形态：建议 vs 可审查的变更",{"type":26,"tag":27,"props":2037,"children":2038},{},[2039],{"type":31,"value":2040},"最好的 AI 输出不是“给我一段代码”，而是：",{"type":26,"tag":209,"props":2042,"children":2043},{},[2044,2049,2054],{"type":26,"tag":213,"props":2045,"children":2046},{},[2047],{"type":31,"value":2048},"改动摘要（做了什么）",{"type":26,"tag":213,"props":2050,"children":2051},{},[2052],{"type":31,"value":2053},"diff 级别的可审查变更",{"type":26,"tag":213,"props":2055,"children":2056},{},[2057],{"type":31,"value":2058},"验收步骤与回滚方案",{"type":26,"tag":543,"props":2060,"children":2061},{},[],{"type":26,"tag":81,"props":2063,"children":2065},{"id":2064},"一套可落地的团队工作流把风险关住",[2066],{"type":31,"value":2067},"一套可落地的团队工作流（把风险关住）",{"type":26,"tag":27,"props":2069,"children":2070},{},[2071],{"type":31,"value":2072},"下面这套流程，你可以直接写进团队规范：",{"type":26,"tag":869,"props":2074,"children":2076},{"id":2075},"step-1先写任务单geo-友好结构",[2077],{"type":31,"value":2078},"Step 1：先写任务单（GEO 友好结构）",{"type":26,"tag":27,"props":2080,"children":2081},{},[2082],{"type":31,"value":2083},"模板：",{"type":26,"tag":209,"props":2085,"children":2086},{},[2087,2092,2097,2102,2107,2112],{"type":26,"tag":213,"props":2088,"children":2089},{},[2090],{"type":31,"value":2091},"目标：……",{"type":26,"tag":213,"props":2093,"children":2094},{},[2095],{"type":31,"value":2096},"背景：……",{"type":26,"tag":213,"props":2098,"children":2099},{},[2100],{"type":31,"value":2101},"范围：只改这些文件/模块：……",{"type":26,"tag":213,"props":2103,"children":2104},{},[2105],{"type":31,"value":2106},"非目标：不做哪些事情：……",{"type":26,"tag":213,"props":2108,"children":2109},{},[2110],{"type":31,"value":2111},"验收：如何判断完成（可测试/可观察）：……",{"type":26,"tag":213,"props":2113,"children":2114},{},[2115],{"type":31,"value":2116},"回滚：如果失败怎么撤回：……",{"type":26,"tag":869,"props":2118,"children":2120},{"id":2119},"step-2用范围闸门限制-ai",[2121],{"type":31,"value":2122},"Step 2：用“范围闸门”限制 AI",{"type":26,"tag":209,"props":2124,"children":2125},{},[2126,2131],{"type":26,"tag":213,"props":2127,"children":2128},{},[2129],{"type":31,"value":2130},"单文件改动：优先 Cursor 内联编辑",{"type":26,"tag":213,"props":2132,"children":2133},{},[2134],{"type":31,"value":2135},"多文件改动：必须先让 AI 输出“文件清单（≤5）+ 每步验收”",{"type":26,"tag":27,"props":2137,"children":2138},{},[2139],{"type":31,"value":2140},"如果 AI 输出的文件清单超过 5 个：",{"type":26,"tag":209,"props":2142,"children":2143},{},[2144,2149],{"type":26,"tag":213,"props":2145,"children":2146},{},[2147],{"type":31,"value":2148},"不是它太强，是任务太大",{"type":26,"tag":213,"props":2150,"children":2151},{},[2152],{"type":31,"value":2153},"你需要拆任务，而不是继续推进",{"type":26,"tag":869,"props":2155,"children":2157},{"id":2156},"step-3最小回归集10-条",[2158],{"type":31,"value":2159},"Step 3：最小回归集（10 条）",{"type":26,"tag":27,"props":2161,"children":2162},{},[2163,2165,2170],{"type":31,"value":2164},"每次接受改动前必须跑（可参考：",{"type":26,"tag":49,"props":2166,"children":2167},{"href":427},[2168],{"type":31,"value":2169},"Cursor 快捷键速查表",{"type":31,"value":2171}," 里的清单）。",{"type":26,"tag":869,"props":2173,"children":2175},{"id":2174},"step-4回滚策略不用等事故才想",[2176],{"type":31,"value":2177},"Step 4：回滚策略（不用等事故才想）",{"type":26,"tag":27,"props":2179,"children":2180},{},[2181],{"type":31,"value":2182},"回滚最常见的两条路：",{"type":26,"tag":209,"props":2184,"children":2185},{},[2186,2191],{"type":26,"tag":213,"props":2187,"children":2188},{},[2189],{"type":31,"value":2190},"git 回滚 commit",{"type":26,"tag":213,"props":2192,"children":2193},{},[2194],{"type":31,"value":2195},"对关键文件保留前版本（至少能快速恢复）",{"type":26,"tag":27,"props":2197,"children":2198},{},[2199],{"type":31,"value":2200},"你需要做到：任何一轮 AI 改动都能在 5 分钟内撤回。",{"type":26,"tag":543,"props":2202,"children":2203},{},[],{"type":26,"tag":81,"props":2205,"children":2207},{"id":2206},"必交付物对比矩阵可复制",[2208],{"type":31,"value":2209},"必交付物：对比矩阵（可复制）",{"type":26,"tag":27,"props":2211,"children":2212},{},[2213],{"type":31,"value":2214},"下面这张表可以直接贴到你的团队 wiki：",{"type":26,"tag":88,"props":2216,"children":2217},{},[2218,2241],{"type":26,"tag":92,"props":2219,"children":2220},{},[2221],{"type":26,"tag":96,"props":2222,"children":2223},{},[2224,2229,2233,2237],{"type":26,"tag":100,"props":2225,"children":2226},{},[2227],{"type":31,"value":2228},"维度",{"type":26,"tag":100,"props":2230,"children":2231},{},[2232],{"type":31,"value":435},{"type":26,"tag":100,"props":2234,"children":2235},{},[2236],{"type":31,"value":1681},{"type":26,"tag":100,"props":2238,"children":2239},{},[2240],{"type":31,"value":432},{"type":26,"tag":116,"props":2242,"children":2243},{},[2244,2267,2290,2313],{"type":26,"tag":96,"props":2245,"children":2246},{},[2247,2252,2257,2262],{"type":26,"tag":123,"props":2248,"children":2249},{},[2250],{"type":31,"value":2251},"强项",{"type":26,"tag":123,"props":2253,"children":2254},{},[2255],{"type":31,"value":2256},"工具链、调试、生态",{"type":26,"tag":123,"props":2258,"children":2259},{},[2260],{"type":31,"value":2261},"补全与局部建议",{"type":26,"tag":123,"props":2263,"children":2264},{},[2265],{"type":31,"value":2266},"项目上下文、多文件落地",{"type":26,"tag":96,"props":2268,"children":2269},{},[2270,2275,2280,2285],{"type":26,"tag":123,"props":2271,"children":2272},{},[2273],{"type":31,"value":2274},"适合任务",{"type":26,"tag":123,"props":2276,"children":2277},{},[2278],{"type":31,"value":2279},"排查、调试、验证",{"type":26,"tag":123,"props":2281,"children":2282},{},[2283],{"type":31,"value":2284},"写一段、补一段",{"type":26,"tag":123,"props":2286,"children":2287},{},[2288],{"type":31,"value":2289},"改一段、改一组文件",{"type":26,"tag":96,"props":2291,"children":2292},{},[2293,2298,2303,2308],{"type":26,"tag":123,"props":2294,"children":2295},{},[2296],{"type":31,"value":2297},"最大风险",{"type":26,"tag":123,"props":2299,"children":2300},{},[2301],{"type":31,"value":2302},"无",{"type":26,"tag":123,"props":2304,"children":2305},{},[2306],{"type":31,"value":2307},"过度依赖建议",{"type":26,"tag":123,"props":2309,"children":2310},{},[2311],{"type":31,"value":2312},"范围漂移、多文件回归",{"type":26,"tag":96,"props":2314,"children":2315},{},[2316,2321,2326,2331],{"type":26,"tag":123,"props":2317,"children":2318},{},[2319],{"type":31,"value":2320},"必须搭配",{"type":26,"tag":123,"props":2322,"children":2323},{},[2324],{"type":31,"value":2325},"规范与检查",{"type":26,"tag":123,"props":2327,"children":2328},{},[2329],{"type":31,"value":2330},"代码评审",{"type":26,"tag":123,"props":2332,"children":2333},{},[2334],{"type":31,"value":2335},"闸门 + 最小回归集",{"type":26,"tag":543,"props":2337,"children":2338},{},[],{"type":26,"tag":81,"props":2340,"children":2342},{"id":2341},"失败案例多文件看似成功实际埋雷",[2343],{"type":31,"value":2344},"失败案例：多文件“看似成功”，实际埋雷",{"type":26,"tag":27,"props":2346,"children":2347},{},[2348,2353],{"type":26,"tag":482,"props":2349,"children":2350},{},[2351],{"type":31,"value":2352},"现象",{"type":31,"value":2354},"：AI 说“我已经把所有地方都改了”，你也接受了，结果上线后 404 或样式错位。",{"type":26,"tag":27,"props":2356,"children":2357},{},[2358,2363],{"type":26,"tag":482,"props":2359,"children":2360},{},[2361],{"type":31,"value":2362},"复现条件",{"type":31,"value":1175},{"type":26,"tag":209,"props":2365,"children":2366},{},[2367,2372,2377],{"type":26,"tag":213,"props":2368,"children":2369},{},[2370],{"type":31,"value":2371},"你给了一个大目标（例如“把所有按钮统一成主题色”）",{"type":26,"tag":213,"props":2373,"children":2374},{},[2375],{"type":31,"value":2376},"它改了组件、样式、甚至主题配置",{"type":26,"tag":213,"props":2378,"children":2379},{},[2380],{"type":31,"value":2381},"你没有按页面模块走一遍，直接合并",{"type":26,"tag":27,"props":2383,"children":2384},{},[2385,2390],{"type":26,"tag":482,"props":2386,"children":2387},{},[2388],{"type":31,"value":2389},"根因",{"type":31,"value":1175},{"type":26,"tag":209,"props":2392,"children":2393},{},[2394],{"type":26,"tag":213,"props":2395,"children":2396},{},[2397],{"type":31,"value":2398},"改动范围大，但验收仍按“小改动”的方式做（只看一处）",{"type":26,"tag":27,"props":2400,"children":2401},{},[2402,2407],{"type":26,"tag":482,"props":2403,"children":2404},{},[2405],{"type":31,"value":2406},"修复",{"type":31,"value":1175},{"type":26,"tag":209,"props":2409,"children":2410},{},[2411,2416,2421],{"type":26,"tag":213,"props":2412,"children":2413},{},[2414],{"type":31,"value":2415},"强制把任务拆成“模块级目标”：Hero、Feature、Pricing、Form",{"type":26,"tag":213,"props":2417,"children":2418},{},[2419],{"type":31,"value":2420},"每个模块改完就验收一次",{"type":26,"tag":213,"props":2422,"children":2423},{},[2424],{"type":31,"value":2425},"验收通过再进入下一个模块",{"type":26,"tag":543,"props":2427,"children":2428},{},[],{"type":26,"tag":81,"props":2430,"children":2432},{"id":2431},"faq",[2433],{"type":31,"value":2434},"FAQ",{"type":26,"tag":869,"props":2436,"children":2438},{"id":2437},"q1我已经用了-cursor为什么还要用-copilot",[2439],{"type":31,"value":2440},"Q1：我已经用了 Cursor，为什么还要用 Copilot？",{"type":26,"tag":27,"props":2442,"children":2443},{},[2444],{"type":31,"value":2445},"因为“补全”这种高频低风险任务，Copilot 的交互成本更低；Cursor 更适合需要解释与约束的改动。",{"type":26,"tag":869,"props":2447,"children":2449},{"id":2448},"q2什么时候应该完全不用-ai",[2450],{"type":31,"value":2451},"Q2：什么时候应该完全不用 AI？",{"type":26,"tag":27,"props":2453,"children":2454},{},[2455],{"type":31,"value":2456},"当你无法定义验收标准时。比如“更高级”“更好看”这种目标，先做信息结构与设计规则，再让 AI 帮你落地局部。",{"type":26,"tag":543,"props":2458,"children":2459},{},[],{"type":26,"tag":81,"props":2461,"children":2463},{"id":2462},"延伸阅读",[2464],{"type":31,"value":2462},{"type":26,"tag":209,"props":2466,"children":2467},{},[2468,2477,2486,2495],{"type":26,"tag":213,"props":2469,"children":2470},{},[2471,2473],{"type":31,"value":2472},"Cursor 入门：",{"type":26,"tag":49,"props":2474,"children":2475},{"href":516},[2476],{"type":31,"value":519},{"type":26,"tag":213,"props":2478,"children":2479},{},[2480,2482],{"type":31,"value":2481},"Cursor 进阶：",{"type":26,"tag":49,"props":2483,"children":2484},{"href":527},[2485],{"type":31,"value":530},{"type":26,"tag":213,"props":2487,"children":2488},{},[2489,2491],{"type":31,"value":2490},"规则配置：",{"type":26,"tag":49,"props":2492,"children":2493},{"href":538},[2494],{"type":31,"value":541},{"type":26,"tag":213,"props":2496,"children":2497},{},[2498,2500],{"type":31,"value":2499},"Copilot 实战：",{"type":26,"tag":49,"props":2501,"children":2503},{"href":2502},"/topics/ai/github-copilot-tips",[2504],{"type":31,"value":2505},"GitHub Copilot 实用技巧",{"title":7,"searchDepth":410,"depth":410,"links":2507},[2508,2509,2510,2515,2521,2522,2523,2527],{"id":1653,"depth":413,"text":1656},{"id":1703,"depth":413,"text":1706},{"id":1945,"depth":413,"text":1948,"children":2511},[2512,2513,2514],{"id":1951,"depth":410,"text":1954},{"id":1988,"depth":410,"text":1991},{"id":2032,"depth":410,"text":2035},{"id":2064,"depth":413,"text":2067,"children":2516},[2517,2518,2519,2520],{"id":2075,"depth":410,"text":2078},{"id":2119,"depth":410,"text":2122},{"id":2156,"depth":410,"text":2159},{"id":2174,"depth":410,"text":2177},{"id":2206,"depth":413,"text":2209},{"id":2341,"depth":413,"text":2344},{"id":2431,"depth":413,"text":2434,"children":2524},[2525,2526],{"id":2437,"depth":410,"text":2440},{"id":2448,"depth":410,"text":2451},{"id":2462,"depth":413,"text":2462},"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":2532,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2533,"description":2534,"date":2535,"topic":5,"author":11,"tags":2536,"image":2541,"featured":2542,"readingTime":1594,"body":2543,"_type":419,"_id":3192,"_source":421,"_file":3193,"_stem":3194,"_extension":424},"/topics/ai/ai-debugging-troubleshooting-guide","AI 辅助调试与问题排查：让 AI 成为你的调试搭档","深入探讨如何利用 AI 工具提升调试效率，包括错误信息分析、日志解读、性能问题定位、复杂 bug 排查等实战场景，构建 AI 驱动的调试工作流。","2026-01-18",[2537,2538,2539,436,2540],"AI 调试","问题排查","Debug","错误处理","/images/topics/ai/ai-debugging-guide.jpg",true,{"type":23,"children":2544,"toc":3163},[2545,2551,2557,2562,2567,2572,2578,2584,2589,2597,2625,2633,2656,2662,2673,2682,2690,2698,2731,2739,2769,2782,2790,2795,2803,2811,2822,2828,2836,2847,2855,2864,2870,2876,2881,2890,2896,2901,2910,2916,2922,2931,2937,2946,2952,2963,2969,2975,2984,2990,2999,3005,3011,3019,3025,3034,3042,3050,3053,3059,3064,3083,3095,3098,3104,3109,3118,3123,3126,3132,3137,3155],{"type":26,"tag":81,"props":2546,"children":2548},{"id":2547},"ai-辅助调试与问题排查",[2549],{"type":31,"value":2550},"AI 辅助调试与问题排查",{"type":26,"tag":81,"props":2552,"children":2554},{"id":2553},"引言调试的痛与-ai-的解药",[2555],{"type":31,"value":2556},"引言：调试的痛与 AI 的解药",{"type":26,"tag":27,"props":2558,"children":2559},{},[2560],{"type":31,"value":2561},"调试是每个程序员的日常，也是最消耗时间和精力的工作之一。我们都有过这样的经历：盯着一个莫名其妙的错误信息，翻遍 Stack Overflow，尝试各种方案，几个小时后才发现是一个愚蠢的拼写错误。",{"type":26,"tag":27,"props":2563,"children":2564},{},[2565],{"type":31,"value":2566},"AI 工具的出现，正在改变调试的方式。不是替代你的思考，而是加速你的分析过程——帮你快速理解错误、缩小排查范围、验证假设。",{"type":26,"tag":27,"props":2568,"children":2569},{},[2570],{"type":31,"value":2571},"这篇文章分享我在实际项目中使用 AI 辅助调试的经验和方法论。",{"type":26,"tag":81,"props":2573,"children":2575},{"id":2574},"第一部分建立-ai-调试的思维模型",[2576],{"type":31,"value":2577},"第一部分：建立 AI 调试的思维模型",{"type":26,"tag":869,"props":2579,"children":2581},{"id":2580},"_11-ai-在调试中的角色",[2582],{"type":31,"value":2583},"1.1 AI 在调试中的角色",{"type":26,"tag":27,"props":2585,"children":2586},{},[2587],{"type":31,"value":2588},"把 AI 想象成一个经验丰富但不了解你项目的高级工程师。它：",{"type":26,"tag":27,"props":2590,"children":2591},{},[2592],{"type":26,"tag":482,"props":2593,"children":2594},{},[2595],{"type":31,"value":2596},"擅长的事情：",{"type":26,"tag":209,"props":2598,"children":2599},{},[2600,2605,2610,2615,2620],{"type":26,"tag":213,"props":2601,"children":2602},{},[2603],{"type":31,"value":2604},"解读错误信息的含义",{"type":26,"tag":213,"props":2606,"children":2607},{},[2608],{"type":31,"value":2609},"提供可能的原因列表",{"type":26,"tag":213,"props":2611,"children":2612},{},[2613],{"type":31,"value":2614},"给出排查方向建议",{"type":26,"tag":213,"props":2616,"children":2617},{},[2618],{"type":31,"value":2619},"解释复杂的技术概念",{"type":26,"tag":213,"props":2621,"children":2622},{},[2623],{"type":31,"value":2624},"生成调试代码片段",{"type":26,"tag":27,"props":2626,"children":2627},{},[2628],{"type":26,"tag":482,"props":2629,"children":2630},{},[2631],{"type":31,"value":2632},"不擅长的事情：",{"type":26,"tag":209,"props":2634,"children":2635},{},[2636,2641,2646,2651],{"type":26,"tag":213,"props":2637,"children":2638},{},[2639],{"type":31,"value":2640},"了解你的业务逻辑",{"type":26,"tag":213,"props":2642,"children":2643},{},[2644],{"type":31,"value":2645},"知道你的代码历史",{"type":26,"tag":213,"props":2647,"children":2648},{},[2649],{"type":31,"value":2650},"理解项目特定的约定",{"type":26,"tag":213,"props":2652,"children":2653},{},[2654],{"type":31,"value":2655},"做出架构级判断",{"type":26,"tag":869,"props":2657,"children":2659},{"id":2658},"_12-有效提问的结构",[2660],{"type":31,"value":2661},"1.2 有效提问的结构",{"type":26,"tag":2663,"props":2664,"children":2668},"pre",{"code":2665,"language":419,"meta":7,"className":2666},"## 高效的调试提问模板\n\n**问题描述**\n[简洁描述遇到的问题]\n\n**错误信息**\n",[2667],"language-markdown",[2669],{"type":26,"tag":219,"props":2670,"children":2671},{"__ignoreMap":7},[2672],{"type":31,"value":2665},{"type":26,"tag":27,"props":2674,"children":2675},{},[2676],{"type":26,"tag":2677,"props":2678,"children":2679},"span",{},[2680],{"type":31,"value":2681},"完整的错误信息，不要截断",{"type":26,"tag":2663,"props":2683,"children":2685},{"code":2684},"\n**相关代码**\n```javascript\n[精简但完整的相关代码]\n",[2686],{"type":26,"tag":219,"props":2687,"children":2688},{"__ignoreMap":7},[2689],{"type":31,"value":2684},{"type":26,"tag":27,"props":2691,"children":2692},{},[2693],{"type":26,"tag":482,"props":2694,"children":2695},{},[2696],{"type":31,"value":2697},"环境信息",{"type":26,"tag":209,"props":2699,"children":2700},{},[2701,2711,2721],{"type":26,"tag":213,"props":2702,"children":2703},{},[2704,2706],{"type":31,"value":2705},"运行环境：",{"type":26,"tag":2677,"props":2707,"children":2708},{},[2709],{"type":31,"value":2710},"Node 版本/浏览器版本",{"type":26,"tag":213,"props":2712,"children":2713},{},[2714,2716],{"type":31,"value":2715},"框架版本：",{"type":26,"tag":2677,"props":2717,"children":2718},{},[2719],{"type":31,"value":2720},"相关框架版本",{"type":26,"tag":213,"props":2722,"children":2723},{},[2724,2726],{"type":31,"value":2725},"操作系统：",{"type":26,"tag":2677,"props":2727,"children":2728},{},[2729],{"type":31,"value":2730},"如果相关",{"type":26,"tag":27,"props":2732,"children":2733},{},[2734],{"type":26,"tag":482,"props":2735,"children":2736},{},[2737],{"type":31,"value":2738},"已尝试的方案",{"type":26,"tag":209,"props":2740,"children":2741},{},[2742,2756],{"type":26,"tag":213,"props":2743,"children":2744},{},[2745,2750,2751],{"type":26,"tag":2677,"props":2746,"children":2747},{},[2748],{"type":31,"value":2749},"方案1",{"type":31,"value":1175},{"type":26,"tag":2677,"props":2752,"children":2753},{},[2754],{"type":31,"value":2755},"结果",{"type":26,"tag":213,"props":2757,"children":2758},{},[2759,2764,2765],{"type":26,"tag":2677,"props":2760,"children":2761},{},[2762],{"type":31,"value":2763},"方案2",{"type":31,"value":1175},{"type":26,"tag":2677,"props":2766,"children":2767},{},[2768],{"type":31,"value":2755},{"type":26,"tag":27,"props":2770,"children":2771},{},[2772,2777],{"type":26,"tag":482,"props":2773,"children":2774},{},[2775],{"type":31,"value":2776},"期望的结果",{"type":26,"tag":2677,"props":2778,"children":2779},{},[2780],{"type":31,"value":2781},"描述期望的行为",{"type":26,"tag":2663,"props":2783,"children":2785},{"code":2784},"\n### 1.3 分级调试策略\n\n",[2786],{"type":26,"tag":219,"props":2787,"children":2788},{"__ignoreMap":7},[2789],{"type":31,"value":2784},{"type":26,"tag":27,"props":2791,"children":2792},{},[2793],{"type":31,"value":2794},"┌───────────────────────────────────────────────────────────┐\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":26,"tag":2663,"props":2796,"children":2798},{"code":2797},"\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",[2799],{"type":26,"tag":219,"props":2800,"children":2801},{"__ignoreMap":7},[2802],{"type":31,"value":2797},{"type":26,"tag":27,"props":2804,"children":2805},{},[2806],{"type":26,"tag":482,"props":2807,"children":2808},{},[2809],{"type":31,"value":2810},"场景 2：Vue 响应式警告",{"type":26,"tag":2663,"props":2812,"children":2817},{"code":2813,"language":2814,"meta":7,"className":2815},"// 警告信息：\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",[2816],"language-typescript",[2818],{"type":26,"tag":219,"props":2819,"children":2820},{"__ignoreMap":7},[2821],{"type":31,"value":2813},{"type":26,"tag":869,"props":2823,"children":2825},{"id":2824},"_22-后端错误分析",[2826],{"type":31,"value":2827},"2.2 后端错误分析",{"type":26,"tag":27,"props":2829,"children":2830},{},[2831],{"type":26,"tag":482,"props":2832,"children":2833},{},[2834],{"type":31,"value":2835},"场景 1：Node.js 内存问题",{"type":26,"tag":2663,"props":2837,"children":2842},{"code":2838,"language":2839,"meta":7,"className":2840},"// 错误信息：\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",[2841],"language-javascript",[2843],{"type":26,"tag":219,"props":2844,"children":2845},{"__ignoreMap":7},[2846],{"type":31,"value":2838},{"type":26,"tag":27,"props":2848,"children":2849},{},[2850],{"type":26,"tag":482,"props":2851,"children":2852},{},[2853],{"type":31,"value":2854},"场景 2：数据库连接问题",{"type":26,"tag":2663,"props":2856,"children":2859},{"code":2857,"language":2814,"meta":7,"className":2858},"// 错误信息：\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",[2816],[2860],{"type":26,"tag":219,"props":2861,"children":2862},{"__ignoreMap":7},[2863],{"type":31,"value":2857},{"type":26,"tag":81,"props":2865,"children":2867},{"id":2866},"第三部分日志分析与问题定位",[2868],{"type":31,"value":2869},"第三部分：日志分析与问题定位",{"type":26,"tag":869,"props":2871,"children":2873},{"id":2872},"_31-结构化日志分析",[2874],{"type":31,"value":2875},"3.1 结构化日志分析",{"type":26,"tag":27,"props":2877,"children":2878},{},[2879],{"type":31,"value":2880},"当面对大量日志时，让 AI 帮你快速定位问题：",{"type":26,"tag":2663,"props":2882,"children":2885},{"code":2883,"language":2839,"meta":7,"className":2884},"// 提问示例：\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",[2841],[2886],{"type":26,"tag":219,"props":2887,"children":2888},{"__ignoreMap":7},[2889],{"type":31,"value":2883},{"type":26,"tag":869,"props":2891,"children":2893},{"id":2892},"_32-创建调试日志",[2894],{"type":31,"value":2895},"3.2 创建调试日志",{"type":26,"tag":27,"props":2897,"children":2898},{},[2899],{"type":31,"value":2900},"让 AI 帮你生成调试用的日志代码：",{"type":26,"tag":2663,"props":2902,"children":2905},{"code":2903,"language":2814,"meta":7,"className":2904},"// 请求：\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",[2816],[2906],{"type":26,"tag":219,"props":2907,"children":2908},{"__ignoreMap":7},[2909],{"type":31,"value":2903},{"type":26,"tag":81,"props":2911,"children":2913},{"id":2912},"第四部分性能问题排查",[2914],{"type":31,"value":2915},"第四部分：性能问题排查",{"type":26,"tag":869,"props":2917,"children":2919},{"id":2918},"_41-前端性能分析",[2920],{"type":31,"value":2921},"4.1 前端性能分析",{"type":26,"tag":2663,"props":2923,"children":2926},{"code":2924,"language":2814,"meta":7,"className":2925},"// 场景：页面加载慢，需要分析原因\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",[2816],[2927],{"type":26,"tag":219,"props":2928,"children":2929},{"__ignoreMap":7},[2930],{"type":31,"value":2924},{"type":26,"tag":869,"props":2932,"children":2934},{"id":2933},"_42-内存泄漏排查",[2935],{"type":31,"value":2936},"4.2 内存泄漏排查",{"type":26,"tag":2663,"props":2938,"children":2941},{"code":2939,"language":2814,"meta":7,"className":2940},"// 场景：应用运行一段时间后变卡\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",[2816],[2942],{"type":26,"tag":219,"props":2943,"children":2944},{"__ignoreMap":7},[2945],{"type":31,"value":2939},{"type":26,"tag":869,"props":2947,"children":2949},{"id":2948},"_43-数据库查询优化",[2950],{"type":31,"value":2951},"4.3 数据库查询优化",{"type":26,"tag":2663,"props":2953,"children":2958},{"code":2954,"language":2955,"meta":7,"className":2956},"-- 场景：查询很慢，让 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",[2957],"language-sql",[2959],{"type":26,"tag":219,"props":2960,"children":2961},{"__ignoreMap":7},[2962],{"type":31,"value":2954},{"type":26,"tag":81,"props":2964,"children":2966},{"id":2965},"第五部分复杂-bug-排查",[2967],{"type":31,"value":2968},"第五部分：复杂 Bug 排查",{"type":26,"tag":869,"props":2970,"children":2972},{"id":2971},"_51-竞态条件",[2973],{"type":31,"value":2974},"5.1 竞态条件",{"type":26,"tag":2663,"props":2976,"children":2979},{"code":2977,"language":2814,"meta":7,"className":2978},"// 场景：偶发的数据不一致问题\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",[2816],[2980],{"type":26,"tag":219,"props":2981,"children":2982},{"__ignoreMap":7},[2983],{"type":31,"value":2977},{"type":26,"tag":869,"props":2985,"children":2987},{"id":2986},"_52-分布式系统问题",[2988],{"type":31,"value":2989},"5.2 分布式系统问题",{"type":26,"tag":2663,"props":2991,"children":2994},{"code":2992,"language":2814,"meta":7,"className":2993},"// 场景：微服务间的数据不一致\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",[2816],[2995],{"type":26,"tag":219,"props":2996,"children":2997},{"__ignoreMap":7},[2998],{"type":31,"value":2992},{"type":26,"tag":81,"props":3000,"children":3002},{"id":3001},"第六部分ai-调试工作流",[3003],{"type":31,"value":3004},"第六部分：AI 调试工作流",{"type":26,"tag":869,"props":3006,"children":3008},{"id":3007},"_61-我的调试流程",[3009],{"type":31,"value":3010},"6.1 我的调试流程",{"type":26,"tag":2663,"props":3012,"children":3014},{"code":3013},"┌────────────────────────────────────────────────────────────┐\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",[3015],{"type":26,"tag":219,"props":3016,"children":3017},{"__ignoreMap":7},[3018],{"type":31,"value":3013},{"type":26,"tag":869,"props":3020,"children":3022},{"id":3021},"_62-调试对话模板",[3023],{"type":31,"value":3024},"6.2 调试对话模板",{"type":26,"tag":2663,"props":3026,"children":3029},{"code":3027,"language":419,"meta":7,"className":3028},"## 第一轮：问题描述\n\n我遇到了一个问题：[简述问题]\n\n错误信息：\n",[2667],[3030],{"type":26,"tag":219,"props":3031,"children":3032},{"__ignoreMap":7},[3033],{"type":31,"value":3027},{"type":26,"tag":27,"props":3035,"children":3036},{},[3037],{"type":26,"tag":2677,"props":3038,"children":3039},{},[3040],{"type":31,"value":3041},"粘贴完整错误",{"type":26,"tag":2663,"props":3043,"children":3045},{"code":3044},"\n相关代码：\n```javascript\n[粘贴代码]\n",[3046],{"type":26,"tag":219,"props":3047,"children":3048},{"__ignoreMap":7},[3049],{"type":31,"value":3044},{"type":26,"tag":543,"props":3051,"children":3052},{},[],{"type":26,"tag":81,"props":3054,"children":3056},{"id":3055},"第二轮补充信息",[3057],{"type":31,"value":3058},"第二轮：补充信息",{"type":26,"tag":27,"props":3060,"children":3061},{},[3062],{"type":31,"value":3063},"根据你的建议，我添加了日志，发现：",{"type":26,"tag":209,"props":3065,"children":3066},{},[3067,3075],{"type":26,"tag":213,"props":3068,"children":3069},{},[3070],{"type":26,"tag":2677,"props":3071,"children":3072},{},[3073],{"type":31,"value":3074},"发现 1",{"type":26,"tag":213,"props":3076,"children":3077},{},[3078],{"type":26,"tag":2677,"props":3079,"children":3080},{},[3081],{"type":31,"value":3082},"发现 2",{"type":26,"tag":27,"props":3084,"children":3085},{},[3086,3088,3093],{"type":31,"value":3087},"这是否说明问题出在 ",{"type":26,"tag":2677,"props":3089,"children":3090},{},[3091],{"type":31,"value":3092},"你的猜测",{"type":31,"value":3094},"？",{"type":26,"tag":543,"props":3096,"children":3097},{},[],{"type":26,"tag":81,"props":3099,"children":3101},{"id":3100},"第三轮确认修复",[3102],{"type":31,"value":3103},"第三轮：确认修复",{"type":26,"tag":27,"props":3105,"children":3106},{},[3107],{"type":31,"value":3108},"我按照你的建议修改了代码：",{"type":26,"tag":2663,"props":3110,"children":3113},{"code":3111,"language":2839,"meta":7,"className":3112},"[粘贴修改后的代码]\n",[2841],[3114],{"type":26,"tag":219,"props":3115,"children":3116},{"__ignoreMap":7},[3117],{"type":31,"value":3111},{"type":26,"tag":27,"props":3119,"children":3120},{},[3121],{"type":31,"value":3122},"请确认这个修复是否正确，以及是否有其他潜在问题。",{"type":26,"tag":543,"props":3124,"children":3125},{},[],{"type":26,"tag":81,"props":3127,"children":3129},{"id":3128},"第四轮预防",[3130],{"type":31,"value":3131},"第四轮：预防",{"type":26,"tag":27,"props":3133,"children":3134},{},[3135],{"type":31,"value":3136},"这个问题已解决。请建议：",{"type":26,"tag":473,"props":3138,"children":3139},{},[3140,3145,3150],{"type":26,"tag":213,"props":3141,"children":3142},{},[3143],{"type":31,"value":3144},"如何防止类似问题再次发生？",{"type":26,"tag":213,"props":3146,"children":3147},{},[3148],{"type":31,"value":3149},"应该添加什么测试用例？",{"type":26,"tag":213,"props":3151,"children":3152},{},[3153],{"type":31,"value":3154},"有什么最佳实践可以参考？",{"type":26,"tag":2663,"props":3156,"children":3158},{"code":3157},"\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",[3159],{"type":26,"tag":219,"props":3160,"children":3161},{"__ignoreMap":7},[3162],{"type":31,"value":3157},{"title":7,"searchDepth":410,"depth":410,"links":3164},[3165,3166,3167,3172,3176,3181,3185,3189,3190,3191],{"id":2547,"depth":413,"text":2550},{"id":2553,"depth":413,"text":2556},{"id":2574,"depth":413,"text":2577,"children":3168},[3169,3170,3171],{"id":2580,"depth":410,"text":2583},{"id":2658,"depth":410,"text":2661},{"id":2824,"depth":410,"text":2827},{"id":2866,"depth":413,"text":2869,"children":3173},[3174,3175],{"id":2872,"depth":410,"text":2875},{"id":2892,"depth":410,"text":2895},{"id":2912,"depth":413,"text":2915,"children":3177},[3178,3179,3180],{"id":2918,"depth":410,"text":2921},{"id":2933,"depth":410,"text":2936},{"id":2948,"depth":410,"text":2951},{"id":2965,"depth":413,"text":2968,"children":3182},[3183,3184],{"id":2971,"depth":410,"text":2974},{"id":2986,"depth":410,"text":2989},{"id":3001,"depth":413,"text":3004,"children":3186},[3187,3188],{"id":3007,"depth":410,"text":3010},{"id":3021,"depth":410,"text":3024},{"id":3055,"depth":413,"text":3058},{"id":3100,"depth":413,"text":3103},{"id":3128,"depth":413,"text":3131},"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":3196,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":3197,"_type":419,"_id":420,"_source":421,"_file":422,"_stem":423,"_extension":424},[13,14,15,16],{"type":23,"children":3198,"toc":3499},[3199,3203,3207,3211,3235,3239,3323,3327,3331,3335,3359,3363,3367,3371,3375,3394,3398,3402,3406,3421,3425,3429,3433,3448,3452,3456,3460,3464,3468],{"type":26,"tag":27,"props":3200,"children":3201},{},[3202],{"type":31,"value":32},{"type":26,"tag":27,"props":3204,"children":3205},{},[3206],{"type":31,"value":37},{"type":26,"tag":27,"props":3208,"children":3209},{},[3210],{"type":31,"value":42},{"type":26,"tag":27,"props":3212,"children":3213},{},[3214,3215,3219,3220,3224,3225,3229,3230,3234],{"type":31,"value":47},{"type":26,"tag":49,"props":3216,"children":3217},{"href":51},[3218],{"type":31,"value":54},{"type":31,"value":56},{"type":26,"tag":49,"props":3221,"children":3222},{"href":59},[3223],{"type":31,"value":62},{"type":31,"value":56},{"type":26,"tag":49,"props":3226,"children":3227},{"href":66},[3228],{"type":31,"value":69},{"type":31,"value":71},{"type":26,"tag":49,"props":3231,"children":3232},{"href":74},[3233],{"type":31,"value":77},{"type":31,"value":79},{"type":26,"tag":81,"props":3236,"children":3237},{"id":83},[3238],{"type":31,"value":86},{"type":26,"tag":88,"props":3240,"children":3241},{},[3242,3260],{"type":26,"tag":92,"props":3243,"children":3244},{},[3245],{"type":26,"tag":96,"props":3246,"children":3247},{},[3248,3252,3256],{"type":26,"tag":100,"props":3249,"children":3250},{},[3251],{"type":31,"value":104},{"type":26,"tag":100,"props":3253,"children":3254},{},[3255],{"type":31,"value":109},{"type":26,"tag":100,"props":3257,"children":3258},{},[3259],{"type":31,"value":114},{"type":26,"tag":116,"props":3261,"children":3262},{},[3263,3278,3293,3308],{"type":26,"tag":96,"props":3264,"children":3265},{},[3266,3270,3274],{"type":26,"tag":123,"props":3267,"children":3268},{},[3269],{"type":31,"value":127},{"type":26,"tag":123,"props":3271,"children":3272},{},[3273],{"type":31,"value":132},{"type":26,"tag":123,"props":3275,"children":3276},{},[3277],{"type":31,"value":137},{"type":26,"tag":96,"props":3279,"children":3280},{},[3281,3285,3289],{"type":26,"tag":123,"props":3282,"children":3283},{},[3284],{"type":31,"value":145},{"type":26,"tag":123,"props":3286,"children":3287},{},[3288],{"type":31,"value":150},{"type":26,"tag":123,"props":3290,"children":3291},{},[3292],{"type":31,"value":155},{"type":26,"tag":96,"props":3294,"children":3295},{},[3296,3300,3304],{"type":26,"tag":123,"props":3297,"children":3298},{},[3299],{"type":31,"value":163},{"type":26,"tag":123,"props":3301,"children":3302},{},[3303],{"type":31,"value":168},{"type":26,"tag":123,"props":3305,"children":3306},{},[3307],{"type":31,"value":173},{"type":26,"tag":96,"props":3309,"children":3310},{},[3311,3315,3319],{"type":26,"tag":123,"props":3312,"children":3313},{},[3314],{"type":31,"value":181},{"type":26,"tag":123,"props":3316,"children":3317},{},[3318],{"type":31,"value":186},{"type":26,"tag":123,"props":3320,"children":3321},{},[3322],{"type":31,"value":191},{"type":26,"tag":27,"props":3324,"children":3325},{},[3326],{"type":31,"value":196},{"type":26,"tag":81,"props":3328,"children":3329},{"id":199},[3330],{"type":31,"value":202},{"type":26,"tag":27,"props":3332,"children":3333},{},[3334],{"type":31,"value":207},{"type":26,"tag":209,"props":3336,"children":3337},{},[3338,3347,3351,3355],{"type":26,"tag":213,"props":3339,"children":3340},{},[3341,3342],{"type":31,"value":217},{"type":26,"tag":219,"props":3343,"children":3345},{"className":3344},[],[3346],{"type":31,"value":224},{"type":26,"tag":213,"props":3348,"children":3349},{},[3350],{"type":31,"value":229},{"type":26,"tag":213,"props":3352,"children":3353},{},[3354],{"type":31,"value":234},{"type":26,"tag":213,"props":3356,"children":3357},{},[3358],{"type":31,"value":239},{"type":26,"tag":27,"props":3360,"children":3361},{},[3362],{"type":31,"value":244},{"type":26,"tag":81,"props":3364,"children":3365},{"id":247},[3366],{"type":31,"value":250},{"type":26,"tag":27,"props":3368,"children":3369},{},[3370],{"type":31,"value":255},{"type":26,"tag":27,"props":3372,"children":3373},{},[3374],{"type":31,"value":260},{"type":26,"tag":209,"props":3376,"children":3377},{},[3378,3382,3386,3390],{"type":26,"tag":213,"props":3379,"children":3380},{},[3381],{"type":31,"value":268},{"type":26,"tag":213,"props":3383,"children":3384},{},[3385],{"type":31,"value":273},{"type":26,"tag":213,"props":3387,"children":3388},{},[3389],{"type":31,"value":278},{"type":26,"tag":213,"props":3391,"children":3392},{},[3393],{"type":31,"value":283},{"type":26,"tag":27,"props":3395,"children":3396},{},[3397],{"type":31,"value":288},{"type":26,"tag":81,"props":3399,"children":3400},{"id":291},[3401],{"type":31,"value":294},{"type":26,"tag":27,"props":3403,"children":3404},{},[3405],{"type":31,"value":299},{"type":26,"tag":209,"props":3407,"children":3408},{},[3409,3413,3417],{"type":26,"tag":213,"props":3410,"children":3411},{},[3412],{"type":31,"value":307},{"type":26,"tag":213,"props":3414,"children":3415},{},[3416],{"type":31,"value":312},{"type":26,"tag":213,"props":3418,"children":3419},{},[3420],{"type":31,"value":317},{"type":26,"tag":27,"props":3422,"children":3423},{},[3424],{"type":31,"value":322},{"type":26,"tag":81,"props":3426,"children":3427},{"id":325},[3428],{"type":31,"value":328},{"type":26,"tag":27,"props":3430,"children":3431},{},[3432],{"type":31,"value":333},{"type":26,"tag":209,"props":3434,"children":3435},{},[3436,3440,3444],{"type":26,"tag":213,"props":3437,"children":3438},{},[3439],{"type":31,"value":341},{"type":26,"tag":213,"props":3441,"children":3442},{},[3443],{"type":31,"value":346},{"type":26,"tag":213,"props":3445,"children":3446},{},[3447],{"type":31,"value":351},{"type":26,"tag":27,"props":3449,"children":3450},{},[3451],{"type":31,"value":356},{"type":26,"tag":81,"props":3453,"children":3454},{"id":359},[3455],{"type":31,"value":362},{"type":26,"tag":27,"props":3457,"children":3458},{},[3459],{"type":31,"value":367},{"type":26,"tag":27,"props":3461,"children":3462},{},[3463],{"type":31,"value":372},{"type":26,"tag":27,"props":3465,"children":3466},{},[3467],{"type":31,"value":377},{"type":26,"tag":209,"props":3469,"children":3470},{},[3471,3478,3485,3492],{"type":26,"tag":213,"props":3472,"children":3473},{},[3474],{"type":26,"tag":49,"props":3475,"children":3476},{"href":51},[3477],{"type":31,"value":54},{"type":26,"tag":213,"props":3479,"children":3480},{},[3481],{"type":26,"tag":49,"props":3482,"children":3483},{"href":59},[3484],{"type":31,"value":62},{"type":26,"tag":213,"props":3486,"children":3487},{},[3488],{"type":26,"tag":49,"props":3489,"children":3490},{"href":66},[3491],{"type":31,"value":69},{"type":26,"tag":213,"props":3493,"children":3494},{},[3495],{"type":26,"tag":49,"props":3496,"children":3497},{"href":74},[3498],{"type":31,"value":77},{"title":7,"searchDepth":410,"depth":410,"links":3500},[3501,3502,3503,3504,3505,3506],{"id":83,"depth":413,"text":86},{"id":199,"depth":413,"text":202},{"id":247,"depth":413,"text":250},{"id":291,"depth":413,"text":294},{"id":325,"depth":413,"text":328},{"id":359,"depth":413,"text":362},1778886907597]