agent-instructions

agent-instructions is a skill for Codex from tushaarmehtaa/tushar-skills. It costs 45 tokens per session (2,138 once invoked), scanned B, original, MIT.

A repository-maintenance skill that creates or reconciles guidance files for coding agents, such as AGENTS.md, CLAUDE.md, and Cursor rules. It bases the instructions on evidence from the repository and handles missing, outdated, duplicated, or conflicting guidance.

In plain words
What is it for?
Use it to add project instructions, update stale guidance, resolve conflicts between instruction files, or create rules for a specific package or folder.
Why use it?
It reduces confusion when coding agents receive incomplete or contradictory project instructions. It keeps the guidance scoped to the parts of the repository where it applies.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to add project instructions, update stale guidance, resolve conflicts between instruction files, or create rules for a specific package or folder.

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

Made for: 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 agent-instructions

README.md
[![agentmods](https://agentmods.dev/badge/skills/tushaarmehtaa/tushar-skills/agent-instructions/github.svg)](https://agentmods.dev/skills/tushaarmehtaa/tushar-skills/agent-instructions)
Your own site
<a href="https://agentmods.dev/skills/tushaarmehtaa/tushar-skills/agent-instructions"><img src="https://agentmods.dev/badge/skills/tushaarmehtaa/tushar-skills/agent-instructions/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 agent-instructions

Your own site · 80×15
<a href="https://agentmods.dev/skills/tushaarmehtaa/tushar-skills/agent-instructions"><img src="https://agentmods.dev/badge/skills/tushaarmehtaa/tushar-skills/agent-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,138 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00045 $0.02138
Opus 5.5 $0.00018 $0.00855
Sonnet 5.5 $0.00009 $0.00428
Haiku 4.5 $0.00005 $0.00214

Measured 2d ago against content hash 37f04e78b33f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agent-instructions scanned grade B with 1 finding 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Codex fallback names.** Read `project_doc_fallback_filenames` and `project_doc_max_bytes` in `~/.codex/config.toml` (or `$CODEX_HOME`) when present. A fallback-named file is an instruction file for Codex.
agent-instructions/SKILL.md · 127 lines

How it starts

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

Agent instructions

Write the smallest set of instruction files that each target runtime actually loads. A correct file in a location the runtime skips, or one shadowed by another file, does nothing. Recover facts from the repository before asking, and separate commands you ran from commands you only read about.

Choose the task

  • Create: no instruction files exist.
  • Improve: one existing file is thin, stale or bloated.
  • Reconcile: files duplicate or contradict each other, or one runtime ignores guidance the others see.
  • Scope a subtree: a package or directory needs different commands, ownership or boundaries.
  • Explain loading: the user asks why an agent ignores its instructions. Report what each runtime loads here. Change nothing unless asked.

Infer the target runtimes from the request, existing files and the user's tooling. Ask only when the answer changes which files exist. "Make this work for our agents" with no other signal means Claude Code, Codex and Cursor.

Read the loading matrix first

Read the loading matrix before choosing any file. It records which files Claude Code, Codex and Cursor read, in what order, with which limits, checked on a stated date. Follow its run-time rule: re-check a runtime's docs when the check date is more than about 90 days old or the installed runtime is older than a version it names.

Inventory every instruction source

pwd
git rev-parse --show-toplevel
rg --files --hidden -g '!node_modules' -g '!.git' \
  -g '**/AGENTS.md' -g '**/AGENTS.override.md' -g '**/CLAUDE.md' -g '**/CLAUDE.local.md' \
  -g '**/.claude/rules/**' -g '**/.cursor/rules/**' -g '**/.cursorrules'

Then check three places rg misses:

  • Ancestors above the repository root. Claude Code loads every CLAUDE.md, .claude/CLAUDE.md and CLAUDE.local.md from cwd upward. One in a parent folder shadows the repository's AGENTS.md for Claude Code. Ignore ~/.claude/CLAUDE.md; it does not shadow.
  • Codex fallback names. Read project_doc_fallback_filenames and project_doc_max_bytes in ~/.codex/config.toml (or $CODEX_HOME) when present. A fallback-named file is an instruction file for Codex.
  • Fixture and example directories. An AGENTS.md or CLAUDE.md inside test fixtures, examples or proof folders loads as a real instruction for Claude Code and Cursor when work touches that folder.

Read the full file on GitHub · 127 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. 2d ago Changed · +7 lines · +6 tokens per session scan A → B 37f04e78b33f
  2. 2mo ago First seen · 120 lines · 39 tokens per session scan A d4ef3f990984

Subscribe to this mod's changes

agent-instructions is a skill published in the GitHub repository tushaarmehtaa/tushar-skills (12 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 2,138 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agent-instructions compared with skills from other repositories

agent-instructions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-instructionstushaarmehtaa/tushar-skillsSkill122d agoMITB45Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99ktodayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79ktodayMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill314k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code