Skip to content
Back to skills

Np Flow Quota Watch

BSecurity

Detect a claude.ai usage-limit (quota) violation and get nudged to resume automatically once it resets. Use when a session hit "usage limit reached", when debugging why the resume nudge didn't fire, or when asked to check quota-watch status, install/enable/disable it, or adjust its resume delay.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentspythonbashdebuggingapi

Works with

  • cli
  • api

Security analysis

B85/100
  • highCreates or modifies cron jobs for persistent execution

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add pat-browne/nervepack --skill np-flow-quota-watch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Np Flow Quota Watch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Np Flow Quota Watch
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/pat-browne-np-flow-quota-watch/badge)](https://www.skillsdirectory.com/skills/pat-browne-np-flow-quota-watch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: np-flow-quota-watch
description: Detect a claude.ai usage-limit (quota) violation and get nudged to resume automatically once it resets. Use when a session hit "usage limit reached", when debugging why the resume nudge didn't fire, or when asked to check quota-watch status, install/enable/disable it, or adjust its resume delay.
---

# np-flow-quota-watch

Watches for the `Claude AI usage limit reached|<unix_ts>` message and gets
you nudged to type "continue" one minute after the limit resets.

## How it triggers

Two paths feed the same detector in `engine/nervepack_engine/np_quota_watch.py`:

- **`quota-detect` Stop hook** — fires after every turn, reads that turn's
  transcript, and schedules a nudge the moment the message appears.
- **`quota-watch` cron** — runs every 30 minutes, scans transcripts touched
  in the last 35 minutes, and catches a limit hit mid-tool-call where no
  Stop event fired at all. It also fires an overdue nudge if the precise
  `at` job never ran.

## Resume mechanism

A desktop notification (`notify-send` on Linux, `osascript` on macOS) one
minute after the API's own reset timestamp, telling you to type "continue".
No tmux injection, no headless `claude -p` respawn — the interactive
session gets nudged, not driven.

Precise timing needs the `at` package (`sudo apt install -y at`, already
in `np_bootstrap._APT_PACKAGES`). Without `at`, the nudge still fires, but
only on the next 30-minute cron pass after reset.

## Debugging

```bash
cat ~/.cache/nervepack/quota-watch-state.json   # last detected/scheduled/notified
tail -30 ~/.cache/nervepack/quota-watch.log
python3 "${NP_DIR:-$HOME/Code/nervepack}/engine/nervepack_engine/cli.py" cron quota-watch
```

`at -l` lists any pending scheduled nudge jobs. `crontab -l | grep quota-watch`
confirms the 30-min cron is installed.

## Toggle

`np-core-toggle quota_watch on|off`, or set the resume delay:
`cli.py toggle param quota_watch.resume_delay_s 60`.

## Installing on a new machine

Part of the standard install: `cli.py setup install-hooks` registers the
Stop hook, `cli.py setup install-memory-cron` installs the 30-min cron.
Both already run as part of nervepack onboarding — see `np-core-onboard`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.