ai-modules: Instructions file for Claude Code

CLAUDE.md

ai-modules CLAUDE.md is an instructions file for Claude Code from theafh/ai-modules. It costs 3,264 tokens per session, scanned A, a copy of ai-modules AGENTS.md, MIT.

Repository instructions for ai-modules, a project that defines and packages AI components such as skills, agents, commands, and hooks. It explains the layout and conventions for published components.

In plain words
What is it for?
Use them when creating or changing skills, plugins, marketplace entries, or other ai-modules components.
Why use it?
They clarify which files are shipped products and how changes are deployed, helping avoid edits that break packaging or versioning.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions AGENTS.md.

This is theafh/ai-modules's own configuration. It tells Claude Code 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/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/theafh/ai-modules

Made for: Claude Code.

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 CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/theafh/ai-modules/claude-md"><img src="https://agentmods.dev/badge/instructions/theafh/ai-modules/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,264 This file is loaded in full into every session.
When invoked 3,264 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 97% copy Near-identical to another mod 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.03264 $0.03264
Opus 5.5 $0.01306 $0.01306
Sonnet 5.5 $0.00653 $0.00653
Haiku 4.5 $0.00326 $0.00326

Measured today against content hash dfe33577ec02, 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 CLAUDE.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

This is a copy

97% identical to ai-modules AGENTS.md — 21 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 90 lines

How it starts

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

CLAUDE.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: edits propagate to every machine that re-runs make deploy.

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

.claude-plugin/marketplace.json   # Claude marketplace registration
.agents/plugins/marketplace.json  # Codex marketplace registration
plugins/<plugin>/
  .claude-plugin/plugin.json      # Claude plugin metadata
  .codex-plugin/plugin.json       # Codex plugin metadata (uses "skills": "./skills/")
  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 · 90 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 dfe33577ec02
  2. 2d ago Changed · +1 lines · +128 tokens per session aa9963710cce
  3. 18d ago Changed · +1 lines · +243 tokens per session 2046540c7c3a
  4. 23d ago Changed · +1 lines · +73 tokens per session 0b624a2efe31
  5. 1mo ago Changed · -3 tokens per session 9ea8ec3e7b7e
  6. 1mo ago Changed · +63 tokens per session 91a1913993e5
  7. 1mo ago First seen · 84 lines · 2,351 tokens per session scan A c8f856c48fad

Subscribe to this mod's changes

ai-modules CLAUDE.md is an instructions file published in the GitHub repository theafh/ai-modules (38 stars, last pushed today), licensed MIT. It adds 3,264 tokens to every session, about $0.0131 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to ai-modules AGENTS.md, differing in 21 lines, and is treated as a copy.

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