night-watch

night-watch is a skill for Claude Code from softspark/ai-toolkit. It costs 36 tokens per session (535 once invoked), scanned A, original, Apache-2.0.

An autonomous maintenance workflow for dependency updates, dead-code removal, and small refactors in a separate Git branch.

In plain words
What is it for?
Use it for off-hours cleanup, dependency updates, small refactors, full test runs, and maintenance reports.
Why use it?
It keeps routine maintenance isolated and requires tests and discrete commits before changes are accepted.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it for off-hours cleanup, dependency updates, small refactors, full test runs, and maintenance reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/softspark/ai-toolkit/night-watch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add softspark/ai-toolkit --skill night-watch
Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 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 night-watch

README.md
[![agentmods](https://agentmods.dev/badge/skills/softspark/ai-toolkit/night-watch/github.svg)](https://agentmods.dev/skills/softspark/ai-toolkit/night-watch)
Your own site
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/night-watch"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/night-watch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for night-watch

Your own site · 80×15
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/night-watch"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/night-watch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.00535
Opus 5.5 $0.00014 $0.00214
Sonnet 5.5 $0.00007 $0.00107
Haiku 4.5 $0.00004 $0.00053

Measured 1mo ago against content hash f9bf7596a43e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

night-watch 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 1mo ago.

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.

app/skills/night-watch/SKILL.md · 50 lines

What it actually says

Night Watch Command

Triggers the autonomous maintenance agent.

Usage

/night-watch [scope]
# Example: /night-watch deps
# Example: /night-watch cleanup
# Default: runs full suite

Protocol

  1. Checkout: Create maintenance/ branch.
  2. Execute: Run night-watchman agent skills.
  3. Verify: Run full test suite.
  4. Report: Generate Shift Report.

Rules

  • MUST work on a dedicated maintenance/ branch — never commit to main or the user's active branch
  • NEVER push without the full test suite passing
  • CRITICAL: stop on the first failing test and surface it — do not try to "fix" tests opportunistically
  • MANDATORY: every change lands in a discrete commit with a conventional message

Gotchas

  • npm audit fix bumps to the latest major version when --force is set — quietly introducing breaking changes. Always use plain npm audit fix first and only escalate to --force after the user approves each named package.
  • pip install --upgrade without a constraints file resolves differently each run due to transitive dependencies. Pin via pip-compile and commit the lockfile, otherwise maintenance runs produce "mysterious" unrelated changes.
  • git add -A on a maintenance run can pull in build artifacts and IDE caches if .gitignore is incomplete. Prefer explicit git add <path> per change category (deps, docs, lint-fixes) to keep commits attributable.
  • Pre-commit hooks that format on commit may re-modify files AFTER your edit — the resulting commit may differ from the planned diff. Run the formatter as a separate step and verify git diff --staged before committing.

When NOT to Use

  • For planned refactors with a known scope — use /refactor-plan
  • For immediate bug fixes — use /fix or /debug
  • In a repo the user is actively working in — wait for idle time
  • When there are uncommitted changes on the current branch — abort until clean
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. 1mo ago First seen · 50 lines · 36 tokens per session scan A f9bf7596a43e

Subscribe to this mod's changes

night-watch is a skill published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 5d ago), licensed Apache-2.0. It adds 36 tokens to every session and 535 once invoked, about $0.0001 per session on Opus 5.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-09-03.

Related

Other skills, from other repositories

git-commit

Safely create a git commit by validating repository state, staging intended changes, scanning for secrets/conflicts, generating a Conventional Commits message (repository convention first, else an English Angular default) from the staged diff, and committing without amend.

johnqtcg/awesome-skills · 52 tokens

lakefs-versioning

Use when lakeFS data versioning — Git-like branching for data lakes, atomic commits, time travel, CI/CD. Use when working with lakefs versioning.

oyi77/1ai-skills · 38 tokens

ship

Commit, push, create PR(s), and auto-finalize — full automation pipeline. Handles uncommitted changes and recently created PRs.

dryvist/claude-code-plugins · 30 tokens

conflict-resolver

Résolution de conflits entre agents ou sous-agents quand les résultats sont contradictoires, avec workflow de détection, arbitrage, merge et feedback loop. Se déclenche avec "conflit agent", "agent conflict", "résultats contradictoires", "agent disagreement", "contradiction agents", "arbitrage agent", "résoudre…

khalilbenaz/claude-skills-collection · 99 tokens

git-workflow-helper

Guide pour les opérations Git complexes, résolution de conflits et bonnes pratiques de workflow. À utiliser quand l'utilisateur est bloqué avec Git ou veut mettre en place un workflow. Se déclenche aussi avec "git merge conflict", "comment revert", "git rebase", "branching strategy", "j'ai cassé mon git", ou toute…

khalilbenaz/claude-skills-collection · 96 tokens

github-readme

Generate, audit, or update GitHub READMEs with project-type-aware structure, voice calibration, and SEO/AEO discoverability guidance. Three modes: generate (new), audit (check existing), update (patch). Detects repo type and adapts sections, tone, and badges accordingly.

thatrebeccarae/claude-marketing · 63 tokens