markdown-organization-basic

Basic rules for organizing long Markdown documents with expandable sections. Markdown is a plain-text format commonly used for documentation, reports, and project notes.

In plain words
What is it for?
Use them when writing reports, guides, technical documentation, or code analysis with several main sections and nested subsections.
Why use it?
Expandable sections keep lengthy documents easier to scan without removing their detailed content.

Cursor rule for 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/stramp/lost-mines-phandelver/markdown-organization-basic
Clone the repo
git clone --depth 1 https://github.com/Stramp/Lost-Mines-Phandelver

Made for: Cursor.

Per session 1,634 This file is loaded in full into every session.
When invoked 1,634 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 $0.01634 $0.01634
Opus 5 $0.00817 $0.00817
Sonnet 5 $0.00327 $0.00327
Haiku 4.5 $0.00163 $0.00163

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

Security

Grade A, and why

markdown-organization-basic 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/markdown-organization-basic.mdc · 227 lines

How it starts

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

Markdown Organization Rules - Basic

🎯 Objective

ALWAYS use collapsible system (<details> and <summary>) to organize Markdown files, especially:

  • Long reports
  • Technical documentation
  • Code analysis
  • Guides and tutorials
  • Files with multiple sections

📋 Mandatory Rules

1. Always Use Collapsibles in Main Sections

ALWAYS organize main sections with <details>:

<details>
<summary style="background-color: #e8e8e8; padding: 4px 8px; border-radius: 4px;"><b>Main Title</b></summary>

> Description or main content here...
>
> More content if necessary...

</details>

Style Pattern for Titles:

  • Main titles: background-color: #e8e8e8; padding: 4px 8px; border-radius: 4px;
  • Sub-sections: background-color: #d8d8d8; padding: 3px 6px; border-radius: 3px;
  • Use <b> for bold in main titles

2. Hierarchical Structure with Visual Indentation

ALWAYS use nested collapsibles with quote blocks (>) to create visual hierarchy:

<details>
<summary style="background-color: #e8e8e8; padding: 4px 8px; border-radius: 4px;"><b>⚠️ Problemas Encontrados</b></summary>

> Descrição geral dos problemas...
>
> <details>
> <summary style="background-color: #d8d8d8; padding: 3px 6px; border-radius: 3px;">🔴 Crítico (Alta Prioridade)</summary>
>
> > Conteúdo de problemas críticos...
> >
> > - Item 1
> > - Item 2
>
> </details>
>
> <details>
> <summary style="background-color: #d8d8d8; padding: 3px 6px; border-radius: 3px;">🟡 Médio (Média Prioridade)</summary>
>
> > Conteúdo de problemas médios...
> >
> > - Item 1
> > - Item 2
>
> </details>

</details>

Visual Hierarchy:

  • Level 1 (Main): Background #e8e8e8 + Quote block >
  • Level 2 (Sub-section): Background #d8d8d8 + Nested quote block >>
  • Level 3 (Items): Inside >> to maintain hierarchy

3. Emojis in Summary

ALWAYS use descriptive emojis in <summary> for better visualization:

  • 📊 For summaries/statistics
  • ✅ For positive points
  • ⚠️ For warnings/problems
  • 🔴 For critical/high priority
  • 🟡 For medium/medium priority
  • 🟢 For low/low priority
  • 📋 For lists/checklists
  • 💡 For tips/suggestions
  • 🎯 For objectives/goals
  • 📈 For metrics/analysis
  • 🔧 For tools/configurations
  • 📚 For documentation/references

Read the full file on GitHub · 227 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 First seen · 227 lines · 1,634 tokens per session scan A 592be9ac55e8

Subscribe to this mod's changes

markdown-organization-basic is a cursor rule published in the GitHub repository Stramp/Lost-Mines-Phandelver (2 stars, last pushed 9mo ago), licensed MIT. It adds 1,634 tokens to every session, about $0.0082 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-31.