agent-files

agent-files is a cursor rule for Cursor from hiromaily/go-crypto-wallet. It costs 0 tokens per session (1,003 once invoked), scanned A, original, MIT.

A repository rule for maintaining configuration files used by coding agents. It defines the Claude Code directory as the single source of truth and describes how Cursor and other agent configuration locations relate to it.

In plain words
What is it for?
Use it when editing agent commands, rules, skills, or instruction files under .claude, .cursor, .codex, or GitHub Copilot configuration.
Why use it?
It prevents the same instructions from drifting apart across multiple tools. Contributors know which files to edit and which files are generated or linked.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is └── skills/ ← Symlink → ../.claude/skills.

Good fit Use it when editing agent commands, rules, skills, or instruction files under .claude, .cursor, .codex, or GitHub Copilot configuration.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet
agentmods
npx agentmods add rules/hiromaily/go-crypto-wallet/agent-files

Made for: Cursor.

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 agent-files

README.md
[![agentmods](https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/agent-files/github.svg)](https://agentmods.dev/rules/hiromaily/go-crypto-wallet/agent-files)
Your own site
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/agent-files"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/agent-files/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 agent-files

Your own site · 80×15
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/agent-files"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/agent-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,003 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 original 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.1 $0.00000 $0.01003
Opus 5 $0.00000 $0.00502
Sonnet 5 $0.00000 $0.00201
Haiku 4.5 $0.00000 $0.00100

Measured 7d ago against content hash 09a63c936fc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

agent-files 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 7d 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.

.cursor/rules/agent-files.mdc · 147 lines

How it starts

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

Agent Files

This rule applies when editing .claude/, .cursor/, .codex/, or .github/copilot-instructions.md.

Single Source of Truth (SSOT) Design

AI Agent configuration files are managed with Claude Code's .claude/ directory as the single source. Other agent configurations are auto-generated or symlinked.

.claude/                    ← SSOT (Source of Truth)
├── commands/               ← Slash commands
├── rules/                  ← Rules (*.md)
└── skills/                 ← Skills (SKILL.md)

.cursor/                    ← Auto-generated / Symlinked
├── commands/README.md      ← Reference only (uses .claude/commands)
├── rules/*.mdc             ← Auto-generated (make sync-cursor-rules)
└── skills/                 ← Symlink → ../.claude/skills

.codex/                     ← TODO (Future support)
.github/copilot-instructions.md ← TODO (Future support)

Supported AI Agents

Agent Version Status Config Location
Claude Code v2 ✅ Active .claude/ (SSOT)
Cursor v2 ✅ Active .cursor/ (Auto-generated)
Codex v0.80 📋 TODO .codex/
GitHub Copilot 2026 📋 TODO .github/copilot-instructions.md

File Reference Format

Claude Code

- Follow @AGENTS.md for guidelines
- Refer to @docs/guidelines/coding-conventions.md

Cursor

Supports the same @path format. No conversion needed.

Directory-Specific Rules

.claude/commands/

Location for slash command definitions. Automatically loaded by Cursor as well.

Editing Notes:

  • Create new commands in .claude/commands/
  • Only place README.md in .cursor/commands/

.claude/rules/

Rule files for Claude Code (.md).

Format:

---
paths:
  - "**/*.go"
  - "**/*.ts"
---

# Rule Title

Rule content...
  • Without paths: → Applies to all instructions (global rule)
  • With paths: → Applies when editing files matching the specified patterns

.claude/skills/

Read the full file on GitHub · 147 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. 7d ago First seen · 147 lines · 0 tokens per session scan A 09a63c936fc2

Subscribe to this mod's changes

agent-files is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,003 tokens. 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-09-01.