Agent skill

Self Ops

by spytensor in spytensor/openmozi

Runtime self-diagnosis knowledge: database layout, observability APIs, timeout hierarchy, restart procedure, failure replay.

MITAuto-check passedDevOps & Cloud

Install Self Ops

skills CLI
$ npx skills add spytensor/openmozi --skill self-ops -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install spytensor/openmozi self-ops --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/spytensor/openmozi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/self-ops .claude/skills/self-ops && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
self-ops
GitHub stars
439
Token cost
~767 tokens
SKILL.md length
311 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
MIT

At a glance

Runtime self-diagnosis knowledge: database layout, observability APIs, timeout hierarchy, restart procedure, failure replay.

  • The user asks to debug this runtime itself — inspect its database
  • SKILL.md covers Database, Observability, Timeout Hierarchy and Process Management, plus 1 more section
  • Calls pnpm
  • Prompt snapshots

What it does

Self Ops is an agent skill from spytensor/openmozi. Runtime self-diagnosis knowledge: database layout, observability APIs, timeout hierarchy, restart procedure, failure replay. Use when the user asks to debug this runtime itself — inspect its database, traces, prompt snapshots, timeouts, service health, or configuration.

Its SKILL.md is about 770 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Observability. The repository describes itself as: A custom Agent OS built to be hackable, heavily inspired by OpenClaw. The licence is MIT.

When your agent uses it

  • The user asks to debug this runtime itself — inspect its database
  • Prompt snapshots

Example prompts

  • “/self-ops”

What it can do on your machine

Read from SKILL.md and the folder at commit ac46df0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Self Ops loads about 767 tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 311 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~767

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from spytensor/openmozi at commit ac46df0, republished under its MIT licence (© spytensor). 311 words, ~767 tokens.

Download SKILL.mdSave it as .claude/skills/self-ops/SKILL.md (or your agent's skills folder).
name
self-ops
description
Runtime self-diagnosis knowledge: database layout, observability APIs, timeout hierarchy, restart procedure, failure replay. Use when the user asks to debug this runtime itself — inspect its database, traces, prompt snapshots, timeouts, service health, or configuration.
version
1.0.0
category
system
user-invocable
true
metadata.priority
50

Runtime Self-Ops

Knowledge for diagnosing and operating this runtime. Verify claims with tools before reporting — never say "database is empty" without querying it.

Database

  • Location: ~/.mozi/data/mozi.db (SQLite, WAL mode). But do not assume ~/.mozi is the active home — check /api/health for the real mozi_home.
  • Inspect: shell_exec('sqlite3 ~/.mozi/data/mozi.db ".tables"').
  • Key tables: skill_versions, agent_registry, memory_facts, conversations, tasks, event_log, turn_traces, tool_spans, prompt_snapshots, system_state.
  • Startup sequence: config load → DB init → migrations → bootstrap → workspace skills → channels. Schema evolution must stay additive for legacy DBs.

Observability

  • Every turn has a persistent trace_id in turn_traces; each tool call writes a span in tool_spans.
  • Prompt snapshots are captured per turn into prompt_snapshots (context slot breakdown, tool set, token budgets) and auto-pruned.
  • Dashboard APIs: /api/dashboard/models for model dimensions; /api/dashboard/slo?period=day|week|month&tenantId=...&model=... for success rate, latency, failure categories, cost, and recent traces/spans.
  • The failure replay harness can export a fixture by trace_id and generate a regression test skeleton.
  • Anchor reliability explanations to concrete trace IDs and span failures, not generic summaries.

Timeout Hierarchy

Timeouts are nested; inner fires before outer:

  • Tool SLA: per-tool execution timeout (default 60s, tel.tools).
  • LLM call: single inference timeout (tools.loops.llm_call_timeout_ms, default 300s). For CLI-pipe providers this covers the full agent turn.
  • Turn timeout: end-to-end loop runtime per turn (tools.loops.max_elapsed_ms, default 600s), checked between iterations.
  • Channel timeout: channel-level guard (e.g. telegram.interactive_turn_timeout_ms, default 600s).

Process Management

  • Restart ONLY via the restart_self tool. NEVER via shell_exec with pnpm mozi stop/start/restart — that kills your own process and leaves the runtime offline.
  • Runtime service state: /api/runtime/service for installed/enabled/active status. Do not infer always-on behavior from the presence of a plist/unit path.
  • Token budgets are model-aware and auto-compact at watermarks; oversized output requests are clamped before dispatch.

Reading Own Source

  • Source code (read-only) lives under the runtime project root; workspace is the read-write area. Never confuse them.
  • To change own code: copy the file to workspace, edit there, then apply back with shell_exec (cp / git).

© spytensor, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/self-ops of spytensor/openmozi.

Open the folder on GitHubat commit ac46df0

Compare with similar skills

Self Ops next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Self Ops compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Self Ops this skillspytensor/openmozi439—~767Automated safety check: PassMIT
Vercel Optimize Auditvercel-labs/agent-skills32k8 repos~4.3kAutomated safety check: PassNone
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0
Kubeshark KFL2 Filter Referencekubeshark/kubeshark12k—~3.6kAutomated safety check: PassApache-2.0
KubeSphere ServiceMesh Managerkubesphere/kubesphere17k—~2.4kAutomated safety check: PassCustom licence
Kubernetes Network Root Cause Analysiskubeshark/kubeshark12k—~5.3kAutomated safety check: PassApache-2.0

Similar skills

  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 8 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated 6 days ago
    DevOps & CloudAuto-check: notes
  • Syntax reference for KFL2, the CEL-based display filter language used to search Kubernetes network traffic captured by Kubeshark, loaded before any filter is written.

    12k GitHub stars~3.6k tokensUpdated 6 days ago
    DevOps & CloudAuto-check passed
  • KubeSphere ServiceMesh Manager

    kubesphere/kubesphere

    Installs, checks and troubleshoots the KubeSphere ServiceMesh extension (Istio, Kiali, Jaeger), including grayscale release, sidecar injection, topology and tracing issues.

    17k GitHub stars~2.4k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Investigates past Kubernetes incidents from Kubeshark traffic snapshots: takes captures, dissects API calls, extracts PCAPs and compares traffic over time.

    12k GitHub stars~5.3k tokensUpdated 6 days ago
    DevOps & CloudAuto-check passed
  • Caveman Gateway Setup

    JuliusBrussee/caveman

    Routes every LLM call in a repository through the Caveman Cloud gateway in record mode, so requests and costs are measured without changing behavior.

    110k GitHub starsUsed in 1 repo~2.6k tokens
    DevOps & CloudAuto-check: warnings

More from spytensor/openmozi

All 13 skills in this repo
  • Commit

    spytensor/openmozi

    Smart commit: bump version, find related issues, commit with Co-authored-by, push.

    439 GitHub stars~480 tokensUpdated 2 mo ago
    Auto-check passed
  • Pipeline

    spytensor/openmozi

    Full development pipeline: create GitHub issue, plan, implement with agent team, verify (build+test), commit, push, close issue.

    439 GitHub stars~549 tokensUpdated 2 mo ago
    Auto-check passed
  • Skill Authoring

    spytensor/openmozi

    How to install a skill package a user hands over (.skill/.zip/.tar.gz), and how to write a new skill into this runtime so it is listed, enabled and usable.

    439 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Coding Agent

    spytensor/openmozi

    Structured coding workflow: read, plan, implement, test, verify

    439 GitHub stars~723 tokensUpdated 2 mo ago
    Auto-check passed
  • Research Workflow

    spytensor/openmozi

    Structured research workflow: decompose the question, search in parallel, cross-verify sources, synthesize with citations.

    439 GitHub stars~594 tokensUpdated 2 mo ago
    Auto-check passed
  • Creative Writing

    spytensor/openmozi

    Creative content workflow: brief, research, outline, draft, refine.

    439 GitHub stars~373 tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Self Ops

What does Self Ops do?

Runtime self-diagnosis knowledge: database layout, observability APIs, timeout hierarchy, restart procedure, failure replay. Self Ops is an agent skill from spytensor/openmozi. Runtime self-diagnosis knowledge: database layout, observability APIs, timeout hierarchy, restart procedure, failure replay.

When should I use Self Ops?

Self Ops fits situations like: the user asks to debug this runtime itself — inspect its database; prompt snapshots.

How do I install Self Ops in Claude Code?

Run `npx skills add spytensor/openmozi --skill self-ops -a claude-code`. Or copy the skill folder (skills/self-ops in spytensor/openmozi) into .claude/skills/self-ops in your project. Claude Code loads it when a task matches its description.

How do I install Self Ops in Codex?

Run `npx skills add spytensor/openmozi --skill self-ops -a codex`. Or copy the skill folder (skills/self-ops in spytensor/openmozi) into .agents/skills/self-ops in your project. Codex loads it when a task matches its description.

Can I use Self Ops in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spytensor/openmozi --skill self-ops -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/self-ops, .gemini/skills/self-ops, .github/skills/self-ops and .opencode/skills/self-ops in your project.

What does Self Ops need to run?

Going by SKILL.md and its folder, Self Ops needs the command-line tools its instructions call (pnpm).

Does Self Ops access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Self Ops safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Self Ops use?

Self Ops is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Self Ops use?

About 767 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Self Ops?

Skills that share tags, products or a category with Self Ops: Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars), Kubeshark Installer (kubeshark/kubeshark, 12k stars), Kubeshark KFL2 Filter Reference (kubeshark/kubeshark, 12k stars) and KubeSphere ServiceMesh Manager (kubesphere/kubesphere, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Self Ops?

spytensor (a GitHub user) maintains it in spytensor/openmozi, which has 439 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on August 7, 2026.

Source: spytensor/openmozi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.