contextos-agents: Skill for Claude Code

.agents/core/skills/context-os/SKILL.md

context-os is a skill for Claude Code, Codex from kok-o/contextos-agents. It costs 16 tokens per session (405 once invoked), scanned A, original, Apache-2.0.

A context and policy system for AI coding agents. It selects relevant instructions and resources from project configuration while tracking budgets and warnings.

In plain words
What is it for?
Use it to resolve skills for a task, inspect project overrides and installed skills, manage context limits, and review missing skills or risks.
Why use it?
It reduces context overload, configuration drift, and accidental use of the wrong project instructions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is kok-o/contextos-agents's own configuration. It tells Claude Code and Codex how to work on contextos-agents itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything contextos-agents configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kok-o/contextos-agents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kok-o/contextos-agents/main/.agents/core/skills/context-os/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kok-o/contextos-agents

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kok-o/contextos-agents/context-os/github.svg)](https://agentmods.dev/skills/kok-o/contextos-agents/context-os)
Your own site
<a href="https://agentmods.dev/skills/kok-o/contextos-agents/context-os"><img src="https://agentmods.dev/badge/skills/kok-o/contextos-agents/context-os/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 context-os

Your own site · 80×15
<a href="https://agentmods.dev/skills/kok-o/contextos-agents/context-os"><img src="https://agentmods.dev/badge/skills/kok-o/contextos-agents/context-os.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 405 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.
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.00016 $0.00405
Opus 5.5 $0.00006 $0.00162
Sonnet 5.5 $0.00003 $0.00081
Haiku 4.5 $0.00002 $0.00040

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

Security

Grade A, and why

context-os 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 today.

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.

.agents/core/skills/context-os/SKILL.md · 41 lines

How it starts

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

context-os

Overview

Guide configuration of the ContextOS compiler, resolver, profiles, and agent exports. Executable behavior lives in the CLI and modules; this Markdown entrypoint is guidance.

When to Use

Skill selection, context budgets, manifests, project overrides, profiles, exports, and configuration drift.

Rules & Patterns

Inspect the active project and installed skills. Canonical sources live in .agents/core/skills; project overrides in .agents/project/skills; plugins provide additional sources. Native .agents/skills contains generated projections. Entrypoint precedence is skill.v2.yaml, skill.yaml, then manifestless SKILL.md. Respect the declared entrypoint and resolve contained resource paths relative to its skill directory.

Use the resolver with the task and affected files; inspect reasons, risk, warnings, missing skills, and soft-budget overflow. Load references only when needed. Existing authorization and proportional engineering-workflow apply.

Read references/context-rules.md for budgeting and references/project-graph.md for graph limits.

Code Examples

In this source checkout: node .agents/ctx.js resolve "Fix IDOR" --files src/auth.ts --json. See EXAMPLES.md for source and consumer command boundaries.

Validation Checklist

  • The requested outcome and applicable failure cases are checked.
  • Evidence names commands, results, scope, and limitations.
  • Unrelated changes and existing authorization are preserved.

Common Mistakes

Editing generated projections; assuming catalog skills are installed; treating an estimated budget as total prompt size; expecting AST or document selection from the package graph; claiming schema validation proves agent behavior.

Integration Notes

context-manager is a deprecated compatibility alias. engineering-workflow owns the lifecycle; security owns protected boundaries. packs.yaml and rules.yaml are reference data, not executable policy.

Read the full file on GitHub · 41 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 41 lines · 16 tokens per session scan A 3d333bd492b2

Subscribe to this mod's changes

context-os is a skill published in the GitHub repository kok-o/contextos-agents (10 stars, last pushed today), licensed Apache-2.0. It adds 16 tokens to every session and 405 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-10-25.