Skip to content
Prompt

Cursor-MDC-Files — Cursor Rules

by rstevens70

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "Cursor-MDC-Files — Cursor Rules" prompt rules to my project.
Repository: https://github.com/rstevens70/Cursor-MDC-Files

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

C Programming Core Guidelines

Const Usage (CERT DCL00-C)

• Use const for values that shouldn't change • Use const for pointer parameters that shouldn't modify data `c void printMessage(const char *message) { // Function can't modify the string printf("%s\n", message); } `

C Programming Best Practices

Based on SEI CERT C Coding Standard, MISRA C Guidelines, and C17 Standard > Related Guidelines: > - See [memory.md] for detailed memory management guidelines > - See [error.md] for comprehensive error handling patterns > - See [comments.md] for documentation and commenting standards > - See [cmake.md] for build configuration guidelines

General Guidelines

• Use consistent indentation (4 spaces as per project guidelines) • Limit line length to 80-100 characters for readability • Use meaningful variable and function names with snake_case • Define constants with UPPER_SNAKE_CASE • Always initialize variables before use • Avoid global variables when possible • Prefer static functions for internal implementation details

Security (SEI CERT C)

• Validate all input from external sources • Use bounds-checking functions (strncpy instead of strcpy, etc.) • Check return values from functions that can fail • Avoid dangerous functions (gets, scanf without field width limits) • Validate array indices before use • Use secure random number generation for cryptographic purposes • Sanitize data before passing to system() or exec() functions

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1y ago
Dead
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Forks1
Issues0
Updated1y ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more