load-rules

load-rules is a command for Claude Code from TechNickAI/ai-coding-config. It costs 19 tokens per session (273 once invoked), scanned A, a copy of load-cursor-rules, MIT.

A rule-loading command that examines the current task and reads only the matching coding-rule files from rules/.

In plain words
What is it for?
Use it before a task to discover available rules, select the relevant ones, state which were loaded, and continue under those instructions.
Why use it?
It avoids overwhelming the assistant with irrelevant instructions while still applying rules for the language, framework, tool, or operation involved.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-coding-config plugin — 15 skills, 21 commands, 28 agents, 3 hooks shipped together

Good fit Use it before a task to discover available rules, select the relevant ones, state which were loaded, and continue under those instructions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/technickai/ai-coding-config/load-rules
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.

Clone the repo
git clone --depth 1 https://github.com/TechNickAI/ai-coding-config

Made for: Claude Code.

Or install ai-coding-config, the plugin that ships this one along with the rest of its 15 skills, 21 commands, 28 agents, 3 hooks.

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 load-rules

README.md
[![agentmods](https://agentmods.dev/badge/commands/technickai/ai-coding-config/load-rules/github.svg)](https://agentmods.dev/commands/technickai/ai-coding-config/load-rules)
Your own site
<a href="https://agentmods.dev/commands/technickai/ai-coding-config/load-rules"><img src="https://agentmods.dev/badge/commands/technickai/ai-coding-config/load-rules/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 load-rules

Your own site · 80×15
<a href="https://agentmods.dev/commands/technickai/ai-coding-config/load-rules"><img src="https://agentmods.dev/badge/commands/technickai/ai-coding-config/load-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 273 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 92% 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.00019 $0.00273
Opus 5.5 $0.00008 $0.00109
Sonnet 5.5 $0.00004 $0.00055
Haiku 4.5 $0.00002 $0.00027

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

Security

Grade A, and why

load-rules 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 25d 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

92% identical to load-cursor-rules — 11 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.

plugins/core/commands/load-rules.md · 34 lines

What it actually says

Analyze the current task and load ONLY relevant rules from rules/.

PROCESS:

  1. Discover available rules: use glob_file_search with pattern "*.mdc" in rules/ to find all rule files recursively
  2. Analyze task to identify what domains apply (languages, tools, frameworks, operations)
  3. Select relevant rules based on task requirements
  4. Read selected rule files
  5. State which rules loaded in one sentence
  6. Proceed with task following those rules

SELECTION CRITERIA:

  • Load rules for the primary language/framework being used
  • Load rules for specific tools or operations mentioned in the task
  • Prefer specific rules over general ones when both apply
  • Avoid loading rules that don't directly inform the current work

EXAMPLES: Task: "Add error tracking to payment processor" → Load Python standards, error tracking rules Task: "Write tests for auth flow" → Load Python standards, pytest rules Task: "Create React dashboard component" → Load React component rules Task: "Commit these changes" → Load git commit message rules

Be selective. Loading too many rules dilutes focus.

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. 25d ago First seen · 34 lines · 19 tokens per session scan A 4b4146e2e8d2

Subscribe to this mod's changes

load-rules is a command published in the GitHub repository TechNickAI/ai-coding-config (24 stars, last pushed 26d ago), licensed MIT. It adds 19 tokens to every session and 273 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to load-cursor-rules, differing in 11 lines, and is treated as a copy.