os-init

os-init is a skill for Claude Code, Codex from richfrem/agent-plugins-skills. It costs 102 tokens per session (1,519 once invoked), scanned A, original, MIT.

A setup guide that interviews you and then creates an Agentic OS structure in a project for persistent agent instructions, context, memory, hooks, scheduled tasks, and sub-agents.

In plain words
What is it for?
Use it to initialise an agent environment, decide where instruction files belong, and set up persistent memory and related agent features.
Why use it?
It avoids forcing every project into the same agent setup and helps establish useful project-specific structure from the start.

Skill for Claude CodeCodex

Part of the agent-agentic-os plugin — 20 skills, 4 commands, 2 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/os-init
Any agent
npx skills add richfrem/agent-plugins-skills --skill os-init
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code, Codex.

Or install agent-agentic-os, the plugin that ships this one along with the rest of its 20 skills, 4 commands, 2 agents, 3 hooks.

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 os-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-init.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-init)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-init"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,519 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00102 $0.01519
Opus 5 $0.00051 $0.00759
Sonnet 5 $0.00020 $0.00304
Haiku 4.5 $0.00010 $0.00152

Measured yesterday against content hash b4bfcd72eaa7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

os-init 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/init_agentic_os.py, templates/kernel.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/agent-agentic-os/skills/os-init/SKILL.md · 138 lines

How it starts

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

Agentic OS Init & Retrofit Guide

Bootstrap or retrofit the Agentic OS, 3-Layer Memory architecture, and multi-tool instructions in any repository. Supports fresh setup as well as retrofitting established projects to comply with autonomous evolution standards.


Execution Flow

  1. Discovery & Environment Interview: Identify project stack, active AI tools (Claude, Copilot, Gemini, Codex), and package manager (uvx, marketplace, local).
  2. Component & Retrofit Planning: Present plan (fresh initialization vs. retrofit of existing custom skills).
  3. Execution: Run init_agentic_os.py with appropriate flags (--retrofit, --sync-instructions).
  4. Plugin Installation Guidance: Guide installation based on user's tooling environment.
  5. Post-Init & Memory Validation: Verify Layer 2 wiki/, references/map-debt.md, and instruction mirrors.

Phase 1: Discovery & Tooling Interview

Ask targeted questions based on context:

  1. Project Status: Is this a brand-new project, or an existing repository with code/skills to retrofit?
  2. Active AI Tooling & LLM Clients: Which tools are used in this workspace?
    • Claude Code CLI / VS Code extension
    • GitHub Copilot CLI / Chat
    • Gemini / Antigravity CLI (agy)
    • Codex / OpenAI-compatible CLI
    • Microsoft Agent Framework (MAF)
  3. Plugin Installation Preference:
    • uvx (Universal / Recommended): Instant setup without manual clone.
    • Claude Code Marketplace: claude plugin add richfrem/agent-plugins-skills.
    • Local Monorepo / Worktree: Local sync via plugin_add.py.

Phase 2: Component Planning

Propose a component table before execution:

| Component | Fresh Init | Retrofit Mode | Purpose |
|---|---|---|---|
| `CLAUDE.md` | Intelligent Seed | Context Blend & Reconcile | Authoritative project kernel |
| `GEMINI.md` | Create Mirror | Context Blend & Tool Mapping | Gemini CLI mirror with tool mappings |
| `.github/copilot-instructions.md` | Create Mirror | Context Blend & Header | Copilot CLI instructions header |
| `AGENTS.md` | Create Mirror | Context Blend | Cross-platform agent instructions |
| `wiki/` | Create | Create Index | Layer 2 Confirmed Knowledge Base |
| `references/map-debt.md` | Create | Create Ledger | Tier 3 Map Debt Tracking |
| `.git/hooks/pre-commit-evolution-guard` | Install | Install / Enable | Deterministic pre-commit evolution & map-debt gate |
| `.agent/learning/traces/` | Create | Create Ledger | Layer 3 Evolution Trace Manifests |
| `audit-skill --fix` | N/A | Run on custom skills | Auto-upgrades legacy skills to boolean evals schema |

Read the full file on GitHub · 138 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. yesterday Changed · -154 lines · +22 tokens per session b4bfcd72eaa7
  2. 5d ago First seen · 292 lines · 80 tokens per session scan A f842b470c658

Subscribe to this mod's changes

os-init is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 102 tokens to every session and 1,519 once invoked, about $0.0005 per session on Opus 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-31.

Related

Other skills, from other repositories

kapso-whatsapp

How to interact with Kapso WhatsApp from the swarm — read inbound webhook payloads (text AND media), fetch message history, send free-form messages within the 24h session window (and template messages outside it), mark-as-read, show the typing indicator, send reactions, download media, verify webhook signatures, and…

desplega-ai/agent-swarm · 156 tokens

composio

Use Composio from Agent Swarm through the agent-swarm x composio CLI route, the swarmx MCP tool, or a registered ctx.api.composio script connection. Trigger when a task needs connected third-party app tools such as Gmail, Google Calendar, Google Docs, Google Drive, GitHub, Slack, Notion, or HubSpot through Tool Router…

desplega-ai/agent-swarm · 128 tokens

attio-interaction

Generic Attio CRM REST API v2 recipes for querying records, upserting companies/people/deals, writing notes/tasks/comments, managing lists, and handling webhooks.

desplega-ai/agent-swarm · 39 tokens

swarm-scripts

Bulk, repeat, fan-out, or data-heavy work: write and run swarm scripts (inline script-run, named script-upsert, durable launch-script-run). Covers the script-vs-tool rubric, the authoring contract (args first, ctx second), the seed catalog, connections and secrets, dbquery, and exposing a script as an API.

desplega-ai/agent-swarm · 82 tokens

user-management

How to manage the user registry — creating users for new Slack/GitHub/GitLab/Linear identities, managing aliases, resolving users across platforms. Use when a new human interacts with the swarm or when user identity needs updating.

desplega-ai/agent-swarm · 49 tokens

scheduled-task-resilience

Guardrails for polling, scheduled jobs, and long-running external operations. Use whenever a task waits on CI, builds, deploys, browser jobs, or another asynchronous API so work survives heartbeat checks without duplicate delivery.

desplega-ai/agent-swarm · 48 tokens