agent-rules

A skill for creating and updating files that guide coding agents, including AGENTS.md and .github/copilot-instructions.md. It also helps document project conventions for agent onboarding.

In plain words
What is it for?
Use it to onboard agents to a codebase, standardise agent instructions, update rule files, or document how an agent should work.
Why use it?
It reduces repeated explanations by putting a project’s instructions and working rules where coding agents can read them.

Skill for Claude CodeCodex

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 skills/netresearch/agent-rules-skill/agent-rules
Any agent
npx skills add netresearch/agent-rules-skill --skill agent-rules
Clone the repo
git clone --depth 1 https://github.com/netresearch/agent-rules-skill

Made for: Claude Code, Codex.

Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,225 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00063 $0.01225
Opus 5 $0.00032 $0.00613
Sonnet 5 $0.00013 $0.00245
Haiku 4.5 $0.00006 $0.00122

Measured 2d ago against content hash 66be08e72853, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-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 2d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (references/examples/express-api-ts/src/config.ts, references/examples/express-api-ts/src/controllers/userController.ts, references/examples/express-api-ts/src/index.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/agent-rules/SKILL.md · 91 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 91 lines · 63 tokens per session scan A 66be08e72853

Subscribe to this mod's changes

agent-rules is a skill published in the GitHub repository netresearch/agent-rules-skill (73 stars, last pushed 4d ago), with no licence file. It adds 63 tokens to every session and 1,225 once invoked, about $0.0003 per session on Opus 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 skills, from other repositories

skill-creator

Create or improve Zhin Agent skills (SKILL.md). Use when asked to add a skill, write SKILL.md, document a repeatable agent workflow, or refine skill frontmatter/keywords. Triggers: 创建技能, 写 SKILL, skill-creator, 加 skill.

zhinjs/zhin · 61 tokens

agents-md-improver

Audit or improve repository-scoped Codex AGENTS.md, AGENTS.override.md, configured fallback instructions, and companion codemap.md navigation. Use for effective-chain audits, nested conflicts, stale commands, scoped-guidance gaps, approved updates, 优化 AGENTS.md, 审计 Codex 项目指导, 更新 AGENTS.md, or 生成 codemap.md. Exclude…

bahayonghang/my-ai-cli-toolkit · 107 tokens

agents-md-best-practices

收录遵守 AGENTS.md 开放规范 的通用提示词工程最佳实践,供 Agent 在开发项目时加载使用。.

JularDepick/AGENTS.md-Best-Practices · 0 tokens

dotagents-standard

Set up, author, and navigate the dotagents standard — a slim AGENTS.md "router" at the repository root plus a hidden .agents/ directory (rules, context, memory, personas, skills, specs, logs, tasks) that splits agent context into small per-topic files loaded on demand (progressive disclosure). Use this WHENEVER the…

zaventh/dotagents-standard-skill · 230 tokens

Agent Instruction Drift Check

Procedure for comparing an agent-facing instruction doc (AGENTS.md/CLAUDE.md-style) against the actual current code and configuration to find and flag mismatches.

niels-emmer/myace · 38 tokens

agentlint

Lint and improve AI agent context files (CLAUDE.md, AGENTS.md, .cursorrules, COPILOT.md) based on empirical research. Use when reviewing, auditing, or creating context files.

danmartuszewski/agentlint · 44 tokens