news 2026/9/12 23:16:02

大模型/agent便于理解的技术交接报告skill

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
大模型/agent便于理解的技术交接报告skill

大模型/agent便于理解的技术交接报告skill

  • 前言
  • skill正文

前言

  1. 我发现“技术报告难读,往往不是因为术语太多,而是因为知识出现顺序错了”。
  2. 我发现大模型很多时候抓不准问题,是因为我们脑子里知道我们整体在解决什么问题,而大模型则被一堆细节淹没了,它在一堆细节里忘掉了整个任务一开始的那个问题是什么。同时我们光让他去生成技术交接报告,但他不知道给哪个读者写去交接,他不知道整个报告最重要的要解释清楚的问题是哪一个……

所以我补了下面这一段,如果他对这些问题感觉很模糊的话,就先不断的和我们讨论,不断的提问我们,明确了这些问题再做:

Before drafting, establish: - who the reader is; - the one question the handoff must answer; - the exact work in scope; - whether that work is complete, incomplete, failed, or inconclusive; - the evidence available for the important claims. Resolve any ambiguity that would materially change the scope, conclusion, or interpretation of the evidence before writing. Ask the user concise questions when those ambiguities cannot be resolved from authoritative artifacts or prior context, and continue until the material ambiguity is removed. Group related questions when practical rather than asking mechanically one at a time.

然后我把这个认识压缩成了一个极简 Codex Skill。

skill正文

--- name: write-technical-handoff description: Create or revise an engineering handoff or PR-readiness technical report that a competent engineer unfamiliar with the specific investigation can understand and audit. Use for root-cause investigations, bug-fix validation, behavior/performance/correctness analysis, implementation changes that require evidence, and technical reports that may later feed a pull request. Do not use for routine README/API documentation or ordinary status updates. --- # Write Technical Handoff Write for a fresh reviewer who knows the engineering stack but has not followed this investigation. A good report lets that reviewer answer, in order: 1. What is wrong? 2. Where and when does it happen? 3. Why does the proposed mechanism explain the symptom? 4. What changed, and why is that the right fix boundary? 5. What evidence distinguishes causation from coincidence? 6. What exactly is proven, and what is not? 7. What remains before submission or merge? ## First principles ### Order by knowledge dependency Treat the report as a dependency graph of ideas. Introduce each concept before asking the reader to use it in an inference. Do not simplify by deleting important technical qualifiers. Simplify by moving prerequisites earlier and explaining each causal step plainly. ### Preserve the causal chain The report is not a diary of the investigation. Organize around the final engineering argument: `trigger -> execution path -> state/data effect -> observable outcome` If part of the root cause is inferred rather than directly observed, say so and show the evidence supporting the inference. ### Match claims to measurements Never make a broader claim than the measurement supports. Examples: equivalence at one observed boundary does not prove equivalence of all intermediate behavior; one configuration does not establish behavior for all configurations; a proxy metric does not prove a broader system property. Use the narrowest accurate wording. ### Make causal attribution explicit State what evidence distinguishes the proposed cause from plausible alternatives. When causal attribution relies on a baseline/fix or other comparison, identify what differs between the compared conditions and what is held constant. When useful, classify evidence as: - **Direct:** the evidence isolates the proposed causal factor closely enough to support attribution. - **Supporting:** corroborating evidence from a different revision, partial run, different environment, narrower scope, or other non-identical setup. - **Confounded:** multiple causally relevant variables changed, so the result cannot be attributed to the target change alone. Do not hide confounded evidence that appears to disagree with the conclusion. Explain why it cannot answer the causal question. ### Disclose detail progressively Separate three layers: 1. **Decision layer:** problem, fix, strongest evidence, current readiness. 2. **Causal layer:** concepts, runtime path, mechanism, fix rationale, validation, results, limits. 3. **Audit layer:** frozen revisions, environment, commands, evidence paths, raw provenance. A first-time reader should not need the audit layer to understand the argument. ## Lock the handoff Before drafting, establish: - who the reader is; - the one question the handoff must answer; - the exact work in scope; - whether that work is complete, incomplete, failed, or inconclusive; - the evidence available for the important claims. Resolve any ambiguity that would materially change the scope, conclusion, or interpretation of the evidence before writing. Ask the user concise questions when those ambiguities cannot be resolved from authoritative artifacts or prior context, and continue until the material ambiguity is removed. Group related questions when practical rather than asking mechanically one at a time. Use the narrowest interpretation consistent with the request. Do not expand the scope merely because adjacent work is relevant, and do not block on details that do not affect the engineering argument. ## Workflow Before drafting: 1. Read applicable repo instructions such as `AGENTS.md`, `CONTRIBUTING.md`, and the PR template. 2. Inspect the target diff, relevant callers/callees, tests, and evidence. 3. Freeze relevant provenance: base commit, candidate diff/worktree, runtime and dependency versions, configuration and feature flags, inputs/data, external service/model/evaluator revisions when relevant, important parameters, and hardware/topology when relevant. 4. Write a one-sentence causal chain in scratch notes. 5. List only the concepts needed to understand that chain; define them before use. 6. Derive observable predictions from the proposed root cause and map each prediction to a test or measurement. 7. Record uncontrolled variables, alternative explanations, limitations, and remaining gates. Do not invent missing evidence. Mark it as unverified or pending. ## Default report architecture Use this order by default. Merge or omit sections that add no value, but preserve the dependency order. | Section | Purpose | | --- | --- | | **0. One-minute conclusion** | Plain-language problem, mechanism, minimal fix, strongest evidence, readiness state. | | **1. Minimal concepts** | Explain only the few components or terms needed by the later argument. | | **2. Runtime path** | Show what happens in execution order; use a small diagram/table when ordering or scope matters. | | **3. Fix** | Show the net change and explain why this location enforces the intended contract and what boundary/risk remains. | | **4. Verification design** | Map root-cause predictions to tests; state controls and uncontrolled variables. | | **5. Results** | Give exact baseline/fix results with units, denominators, run counts, skips, and relevant frozen context. | | **6. Evidence boundaries** | State what is supported, not supported, inferred, and still untested. | | **7. Change scope** | Separate intended product/test changes from instrumentation, generated artifacts, unrelated fixes, and experiment-only code. | | **8. Readiness** | Separate passed gates, pending gates, authorization boundaries, and stop/re-diagnose conditions. | | **Appendix** | Put environment details, revisions, evidence indexes, repo-relative paths, and raw reproduction material here. | ## Writing rules - Use the user's requested language; keep identifiers, commands, revisions, metrics, and file paths exact. - Explain a non-obvious term on first use or immediately before first use. - Prefer concrete subject-verb sentences over stacked nouns and unexplained identifiers. - Keep one main claim per paragraph; put the plain-language claim before implementation detail. - Use one consistent name for each concept. - Put evidence near the claim it supports. - Give important numbers the needed unit, denominator, comparison target, and experimental context. - Distinguish observation from interpretation: “we observed X” is different from “X supports mechanism Y.” - State controlled and uncontrolled variables. Never claim “all variables were identical” when they were not. - Prefer “the experiment did not observe a change in X” over the broader “nothing changed.” - Prefer “supports” or “is consistent with” when the literal mechanism was not directly observed. - Do not narrate dead ends in chronological order unless they change how the final evidence must be interpreted. - Do not use local absolute paths in upstream-facing material; use repo-relative paths or stable links. - Keep large evidence blobs out of the main narrative; summarize and index them. ## Public PR package When the handoff will feed an upstream PR, derive the public PR material from the completed report rather than writing both independently. - Follow the repository PR template. - Explain **why** before **what**. - Describe the net change, not discarded attempts. - Include accuracy/benchmark/profiling/test evidence when the change or template requires it. - Label local results as local; do not present them as official CI. - Keep confounded experiments, local filesystem details, internal evidence indexes, and unrelated investigations outside the public PR unless a limitation is necessary for honest review. - Keep the public PR concise; the technical handoff is the deeper audit document. ## Cold-reader gate Before finishing, reread the report as if you know the codebase but have never seen this bug. Revise if any answer is “no”: - Can the first section explain the problem, fix, strongest evidence, and current state in about a minute? - Is every concept introduced before the first inference that depends on it? - Can the reader reconstruct the runtime/cause chain without immediately opening source code? - Does each strong claim have nearby evidence? - Does each experiment state what was controlled and what was not? - Are conclusions no stronger than the measurements? - Are contradictory or confounded results accounted for rather than hidden? - Are completed work and pending gates clearly separated? - Can the appendix be skipped on a first read? For complex or high-risk reports, use an independent cold-review pass when available: one pass for comprehensibility and one for technical/evidence accuracy. Do not make multi-agent review mandatory for routine reports. ## Output contract Produce a self-contained Markdown report unless the user requests another format. When revising an existing report, preserve correct conclusions, numbers, provenance, and evidence status. Improve order and explanation without silently changing technical claims. If repository state has changed since the evidence was frozen, say so and require re-audit before treating the report as current PR evidence.
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/8/31 12:48:52

目录与文件管理0825

Linux与Windows的文件系统组织方式存在本质区别,Linux采用单一的树形目录结构,所有分区,文件目录均以根目录(/)为唯一起点,根目录所在的分区称为根分区,而Windows为每个磁盘分区设置独立的根目录…

作者头像 李华
网站建设 2026/8/30 9:54:15

海康videowebplugin插件失效原因与实战排障指南

简介:ActiveX插件是传统安防视频调阅的核心技术组件,其本质是基于IE内核的私有协议封装方案,依赖Windows系统、DirectX硬件解码与COM组件注册机制。随着现代浏览器逐步淘汰ActiveX支持,该技术面临兼容性断层,典型表现为…

作者头像 李华
网站建设 2026/9/2 13:38:55

Spark 4.x Variant深入解析:半结构化数据处理的灵活与高效

在近期的 Spark 技术调研里,我发现讨论最多、也最容易让人误解的新特性就是 Spark 4.x 中的 Variant 类型。很多读者问:Variant 是不是就是“升级版 JSON”?它的性能真的比原来好很多吗?项目里到底什么时候该换,什么时…

作者头像 李华
网站建设 2026/9/2 8:18:28

Vibe Coding一人即团队系列12: 提示词的四类编写范式与结构化实践

纲要 普通自然语言提示词 角色与背景定义目标与诉求描述输出格式约束 Markdown 格式提示词 标题层级与粗体标记段落化组织方式大模型的结构化偏好 优雅风格化提示词 方括号标记法编号与列表规范可维护性与团队协作 XML/HTML 标签格式提示词 起始标签与结束标签标签嵌套机制自定…

作者头像 李华
网站建设 2026/9/2 11:56:28

GitHub周榜的正确打开方式:从筛选到跑通,把收藏变成工作流

GitHub 周榜(2026-08 Week 4)这几天又出现在了很多人信息流里,但我想先泼一点冷水:每周追热门仓库的人,未必真的从里面拿到了价值。榜单最大的作用不是让你多收藏几个项目,而是帮你用最少的时间完成一次筛选…

作者头像 李华
网站建设 2026/9/2 10:09:41

AI Agent 自我进化实战:让智能体从经验里持续成长的工程闭环

会记住 ≠ 会成长。记忆只是把东西存下来,自我进化是把存下来的东西变成下次更好的自己——这篇拆的,是那条让 Agent 越用越聪明的闭环。很多人把「给 Agent 加记忆」和「让 Agent 自我进化」当成一回事,这俩其实是两件事。记忆解决的是状态留…

作者头像 李华