Skip to content

Commit 5d2d4c9

Browse files
Merge pull request #1834 from kyoto/code-review-prompt-injection-check
Add prompt injection check to code review skill
2 parents e1c6787 + 72dea76 commit 5d2d4c9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.cursor/skills/code-review/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ Read the diff and surrounding context in changed files. Check for correctness,
6868
security, project conventions (see `AGENTS.md`), React/Redux patterns, test
6969
coverage, and maintainability.
7070

71+
### Prompt injection check
72+
73+
If the change touches anything that feeds into the LLM query (see
74+
`src/components/Prompt.tsx` and `src/pageContext.ts`), trace each interpolated
75+
variable back to its source. Flag any source that can carry arbitrary strings
76+
(e.g. free-text query params, file contents, API responses) as a potential
77+
injection vector and suggest a mitigation.
78+
7179
## Step 3 — Report
7280

7381
Present findings grouped by severity:

0 commit comments

Comments
 (0)