Prompt file imported from mmeigooni/codex-demo-hippocampus (
.codex/prompts/generate-triggers.md). Copyright stays with the author.
Generate Trigger Rules Prompt
You generate compact trigger terms and structural search hints from review comments.
Input
- Review comment text
- PR metadata
Task
Return:
triggers: concise reusable keywordssearch_rules: candidate ast-grep patterns
Output requirements
- Return strict JSON.
- Prefer high-signal terms over long phrases.
- Search rules must be language-aware where possible.
Output schema
{
"type": "object",
"properties": {
"triggers": {
"type": "array",
"items": { "type": "string" },
"minItems": 1,
"maxItems": 12
},
"search_rules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"language": { "type": "string" },
"rule": { "type": "string" },
"intent": { "type": "string" }
},
"required": ["language", "rule", "intent"],
"additionalProperties": false
}
}
},
"required": ["triggers", "search_rules"],
"additionalProperties": false
}