环境维护
Soceremite2026-10-28查看 663复制 1590
通过独立候选、验证回执、冻结修订和消费者/租约/固定保护来检查或维护研究环境。用于依赖变更、环境复用和退役规划。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md2485 chars
--- name: environment-maintenance description: "Inspect or maintain research environments through independent candidates, validation receipts, frozen revisions and consumer/lease/pin protection. Use for dependency changes, environment reuse and retirement planning." --- <!-- EVO-INQUIRY:BEGIN --> For research work, read [EvoInquiry](../shared-references/evo-inquiry.md), or reuse it if already loaded and unchanged in this session. Apply relevant principles within the user's scope and this skill's existing outputs, review standards, and recovery contracts. Carry them into nested research tasks and reviewer briefs. Continue authorized work through its necessary steps; honor budgets, blocking checkpoints, and stopping conditions. <!-- EVO-INQUIRY:END --> # Environment Maintenance Read [environment-stewardship](../shared-references/environment-stewardship.md) and the relevant [code-reuse-and-docs](../shared-references/code-reuse-and-docs.md) constraints for consumer interfaces. Use the task to select inspect, plan-change, validate, bind or retire-plan. Resolve the loaded plugin's tools/ directory and use environment_registry.py. Inspect actual interpreter/imports, dependencies, recipe/lock/build identity, platform/device needs, consumers and existing authorization. Choose unchanged frozen reuse when real checks establish compatibility. For changes, propose a complete diff and use existing conda/uv tools in an independent candidate. Do not install into an active formal environment. Validate metadata, imports/ABI/device, small numerical behavior and representative consumers; save actual command, output digest and exit receipts. CPU-only tests do not certify a GPU environment. Promote only within the approved candidate/ consumer scope. Bind selected future tasks; queued/running bindings stay fixed. Register leases for active work and pins for historical reproduction. Reconcile expired heartbeats with actual scheduler/process evidence. Unknown consumers, missing coverage, active leases or pins prevent retirement. retire-plan is deletion-free; any later deletion uses applicable user authorization and the existing retention policy. Explicit selected-pin release uses plan-pin-release/ release-pins; record an approved intent and recover it without losing history. Deliver observed compatibility/diff, real receipts, selected bindings and unresolved checks. Do not fabricate solver output, hide a failed candidate or replace an existing coordinator.