documentation

documentation is a cursor rule for Cursor from KaelSensei/MagicAIBuilder. It costs 602 tokens per session, scanned A, original, MIT.

A rule requiring project documentation to be updated after every code change. It covers progress records, changelogs, timestamps, and architecture notes affected by changes.

In plain words
What is it for?
Use it while adding features, fixing bugs, refactoring, or changing the database or architecture so the relevant project records are updated immediately.
Why use it?
It prevents the documentation from falling behind the code and records what features, fixes, or refactors were completed.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents).

Good fit Use it while adding features, fixing bugs, refactoring, or changing the database or architecture so the relevant project records are updated immediately.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kaelsensei/magicaibuilder/documentation
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/KaelSensei/MagicAIBuilder

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 documentation

README.md
[![agentmods](https://agentmods.dev/badge/rules/kaelsensei/magicaibuilder/documentation/github.svg)](https://agentmods.dev/rules/kaelsensei/magicaibuilder/documentation)
Your own site
<a href="https://agentmods.dev/rules/kaelsensei/magicaibuilder/documentation"><img src="https://agentmods.dev/badge/rules/kaelsensei/magicaibuilder/documentation/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 documentation

Your own site · 80×15
<a href="https://agentmods.dev/rules/kaelsensei/magicaibuilder/documentation"><img src="https://agentmods.dev/badge/rules/kaelsensei/magicaibuilder/documentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 602 This file is loaded in full into every session.
When invoked 602 The same file — it is already loaded in full.
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.00602 $0.00602
Opus 5.5 $0.00241 $0.00241
Sonnet 5.5 $0.00120 $0.00120
Haiku 4.5 $0.00060 $0.00060

Measured 18d ago against content hash 5ad443682819, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

documentation 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 18d 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.

.agents/rules/documentation.mdc · 44 lines

How it starts

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

Documentation

Document knowledge, not activity. Do not write down what the code, a test or the git history already says. When a change makes knowledge outdated, update it in the same PR as the code.

Protected files

Feature branches never modify docs/project/changelog.md, docs/project/progress.md or docs/product/roadmap.md. A dedicated chore/docs PR updates them after each merge batch (CLAUDE.md).

Where each kind of knowledge lives

The standard is docs/adr/0006-comment-and-documentation-standard.md.

Document Holds Update it when
Code comments module headers, TSDoc contracts, "why" comments with their source always, in the same commit as the code
CONTEXT.md the ubiquitous-language glossary, by context you add, rename or redefine a domain term
docs/adr/NNNN-<slug>.md decisions, MADR 4 format, indexed in docs/adr/README.md a decision meets the tests in docs/adr/README.md
docs/engineering/architecture.md context map, C4 container view, layers, entry points, where code goes a context, a layer rule or an entry point changes
src/modules/<context>/README.md technical doc of one context: responsibilities, public API, data flow, invariants, diagram the context's API, flows or invariants change
docs/functional/<context>.md functional doc of one context: what the player can do, the rules, the edge cases player-visible behaviour of the context changes
docs/product/user-guide.md the guide for players a user-visible feature is added or changed

Read the full file on GitHub · 44 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. 18d ago Changed · -71 lines · -615 tokens per session 5ad443682819
  2. 3mo ago First seen · 115 lines · 1,217 tokens per session scan A d22c87a22673

Subscribe to this mod's changes

documentation is a cursor rule published in the GitHub repository KaelSensei/MagicAIBuilder (2 stars, last pushed yesterday), licensed MIT. It adds 602 tokens to every session, about $0.0024 per session on Opus 5.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-31.

Related

documentation compared with cursor rules from other repositories

documentation next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documentationKaelSensei/MagicAIBuilderCursor rule2yesterdayMITA602Cursor
server-actionskrivoox/agent-stack-templateCursor rule302mo agoMITA0Cursor
projectkrivoox/agent-stack-templateCursor rule302mo agoMITA656Cursor
ui-design-systemkrivoox/agent-stack-templateCursor rule302mo agoMITA0Cursor
performancekrivoox/agent-stack-templateCursor rule302mo agoMITA0Cursor
prisma-schemakrivoox/agent-stack-templateCursor rule302mo agoMITA0Cursor
git-flowkrivoox/agent-stack-templateCursor rule302mo agoMITA302Cursor