ai-modules: Instructions file for Codex

AGENTS.md

ai-modules AGENTS.md is an instructions file for Codex, OpenCode from theafh/ai-modules. It costs 3,492 tokens per session, scanned A, original, MIT.

Repository instructions for ai-modules, a collection of AI components such as skills, agents, commands, and hooks packaged as plugins.

In plain words
What is it for?
Use them when creating, editing, packaging, or versioning plugins and their published instruction files.
Why use it?
They clarify the repository’s layout, terminology, and publishing conventions so changes affect the right component.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions AGENTS.md.

This is theafh/ai-modules's own configuration. It tells Codex and OpenCode how to work on ai-modules 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 ai-modules configures →

Reuse

Borrowing it

Nothing to install: this file belongs to theafh/ai-modules. 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/theafh/ai-modules/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/theafh/ai-modules

Made for: Codex, OpenCode.

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 ai-modules AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/theafh/ai-modules/agents-md/github.svg)](https://agentmods.dev/instructions/theafh/ai-modules/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/theafh/ai-modules/agents-md"><img src="https://agentmods.dev/badge/instructions/theafh/ai-modules/agents-md/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 ai-modules AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/theafh/ai-modules/agents-md"><img src="https://agentmods.dev/badge/instructions/theafh/ai-modules/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,492 This file is loaded in full into every session.
When invoked 3,492 The same file — it is already loaded in full.
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.03492 $0.03492
Opus 5.5 $0.01397 $0.01397
Sonnet 5.5 $0.00698 $0.00698
Haiku 4.5 $0.00349 $0.00349

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

Security

Grade A, and why

ai-modules AGENTS.md 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 97 lines

How it starts

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

AGENTS.md

ai-modules is a meta-repository. It defines AI components (skills, agents, commands, hooks) and packages them as plugins. Here command means the legacy standalone command artefact the deployer can still install (for example a Claude slash-command file under commands/), not a shell command and not a skill that is merely slash-invocable. Treat every SKILL.md, plugin.json, and marketplace.json as a published artefact.

What this repo is not

The shipped skills are the product, not the workflow. When a user asks you to apply one while editing this repo, confirm whether they mean to invoke it or edit its definition.

Layout

.agents/plugins/marketplace.json # Codex marketplace registration
.claude-plugin/marketplace.json  # Claude marketplace registration
plugins/<plugin>/
  .codex-plugin/plugin.json       # Codex plugin metadata (uses "skills": "./skills/")
  .claude-plugin/plugin.json      # Claude plugin metadata
  README.md                       # plugin overview + skill list
  skills/<skill>/SKILL.md         # skill definition with YAML frontmatter
styles/                           # tracked output styles (repo-root; not a plugin component)
deployment/                       # deploy script + per-tool config
tests/                            # regression harnesses (authored files tracked; run output gitignored)
Makefile                          # task entry point
.markdownlint.jsonc               # markdown lint config (MD033 off, pseudo-XML is intentional)

Authoring conventions

  • Use pseudo-XML inside skill prompts (<role>, <objective>, <policy>, <output_contract>). Reference: plugins/ai_dev/skills/ai_instruction_formatting/SKILL.md.
  • Use positive, action-oriented language in skill prose and instructions. Reference: plugins/ai_dev/skills/ai_instruction_writing/SKILL.md.
  • Write skill descriptions for both audiences. The description: frontmatter is read before the body is loaded by an LLM router and by users browsing skills. Serve both needs deliberately: give the user a precise compact summary of what the skill is about and how it differs from neighbors, then give the router keyword-rich Use when trigger contexts, prompt phrases, artefacts, file types, and invocation boundaries. Keep implementation workflow details in the body.
  • Keep the toolchain to Make + shell + Markdown, with jq, git, and Python 3 as accepted standing dependencies. Add further languages, package managers, or build steps only when the user explicitly asks for them.
  • Match snake_case naming for skill and plugin directories.
  • Name skills and agents by invocation mode and collision risk. A skill that is the only entry point for its capability keeps the ordinary family-first name, even when it delegates to agents (wiki_fix). Use <family>_auto_<rest> for an agent-delegating automation skill when it needs to sit beside a classical/manual skill with the same capability or subset (task_auto_implement beside task_implement). A spawned agent leads with auto_ and ends with the family token (auto_<role>_<family>, e.g. auto_implementer_task or auto_shaper_wiki) and is not intended to be invoked by the user.
  • Write deployment-agnostic cross-references. Reference sibling artefacts by name (auto_shaper_wiki, format_markdown) rather than by plugin name, marketplace, or installed path.
  • Bundle a skill's helper scripts inside the skill. A script that supports a skill lives at plugins/<plugin>/skills/<skill>/scripts/<name> and is referenced from its SKILL.md by the skill-relative path scripts/<name>. The plugin is the unit of distribution, so a script placed at the repo root or wired into the root Makefile is invisible to every deployment path except an in-place checkout. Add a repo-root scripts/ directory only for repo-wide tooling that belongs to no single skill, and only when explicitly asked.
  • Author a skill-family rule once in the family's base skill. When a rule should govern a whole skill family (for example the task_* family), write it once in the base/hub skill so the front-end siblings inherit it through their <authority> reference instead of each carrying a copy. Pair enforcement with the canonical rule rather than restating it: a maintenance sibling such as task_fix carries a surface-and-propose advisory that points back at the base rule.

Read the full file on GitHub · 97 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. today Changed · +3 lines · +409 tokens per session 4cb49bc26853
  2. 2d ago Changed · +1 lines · +128 tokens per session 546fae6a3878
  3. 18d ago Changed · +1 lines · +243 tokens per session 794459709c54
  4. 23d ago Changed · +1 lines · +73 tokens per session 86bb83b99f85
  5. 1mo ago Changed · -3 tokens per session 06e6342ce7bd
  6. 1mo ago Changed · +63 tokens per session f8d6b7387735
  7. 1mo ago First seen · 91 lines · 2,579 tokens per session scan A 928ffa9de511

Subscribe to this mod's changes

ai-modules AGENTS.md is an instructions file published in the GitHub repository theafh/ai-modules (38 stars, last pushed today), licensed MIT. It adds 3,492 tokens to every session, about $0.0140 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-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens