thinking_os

thinking_os is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 61 tokens per session (3,580 once invoked), scanned A, original, Apache-2.0.

A structured problem-solving method for handling complicated or complex work. It provides a process for planning, investigating, designing, debugging, reviewing, and breaking large tasks into smaller decisions.

In plain words
What is it for?
Use it when planning projects, analyzing requirements, writing specifications, investigating bugs, designing systems, reviewing designs, or implementing non-trivial features.
Why use it?
It helps prevent difficult tasks from being approached without enough structure. The method guides how much analysis to apply and keeps requirements, alternatives, and decisions organized.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when planning projects, analyzing requirements, writing specifications, investigating bugs, designing systems, reviewing designs, or implementing non-trivial features.

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

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 thinking_os

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/thinking_os.svg)](https://agentmods.dev/skills/kouroshez/coding-os/thinking_os)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/thinking_os"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/thinking_os.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,580 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.00061 $0.03580
Opus 5 $0.00030 $0.01790
Sonnet 5 $0.00012 $0.00716
Haiku 4.5 $0.00006 $0.00358

Measured 4d ago against content hash c8ca8091265e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

thinking_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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/classify.sh), 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.

src/core/skills/thinking_os/SKILL.md · 289 lines

How it starts

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

Thinking OS — Full Methodology

Purpose

Complement the always-active Kernel rule (thinking_os.md, in your adapter's rules dir) with the complete Zoom cycle, Process Manager, and 10 Thinking Tools. Load this skill when the Complexity Gate returns COMPLICATED or COMPLEX. Source of truth: consumer projects read docs/workflow/thinking_os-final-edition.md (copied by cos init); the meta-repo canonical lives at src/core/docs/thinking_os-final-edition.md.

Naming note: the skill slug thinking_os intentionally keeps the underscore to mirror the thinking_os Python subsystem it fronts (other skills use kebab-case). A deliberate, documented exception to the kebab-case convention — not an oversight.


Kernel Decisions (Detailed)

Complexity Gate (Depth Routing)

Gate classification (Q1 + Q2) is handled by the always-active rule. Use this matrix to determine depth of analysis:

                │ 1 dim         │ 2-4 dim         │ 5+ dim
────────────────┼───────────────┼─────────────────┼─────────────────
CLEAR           │ Just do it    │ Quick checklist  │ Rare — batch it
COMPLICATED     │ Single Zoom In│ Light Zoom cycle │ Full Zoom cycle
COMPLEX         │ Probe + test  │ Zoom + test/dim  │ Full Zoom + prototype
CHAOTIC         │ Act now       │ Act now, Zoom    │ Act now, Zoom later
CONFUSION       │ Break it down │ Break it down    │ Separate problems

For COMPLEX problems, activate Experiment Protocol before full Zoom In:

  1. HYPOTHESIS: "I believe [X] will work because [Y]."
  2. SMALLEST TEST: cheapest/fastest way to validate
  3. SUCCESS/FAILURE SIGNALS: measurable metrics
  4. TIMEBOX: max time before deciding
  5. LEARN: update Orient and continue

Zoom Out

First Zoom Out (before any work):

  1. IDENTIFY DIMENSIONS — independent aspects of the problem
  2. PRIORITY HEURISTIC — which dimension first?
    • (a) DEPENDENCY: most dependencies → build first
    • (b) UNCERTAINTY: most unknowns → validate early
    • (c) BOTTLENECK: blocks others → unblock it
    • (d) EVOLUTION (Wardley): novel → deep analysis, commodity → best practice
    • Priority: (c) > (a) > (b) > (d)
  3. ASSIGN DEPTH per dimension: Deep / Medium / Light
  4. ASSIGN PHASE per dimension: MVP / v1 / v2
  5. FLAG UNKNOWNS — state assumptions explicitly

Read the full file on GitHub · 289 lines

Files

What ships with it

1 file 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. 4d ago First seen · 289 lines · 61 tokens per session scan A c8ca8091265e

Subscribe to this mod's changes

thinking_os is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 61 tokens to every session and 3,580 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

potpie-source-ingestion

Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when available, builds evidence-backed…

potpie-ai/potpie · 82 tokens

backfill-enumerate-drain

How to backfill a newly-added repo or team — the enumerate-then-drain loop, the single-event contract, and resume-safe todo discipline. Load this when handling a .added seed event with the planner on.

potpie-ai/potpie · 52 tokens

graph-mutation-plan

Cookbook for composing an applygraphmutations plan — stable entitykey patterns, the canonical label/edge vocabulary, evidence/invalidation/confidence discipline, and a worked example. Load this when building a non-trivial mutation plan.

potpie-ai/potpie · 51 tokens

potpie-cli

Use when the task is centered on running, explaining, configuring, or troubleshooting the potpie command: doctor, login, pot management, source registration, search, graph workbench reads/writes, and pot scope behavior.

potpie-ai/potpie · 50 tokens

potpie-infra-architecture

Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.

potpie-ai/potpie · 43 tokens

slides

A slide generator that creates PNG images for presentation decks, including simple backgrounds for spoken-video scripts and fuller layouts for standalone presentations.

majiayu000/spellbook · 41 tokens