rule-08

rule-08 is a cursor rule for coding agents from pr-pm/prpm. It costs 0 tokens per session (114 once invoked), scanned A, a copy of rule-01, MIT.

A set of coding guidelines covering patterns, tests, documentation, naming, errors, TypeScript, and code review.

In plain words
What is it for?
Use it to guide new code, unit tests, documentation, and review decisions.
Why use it?
It gives an agent a consistent baseline for writing and checking project code.

Cursor rule

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 rules/pr-pm/prpm/rule-08
Clone the repo
git clone --depth 1 https://github.com/pr-pm/prpm

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 rule-08

README.md
[![agentmods](https://agentmods.dev/badge/rules/pr-pm/prpm/rule-08.svg)](https://agentmods.dev/rules/pr-pm/prpm/rule-08)
Your own site
<a href="https://agentmods.dev/rules/pr-pm/prpm/rule-08"><img src="https://agentmods.dev/badge/rules/pr-pm/prpm/rule-08.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00114
Opus 5 $0.00000 $0.00057
Sonnet 5 $0.00000 $0.00023
Haiku 4.5 $0.00000 $0.00011

Measured yesterday against content hash be780f57d85c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rule-08 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.

Origin

This is a copy

100% identical to rule-01 — 0 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.

packages/cli/test-fixtures/integration/edge-cases/large/files/rule-08.mdc · 26 lines

What it actually says

Large Test Rule

This is test rule number in the large package scalability test.

Guidelines

  1. Follow consistent coding patterns
  2. Write comprehensive tests
  3. Document your code
  4. Use meaningful variable names
  5. Handle errors gracefully

Best Practices

  • Keep functions small and focused
  • Use TypeScript for type safety
  • Write unit tests for all new code
  • Review code before merging
  • Follow the project style guide
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 First seen · 26 lines · 0 tokens per session scan A be780f57d85c

Subscribe to this mod's changes

rule-08 is a cursor rule published in the GitHub repository pr-pm/prpm (120 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 114 tokens. A static security scan graded it A with 0 findings. It is 100% identical to rule-01, differing in 0 lines, and is treated as a copy.