tool-discipline

tool-discipline is a skill for Claude Code, Codex from igovet/codex-cortex-orchestrator. It costs 22 tokens per session (570 once invoked), scanned A, original, MIT.

A set of rules for making reliable tool calls during delegated agent work, such as checking facts first, avoiding repeated calls, and confirming results.

In plain words
What is it for?
It is for guiding agents through tool use, result checking, retries, file changes, and dependent operations.
Why use it?
It reduces guessed, incomplete, or replayed tool operations that could cause incorrect work or leave changes unverified.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for guiding agents through tool use, result checking, retries, file changes, and dependent operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igovet/codex-cortex-orchestrator/tool-discipline
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 igovet/codex-cortex-orchestrator --skill tool-discipline
Clone the repo
git clone --depth 1 https://github.com/igovet/codex-cortex-orchestrator

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 tool-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/tool-discipline/github.svg)](https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/tool-discipline)
Your own site
<a href="https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/tool-discipline"><img src="https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/tool-discipline/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 tool-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/tool-discipline"><img src="https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/tool-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 570 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.00022 $0.00570
Opus 5.5 $0.00009 $0.00228
Sonnet 5.5 $0.00004 $0.00114
Haiku 4.5 $0.00002 $0.00057

Measured 1mo ago against content hash ec5a74728d6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tool-discipline 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 1mo 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.

plugins/cortex/skills/tool-discipline/SKILL.md · 51 lines

What it actually says

Tool discipline

Use this skill only during selected Cortex work.

Before a call, name the concrete fact, state change or acceptance condition it must resolve. Reuse retained results while relevant state is unchanged. A timeout, quiet worker or desire to reconfirm does not justify another call.

Use only tools available to this host and role. Read the complete live declaration before first use and reload it after context loss; a name or recovery summary is insufficient. Use minimal requests with declared defaults and observed identifiers. Check supplied keys and values before dispatch. Do not copy argument contracts into skills, infer synonymous fields, discover requirements by causing errors, or inspect plugin internals instead of advertised operations.

Code-mode is not Node.js or a browser. Use only its advertised globals; do not assume crypto, process, require or filesystem APIs exist. Prepare literal values without speculative runtime helpers before invoking a tool.

Batch independent reads when useful and inspect every result. Keep dependent reads, mutations, approvals and retries sequential. A wrapper must expose the full nested result, including exit status or a running handle. Returning stdout alone is unverified. If a wrapper yields an active cell or command session, continue with its matching wait or input operation until a terminal receipt before dependent work.

For file changes, inspect the current target fragment and patch the exact observed text. Re-read after user steering, another contributor's edit or a context mismatch. Preserve unrelated work. A Cortex draft is edited only at its server-issued path. Use the returned path literally; a draft ID is not a path and must never be expanded into a guessed directory. Recover a lost path through public evidence. Its exact patch may pass directly to the native patch tool or through a safe wrapper that forwards it intact. Never construct draft content with executable interpolation, shell substitution or evaluation, and never put its body in Cortex writer arguments.

Inspect success, error and truncation signals before making claims. For discovery, use complete schemas already attached when available; otherwise select only needed tool names and complete schemas. Open selected full declarations individually. A truncated result is incomplete evidence: resolve the missing fact before relying on it. Observer-only rendering truncation does not by itself prove the native call failed. Retain acknowledged identifiers and never replay a mutation for reassurance. Correct one deterministic error from the live declaration when the fix is unambiguous; otherwise stop that route. Follow the tool's advertised retry contract for uncertain delivery.

Record failures and unrun checks without secrets, private report bodies or raw host logs. Recover ownership and acknowledged references before resuming.

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. 1mo ago Changed · +6 lines ec5a74728d6d
  2. 1mo ago Changed · -1 lines 31871fc54041
  3. 1mo ago First seen · 46 lines · 22 tokens per session scan A 6f5d7cc91435

Subscribe to this mod's changes

tool-discipline is a skill published in the GitHub repository igovet/codex-cortex-orchestrator (2 stars, last pushed 29d ago), licensed MIT. It adds 22 tokens to every session and 570 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-09-07.

Related

Other skills, from other repositories

using-ao

Catalog of the AO (Agent Orchestrator) ao CLI: spawning workers, managing sessions and projects, creating reusable Cues, sending messages, controlling the shared browser, previewing pages, and daemon control. Use when using the ao CLI, creating Cues, spawning workers, or managing AO sessions in an AO workspace.

Untrivial-ai/agent-orchestrator · 71 tokens

model-router

A model-selection workflow that assigns different coding tasks to different AI models based on their abilities, cost, and the task’s risk or complexity.

rexleimo/aios · 60 tokens

cas-delegate

A procedure for sending a clearly bounded task to another coding agent through a controlled delegation system. It covers checking permission, choosing an available agent, and handling refusal or failure.

Zhuxi140/codex-agent-switch · 28 tokens

cas-slim

A short set of rules for a CAS sub-agent, including checking existing code, making only necessary changes, and reporting results with evidence. It gives guidance rather than adding a coding feature.

Zhuxi140/codex-agent-switch · 29 tokens

outsourcerer

Cross-harness orchestrator for AI coding work. Routes tasks across Claude Code, Codex, Cursor, Devin, Gemini, OpenRouter, and local models; carries the user's skills, plugins, and MCP setup into delegated jobs; tracks cash and plan limits; and can convene multi-model reviews. Use when the user asks to outsource…

alexgreensh/outsourcerer · 100 tokens

agency-chief-of-staff

A coordinator for complex, multi-stage projects that span conversations and tasks. It helps discuss requirements, create execution plans, assign roles, track progress, and preserve useful project knowledge.

papperrollinggery/zhijuan-codex-agency-chief-of-staf · 72 tokens