nextclaw-self-manage

nextclaw-self-manage is a skill for Claude Code, Codex from Peiiii/nextclaw. It costs 79 tokens per session (3,167 once invoked), scanned A, original, MIT.

A command-line guide for managing the NextClaw runtime, the software environment that runs NextClaw agents and apps. It covers installation, services, configuration, projects, sessions, channels, apps, scheduled jobs, updates, and diagnostics.

In plain words
What is it for?
Use it to inspect versions and status, run diagnostics, manage agents and projects, configure channels, operate apps, handle scheduled jobs, and update NextClaw.
Why use it?
It gives the correct procedure for checking and changing NextClaw itself, including investigating crashes, background exits, and connection addresses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect versions and status, run diagnostics, manage agents and projects, configure channels, operate apps, handle scheduled jobs, and update NextClaw.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peiiii/nextclaw/nextclaw-self-manage
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 Peiiii/nextclaw --skill nextclaw-self-manage
Clone the repo
git clone --depth 1 https://github.com/Peiiii/nextclaw

Made for: Claude Code, Codex.

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 nextclaw-self-manage

README.md
[![agentmods](https://agentmods.dev/badge/skills/peiiii/nextclaw/nextclaw-self-manage/github.svg)](https://agentmods.dev/skills/peiiii/nextclaw/nextclaw-self-manage)
Your own site
<a href="https://agentmods.dev/skills/peiiii/nextclaw/nextclaw-self-manage"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/nextclaw-self-manage/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 nextclaw-self-manage

Your own site · 80×15
<a href="https://agentmods.dev/skills/peiiii/nextclaw/nextclaw-self-manage"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/nextclaw-self-manage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,167 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 35
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00079 $0.03167
Opus 5.5 $0.00032 $0.01267
Sonnet 5.5 $0.00016 $0.00633
Haiku 4.5 $0.00008 $0.00317

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

Security

Grade A, and why

nextclaw-self-manage 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.

packages/nextclaw-core/src/features/agent/shared/skills/nextclaw-self-manage/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NextClaw Self-Management

Use this skill whenever the user asks to manage NextClaw itself (version, service status, diagnostics, channels, config, agents, projects, sessions, apps and App data, cron, remote, update, installed skills, marketplace skills, local HTTP/API/webhook addresses), report a NextClaw problem, or follow up on a reported problem.

Source of Truth

Always use the built-in NextClaw self-management guide as the operation guide.

  1. Read the built-in guide path provided by the system prompt first.
  2. If the packaged guide is unavailable in a repo source checkout, use repo docs path docs/USAGE.md.
  3. Never treat workspace USAGE.md snapshots or copied artifacts as the source of truth.
  4. If both guide paths are unavailable, use nextclaw --help and nextclaw <subcommand> --help as fallback and tell the user that guide file is missing.

Routing Rules

  • Treat NextClaw self-management as a product-management intent, not a generic "create/install/publish" intent.
  • Read the built-in self-management guide before opening unrelated generic skills.
  • Example: "create a new Agent" maps to NextClaw agent management, not skill-creator.

Stable Execution Rules

  • Map CLI/runtime version lookup to nextclaw --version. When the question is about the process currently serving NextClaw, use nextclaw status --json and read runtime.version; do not substitute the CLI version, launcher version, or bundle pointer.
  • Treat nextclaw update --channel beta as opting into both preview and production candidates; the updater offers whichever compatible version is newer. The stable channel remains production-only.
  • For an explicitly authorized self-update, run nextclaw update through the ordinary exec/CLI path. If its result requires a restart, then run nextclaw restart; never look for or invent an agent-only update tool.
  • Same-machine CLI restart/status authenticate through the local bridge when web login protection is enabled. Do not request browser cookies or disable protection. Report an update as complete only after the serving runtime.version matches the target; if authentication or a custom launcher override blocks the transition, report the installed and running states separately.
  • Prefer machine-readable output: use --json when available.
  • For questions about the current installation kind, data directory, runtime home, Desktop data, logs, config path, or workspace, run nextclaw status --json and read instance / storage. Documentation paths are defaults or examples, never proof of the current instance. If status is unavailable or a field is unknown, say that the current value cannot be verified; only then describe a default conditionally.
  • Before calling local HTTP APIs or /webhook, run nextclaw status --json and read endpoints.uiUrl / endpoints.apiUrl; do not guess the service port.
  • For webhook payload details, read the focused guide linked from the self-management guide only when you need to implement or debug a webhook caller.
  • Execute only commands documented in the self-management guide or CLI help; do not invent commands or config paths.
  • When the user asks to report a NextClaw problem, use the guide's private feedback commands yourself, without sending the user to a form. Submit only relevant, redacted reproduction details; never require GitHub login. Keep receipt keys private, reuse saved request IDs after uncertain submission, and query the original report for replies. A released fix does not authorize upgrading the user's environment.
  • When the user asks about their reports, use feedback list/get/reply yourself and explain actual maintainer replies. Do not create an AI polling job by default. Distinguish ready from published; report query failures honestly and never infer resolution from silence. Suggest submitting a report when a relevant bug is observed, but obtain the user's intent to submit before sending diagnostic details.
  • Prefer object-level CLI commands for configuration management. For providers/models/search, use nextclaw providers ..., nextclaw models ..., and nextclaw search ...; do not read/edit config files or substitute generic config set/unset or gateway config actions for these covered tasks.
  • Generic config commands and gateway config tools remain transitional options only for documented capabilities not covered by object-level CLI or explicit manual recovery. A missing running host is not a reason to silently edit files instead.
  • Read API keys from a named environment variable with --api-key-env; never print the variable or copy credentials into a command argument. Query saved settings with the relevant show command, and verify provider connectivity with providers test. An API apply failure is not success even if values were saved.
  • Provider model discovery does not save models. providers models set replaces the full list; providers models configure replaces all capability overrides. Query existing settings first and include entries the user intends to keep.
  • For provider authorization, follow the URI/code from providers auth start, poll the returned session id at the advertised interval, and treat only authorized as completion. providers auth import is available for supported external CLI credentials.
  • In desktop-installed runtimes, still use the same nextclaw ... commands. The desktop launcher provides a managed command surface to AI command tools; do not ask the user to install the NPM CLI just to run self-management commands.
  • Keep installed skills and marketplace catalog as two different domains:
    • local installed: nextclaw skills installed|info
    • marketplace catalog and installed marketplace lifecycle: nextclaw marketplace skills search|info|recommend|install|update
  • After mutating operations, close the loop with:
    • nextclaw status --json
    • and nextclaw doctor --json when needed
  • Be explicit about restart semantics after changes. When the user has authorized a required restart, invoke nextclaw restart directly. The active connection can briefly disconnect; the controlled-restart handoff continues eligible interrupted sessions after the replacement host is ready. If the running host is unavailable or predates recovery support, use an external-terminal restart and disclose that automatic continuation is unavailable for that transition.
  • nextclaw gateway starts a foreground gateway. It has no start, status, restart, or stop subcommands.
  • After modifying a running Service App, run nextclaw app restart <app-id> --json before validating through the live product UI or panel-to-service action calls.
  • Treat App code and managed App data as separate lifecycles. Uninstall/removal keeps managed data by default; delete it only when the user explicitly chooses the destructive data-removal option.
  • For App data discovery, run nextclaw app data list --json against the running host. Treat the returned id, appId, lifecycle, usage breakdown, and instance path as authoritative.
  • Independently delete only an entry whose latest list result says lifecycle: retained and actions.deleteRetainedData: true. Use nextclaw app data delete <data-id> --confirm <app-id> --json, where the data id comes from that list result and the confirmation exactly matches its appId.
  • Never synthesize App data ids, delete an active entry through the retained-data command, or substitute direct recursive filesystem deletion for the managed API. After deletion, run nextclaw app data list --json again and verify the exact entry is absent.
  • Reset a Service App development instance only when explicitly requested, using nextclaw app dev <service-app-dir> --reset-data --confirm <app-id> --json; the confirmation must match the manifest id.
  • App data removal never authorizes deletion of documents or directories separately granted to the App outside its managed instance.
  • For channel discovery before messaging, use nextclaw channels list --json and treat returned channels[].id values as authoritative.
  • For cron notifications, do not add delivery flags to the cron command. Put the notification intent in the scheduled message and let the scheduled agent call the message tool with an explicit channel and recipient.
  • For Agent creation/update/removal, treat nextclaw agents list|new|update|remove --json as the default path and follow the Agent management section in the self-management guide.
  • For runtime context injection, use nextclaw agents runtime config <runtime-id> --json to inspect and --inject-nextclaw-context <true|false> to update. Apply the authorized restart using the lifecycle guidance above.
  • Automatic continuation requires a supported managed/foreground host or NextClaw systemd service and plain nextclaw restart, without port/open/timeout overrides. Desktop/other-supervisor exits and legacy stop/start transitions do not carry this handoff. If the restart request times out, inspect status before retrying; an interrupted tool result is not proof that the restart failed.
  • For project creation, existing-directory registration, discovery, or removal, use nextclaw projects list|templates|create|register|remove --json; register <directory> preserves directory contents and accepts optional --name, while project removal requires --confirm <project-id> and preserves the local folder, sessions, and Project Work. Do not synthesize placeholder sessions or edit the project registry file directly.
  • For session naming, pinning, project binding, or deletion, use nextclaw sessions rename|pin|unpin|set-project|clear-project|delete --json; pin and unpin persist on the instance. Deletion also requires --confirm <session-id>. Do not edit session journal metadata directly.
  • Do not edit config.json or agents.list directly for normal Agent CRUD; only do that when the user explicitly wants a manual recovery path.
  • When creating an Agent, prefer an explicit non-text avatar and avoid text-based styles such as DiceBear initials.

Read the full file on GitHub · 124 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed 7476d3b40948
  2. 2mo ago Changed 151a7e089e63
  3. 2mo ago Changed · +7 lines 08d5b51689c0
  4. 2mo ago Changed · +1 lines 9edeffb2e4af
  5. 2mo ago Changed · +2 lines cc7a2270617c
  6. 2mo ago Changed · +2 lines · +8 tokens per session b9c09d654c64
  7. 2mo ago Changed · +8 lines 010116e5dff2
  8. 2mo ago Changed · +1 lines 8976feec797f
  9. 3mo ago First seen · 103 lines · 71 tokens per session scan A 46316301c3c7

Subscribe to this mod's changes

nextclaw-self-manage is a skill published in the GitHub repository Peiiii/nextclaw (266 stars, last pushed today), licensed MIT. It adds 79 tokens to every session and 3,167 once invoked, about $0.0003 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-08-30.

Related

nextclaw-self-manage compared with skills from other repositories

nextclaw-self-manage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nextclaw-self-managePeiiii/nextclawSkill266todayMITA79Claude Code, Codex
ha-skill-creatorshiwenwen/hope-agentSkill1.9ktodayMITA106Claude Code
ha-browsershiwenwen/hope-agentSkill1.9ktodayMITA140Claude Code
ha-logsshiwenwen/hope-agentSkill1.9ktodayMITA183Claude Code, Codex
ha-pet-importshiwenwen/hope-agentSkill1.9ktodayMITA109Codex
ha-skill-installershiwenwen/hope-agentSkill1.9ktodayMITA82Claude Code, Codex
email-draftshiwenwen/hope-agentSkill1.9ktodayMITA46Claude Code, Codex