# Agent Os Kernel

> Use at the start of any non-trivial task that mutates files, runs code/tools, transforms data, touches an account or workspace, or has ambiguous or hidden accep

- Skill: `iamkarp/agent-os-kernel` (Agent Skill)
- Install (CLI): `npx get-skill add iamkarp/agent-os-kernel`
- Raw SKILL.md: https://api.skillmd.com/api/skills/iamkarp/agent-os-kernel/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: iamkarp (https://skillmd.com/u/iamkarp)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/iamkarp/agent-os-kernel

---

---
name: agent-os-kernel
description: Use at the start of any non-trivial task that mutates files, runs code/tools, transforms data, touches an account or workspace, or has ambiguous or hidden acceptance criteria. Do NOT use for a single obvious answer, a pure factual reply, or a one-line edit with no risk — solve those directly.
---

# agent-os-kernel

Lightweight runtime that decides *whether* and *how much* procedure a task needs. It does not solve tasks; it routes and gates them. Less guidance is better when the base model already knows the answer.

## Operating rule

Use the smallest amount of skill guidance the task needs. Classify first:

- **SILENT** — simple, low-risk, no tool/file mutation, obvious answer. Solve directly. Load no other skill.
- **GUARDRAIL** — simple objective but a risky action (send, delete, share, overwrite, permission change, external message). Apply `safety-governor` before acting, then solve.
- **FULL OS** — multi-step, file mutation, code execution, data transform, ambiguous target, hidden criteria, or cross-service workflow.

## Full-OS sequence

1. Restate the task contract: required final state, and forbidden/risky actions.
2. Route with `task-router` to **one** primary domain driver (+ at most one auxiliary skill).
3. Run `safety-governor` before any irreversible or externally visible action.
4. Execute the smallest sufficient action via `minimal-diff-engine`.
5. Run `verifier-lens` before finalizing.
6. Postcondition check: does final state match the contract, with unrelated state unchanged?

## Precedence (when guidance conflicts)

1. safety-governor → 2. user/task contract → 3. verifier-lens → 4. domain driver → 5. style.

## Non-interference rule

If the task is simple and low-risk, do not decompose it, do not invent constraints, do not broaden the requested action, and do not optimize for elegance over passing the explicit task. Adding procedure that the task does not need lowers the score.

