flight-recorder

flight-recorder is a skill for Claude Code, Codex from bolivian-peru/os-moda. It costs 27 tokens per session (704 once invoked), scanned A, original, Apache-2.0.

A server history recorder that periodically saves small snapshots of system health, running processes, and network connections. It keeps these snapshots for investigating incidents later.

In plain words
What is it for?
Use it to review CPU, memory, processes, connections, system logs, and recorded events around an incident such as a server crash.
Why use it?
It provides evidence from before and during a crash or outage, even when the problem is no longer happening. This makes it easier to reconstruct what happened at a specific time.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; built for openclaw.

Good fit Use it to review CPU, memory, processes, connections, system logs, and recorded events around an incident such as a server crash.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bolivian-peru/os-moda/flight-recorder
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 bolivian-peru/os-moda --skill flight-recorder
Clone the repo
git clone --depth 1 https://github.com/bolivian-peru/os-moda

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 flight-recorder

README.md
[![agentmods](https://agentmods.dev/badge/skills/bolivian-peru/os-moda/flight-recorder/github.svg)](https://agentmods.dev/skills/bolivian-peru/os-moda/flight-recorder)
Your own site
<a href="https://agentmods.dev/skills/bolivian-peru/os-moda/flight-recorder"><img src="https://agentmods.dev/badge/skills/bolivian-peru/os-moda/flight-recorder/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 flight-recorder

Your own site · 80×15
<a href="https://agentmods.dev/skills/bolivian-peru/os-moda/flight-recorder"><img src="https://agentmods.dev/badge/skills/bolivian-peru/os-moda/flight-recorder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 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.00027 $0.00704
Opus 5.5 $0.00011 $0.00282
Sonnet 5.5 $0.00005 $0.00141
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

flight-recorder 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 3mo 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.

skills/flight-recorder/SKILL.md · 92 lines

How it starts

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

Flight Recorder — Server Black Box

Continuous state capture for post-incident forensics.

Snapshot Capture (run every 5 minutes via heartbeat)

Capture a lightweight system snapshot:

system_health()
shell_exec({ command: "ps aux --sort=-%mem | head -10" })
shell_exec({ command: "ss -s" })  # connection summary

Store as a compact memory entry:

memory_store({
  summary: "Flight recorder: CPU 12%, RAM 4.1G, load 0.3, 142 connections",
  detail: "Top processes: postgres 1.2G, openclaw 380M, node 210M. Net: 142 established, 12 listening.",
  category: "system.config",
  tags: "flight-recorder,snapshot,telemetry"
})

Post-Incident Analysis

When investigating "what happened at 3 AM":

1. Pull flight recorder snapshots

memory_recall({ query: "flight-recorder snapshot", timeframe: "24h", max_results: 50 })

2. Pull journal logs for the incident window

journal_logs({ since: "2 hours ago", priority: "warning", lines: 100 })

3. Pull audit ledger

event_log({ limit: 50 })

4. Reconstruct the incident

Present a forensic timeline:

Incident Report — Server Crash at 03:12 UTC

Timeline:
  02:00  Flight recorder: CPU 15%, RAM 5.2G (normal)
  02:30  Flight recorder: CPU 23%, RAM 5.8G (rising)
  02:47  Flight recorder: CPU 89%, RAM 7.1G (critical)
  02:47  OOM killer triggered (killed: postgres worker)
  02:48  PostgreSQL: 3 connections terminated
  02:49  App health check failed → Caddy returned 502
  02:51  systemd restarted PostgreSQL automatically
  02:52  All services recovered
  02:55  Flight recorder: CPU 12%, RAM 4.1G (normal)

Root cause: PostgreSQL autovacuum on users table (12M rows)
during traffic spike. Memory peaked at 7.4/7.6 GB.

Recommendations:
  1. Add 2GB swap (NixOS config change)
  2. Schedule autovacuum for low-traffic hours
  3. Consider 16GB RAM plan ($6/mo more on Hetzner)

All data sourced from flight recorder snapshots,
journal logs, and audit ledger. Chain verified.

Data Retention

Read the full file on GitHub · 92 lines

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. 3mo ago First seen · 92 lines · 27 tokens per session scan A f3f5a2e91f9c

Subscribe to this mod's changes

flight-recorder is a skill published in the GitHub repository bolivian-peru/os-moda (123 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 704 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-08-30.

Related

flight-recorder compared with skills from other repositories

flight-recorder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flight-recorderbolivian-peru/os-modaSkill1235mo agoApache-2.0A27Claude Code, Codex
endpoint-triageellmos-ai/skillsSkill10todayMITA111Claude Code, Codex
hex-annotateanomalyco/hexSkill9.3ktodayMITA139Claude Code, Codex
agentsight-bugfixalibaba/anolisaSkill6889d agoApache-2.0A67Claude Code, Codex
rabbitmqArvo-AI/auroraSkill471todayApache-2.0A25Claude Code
forge-diagnosetonone-ai/tononeSkill843d agoMITA63Claude Code
gateway-doctoroyi77/1ai-skillsSkill19todayMITA29Claude Code