Skip to content
Debugging
Skill

/nucleus-context

Nucleus V2 baseline context validation and explicit standalone context discovery. Use when a workflow needs .nucleus/context validation, local candidate generation, or a blocked result for missing context fields.

From plugin
nucleus-marketplace
16527 skills1 agent

Claude Code

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

SKILL.md

nucleus-context.SKILL.md
name: nucleus-context
description: Nucleus V2 baseline context validation and explicit standalone context discovery. Use when a workflow needs .nucleus/context validation, local candidate generation, or a blocked result for missing context fields.

Nucleus Context

本 Skill 负责 Nucleus V2 baseline 的 context 入口能力。它安装在 Claude Code / Codex 等 coding agent 内部使用,不是 PMS 后端,也不是独立服务。

边界

  • 只使用目标仓库 `.nucleus/**` 作为过程产物路径。
  • `docs/requirement/**` 是受保护需求事实源;本 Skill 只读引用,不正式写入。
  • `.autocode/**`、`.claude/notepads/**`、`docs/bugfix/**` 是 legacy risk path,命中 plannedWrites 必须阻塞。
  • baseline `discover` 只接受显式输入,不做自然语言自由解析、不深扫知识库、不伪造 PMS product/repo/run。
  • 缺 `workflowRunId` 时只能生成 local diagnostic blocked result;不得写 `.nucleus/context/<synthetic>.json`,不得让后续 workflow 用 synthetic id 继续。

子命令

python3 skills/nucleus-context/scripts/Nucleus_context.py validate \
  --repo-root <target-repo> \
  --context <target-repo>/.nucleus/context/<workflowRunId>.json
python3 skills/nucleus-context/scripts/Nucleus_context.py discover \
  --repo-root <target-repo> \
  --mode standalone-assistant \
  --workflow-run-id <workflowRunId> \
  --workflow-id feature-development-prepare \
  --workflow-step context-validation \
  --provider codex \
  --primary-feature docs/features/<path>/feature.md \
  --requirement-solution docs/requirement/<req>/solution.md
python3 skills/nucleus-context/scripts/Nucleus_context.py build-blocked-result \
  --repo-root <target-repo> \
  --workflow-run-id <workflowRunId> \
  --workflow-id feature-development-prepare \
  --workflow-step context-validation \
  --blocker-code SCHEMA_VALIDATION_FAILED \
  --message "context 缺少必需字段"

输出

  • `validate` 成功:写 `.nucleus/runs/<workflowRunId>/context-validation-gate.json`。
  • `discover` 成功:写 `.nucleus/context/<workflowRunId>.json` 和 `.nucleus/runs/<workflowRunId>/context-discovery-report.json`。
  • 缺 primary feature:写 `.nucleus/runs/<workflowRunId>/context-candidate.json` 和 blocked `.nucleus/runs/<workflowRunId>/result.json`,不写正式 context。
  • 缺 `workflowRunId` 且 repo root 安全:写 `.nucleus/runs/wf-local-blocked-<timestamp>-<hash>/result.json`,`contextPath=null`。
  • repo root 不安全:stdout 输出 machine-readable blocked payload,非零退出,不写目标仓库。

失败策略

所有失败默认 `ALERT_AND_BLOCK`。不要用自然语言总结替代 result package。

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 nucleus-context.

Which coding agents can use nucleus-context?
nucleus-context 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.