Skip to content
Debugging
Skill

/session-binding

Nucleus V2 approved-write session binding collector. Use when a workflow must bind the current Claude Code or Codex native session before building a result package.

From plugin
nucleus-marketplace
16527 skills1 agent

Claude Code

$ npx -y skills add protect-my-hair/nucleus-marketplace --skill session-binding --agent claude-code

SKILL.md

session-binding.SKILL.md
name: session-binding
description: Nucleus V2 approved-write session binding collector. Use when a workflow must bind the current Claude Code or Codex native session before building a result package.

Session Binding

本 Skill 为 Nucleus V2 workflow 生成固定路径的 session binding report:

`.nucleus/runs/<workflowRunId>/session-binding/session-binding-report.json`

它只记录原生会话 ID、显式 transcript 路径和 hash,不复制 Claude/Codex transcript 或 JSONL 正文。

子命令

python3 skills/session-binding/scripts/session_binding.py collect \
  --repo-root <target-repo> \
  --context <target-repo>/.nucleus/context/<workflowRunId>.json \
  --provider-policy auto \
  --codex-json-event <event.json>
python3 skills/session-binding/scripts/session_binding.py freeze \
  --repo-root <target-repo> \
  --context <target-repo>/.nucleus/context/<workflowRunId>.json \
  --session-binding-report <target-repo>/.nucleus/runs/<workflowRunId>/session-binding/session-binding-report.json \
  --reason completed
python3 skills/session-binding/scripts/session_binding.py validate-report \
  --report <target-repo>/.nucleus/runs/<workflowRunId>/session-binding/session-binding-report.json

证据规则

  • explicit context / CLI metadata 优先。
  • Codex JSON event 和 Claude hook JSON 是可靠 event evidence。
  • `CODEX_THREAD_ID` 只能作为 `local-verified-env-candidate`;strict/PMS 模式不接受单独 env candidate。
  • Claude transcriptPath 只接受 hook JSON、explicit metadata、CLI 参数或 PMS connector 明确输出。
  • 禁止 `discoveryMethod=latest|mtime|only-file`。
  • 禁止 transcript 正文、message array、JSONL event array 进入 report。
  • strict/PMS 或 `constraints.sessionBindingRequired=true` 缺可靠绑定时必须输出 blocker。

边界

  • 不 import 根 `harness/`。
  • 不写 `docs/requirement/**`。
  • `.nucleus/runs/<workflowRunId>/session-binding` 若是 symlink,runtime 输出 stdout blocked payload,不写仓库文件。
  • transcript hash 只在 `completed`、`cancelled`、`pms-freeze-requested` freeze reason 下计算。
Read more
@protect-my-hair
Ships withnucleus-marketplace

Engineering Workflow Discipline Plugin · For Claude Code / Codex Nucleus is a workflow plugin installed inside an AI coding agent.

16527 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
165
Star history of protect-my-hair/nucleus-marketplace on GitHub, a chart by star-history.com

Other skills on nucleus-marketplace.

More skills from other plugins.

cpu-high

cpu-high

排查 JVM / 应用 CPU 飙高(线程定位 + 代码路径分析)

arthas10d38k
@alibaba@alibabaInstall Skill
analyze-dump

analyze-dump

Triage a Windows crash dump - identify the exception, the faulting frame, and what to look at next. Use when the user points at a…

@svnscha@svnschaInstall Skill
d3k

d3k

Test and debug a web app in its existing d3k browser, including local Chrome connected to a Vercel Sandbox over CDP. Use for UI…

dev30008d1.6k
@vercel-labs-2@vercel-labs-2Install Skill

Questions about session-binding.

Which coding agents can use session-binding?
session-binding installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.