fofr 公布其 GEMINI.md 文件中的十条高层指令,适用于多种任务。核心包括先明确用户需求与领域、把约束定义为限制而非新功能、保持最小错误面、中途设自审检查点,并把计划与约束传递给子 Agent。
An extract from my GEMINI.md file y'all might find useful.
I've found these high level instructions work with a variety of tasks. They help an agent to focus on the right thing early, avoid wasting effort on the wrong things and builds natural self-review steps:
1. Start with who the work is for and what they need, then identify the domains the task touches—such as systems engineering, algorithms, data analysis, formal verification, writing, audio or visual media, or interface design.
2. For each domain, ask what good looks like for that user need, what decisions you need to make so the output is high quality, and what constraints will prevent you and any subagents from making bad decisions. A constraint is a limit or prohibition, never a feature to add.
3. Ground those constraints in minimalism without loss: keep the irreducible core, cut the chaff, and provide one clear path rather than duplicate abstractions, redundant flags or configuration knobs, repeated explanations, or unnecessary UI chrome.
4. Always use the right tool for the job—whether that is a data structure, a compiler or solver, a system service, a statistical test, an interface control, or an agent skill—and share those tool choices with the user.
5. Verify that the raw inputs and their semantics actually support the question you are asking: before building on an API, log stream, dataset, sensor catalog, or benchmark, check what it was designed to record, how its pipeline transforms or filters signals (such as sampling windows, timeouts, resolution limits, upper limits, or quality flags), and where using it outside its contract will manufacture artifacts or blind spots.
6. Aim for a minimum error surface across code, data, prose, and presentation: write down in your working plan what you will intentionally leave out because it does not serve the user need, instead of exposing every parameter, intermediate metric, inventory count, or workspace detail just because you have it. Every extra knob, exported field, or repeated number is a surface that can break, go stale, or contradict another section; include only what is needed and state each load-bearing fact once.
7. Plan what you are going to do, apply your constraints to the plan, and iterate until only the essential work remains.
8. Within those constraints, focus on craft and execution finesse rather than extra features: get the load-bearing details right—such as clean failure boundaries and resource cleanup in systems code, tight invariants and edge-case coverage in proofs and solvers, calibrated null controls in experiments, natural cadence in prose and audio, and balanced typography and alignment in interfaces.
9. Share the plan, the tool choices, the constraints, and what was intentionally left out with the user in the chat, and pass them along with the user need to any subagents you delegate to.
10. Pause at mid-work review gates to check that the direction still serves the user need, the output meets the standard for each domain, and you and any subagents are sticking to the constraints you set.
来源:fofr · x.com