stop

GitHub

用于立即暂停当前工作班次,保留未完成项和截止日期,安全终止后台监控进程,以便所有者编辑清单后恢复。

plugins/nightshift/skills/stop/SKILL.md orwa-mahmoud/nightshift

Trigger Scenarios

用户希望暂停当前正在进行的任务或班次 需要中断自动化流程并保留现场状态

Install

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

Non-standard path

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

Use without installing

npx skills use orwa-mahmoud/nightshift@stop

指定 Agent (Claude Code)

npx skills add orwa-mahmoud/nightshift --skill stop -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": "stop",
    "license": "MIT",
    "metadata": {
        "internal": true
    },
    "description": "Issue a stop-work order that pauses the shift now and leaves unfinished items open."
}

Pause the host-opened project immediately so the owner can edit the punch list and resume later.

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/stop/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.

Run the trusted helper. Do not write $NS/STOP by hand, do not delete $NS/run/.shift-armed, and do not kill $NS/run/.watchman yourself — the helper performs the safe teardown:

"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" stop-shift

The helper writes $NS/STOP with a reason and UTC timestamp, appends stopped by owner to $NS/run/shift-log.md, and kills only a verified live Nightshift watchman. It does not remove $NS/run/.shift-armed. It drops $NS/run/.shift-session so the same conversation is not a second agent on the next Start. Open boxes stay open as the record. Hardhat stays until clock-out writes $NS/run/.ended. Reset is the manual escape. The deadline, punch list, rules, parking lot, work orders, receipts, archives, research, opportunities, and shift history stay on disk. Do not wait for a later Stop event to write the marker — the helper writes it now.

When the workspace holds several runs, Stop acts on one run: the owner's named run with --run <name> (native Windows: -Run), or the run this conversation works on. With several runs and none named it stops nothing and lists them, and an unknown name is refused the same way: ask which run the owner means only when the request did not name one, then run Stop for that run. Stopping one run leaves every other run working.

Report the helper's open-items count and that the deadline was preserved. A second Stop is safe.

Resume later with Start (/nightshift:start on Claude Code, or ask Nightshift to start on Codex). Start clears the pause markers and begins a new ownership lease. A future preserved deadline remains the deadline. An expired preserved deadline is not silently renewed: write a new UNIX epoch to $NS/run/deadline, or run Reset then Start.

This works from the bound conversation, from a helper conversation, and when a failed clock-out left a recovery nonce that still fences the recorded conversation.

Panic form (does not disarm immediately): from any POSIX terminal, touch "$NS/STOP". In native Windows PowerShell, run New-Item -ItemType File -Force "$NS\STOP". That marker is honored at the next Stop event or watchman wake. Prefer the helper when the model is stuck — it does not wait for that event.

Version History

  • 8c53f5d Current 2026-11-27 13:00
  • 0476ca0 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-exit/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
skills/install-nightshift/SKILL.md

Metadata

Files
0
Version
8c53f5d
Hash
93b8bd59
Indexed
2026-11-25 11:58

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-27 19:38
浙ICP备14020137号-1