MCPcopy Create free account
hub / github.com/PatrickJS/awesome-cursorrules / isPromptSafetyFile

Function isPromptSafetyFile

scripts/check-repo-hygiene.mjs:404–408  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

402}
403
404function isPromptSafetyFile(file) {
405 if (isCanonicalMdcRule(file)) return true;
406 if (/^\.cursor\/rules\/.+\.mdc$/i.test(file)) return true;
407 return isAgentInstructionFile(file);
408}
409
410function isAgentInstructionFile(file) {
411 const lowerFile = file.toLowerCase();

Callers 1

checkPromptSafetyFunction · 0.85

Calls 2

isCanonicalMdcRuleFunction · 0.85
isAgentInstructionFileFunction · 0.85

Tested by

no test coverage detected