ai-modules CLAUDE.md

ai-modules CLAUDE.md is an instructions file for coding agents from theafh/ai-modules. It costs 2,351 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

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.

agentmods
npx agentmods add instructions/theafh/ai-modules/claude-md
Clone the repo
git clone --depth 1 https://github.com/theafh/ai-modules

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,351 This file is loaded in full into every session.
When invoked 2,351 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02351 $0.02351
Opus 5 $0.01175 $0.01175
Sonnet 5 $0.00470 $0.00470
Haiku 4.5 $0.00235 $0.00235

Measured 3d ago against content hash c8f856c48fad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

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 · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 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/                            # local-only regression harnesses (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 · 84 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. 3d 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 4d ago), licensed MIT. It adds 2,351 tokens to every session, about $0.0118 per session on Opus 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 · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 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,345 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js 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,296 tokens