From 8336d9d6bda81540bd0be8f41fa5dbaca0acdcf3 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Wed, 20 Aug 2025 13:00:26 +0000 Subject: [PATCH] feat: enhance markdown rules for AI generation compliance - Add AI Generation Guidelines with alwaysApply: true - Extend globs to include .mdc files - Ensure AI agents follow rules during content creation - Improve markdown automation system integration --- .cursor/rules/docs/markdown.mdc | 36 ++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.cursor/rules/docs/markdown.mdc b/.cursor/rules/docs/markdown.mdc index f95f297b..fddda015 100644 --- a/.cursor/rules/docs/markdown.mdc +++ b/.cursor/rules/docs/markdown.mdc @@ -1,5 +1,5 @@ --- -globs: *.md +globs: ["*.md", "*.mdc"] alwaysApply: false --- # Cursor Markdown Ruleset for TimeSafari Documentation @@ -10,6 +10,36 @@ This ruleset enforces consistent markdown formatting standards across all projec documentation, ensuring readability, maintainability, and compliance with markdownlint best practices. +**⚠️ CRITICAL FOR AI AGENTS**: These rules must be followed DURING content +generation, not applied after the fact. Always generate markdown that complies +with these standards from the start. + +## AI Generation Guidelines + +### **MANDATORY**: Follow These Rules While Writing + +When generating markdown content, you MUST: + +1. **Line Length**: Never exceed 80 characters per line +2. **Blank Lines**: Always add blank lines around headings, lists, and code + blocks +3. **Structure**: Use proper heading hierarchy and document templates +4. **Formatting**: Apply consistent formatting patterns immediately + +### **DO NOT**: Generate content that violates these rules + +- ❌ Generate long lines that need breaking +- ❌ Create content without proper blank line spacing +- ❌ Use inconsistent formatting patterns +- ❌ Assume post-processing will fix violations + +### **DO**: Generate compliant content from the start + +- ✅ Write within 80-character limits +- ✅ Add blank lines around all structural elements +- ✅ Use established templates and patterns +- ✅ Apply formatting standards immediately + ## General Formatting Standards ### Line Length @@ -326,6 +356,10 @@ Description of current situation or problem. ### Authentication ### Authorization + ## Features ❌ (Duplicate heading) + ### Security + ### Performance + ``` ## Features ❌ (Duplicate heading) ### Security ### Performance