reset

reset is a skill for Claude Code from orwa-mahmoud/nightshift. It costs 17 tokens per session (629 once invoked), scanned A, original, MIT.

Uma habilidade para recuperar o funcionamento interno do Nightshift, um sistema local de acompanhamento de tarefas, quando o estado de execução está confuso ou danificado. Ela preserva o trabalho, as regras e o histórico existentes.

In plain words
What is it for?
Serve para redefinir os mecanismos de execução do Nightshift e voltar a um estado operacional sem remover a lista de tarefas, o histórico ou as regras.
Why use it?
Evita apagar evidências ou documentos do projeto ao corrigir problemas no estado de execução. Também garante que os arquivos de recuperação sejam lidos no diretório correto.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PROJECT_DIR} variable. Also seen: mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the nightshift plugin — 13 skills, 4 hooks shipped together

Good fit Serve para redefinir os mecanismos de execução do Nightshift e voltar a um estado operacional sem remover a lista de tarefas, o histórico ou as regras.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add orwa-mahmoud/nightshift
Claude Code
/plugin install nightshift

Made for: Claude Code.

Or install nightshift, the plugin that ships this one along with the rest of its 13 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reset

README.md
[![agentmods](https://agentmods.dev/badge/skills/orwa-mahmoud/nightshift/reset.svg)](https://agentmods.dev/skills/orwa-mahmoud/nightshift/reset)
Your own site
<a href="https://agentmods.dev/skills/orwa-mahmoud/nightshift/reset"><img src="https://agentmods.dev/badge/skills/orwa-mahmoud/nightshift/reset.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 629 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00629
Opus 5 $0.00009 $0.00315
Sonnet 5 $0.00003 $0.00126
Haiku 4.5 $0.00002 $0.00063

Measured yesterday against content hash 9f76f01ade1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

reset scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/nightshift/skills/reset/SKILL.md · 50 lines

What it actually says

Reset runtime mechanics for the host-opened project. This recovers from damaged or confusing runtime state. It does not delete the punch list, rules, history, or .nightshift/ itself.

Bind once, then never search, guess, or re-resolve. $TASK_ROOT is the host-opened project folder: ${CLAUDE_PROJECT_DIR} on Claude Code; on Codex the CODEX_PROJECT_DIR recovery override when Nightshift set it, otherwise pwd -P captured before any other shell call. $NIGHTSHIFT_WORKSPACE is the validated absolute target of $TASK_ROOT/.nightshift-link when that link exists, otherwise $TASK_ROOT. Then NS="$NIGHTSHIFT_WORKSPACE/.nightshift" (native Windows: $NS = Join-Path $NIGHTSHIFT_WORKSPACE '.nightshift'), and every Nightshift file is $NS/<name> for the rest of the run; helpers taking --project or -Project receive "$NIGHTSHIFT_WORKSPACE". The shell's working directory persists between calls, so a bare path is never safe.

Resolve the installed plugin root to an absolute $NIGHTSHIFT_PLUGIN_ROOT: use ${CLAUDE_PLUGIN_ROOT} on Claude Code; on Codex use $PLUGIN_ROOT when available, otherwise derive it from the absolute path attached to this skill (skills/reset/SKILL.md). Substitute that absolute path below; never search for the plugin.

On native Windows, use the PowerShell tool and native paths throughout. Resolve the same values from $env:CLAUDE_PROJECT_DIR, $env:CODEX_PROJECT_DIR, and $env:PLUGIN_ROOT, with [Environment]::CurrentDirectory as the Codex cwd fallback. Do not route Reset through WSL or Git Bash.

Run the trusted helper. Do not delete runtime files by hand:

"$NIGHTSHIFT_PLUGIN_ROOT/runtime/reset-shift.sh" --project "$NIGHTSHIFT_WORKSPACE"

On native Windows:

& "$NIGHTSHIFT_PLUGIN_ROOT\runtime\windows\reset-shift.ps1" -Project "$NIGHTSHIFT_WORKSPACE"

The helper first performs Stop (pause and disarm), then removes the current deadline, leftover STOP, and temporary session, recovery, watchman, lease, and mutex markers. It preserves the punch list and unfinished items, rules, parking lot, work orders, receipts, archives, research, opportunities, snag log, shift log, and workspace configuration such as work-target and work-mode. A second Reset is safe. It never deletes .nightshift/.

Report that the deadline was removed and that durable files remain. The plugin install is untouched. Start after Reset writes a new deadline only when Hunt, a work order, or the owner supplies one — it does not invent a time budget.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -4 lines 9f76f01ade1f
  2. 7d ago First seen · 54 lines · 17 tokens per session scan A 583fb41d6aef

Subscribe to this mod's changes

reset is a skill published in the GitHub repository orwa-mahmoud/nightshift (52 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 629 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hive.chart-creation-foundations

Required reading whenever any chart tool is available. Teaches the one-tool embedding contract (call chartrender → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no…

aden-hive/hive · 133 tokens

browser-edge-cases

SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.

aden-hive/hive · 40 tokens

article-writer

Multi-style article creation skill. Supports 5 writing styles (deep analysis, practical guide, story-driven, opinion, news brief), including complete workflow: material collection → outline → content → formatting. Activated when users mention "write article", "write post", "create", or "draft".

netease-youdao/LobsterAI · 62 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens

weather

Get current weather and forecasts (no API key required).

netease-youdao/LobsterAI · 13 tokens

hive.note-taking

Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.

aden-hive/hive · 30 tokens