cross-harness-continuation
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "cross-harness-continuation":https://skillpi.com/zh/skills/deepskill-9f078b12a4f2be5e68f39d47050e7b8edfc5441612273f51a0c1c80f2e03bd7d。安装前核对上游来源和版本:https://github.com/AnastasiyaW/codex-claude-code-config。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在 Claude Code 与 Codex 之间切换、会话从交接点恢复或代理需重写现有实现时使用的连续性管理工具。加载共享的 CONTINUITY.json 契约,保留已接受的决定、检查 Git 基线与范围,并在有意重新设计时要求显式重新规划。不得用于无需保留先前代理决策的全新工作、无人继续的单一 harness 会话,或作为通用的交接记录辅助工具;该技能管理代理间的契约,而非单个代理的个人笔记。
介绍来源: third_party · AnastasiyaW · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: cross-harness-continuation
description: "Use when work moves between Claude Code and Codex, a session resumes from a handoff, or an agent may rewrite an existing implementation. Loads the shared CONTINUITY.json contract, preserves accepted decisions, checks Git baseline and scope, and requires explicit replan mode for intentional redesign. Do NOT use for fresh work with no prior agent's decisions to preserve, for a single-harness session that no one else is continuing, or as a general handoff-writing helper (see the session-handoff rule); this skill governs the contract between agents, not the notes one agent leaves itself."Cross-Harness Continuation
Use this skill when a task continues after another agent, especially when the handoff is Claude -> Codex, Codex -> Claude, or a plugin has already received several partial fixes.
Operating contract
The repository is the source of truth for code. The continuation contract is the source of truth for intent that Git cannot express:
<repo>/.claude/continuity/CONTINUITY.json
The canonical shape is in references/CONTINUITY.example.json. It must contain:
mode:continuationfor incremental work,newfor greenfield work;baseline: branch, commit, and paths that were already dirty at handoff;scope.files: the files explicitly claimed for the current slice;preserve: accepted design decisions and invariants;do_not_redo: approaches already tested or deliberately rejected;verification: commands and evidence status;scope.enforceandscope.protect_unlistedwhen the slice must be strict.
Required sequence
- Read
CONTINUITY.json, the newest handoff,AGENTS.md/CLAUDE.md, and the current Git status. Treat the live checkout as authoritative over stale prose. - Verify the baseline commit, branch, dirty paths, and the claimed files. Preserve existing changes unless a test or the contract proves they are wrong.
- Make one focused continuation change. Use
Editfor existing files. Do not replace a whole file merely because another implementation is easier to write. - Run the smallest relevant test, then the independent verifier for a non-trivial or cross-module change. Record commands and outcomes in the contract or handoff.
- Update the contract with what was preserved, what changed, what failed, and the single next step. Commit a clean, descriptive checkpoint when the project workflow allows it.
Replan boundary
Replanning is valid when measured evidence shows the current design is wrong, the requirements changed, or an explicit user decision authorizes a redesign. Declare it in the process that launches the agent:
AGENT_CONTINUITY_MODE=replan
AGENT_CONTINUITY_REASON=<specific evidence and intended redesign>
The reason is required. Without it, the guard blocks whole-file overwrites, out-of-scope edits, and near-whole-file replacements. A replan must also be recorded in the decision log/handoff; an environment flag alone is not proof.
Plugin cleanup
Do not revert a plugin because its code “looks different”. First classify the diff as intentional, unverified, or conflicting; reconstruct the baseline from Git; run the plugin's focused tests and a fresh read-only verifier; then repair only confirmed regressions. Keep the old implementation available through Git or an isolated worktree until the replacement passes its acceptance checks.
Gotchas
- A handoff without baseline and changed-file facts is context, not a merge contract. Do not infer scope from prose alone.
- A clean Git tree does not prove semantic compatibility. Run the focused test and inspect the dependency boundary before declaring continuation complete.
- Parallel agents need isolated worktrees and an integration verifier; this skill protects serial handoff and cannot resolve a concurrent merge for you.
CONTINUITY.jsonis intentionally small. Put long research and transcripts in the private archive or project docs and link them from the contract.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
No CONTINUITY.json found |
The prior session left only prose handoff | Create the contract from the current Git baseline before editing existing code |
scope violation |
The task expanded beyond the claimed slice | Finish the slice or update scope with a recorded reason |
blocks Write over existing tracked file |
Whole-file overwrite would erase prior intent | Use a focused Edit, or explicitly enter replan mode |
near-whole-file replacement |
An edit is acting like a rewrite | Split the edit and test each step, or replan with evidence |
| Claude and Codex disagree | No shared decision/evidence was recorded | Re-read preserve, do_not_redo, tests, and Git; do not “pick a side” by intuition |
版本历史
-
v2026.10.24
GitHub ↗
原版更新说明
Three ideas from this month's agent-harness news, adopted as checks rather than prompts. ## New - **Output legibility** — [`docs/output-legibility.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/output-legibility.md). Karpathy's readability ladder (STE-style text, diagram, HTML, video), plus the two ASD-STE100 rules that need no licensed dictionary: one concept keeps one term, and sentences stay short. - **`scripts/term_drift_check.py`** — checks agent output against a project glossary. It flags synonyms of your terms (`stem*` covers inflection, so it works in Russian too) and overlong sentences, and skips code, URLs and HTML comments. Exit `0` clean, `1` findings, `2` not checked. It ships with a self-test whose must-fail controls catch six deliberate breaks of the logic. - **Bounded harness-improvement pilot** — [`docs/harness-improvement-pilot.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/harness-improvement-pilot.md). The method behind Google Research's Harness², without the auto-patcher: a frozen suite with a held-out case, one change per candidate, strict improvement and no safety regression. - **Dead-code sweep** — a new reference in the `refactoring-safely` skill, after OpenAI's GPT-6 maintenance guide. It covers a read-only audit with production evidence and one small draft PR per removal, and keeps killswitches and safeguards out of scope. ## Changed - `rules/quality-code.md`: when you change code, update or delete the comment next to it in the same commit. Research suggests a wrong or stale comment misleads a model more than a missing one. - `CLAUDE.md`: new Harness² and Output Legibility sections. Full changelog: [`UPDATES.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/UPDATES.md) · PRs #18, #19
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决多代理协作中的核心痛点:意图保留与 Git 基线对齐
- 功能闭环完整,逻辑严谨,具备显著专业场景实用价值
亮点
- 适用与禁用场景定义清晰,边界明确,有效降低误触风险
待提升项
-
缺少端到端完整示例 原报告严重程度:轻微
文档提供了步骤和故障排查,但缺少一个从读取 CONTINUITY.json 到完成一次 continuation 的完整操作示例
改进建议:补充一个端到端的完整示例,展示一次成功的 continuation 流程
-
文档长度略长 原报告严重程度:轻微
文档约 450 行,略超过 500 行的理想上限
改进建议:考虑将部分详细说明(如故障排查表)移至独立参考文件,保持主文档简洁
亮点
- 结构完整,包含操作契约、流程、边界定义和故障排查
- frontmatter 完整,步骤划分清晰
待提升项
-
部分底层异常处理建议不足 原报告严重程度:轻微
对 CONTINUITY.json 格式错误、Git 状态不一致等底层异常的处理建议较简略
改进建议:补充对常见底层异常(如 JSON 解析失败、Git 状态冲突)的具体处理建议
亮点
- 工具来源明确,参数使用合理
- 覆盖主要异常场景,设有 replan 模式的显式确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。