Skip to content
Debugging
Skill

/result-package-build

Nucleus V2 baseline result package builder. Use when a workflow needs to build schema-valid .nucleus/runs/<workflowRunId>/result.json from context, gates, blockers, and current step status.

From plugin
nucleus-marketplace
16527 skills1 agent

Claude Code

$ npx -y skills add protect-my-hair/nucleus-marketplace --skill result-package-build --agent claude-code

SKILL.md

result-package-build.SKILL.md
name: result-package-build
description: Nucleus V2 baseline result package builder. Use when a workflow needs to build schema-valid .nucleus/runs/<workflowRunId>/result.json from context, gates, blockers, and current step status.

Result Package Build

本 Skill 负责 Nucleus V2 baseline 的 result package 构建。它只生成 `.nucleus/runs/<workflowRunId>/result.json`,不执行 workflow runner、不提交、不推送、不回写 PMS。

子命令

python3 skills/result-package-build/scripts/result_package_build.py build \
  --repo-root <target-repo> \
  --context <target-repo>/.nucleus/context/<workflowRunId>.json \
  --status FAILED_BLOCKED \
  --current-step context-validation \
  --gate-report <target-repo>/.nucleus/runs/<workflowRunId>/context-validation-gate.json \
  --blocker-json <target-repo>/.nucleus/runs/<workflowRunId>/blockers.json \
  --session-binding-report <target-repo>/.nucleus/runs/<workflowRunId>/session-binding/session-binding-report.json

输入

  • schema-valid context。
  • 当前 step 和目标 status。
  • 可选 gate report。
  • 可选 blockers JSON,格式可以是 list 或 `{ "blockers": [...] }`。
  • 可选 session binding report;只白名单复制 `sessionBinding` 字段,并追加 `session-binding-gate` 和 blockers。

输出

  • 固定写 `.nucleus/runs/<workflowRunId>/result.json`。
  • 输出必须符合 `Nucleus.result.v1`。
  • 当 status 为 `FAILED_BLOCKED` 或存在 blockers 时,命令非零退出,方便宿主阻塞。
  • 最终 status 由 builder 根据 blockers 和 blocking gate 推导;不会合并 report 中的 status、summary、nextActions 或 `resultPackagePatch`。

边界

  • result path 必须在 `.nucleus/runs/<workflowRunId>/result.json`。
  • `.nucleus/**` 目录和 run 目录不得是 symlink 越界。
  • 不 import 根 `harness/`,只使用随 Skill 分发的 `_shared/nucleus_runtime`。
  • 不写 `docs/requirement/**`,不生成 PMS 状态结论。
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 result-package-build.

Which coding agents can use result-package-build?
result-package-build 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.