-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.promptdiffrc.example
More file actions
37 lines (37 loc) · 1.06 KB
/
.promptdiffrc.example
File metadata and controls
37 lines (37 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"rules": {
"disabled": ["injection-surface"],
"custom": [
{
"id": "max-sections",
"severity": "warn",
"pattern": { "type": "section-count", "max": 6 },
"message": "Too many sections. Keep prompts focused."
},
{
"id": "required-section",
"severity": "error",
"pattern": { "type": "require-section", "section": "guardrails" },
"message": "GUARDRAILS section is required by team policy."
},
{
"id": "banned-word",
"severity": "warn",
"pattern": { "type": "banned-words", "words": ["hack", "workaround", "TODO"] },
"message": "Contains banned word."
},
{
"id": "min-examples",
"severity": "error",
"pattern": { "type": "min-examples", "min": 3 },
"message": "Team policy requires at least 3 examples."
},
{
"id": "max-words",
"severity": "warn",
"pattern": { "type": "max-word-count", "max": 500 },
"message": "Prompt exceeds 500 word limit."
}
]
}
}