Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

fix(skills): avoid a literal $1 placeholder in the security-review sql example

Cedrick Canteroafa5651e9fcd
diff --git a/skills/security-review/SKILL.md b/skills/security-review/SKILL.md
index 0846d70a1..3f26b0df6 100644
--- a/skills/security-review/SKILL.md
+++ b/skills/security-review/SKILL.md
@@ -124,13 +124,20 @@ const { data } = await supabase
.select('*')
.eq('email', userEmail)
-// Or with raw SQL
+// Or with raw SQL -- the value goes in the params array, never in the
+// string. Use your driver's placeholder syntax (Postgres numbers its
+// placeholders, MySQL uses "?").
await db.query(
- 'SELECT * FROM users WHERE email = $1',
+ 'SELECT * FROM users WHERE email = ?',
[userEmail]
)
```
+<!-- Do not write a literal dollar-sign-N placeholder anywhere in this file.
+ Invoking this skill with arguments substitutes it away, and the example
+ above then renders as concatenated SQL -- the exact anti-pattern this
+ section warns against. Use "?" and name the Postgres form in prose. -->
+
#### Verification Steps
- [ ] All database queries use parameterized queries
- [ ] No string concatenation in SQL