add-language-rules

add-language-rules is a command for Claude Code from ysyecust/everything-claude-code. It costs 20 tokens per session (274 once invoked), scanned A, a copy of add-language-rules, MIT.

A workflow scaffold for adding support for a programming language to a repository’s rules system, including guidance on style, code patterns, security, hooks, and testing.

In plain words
What is it for?
Use it when introducing a new language to the rules system and creating its related guidance files.
Why use it?
It provides a consistent checklist and file structure for documenting language-specific development rules.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ecc plugin — 37 skills, 3 commands, 17 agents shipped together

Good fit Use it when introducing a new language to the rules system and creating its related guidance files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ysyecust/everything-claude-code/add-language-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/ysyecust/everything-claude-code

Made for: Claude Code.

Or install ecc, the plugin that ships this one along with the rest of its 37 skills, 3 commands, 17 agents.

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 add-language-rules

README.md
[![agentmods](https://agentmods.dev/badge/commands/ysyecust/everything-claude-code/add-language-rules/github.svg)](https://agentmods.dev/commands/ysyecust/everything-claude-code/add-language-rules)
Your own site
<a href="https://agentmods.dev/commands/ysyecust/everything-claude-code/add-language-rules"><img src="https://agentmods.dev/badge/commands/ysyecust/everything-claude-code/add-language-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 add-language-rules

Your own site · 80×15
<a href="https://agentmods.dev/commands/ysyecust/everything-claude-code/add-language-rules"><img src="https://agentmods.dev/badge/commands/ysyecust/everything-claude-code/add-language-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 274 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 100% 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.00020 $0.00274
Opus 5.5 $0.00008 $0.00110
Sonnet 5.5 $0.00004 $0.00055
Haiku 4.5 $0.00002 $0.00027

Measured 1mo ago against content hash 9c2a0c46e0ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-language-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 1mo 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

100% identical to add-language-rules — 6 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/commands/add-language-rules.md · 39 lines

What it actually says

/add-language-rules

Use this workflow when working on add-language-rules in everything-claude-code.

Goal

Adds a new programming language to the rules system, including coding style, hooks, patterns, security, and testing guidelines.

Common Files

  • rules/*/coding-style.md
  • rules/*/hooks.md
  • rules/*/patterns.md
  • rules/*/security.md
  • rules/*/testing.md

Suggested Sequence

  1. Understand the current state and failure mode before editing.
  2. Make the smallest coherent change that satisfies the workflow goal.
  3. Run the most relevant verification for touched files.
  4. Summarize what changed and what still needs review.

Typical Commit Signals

  • Create a new directory under rules/{language}/
  • Add coding-style.md, hooks.md, patterns.md, security.md, and testing.md files with language-specific content
  • Optionally reference or link to related skills

Notes

  • Treat this as a scaffold, not a hard-coded script.
  • Update the command if the workflow evolves materially.
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. 1mo ago First seen · 39 lines · 20 tokens per session scan A 9c2a0c46e0ac

Subscribe to this mod's changes

add-language-rules is a command published in the GitHub repository ysyecust/everything-claude-code (57 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 274 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to add-language-rules, differing in 6 lines, and is treated as a copy.