agent-use-project-docs.rules

agent-use-project-docs.rules is a cursor rule for Cursor from drumnation/unsplash-smart-mcp-server. It costs 336 tokens per session, scanned A, original, MIT.

A project rule that tells coding assistants to read existing documentation before planning, building, debugging, or changing shared components. It points them to feature notes, architecture decisions, concepts, package details, and onboarding documents.

In plain words
What is it for?
Use it to guide documentation checks during feature work, debugging, setup, and decisions about project names, architecture, or shared utilities.
Why use it?
It reduces duplicated work and helps keep new changes consistent with decisions already recorded in the project.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

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/drumnation/unsplash-smart-mcp-server/agent-use-project-docs.rules
Clone the repo
git clone --depth 1 https://github.com/drumnation/unsplash-smart-mcp-server

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-use-project-docs.rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/drumnation/unsplash-smart-mcp-server/agent-use-project-docs.rules.svg)](https://agentmods.dev/rules/drumnation/unsplash-smart-mcp-server/agent-use-project-docs.rules)
Your own site
<a href="https://agentmods.dev/rules/drumnation/unsplash-smart-mcp-server/agent-use-project-docs.rules"><img src="https://agentmods.dev/badge/rules/drumnation/unsplash-smart-mcp-server/agent-use-project-docs.rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 336 This file is loaded in full into every session.
When invoked 336 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00336 $0.00336
Opus 5 $0.00168 $0.00168
Sonnet 5 $0.00067 $0.00067
Haiku 4.5 $0.00034 $0.00034

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

Security

Grade A, and why

agent-use-project-docs.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 6d 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-use-project-docs.rules.mdc · 54 lines

What it actually says

Rule: Agent Use of Project Documentation

Purpose

Ensure that agents actively reference existing project documentation during planning, implementation, and debugging. This reinforces architecture decisions, prevents duplication, and leverages prior domain knowledge.


When to Read Docs

Agents MUST consult relevant documentation:

  • Before implementing or planning a new feature
  • Before debugging a non-trivial issue
  • When using or modifying any shared component, service, or utility
  • When setting up a new app, package, or configuration
  • When unsure about naming, architecture, or design patterns

What to Read

Agents should prioritize:

  • docs/features/ — Feature implementation and rationale
  • docs/architecture/adr/ — Architectural decisions
  • docs/concepts/ — Core patterns and abstractions
  • docs/packages/[name]/ — Workspace-specific details
  • README.md, ONBOARDING.md, CONTRIBUTING.md — Setup and standards

Use index files (*.index.md) to navigate efficiently.


Usage Expectations

  • ✅ Reference relevant documents in the plan or task file
  • ✅ Reuse prior design decisions and avoid re-debating settled architecture
  • ✅ Cross-link helpful docs in responses where appropriate
  • ✅ Load related .md files into memory when working on relevant code
  • ✅ If unclear, run the consult-documentation-index process to search

  • @project-documentation-structure.rules.mdc
  • @feature-task-plan-generator.rules.mdc
  • @agent-self-report.rules.mdc
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. 6d ago First seen · 54 lines · 336 tokens per session scan A ad0f7e3827c6

Subscribe to this mod's changes

agent-use-project-docs.rules is a cursor rule published in the GitHub repository drumnation/unsplash-smart-mcp-server (63 stars, last pushed 7mo ago), licensed MIT. It adds 336 tokens to every session, about $0.0017 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.