Agent Skills › orwa-mahmoud/nightshift › install-nightshift

install-nightshift

GitHub

检测并安装 Nightshift 插件至 Claude Code、Codex 或 Cursor。支持多环境状态检查、插件安装/更新、冲突处理及后续配置引导,确保各宿主正确加载插件运行时与钩子。

skills/install-nightshift/SKILL.md orwa-mahmoud/nightshift

Trigger Scenarios

用户请求在 IDE 中安装 Nightshift 插件 需要统一配置多个开发环境的插件版本

Install

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

Use without installing

npx skills use orwa-mahmoud/nightshift@install-nightshift

指定 Agent (Claude Code)

npx skills add orwa-mahmoud/nightshift --skill install-nightshift -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": "install-nightshift",
    "description": "Install the full Nightshift plugin, with its hooks and runtime, into Claude Code, Codex or Cursor."
}

Install Nightshift

Nightshift is a plugin, not a standalone skill. Its skills call a bundled runtime and depend on hooks: the clock-out gate, the guard and the usage accounting. A copied skill folder carries none of that, so this skill installs the real plugin from its marketplace, https://github.com/orwa-mahmoud/nightshift, on each host the user wants it on.

1. Read what is installed

Check each host that exists on this machine. A host whose CLI is not on PATH and whose folder is absent is not installed. Skip it.

Host Present when Nightshift installed when
Claude Code claude runs claude plugin list shows nightshift@nightshift
Codex codex runs codex plugin list shows a nightshift@… entry installed
Cursor ~/.cursor exists ~/.cursor/plugins/cache/ holds a folder with nightshift in its name

On Windows, ~ is %USERPROFILE%. Report each host on one line: absent, present without Nightshift, or present with Nightshift and its version.

One copy per host. Codex can hold two Nightshift copies, for example a directory install and the marketplace one. Two enabled copies both run their hooks, and Start refuses the shift. When a host shows two, name both with their versions, keep the nightshift@nightshift copy, and give the user the command to remove the other, such as codex plugin remove nightshift@<other-marketplace>. Never add a copy beside an existing one.

2. Install on this host first

Install on the host you are running in, unless it already has Nightshift. For an older version, update it instead.

  • Claude Code

    claude plugin marketplace add orwa-mahmoud/nightshift
    claude plugin install nightshift@nightshift
    

    Update: claude plugin marketplace update nightshift, then claude plugin update nightshift@nightshift.

  • Codex

    codex plugin marketplace add orwa-mahmoud/nightshift
    codex plugin add nightshift@nightshift
    

    Update: codex plugin marketplace upgrade nightshift.

  • Cursor installs plugins in its own window. Give the user these steps: open Customize → Add → From GitHub Repository, paste https://github.com/orwa-mahmoud/nightshift, choose a scope, select Import, then select Nightshift from the imported marketplace.

A marketplace that is already added makes marketplace add report it. That is not a failure; continue with the install.

3. Offer the other hosts

For each other host that is present without Nightshift, ask once whether to set it up as well, and install only on a yes. Never install on a host the user did not agree to.

4. Say what each host still needs

Finish with one line per host you touched:

  • Claude Code: restart Claude Code to load the plugin.
  • Codex: review and trust the plugin's hooks with /hooks, then start a new conversation.
  • Cursor: start a new agent chat once Nightshift shows as installed.

Then name the first step: open the project Nightshift should work on, and run Setup (/nightshift:setup on Claude Code and Cursor, $nightshift:setup on Codex).

If a command fails, show its output and stop on that host. Do not retry with other flags.

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-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
plugins/nightshift/skills/stop/SKILL.md

Metadata

Files
0
Version
0476ca0
Hash
61113a30
Indexed
2026-11-25 11:58

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-25 19:14
浙ICP备14020137号-1