Post Mortem
thananon/9arm-skills
Write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through.
Detect service failures and system anomalies. An agent skill from bolivian-peru/os-moda.
$ npx skills add bolivian-peru/os-moda --skill self-healing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bolivian-peru/os-moda self-healing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/bolivian-peru/os-moda.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/self-healing .claude/skills/self-healing && rm -rf skills-srcUse ~/.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/
Install the "self-healing" agent skill from https://github.com/bolivian-peru/os-moda/tree/main/skills/self-healing into .claude/skills/self-healing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-healing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/bolivian-peru/os-moda/tree/main/skills/self-healingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add bolivian-peru/os-moda --skill self-healing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bolivian-peru/os-moda self-healing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bolivian-peru/os-moda.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/self-healing .agents/skills/self-healing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "self-healing" agent skill from https://github.com/bolivian-peru/os-moda/tree/main/skills/self-healing into .agents/skills/self-healing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-healing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bolivian-peru/os-moda --skill self-healing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bolivian-peru/os-moda self-healing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bolivian-peru/os-moda.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/self-healing .cursor/skills/self-healing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "self-healing" agent skill from https://github.com/bolivian-peru/os-moda/tree/main/skills/self-healing into .cursor/skills/self-healing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-healing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/bolivian-peru/os-moda.git --path skills/self-healing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add bolivian-peru/os-moda --skill self-healing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bolivian-peru/os-moda self-healing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bolivian-peru/os-moda.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/self-healing .gemini/skills/self-healing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "self-healing" agent skill from https://github.com/bolivian-peru/os-moda/tree/main/skills/self-healing into .gemini/skills/self-healing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-healing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install bolivian-peru/os-moda self-healingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add bolivian-peru/os-moda --skill self-healing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bolivian-peru/os-moda.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/self-healing .github/skills/self-healing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "self-healing" agent skill from https://github.com/bolivian-peru/os-moda/tree/main/skills/self-healing into .github/skills/self-healing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-healing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bolivian-peru/os-moda --skill self-healing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bolivian-peru/os-moda self-healing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bolivian-peru/os-moda.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/self-healing .opencode/skills/self-healing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "self-healing" agent skill from https://github.com/bolivian-peru/os-moda/tree/main/skills/self-healing into .opencode/skills/self-healing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-healing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
self-healingDetect service failures and system anomalies. An agent skill from bolivian-peru/os-moda.
Self Healing is an agent skill from bolivian-peru/os-moda. Detect service failures and system anomalies. Diagnose root causes. Auto-remediate using NixOS rollback, service restart, or config repair. Every action logged to the hash-chained audit ledger.
Its SKILL.md is about 960 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 Root cause analysis. The repository describes itself as: An operating system built for AI agents — talk to your NixOS server instead of SSH-ing in. Typed, audited tool access with atomic rollback on every change. Research-grade; run it… The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b8e418f. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Self Healing loads about 959 tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 300 words of instructions outside code blocks.
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.
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.
The full file from bolivian-peru/os-moda at commit b8e418f, republished under its Apache-2.0 licence (© bolivian-peru). 300 words, ~959 tokens.
.claude/skills/self-healing/SKILL.md (or your agent's skills folder).You can detect, diagnose, and fix system problems automatically.
When you detect a service failure or anomaly during a heartbeat check:
Check teachd for historical patterns first — teachd observes the system 24/7 between conversations
teach_context({ context: "nginx failure service down" })
teach_patterns({ min_confidence: 0.5 })This surfaces slow-burn issues (memory leaks, recurring failures, correlated events) that you wouldn't catch in a single conversation.
Confirm the failure — don't act on a single check
service_status({ service: "nginx" })If the service is down, check again after 10 seconds. If still down, proceed.
Check journal logs for why it failed
journal_logs({ unit: "nginx", lines: 30, priority: "err" })Recall past incidents — have we seen this before?
memory_recall({ query: "nginx failure", timeframe: "30d" })Determine the root cause before acting:
shell_exec({ command: "systemctl restart nginx" })Safe, fast, fixes 80% of issues.
If restart doesn't fix it, or if config is corrupted:
shell_exec({ command: "nixos-rebuild switch --rollback" })This atomically reverts to the last known-good NixOS generation.
If you can identify the exact config issue:
file_read({ path: "/etc/nixos/configuration.nix" })Fix the config, then rebuild:
shell_exec({ command: "nixos-rebuild switch" })If disk/memory is the problem:
shell_exec({ command: "nix-collect-garbage -d" })
shell_exec({ command: "journalctl --vacuum-size=500M" })ALWAYS do these three things:
Verify the fix worked
service_status({ service: "nginx" })Store in memory
memory_store({
summary: "nginx failure: config missing, rolled back to gen 47",
detail: "Full diagnosis and fix details...",
category: "diagnosis",
tags: "self-healing,nginx,rollback"
})Log to audit ledger — this happens automatically through agentd
After fixing an issue, compose a clear message for the user:
I detected nginx was down at 03:17 UTC.
Cause: The configuration file /etc/nginx/nginx.conf referenced
a missing upstream. This was introduced in NixOS generation 48
(rebuilt 2 hours ago).
Action: Rolled back to generation 47. nginx is running again.
All health checks pass.
Audit entry: #52 (hash: a7f3b2...)Keep it factual, concise, and include the audit reference.
© bolivian-peru, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/self-healing of bolivian-peru/os-moda.
Open the folder on GitHubat commit b8e418f
Self Healing 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Self Healing this skillbolivian-peru/os-moda | 119 | — | ~959 | Automated safety check: Pass | Apache-2.0 | |
| Post Mortemthananon/9arm-skills | 3.2k | — | ~3.4k | Automated safety check: Pass | None | |
| Incident Triage Harnessmadebyaris/advance-minimax-m3-cursor-rules | 126 | — | ~984 | Automated safety check: Pass | MIT | |
| GitHub Actions Failure Analysisykdojo/claude-code-tips | 10k | — | ~639 | Automated safety check: Pass | Custom licence | |
| Broken API InterviewerPrepLabsAI/InterviewMentor | 112 | — | ~2.6k | Automated safety check: Pass | MIT | |
| Post-Incident DebriefVeryGoodOpenSource/vgv-wingspan | 109 | — | ~1.9k | Automated safety check: Pass | MIT |
thananon/9arm-skills
Write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through.
madebyaris/advance-minimax-m3-cursor-rules
Walks an agent through an evidence-first incident investigation across logs, metrics, code and screenshots, from first symptom to the smallest safe mitigation.
ykdojo/claude-code-tips
Investigates a failed GitHub Actions run from its URL: pinpoints the real failure, checks the job's history for flakiness, and finds the breaking commit and any existing fix PR.
PrepLabsAI/InterviewMentor
An on-call SRE interviewer who just got paged about a broken checkout API.
VeryGoodOpenSource/vgv-wingspan
Produces a blameless post-incident debrief with timeline, root cause and follow-up actions after an outage, failed release or significant bug, while details are fresh.
openclaw/clawhub
Read the Convex deployment's 72h insights (read limits, OCC contention), root-cause each event in code, report evidence-backed perf/cost findings with fixes.
bolivian-peru/os-moda
Deploy and manage user applications as managed systemd services
bolivian-peru/os-moda
Deploy and manage AI agent workloads with GPU checks, API key management, and health monitoring
bolivian-peru/os-moda
Detect configuration drift — manual changes that exist outside NixOS management.
bolivian-peru/os-moda
Black box flight recorder for the server. An agent skill from bolivian-peru/os-moda.
bolivian-peru/os-moda
NixOS generation-aware debugging and time-travel. An agent skill from bolivian-peru/os-moda.
bolivian-peru/os-moda
Generate a concise daily infrastructure briefing. An agent skill from bolivian-peru/os-moda.
Categories
Detect service failures and system anomalies. An agent skill from bolivian-peru/os-moda. Self Healing is an agent skill from bolivian-peru/os-moda. Detect service failures and system anomalies.
Self Healing fits situations like: tasks that involve Root cause analysis.
Run `npx skills add bolivian-peru/os-moda --skill self-healing -a claude-code`. Or copy the skill folder (skills/self-healing in bolivian-peru/os-moda) into .claude/skills/self-healing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bolivian-peru/os-moda --skill self-healing -a codex`. Or copy the skill folder (skills/self-healing in bolivian-peru/os-moda) into .agents/skills/self-healing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bolivian-peru/os-moda --skill self-healing -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-healing, .gemini/skills/self-healing, .github/skills/self-healing and .opencode/skills/self-healing in your project.
SKILL.md names no scripts, command-line tools or credentials: Self Healing is instructions for the agent only.
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.
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.
Self Healing is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 959 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Self Healing: Post Mortem (thananon/9arm-skills, 3.2k stars), Incident Triage Harness (madebyaris/advance-minimax-m3-cursor-rules, 126 stars), GitHub Actions Failure Analysis (ykdojo/claude-code-tips, 10k stars) and Broken API Interviewer (PrepLabsAI/InterviewMentor, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bolivian-peru (a GitHub user) maintains it in bolivian-peru/os-moda, which has 119 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on June 24, 2026.
Source: bolivian-peru/os-moda on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.