reference-file-standards

reference-file-standards is a cursor rule for Cursor from Meet-Miyani/compose-skill. It costs 0 tokens per session (1,158 once invoked), scanned A, original, MIT.

A set of writing rules for reference Markdown files used by coding agents. It favors short rules, tables, examples, and links to canonical project documentation.

In plain words
What is it for?
Use it when creating or editing Markdown files in a references directory, especially to structure guidance, record pitfalls, add examples, and keep documentation token-efficient.
Why use it?
It keeps reference files compact and useful, avoiding repeated tutorials and long explanations of standard tools that agents may already understand.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating or editing Markdown files in a references directory, especially to structure guidance, record pitfalls, add examples, and keep documentation token-efficient.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/meet-miyani/compose-skill/reference-file-standards
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/Meet-Miyani/compose-skill

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 reference-file-standards

README.md
[![agentmods](https://agentmods.dev/badge/rules/meet-miyani/compose-skill/reference-file-standards/github.svg)](https://agentmods.dev/rules/meet-miyani/compose-skill/reference-file-standards)
Your own site
<a href="https://agentmods.dev/rules/meet-miyani/compose-skill/reference-file-standards"><img src="https://agentmods.dev/badge/rules/meet-miyani/compose-skill/reference-file-standards/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 reference-file-standards

Your own site · 80×15
<a href="https://agentmods.dev/rules/meet-miyani/compose-skill/reference-file-standards"><img src="https://agentmods.dev/badge/rules/meet-miyani/compose-skill/reference-file-standards.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,158 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.01158
Opus 5.5 $0.00000 $0.00463
Sonnet 5.5 $0.00000 $0.00232
Haiku 4.5 $0.00000 $0.00116

Measured yesterday against content hash 3e6d498fb885, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reference-file-standards 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 yesterday.

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/reference-file-standards.mdc · 96 lines

How it starts

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

Reference File Writing Standards

Every reference file must be token-efficient. Agents already know standard APIs — provide the kit's rules, pitfalls, and project-specific decisions, not tutorials.

File Structure

  1. Line 1: # Title — concise topic name
  2. Next line: Load when: … (or Load this when …) — the task that needs this file, in one line
  3. Optional ## Choose — a short yes/no decision tree when the file covers a real choice
  4. Rule sections — numbered rules: bold rule, one-line reason, *Prevents:* the failure it stops; tag (non-negotiable) or (default) where it matters
  5. ## Red flags (when real rationalizations exist) — | Thought | Reality | table, first-person thought → rebuttal citing the rule number
  6. ## Verification — checkbox gates, each a command or a yes/no condition
  7. No long Table of Contents — agents navigate by headings; a file well past 100 lines may open with a 5–10 line contents list

Writing Rules

Rule Do Don't
Tables over prose | Issue | Fix | table Multi-paragraph explanations
Rules over explanations State the rule directly Explain "why" unless non-obvious
Examples over descriptions One WRONG/RIGHT code pair Three paragraphs describing the concept
No tutorial content Show the pattern/pitfall Explain what StateFlow or PagingSource is
Third-party APIs as gotchas One line naming the API + "verify against current docs" Setup walkthroughs, pinned versions
Trim filler words Direct statements "It is important to note that...", "In order to...", "You should consider..."

DRY Cross-Referencing

Each rule has ONE canonical home. Other files point to it instead of duplicating; a pointer into another skill names that skill.

Concept Canonical home Other files do
MVI contract, BaseViewModel, effects, collection at the Route compose-architecture/references/mvi-contract.md One-line rule + pointer
State ownership, drafts, SavedStateHandle compose-architecture/references/state-ownership.md Pointer
Failure types, launchGuarded, UI error tiers compose-architecture/references/error-handling.md Pointer
Flows, scopes, dispatchers compose-architecture/references/coroutines-flow.md Pointer
Koin modules, lifetimes, ViewModel params compose-architecture/references/dependency-injection.md 1–2 line binding example + pointer
Navigation 3 keys, back stack, results compose-architecture/references/navigation.md Pointer
Existing Hilt / MVVM / Navigation 2 projects compose-architecture/references/existing-projects.md Pointer
ViewModel test setup, fakes, test dispatchers compose-feature/references/testing.md Domain-specific fake + pointer

Read the full file on GitHub · 96 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. yesterday Changed · -23 lines 3e6d498fb885
  2. 1mo ago First seen · 119 lines · 0 tokens per session scan A ad56720dfd71

Subscribe to this mod's changes

reference-file-standards is a cursor rule published in the GitHub repository Meet-Miyani/compose-skill (304 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,158 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-08-30.

Related

Other cursor rules, from other repositories

compose-performance

Compose performance: stability annotations (@Stable, @Immutable), strong-skipping in Kotlin 2.x, key-based recomposition, derivedStateOf, remember{} keys, deferred reads, Compose previews + Paparazzi for screenshot tests.

RoninForge/roninforge-kotlin-compose · 0 tokens

android-project

Core behavior rules for AI agents working on this Android project.

JoDaBaRo/agentic-mobile-rules · 8,084 tokens

android-project-bootstrap

Walks a developer through bootstrapping a BRAND-NEW Android project for agentic CLI delivery — creating the Firebase project, registering the Android app, setting up App Distribution, creating the Google Play Console listing, wiring API access, and installing the Gradle plugins. Use when the user says they're starting…

JoDaBaRo/agentic-mobile-rules · 106 tokens

technical_design_documentation_rule

Rule: Guideline for creating a Technical Design Document for a new feature.

moclam1905/CocktailRecipes · 14 tokens

android-project-onboarding

Walks a new developer through one-time setup of an EXISTING configured Android project from a blank macOS install — JDK, Android SDK, AVD, scrcpy, shell env vars, credential files, and a smoke-test build. Assumes Firebase project + Play Console listing already exist; user just needs to acquire credentials. Use when…

JoDaBaRo/agentic-mobile-rules · 161 tokens

implementation_rule

Rule: Define the implementation guidelines for a task checklist – following Clean Architecture standards for Android-Kotlin.

moclam1905/CocktailRecipes · 0 tokens