executive-control

executive-control is a skill for Claude Code from ihabkhaled/AI-Psychiatry. It costs 38 tokens per session (684 once invoked), scanned A, original, MIT.

A set of controls for keeping a coding agent focused on the requested outcome and stopping when the agreed work is complete.

In plain words
What is it for?
Use it to bound investigations, require evidence for repository claims, limit delegation depth, and decide when verification is sufficient.
Why use it?
It addresses distraction, unsupported assumptions, repeated checking, endless investigation, nested tasks, and work that expands beyond scope.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-psychiatry plugin — 55 skills shipped together

Good fit Use it to bound investigations, require evidence for repository claims, limit delegation depth, and decide when verification is sufficient.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ihabkhaled/ai-psychiatry/executive-control
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 ihabkhaled/AI-Psychiatry --skill executive-control
Clone the repo
git clone --depth 1 https://github.com/ihabkhaled/AI-Psychiatry

Made for: Claude Code.

Or install ai-psychiatry, the plugin that ships this one along with the rest of its 55 skills.

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 executive-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/ihabkhaled/ai-psychiatry/executive-control/github.svg)](https://agentmods.dev/skills/ihabkhaled/ai-psychiatry/executive-control)
Your own site
<a href="https://agentmods.dev/skills/ihabkhaled/ai-psychiatry/executive-control"><img src="https://agentmods.dev/badge/skills/ihabkhaled/ai-psychiatry/executive-control/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 executive-control

Your own site · 80×15
<a href="https://agentmods.dev/skills/ihabkhaled/ai-psychiatry/executive-control"><img src="https://agentmods.dev/badge/skills/ihabkhaled/ai-psychiatry/executive-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 684 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.00038 $0.00684
Opus 5 $0.00019 $0.00342
Sonnet 5 $0.00008 $0.00137
Haiku 4.5 $0.00004 $0.00068

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

Security

Grade A, and why

executive-control 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 9d ago.

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.

skills/executive-control/SKILL.md · 56 lines

How it starts

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

Executive Control

Core principle

Activity is not progress. Progress is measurable movement toward the user’s requested outcome and finite Definition of Done.

Psychiatric terms are behavioral analogies only. Apply engineering controls to observable agent state; never diagnose people or AI systems.

Select the controller

Observable condition Required action Deep guide
Objective switches or optional work interrupts Freeze, classify, park, resume Attention drift
Speculative reasoning blocks action Remove evidence-free branches; take one bounded action Overthinking
Proof is repeated without relevant change Mark proof sufficient; stop equivalent checks Compulsive verification
Task opens tasks inside tasks Enforce depth three; return to parent Recursive investigation
Delegated agents recurse or conflict Enforce delegation depth two and one writer Nested jobs
Repository claim lacks source evidence State unknown; inspect or mark not confirmed Hallucination control
Activity repeats without outcome Change strategy and reduce search space Deadlock/livelock
Definition of Done is proven Report proof and stop Completion

For other recognizable patterns, read the failure-mode catalog.

Procedure

  1. Lock objective, success, minimum Definition of Done, scope, and one active item.
  2. Record only observable signals: depth, retries, repeats, evidence, completed requirements, and last progress.
  3. Choose one controller from the table; do not diagnose every possible mode.
  4. Apply its smallest intervention.
  5. Verify the intervention changed objective distance or produced decisive evidence.
  6. Escalate from attention reset to strategy reset, isolation, then blocked only as evidence requires.
  7. Run the completion gate and terminate when proof is sufficient.

Read the full file on GitHub · 56 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. 9d ago First seen · 56 lines · 38 tokens per session scan A 3d5f7fdf13d7

Subscribe to this mod's changes

executive-control is a skill published in the GitHub repository ihabkhaled/AI-Psychiatry (3 stars, last pushed 24d ago), licensed MIT. It adds 38 tokens to every session and 684 once invoked, about $0.0002 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

todos

This chat has a shared, live TODO plan — your tasks for the conversation, which the user also edits. Read this skill and reach for the todo tools whenever a request takes more than a couple of steps. It covers the plan model (group = task, items = its steps; loose items are the user's lane), how to work it: propose…

JetBrains/thinkrail · 127 tokens

writing-workflow-skills

Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.

JetBrains/thinkrail · 60 tokens

setting-up-a-project

Use whenever asked to set up, onboard, initialize, or spec a project — the front door when the workspace has no spec graph yet (brand-new or an existing codebase); also seeded by the app's Set-up-project card (/skill:setting-up-a-project). Not for feature work in an already-specced project — use the brainstorming…

JetBrains/thinkrail · 76 tokens

animate

Build a web animation: whether it should animate at all, the purpose, the tool, the properties, the easing curve, the duration, interruption and exit. Writes the CSS or Motion code for dropdowns, modals, toasts, tooltips, accordions, press feedback, stagger and scroll reveals. Use to animate something or make a…

ericrisco/rsc-harness · 75 tokens

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

postgresdb

Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…

ericrisco/rsc-harness · 91 tokens