Skip to content
Automation
Skill

/purge

Permanently delete this project's Nightshift state, including punch lists, rules, receipts and archives; does not uninstall the plugin.

From plugin
nightshift
45317 skills

Claude Code

$ npx -y skills add orwa-mahmoud/nightshift --skill purge --agent claude-code

SKILL.md

purge.SKILL.md
name: purge
description: Permanently delete this project's Nightshift state, including punch lists, rules, receipts and archives; does not uninstall the plugin.
license: MIT
metadata:
  internal: true

Remove Nightshift from this project. This deletes punch lists, rules, receipts, archives, and history under the project's `.nightshift/` directory. It does not uninstall the global Nightshift plugin.

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

Print the exact canonical `$NS` path. Warn that punch lists, rules, receipts, archives, and history will be lost, and that the plugin itself stays installed. Do not run the helper until the owner confirms that exact path. Then:

"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" purge-workspace \
  --confirm-path "$NS"

The helper first performs Reset, then deletes only that validated `.nightshift/` directory and a local `.nightshift-link` on the opened task root when present. It refuses symlinks, malformed links, workspace roots, home directories, `/`, and other broad paths. It never deletes repository files outside that Nightshift state. A second Purge with the same confirmation is safe.

If the task root is linked, pass the folder you opened as `--project "$TASK_ROOT"`. This is the one command whose target is the task root rather than the workspace, so it is the one place the dispatcher's answer is not the one you want: purging only the workspace path leaves the host link in place.

Read more
@orwa-mahmoud
Ships withnightshift

Nightshift is a plugin for Claude Code, Codex, and Cursor. Plan Take your plan further. Before the first write, bring the hard questions into the plan room. Compare approaches, set the boundaries, and choose the evidence for each task.

Stars on GitHub

Momentum

stars in total
453
Star history of orwa-mahmoud/claude-nightshift on GitHub, a chart by star-history.com

Other skills on nightshift.

archive

archive

File a finished shift into its own archive folder, laid out like the live site, so the live files keep only open work.

doctor

doctor

Read-only diagnosis of the workspace, rules, markers, lease, watchman and deadline, with classified next actions; never repairs…

hunt

hunt

Turn a request like "improve this project for 5 hours" into a shift from the ready catalog and start it, asking only for the…

nightshift

nightshift

Work a punch list to completion autonomously, overnight, through a todo list or until a product is polished, parking decisions…

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about purge.

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