plan-exit

GitHub

处理退出计划房间的命令,检查房间状态并报告下一步操作。根据状态输出判断房间是否关闭及待办事项,指导用户启动构建或说明无草稿,不执行实际开发工作。

plugins/nightshift/skills/plan-exit/SKILL.md orwa-mahmoud/nightshift

Trigger Scenarios

用户输入 plan-exit 命令 需要确认计划房间状态和后续步骤

Install

npx skills add orwa-mahmoud/nightshift --skill plan-exit -g -y
More Options

Non-standard path

npx skills add https://github.com/orwa-mahmoud/nightshift/tree/main/plugins/nightshift/skills/plan-exit -g -y

Use without installing

npx skills use orwa-mahmoud/nightshift@plan-exit

指定 Agent (Claude Code)

npx skills add orwa-mahmoud/nightshift --skill plan-exit -a claude-code -g -y

安装 repo 全部 skill

npx skills add orwa-mahmoud/nightshift --all -g -y

预览 repo 内 skill

npx skills add orwa-mahmoud/nightshift --list

SKILL.md

Frontmatter
{
    "name": "plan-exit",
    "license": "MIT",
    "metadata": {
        "internal": true
    },
    "description": "Leave the plan room and name the next step toward building what was planned.",
    "disable-model-invocation": true
}

The owner typed this command to leave the plan room. Typing it is what closes the room: the host's prompt hook removes the room's marker before this skill runs. This skill removes nothing. It reports whether the room is closed and what comes next.

Resolve the installed plugin root to an absolute $NIGHTSHIFT_PLUGIN_ROOT — ${CLAUDE_PLUGIN_ROOT} on Claude Code, $PLUGIN_ROOT on Codex when set, otherwise the absolute path this skill was attached from (skills/plan-exit/SKILL.md). Run every command below through "$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" — native Windows: & "$NIGHTSHIFT_PLUGIN_ROOT\runtime\windows\ns.ps1" in the PowerShell tool, same verbs — which resolves the host and the workspace; ns help lists the verbs, and ns bind prints the six resolved facts (TASK_ROOT, NIGHTSHIFT_WORKSPACE, NS, NIGHTSHIFT_PLUGIN_ROOT, HOST, SOURCE); $NS below is that NS. Never a bare relative path: the working directory persists between calls. Each $NS/... path below is where the current layout keeps that file; ns path <key> prints where this workspace keeps it, and ns path --list names every key.

1. Check the room

"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" status
  • No Plan room: line — the room is closed. Tell the owner in one line that the plan room is closed and this conversation can build again.
  • A Plan room: open line — the command did not reach the host's prompt hook, so the room is still open. On Codex the hook runs only after it has been reviewed and trusted. Tell the owner the room is still open and give them the terminal exit to run themselves: "$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" plan-exit (native Windows: & "$NIGHTSHIFT_PLUGIN_ROOT\runtime\windows\ns.ps1" plan-exit), with the plugin root written out in full. Never run it yourself: the hooks refuse it, and the exit is the owner's.

2. Name the next step

Read it off the same status output: the Items: line (open=N) and the staged fact (drafts=N). Do not count boxes yourself.

  • Drafts staged and no open items: the next step is Start — /nightshift:start on Claude Code and Cursor, $nightshift:start on Codex. Start offers the staged items to promote and begins the shift.
  • Drafts staged and open items already in the punch list: Start works those first. The owner can move the planned items into the punch list themselves before starting.
  • No drafts staged: say so. The discussion stays in this conversation, and nothing was staged.

Begin no work in this skill. Building starts when the owner asks for it or starts a shift.

Version History

  • 0476ca0 Current 2026-11-25 11:58

Same Skill Collection

plugins/nightshift/skills/archive/SKILL.md
plugins/nightshift/skills/customize/SKILL.md
plugins/nightshift/skills/doctor/SKILL.md
plugins/nightshift/skills/hunt/SKILL.md
plugins/nightshift/skills/import-issues/SKILL.md
plugins/nightshift/skills/nightshift/SKILL.md
plugins/nightshift/skills/plan/SKILL.md
plugins/nightshift/skills/purge/SKILL.md
plugins/nightshift/skills/quality/SKILL.md
plugins/nightshift/skills/reset/SKILL.md
plugins/nightshift/skills/schedule/SKILL.md
plugins/nightshift/skills/setup/SKILL.md
plugins/nightshift/skills/start/SKILL.md
plugins/nightshift/skills/status/SKILL.md
plugins/nightshift/skills/stop/SKILL.md
skills/install-nightshift/SKILL.md

Metadata

Files
0
Version
53274ab
Hash
cd7ffe20
Indexed
2026-11-25 11:58

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-26 00:39
浙ICP备14020137号-1